function GetCodeButton_Click()
{
                var txtCode = document.getElementById("SearchBoxValue");                 
				var inputID = txtCode.value;                
                var URL = "/Pg/Main/SearchResults.aspx?SearchTerm=" + inputID;
                //alert(URL);
              //  window.location.href = URL;
                document.location = URL;
}
function emptyField(which)
{		
        var code = document.getElementById(which);
        code.value = "";

}
