var xmlHttpresult;
	
function search_header_want(keywords,start){
	var url = "Scripts/headersearchwant.php";
	url = url+"?keywords="+keywords+"&start="+start+"&sid="+Math.random(); 
	//document.getElementById("result").innerHTML = '<table height="100%" cellspacing="2"><tr><td><img src="images/ajax-loader.gif" alt="Please Wait"/></td><td></td></tr></table>';
	xmlHttpresult = getXmlHttpObject();

	if (xmlHttpresult == null){
		alert ("Browser Does not Support AJAX");
		return;
		}
	  xmlHttpresult.onreadystatechange=function() 
{ 
	if(xmlHttpresult.readyState == 4){
		 if(xmlHttpresult.status==200) {
		document.getElementById("result").innerHTML = xmlHttpresult.responseText;
		window.location = "#results"; 
		var selectpagination = document.getElementById('selectpagination');
		var pagination = document.getElementById('paginationvalue');
		var	paginationvalue = pagination.value; 
		selectnumber = (start/paginationvalue);
		selectpagination.options[selectnumber].selected = true;
		}
	}
}
;
	  xmlHttpresult.open("GET",url,true);
	  xmlHttpresult.send(null);
}


