function CheckField1()
{
   // Get ASCII value of key that user pressed
   var key = window.event.keyCode;

   // Was key that was pressed a numeric character (0-9)?
    if ( key ==91 || key == 93 || key == 34 || key == 38 || key == 39 || key == 63 || key == 59 || key == 60 || key == 62 )
      window.event.returnValue = null; // if so, do nothing
   else
      return; // otherwise, discard character
}

function clearSearch()
{
frmSearch.terms.value=""
}

function showRemote() {
self.name = "current"; // names current window as "current"

var windowprops = "toolbar=0,location=0,directories=0,status=0, " +
"menubar=0,scrollbars=1,resizable=0,width=550,height=600,left=240,top=5";

	if (document.frmSearch.terms.value != "" )
	{
		if (document.frmSearch.terms.value != "Search for..." )
		{
		OpenWindow = window.open("results.asp?terms=" +document.frmSearch.terms.value , "remote", windowprops); // opens remote control
		}
		else
		{
		alert("Please fill in the search critera.");
		}
	}
	else
	{
		alert("Please fill in the search critera.");
	}
}

document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>")
document.write("<form name='frmSearch' method=get action=javascript:showRemote();>")
document.write("<tr>")
document.write("<td width='59%'><input type='text' name='terms' onKeyPress='CheckField1()' onclick='clearSearch()'></td>")
document.write("<td><INPUT TYPE='image' SRC='images/go.jpg' width='24' height='25' BORDER='0' class=go></td>")
document.write("</tr>")
document.write("</form></table>")



                  
                                       
                                          
                                        
                                        
                                          
                                          
                                          
                                              
                                       
                                    
