
function validate()
{
	if (document.main.productkey.value == "")
	{	alert("Please enter keyword to search.")
		document.main.productkey.focus();
		return;
	}
	val = document.main.productkey.value
	window.location="../search_prog.asp?key=" + val
	//document.main.submit();
}
function check_key(e)
{
	var key = null;
	var src = null;
	var isIE = window.navigator.appName.substring(0, 9) == "Microsoft";
	var isNN = window.navigator.appName.substring(0, 9) != "Microsoft";

	if (isIE) {
		key = String.fromCharCode(e.keyCode);
	} else {
		key = String.fromCharCode(e.which);
	}
		//alert(key);
		//alert(e.target);

	key = key.charCodeAt();
		//alert(key);

	if (key == 13)
		{	validate();
		}
}
