<!--
function clearBody(){
	document.getElementById('ouputResults').innerHTML = '';
}

function productresultsEnter(e){
var characterCode
if(e && e.which){
	e = e
	characterCode = e.which
} else {
	e = event
	characterCode = e.keyCode
}
if(characterCode == 13){
	productresults();
	return false
} else {
	return true
}
}


function preloader() {
if (document.getElementById) {
document.getElementById('preloader').style.visibility = 'hidden';
}
else {
if (document.layers) {  // Netscape 4
document.preloader.visibility = 'hidden';
}
else {  // IE 4
document.all.preloader.style.visibility = 'hidden';
      }
   }
}


function productresults(input){
document.getElementById('ouputResults').innerHTML = '';
if(input == null){
	if(searchform.page.value == false){
		alert('Please enter a product or category before searching.111');
	}
	var searchInput = searchform.index.value;
} else {
	var splitInput = input.split('!');
	if(splitInput[1] > 0){
		pageNo = '&page='+splitInput[1];
	} else {
		pageNo = '';
	}
	searchInput = splitInput[0] + pageNo;
}
prefix = '/index.php?ajax=1&index='+searchInput;
var xmlHttp;
try {
	// Firefox, Opera 8.0+, Safari
	xmlHttp=new XMLHttpRequest();
} catch (e) {
	// Internet Explorer
	try {
		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e) {
			// alert("Your browser does not support AJAX!");
			return false;
		}
	}
} xmlHttp.onreadystatechange=function() {
	if(xmlHttp.readyState==4){
		document.getElementById('ouputResults').innerHTML=xmlHttp.responseText;
	}
}
xmlHttp.open("GET",prefix,true);
xmlHttp.send(null);
}
-->