var SearchResultPageLocation = 'http://209.173.246.143/ABOUTUS/stores.aspx?&cname=BizSearchResult'; 

function GetSearchResultURL(zipValue, tagValue)
{
    /*
    TODO (OPTIONAL) - if you are implementing Category Tags, replace the word 'All' in the Search Box html code above, with the appropriate
    Category of locations that you want to show up in the search results.  For example, if you want to have 2 search boxes on your page, and
    you want the 1st Search box to search for only the listings that you have tagged with the category 'Health', you would modify your Search Box code
    as follows:  
    Change: javascript:GetSearchResultURL(document.getElementById('ZipBox1').value, 'All') <--This brings back all your locations regardless of Category
    To: javascript:GetSearchResultURL(document.getElementById('ZipBox1').value, 'Health') <--This brings back all locations that you have set with the Category Tag of 'Health'
    */
    
    var searchResultURL = SearchResultPageLocation + '&zip=' + zipValue + '&tag=' + tagValue + '&m=20000'; 
    /* redirect (the input button was just clicked with the mouse or the Enter Key was clicked).  */
    //alert(searchResultURL);
    window.location=searchResultURL;
    return false;
}
function searchOnKeyPress(e)
{
		var keyCodeEntered = (e.which) ? e.which : window.event.keyCode;
    if (keyCodeEntered == 13) 
    {
      GetSearchResultURL(document.getElementById('ZipBox1').value, 'All');
      return false;
    }
    return true;
}

