
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=500,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 class='menu'>")

document.write("<ul>")

document.write("<li style='width: 15px;'><img src='images/navi/blank.png' class='menu-img'/></li>")

document.write("<li style='width: 49px;'><a href='index.asp'><img src='images/navi/home.png' alt='Home' class='menu-img'/></a></li>")

document.write("<li style='width: 54px;'><a href='#'><img src='images/navi/about.png' alt='About' class='menu-img'/><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->")
document.write("<ul>")
document.write("<li><a href='about-ronytan.html'>ABOUT RONY TAN</a></li>")
document.write("<li><a href='about-autobiography.html'>AUTOBIOGRAPHY</a></li>")
document.write("</ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->")
document.write("</li>")

document.write("<li style='width: 68px;'><a href='#'><img src='images/navi/miracles.png' alt='Miracles' class='menu-img'/><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->")
document.write("<ul>")
document.write("<li><a href='miracles-divinehealing.html'>ABOUT DIVINE HEALING</a></li>")
document.write("<li><a href='miracles-revivals.html'>MIRACLE REVIVALS</a></li>")
document.write("<li><a href='miracles-service.html'>MIRACLE SERVICE</a></li>")
document.write("</ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->")
document.write("</li>")
document.write("<li style='width: 84px;'><a href='http://www.lighthouse.org.sg/' target=_blank><img src='images/navi/lighthouse.png' alt='Lighthouse' class='menu-img'/></a></li>")

document.write("<li style='width: 77px;'><a href='#'><img src='images/navi/teachings.png' alt='Teachings' class='menu-img'/><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->")
document.write("<ul>")
document.write("<li><a href='teaching-spiritual.html'>SYSTEMATIC SPIRITUAL STUDIES</a></li>")
document.write("<li><a href='teaching-discipleshipctr.html'>LIGHTHOUSE DISCIPLESHIP CENTER</a></li>")
//document.write("<li><a href='#'>SERMONS</a></li>")
document.write("</ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->")
document.write("</li>")

document.write("<li style='width: 51px;'><a href='music.html'><img src='images/navi/music.png' alt='Music' class='menu-img'/></a></li>")
//document.write("<li style='width: 51px;'><a href='#'><img src='images/navi/music.png' alt='Music' class='menu-img'/><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->")
//document.write("<ul>")
//document.write("<li><a href='#'>ALBUMS</a></li>")
//document.write("</ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->")
//document.write("</li>")

//document.write("<li style='width: 77px;'><a href='ecommerce/index.asp'><img src='images/navi/resources.png' alt='Resoures' class='menu-img'/></a></li>")

document.write("<li style='width: 77px;'><a href='http://www.ronytan.com/onlinestore/' target='blank'><img src='images/navi/resources.png' alt='Resoures' class='menu-img'/></a></li>")

document.write("<li style='width: 87px;'><a href='download.html'><img src='images/navi/downloads.png' alt='Downloads' class='menu-img'/></a></li>")
//document.write("<li style='width: 87px;'><a href='#'><img src='images/navi/downloads.png' alt='Downloads' class='menu-img'/><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->")
//document.write("<ul>")
//document.write("<li><a href='#'>FREE SERMONS</a></li>")
//document.write("<li><a href='#'>FREE BOOKS</a></li>")
//document.write("<li><a href='#'>MUSIC SAMPLES</a></li>")
//document.write("</ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->")
//document.write("</li>")

document.write("<li style='width: 67px;'><a href='contact.html'><img src='images/navi/contact.png' alt='Contact' class='menu-img'/></a></li>")

document.write("<li style='width: 151px; height: 30px; background-image: url(images/navi/blank.png); padding-top: 22px;' class='menu-img'><form name='frmSearch' method=GET action=javascript:showRemote();><input type=text name=terms style='border: 1px solid #B3B3B3;' size=11 onclick='clearSearch(this)' onKeyPress='CheckField1()'/>&nbsp;<input type=submit value=Go alt=search style='border: 1px solid #B3B3B3; color: #FFFFFF; background-color: #9b1f29; width: 30px;'/></li>")

document.write("</ul>")

document.write("</div>")