
<!--

var isNetscape = (navigator.appName.indexOf("Netscape") >= 0 || navigator.appName.indexOf("Gecko") >= 0)?1:0;
var isNS6      = (navigator.userAgent.indexOf("Gecko") > 0) ? 1 : 0;

function search_window(thisForm,thisURL,thisToken) {
	var strLocation = thisURL.toString() + '?' + thisToken.toString() + '&SearchText=' + escape(eval("document.forms['" + thisForm + "'].SearchText.value"));
	location.href = strLocation.toString();
}

if(isNetscape && !isNS6) {
	var strLocation = '';

	window.captureEvents(Event.KEYPRESS | Event.SUBMIT);
	window.onkeypress = search_NS;
	window.onsubmit = search_GO;

	function search_GO(e) {
		if(document.forms[0].SearchText) {
			return false;
		}
	}
	
	function search_NS(e) {
		if(document.forms[0].SearchText) {
			if(e.which == '13') {
				if(document.forms[0].SearchText.value != '') {
					if(location.href.indexOf('?') == -1) {
						strLocation = location.href + '?SearchText=' + escape(document.forms[0].SearchText.value.toString());
					}
					else {
						strLocation = location.href + '&SearchText=' + escape(document.forms[0].SearchText.value.toString());
					}
					location.href =  strLocation.toString();
				}
			}
		}
	}
}
else {
	if(isNS6) {
		function search_IE() {
			var dummy;
		}
	}
	else {
		function search_IE() {
			if(window.event.keyCode == '13') {
				if(document.forms[0].SearchText.value != '') {
					if(location.href.indexOf('?') == -1) {
						strLocation = location.href + '?SearchText=' + escape(document.forms[0].SearchText.value.toString());
					}
					else {
						strLocation = location.href + '&SearchText=' + escape(document.forms[0].SearchText.value.toString());
					}
					location.href =  strLocation.toString();
				}
			}
		}
	}
}

//-->

