function showsearchresultsforsearchChanged()
{ 
	if (xmlHttpSR.readyState==4 || xmlHttpSR.readyState=="complete")
	{ 
		document.getElementById('loadallnew').style.display="none";
		document.getElementById('searchresultallnew').style.display="";
		document.getElementById(idcataSR).innerHTML=xmlHttpSR.responseText ;
	}
} 
function showsearchresultsforsearch(id2,qrystring)
{
	document.getElementById('loadallnew').style.display="";	
	document.getElementById('searchresultallnew').style.display="none";
	idcataSR = id2;
	var url=site_url+"forms/search-results_propertiesajax.php?"+qrystring;
	xmlHttpSR=GetXmlHttpObject(showsearchresultsforsearchChanged);
	xmlHttpSR.open("GET", url , true);
	xmlHttpSR.send(null);
}
function showsearchpropresults(tr_id,catid,url,catname,max,minmax,act){
	
	var urle;
	idfeature = tr_id;
	idcatname = catid;
	document.getElementById('locid').style.display="none";
	document.getElementById('loadsresult').style.display="";
	urle=site_url+"forms/"+url+"&ajax=1";
	xmlHttp=GetXmlHttpObject(showsearchpropresultsChanged);
	xmlHttp.open("GET", urle , true);
	xmlHttp.send(null);
}
function showsearchpropresultsChanged()
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById('locid').style.display="";
		document.getElementById('loadsresult').style.display="none";
		//document.getElementById('login').innerHTML='<A class="menufont1" href="http://sys11/irs/loginclass.php?act=signout"  title="Logout">Logout</A>';
		document.getElementById(idfeature).innerHTML=xmlHttp.responseText ;
	}
}
