function pfsearch(){
		document.write('<form id="searchForm" action="#" method="get" name="searchForm" onsubmit="PerformSearch()" style="display:inline"><input id="searchString" type="text" onKeyPress="catchEnter(e);" style="margin-left: 15px; border: none; margin-top: 15px; " maxlength="50" size="15" /></form>');
		document.write('<span style="margin-left: 10px; margin-top: 10px"><a href="javascript:PerformSearch()" style="display: inline-block;  height:20px; width:20px;"></a></span>');
}
function PerformSearch(){
	var URL = "http://www.partsforscooters.com/?search=" + document.searchForm.searchString.value;
	document.location.href = URL;
}
function catchEnter(e){
	// Catch IE’s window.event if the ‘e’ variable is null.
	// FireFox and others populate the e variable automagically.
    if (!e) e = window.event;
    // Catch the keyCode into a variable. 
    // IE = keyCode, DOM = which.
	var code = (e.keyCode) ? e.keyCode : e.which;
	// If code = 13 (enter) or 3 (return), cancel it out; else keep going and process the key.
	if (code == 13 || code == 3){
		PerformSearch();
	}else{
		return true;
	}
}
