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=470,height=300,left=240,top=5";

	if (document.frmSearch.terms.value != "" )
	{
		if (document.frmSearch.terms.value != "Search for..." )
		{
		OpenWindow = window.open("http://www.samudera.com/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 width=100% border=0 cellspacing=0 cellpadding=0>")
document.write("<tr> ")
document.write("<td>&nbsp;</td>")
document.write("<td width=62><a href=http://www.samudera.com/ssl/contact.htm onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('contact','','../../images/contacton.gif',1)><img src=../../images/contactoff.gif name=contact width=62 height=23 border=0></a></td>")
document.write("<td width=15><img src=../../images/separtor2.gif width=15 height=23></td>")
document.write("<td width=46><a href=http://www.samudera.com/ssl/sitemap.htm onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('sitemap','','../../images/sitemapon.gif',1)><img src=../../images/sitemapoff.gif name=sitemap width=46 height=23 border=0></a></td>")
document.write("<td width=15><img src=../../images/separtor2.gif width=15 height=23></td>")
document.write("<td width=33><a href=http://www.samudera.com/ssl/index.htm onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('home','','../../images/homeon.gif',1)><img src=../../images/homeoff.gif name=home width=33 height=23 border=0 class=ir_spacerRight></a></td>")
document.write("<td width=155><table width=155 border=0 cellspacing=0 cellpadding=0>")
document.write("<tr> ")
document.write("<form name=frmSearch method=get action=javascript:showRemote();>")
document.write("<td><div align=right><input class=searchinput name=terms type=text size=17 onKeyPress='CheckField1()' onclick='clearSearch()'></div></td>")
document.write("<td width=28><input type=image name=go border=0 src=../../images/go.gif width=28 height=23 class=ir_spacerRight></td>")
document.write("</form>")
document.write("</tr>")
document.write("</table></td>")
document.write("</tr>")
document.write("</table>")
