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
//		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 border=0 cellspacing=0 cellpadding=0 align=right > ")
document.write("<form name=frmSearch method=GET action=javascript:showRemote();>")
document.write("<tr><td ><a href=member_login.asp><img src=images/login.gif width=45 height=20 border=0><a></td>")
document.write("<td ><a href=member_edit.asp><img src=images/myacc.gif width=78 height=20 border=0><a></td>")
document.write("<td ><a href=contactus.htm><img src=images/contactus.gif width=71 height=20 border=0><a></td>")
document.write("<td><img src=images/search.gif width=45 height=20></td>")
document.write("<td><input name=terms type=text size=10 onKeyPress='CheckField1()' onclick='clearSearch()'></td>")
document.write("<td><input type='image' src='images/searchbutton.gif' width=19 height=20 border='0' class='box1'></td>")
document.write("<td width=8>&nbsp;</td></tr></form></table>")