﻿function onEnterpress(e)
{
    //define any varible
    var KeyPress  

    //if which property of event object is supported  
    if(e && e.which)
    {
        e = e
        //character code is contained in NN4's which property
        KeyPress = e.which 
    }
    else
    {
        e = event
        KeyPress = e.keyCode
    }

    //13 is the key code of enter key
    if(KeyPress == 13)
    {
        location.href="shop.aspx?id=38013&domid=1087&sp=D&m1=38012&m2=38013&shopsearch=" + encodeURI(document.getElementById("ctl00_shopsearch").value)
        return false     
    }
    else
    {
        return true
    }
}



function doSearch()
{
    if(document.getElementById("ctl00_shopsearch").value!="")
        location.href="shop.aspx?id=38013&domid=1087&sp=D&m1=38012&m2=38013&shopsearch=" + encodeURI(document.getElementById("ctl00_shopsearch").value); 
}