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 = "_blank"; // names current window as "current"

var windowprops = "toolbar=0,location=0,directories=0,status=0, " +
"menubar=0,scrollbars=1,resizable=1,width=500,height=300,left=240,top=5";

	if (document.frmSearch.terms.value != "" )
	{
		if (document.frmSearch.terms.value != "Search for..." )
		{
		//OpenWindow = window.open("search_l.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("<div id=sitetools>")
document.write("<form name='frmSearch' method=GET action=javascript:showRemote();><input type=hidden name=collection value=westpac>")
document.write("<table border=0 cellpadding=0 cellspacing=0 align=left><tr><td>&nbsp;&nbsp;&nbsp;<label for=sitesearchbox style=position: absolute; left: -999px; width: 990px;></label><input type=text name=terms id=sitesearchbox size=11 /></td><td>&nbsp;</td><td><input type=submit value=Search alt=search style='color: #FFFFFF; background-color: #9b1f29;'/></td></tr></table>")
document.write("</form>")
document.write("</div>")

