
<!-- 
// Get the HTTP Object
function getHTTPconObject(){
   if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
   else if (window.XMLHttpRequest) return new XMLHttpRequest();
   else {
      alert("Your browser does not support AJAX.");
      return null;
   }
}   
 
// Change the value of the outputText field
function reload_propertys(){

if(httpObject.readyState<4)
{
	document.getElementById('srch_propresult').innerHTML = " Loading...";
}
    if(httpObject.readyState == 4){
		//alert( httpObject.responseText);
        //document.getElementById('middle_').value = httpObject.responseText;
		
		document.getElementById('srch_propresult').innerHTML = httpObject.responseText;
		document.getElementById('featured_properties').style.display ='none';
		document.getElementById('short_term_properties').style.display ='none';
		
    }
 
}
 
// Implement business logic    
function property_search(pgval){    
//alert("property Search");
    httpObject = getHTTPconObject();
    if (httpObject != null) {

//alert(document.getElementById('lst_religion').value);

	var snd_cont= "searchresultprop.php?";
	
/*	if((document.getElementById('prt_for').value)=="")
	{
		snd_cont+="transac=";
		snd_cont+="buy";
	}
	*/
	
	var ctypelen =  document.frm_search.prt_for.length;
//	var rcat = document.getElementById('prt_for');
	for(i=0;i<ctypelen;i++)
	{//alert(rcat[i].checked);
		if((document.frm_search.prt_for[i].checked)==true)
		{
			snd_cont+="transac=";
			snd_cont+=document.frm_search.prt_for[i].value;
		}
	}
	
	
	
	if((document.getElementById('lst_proptype').value)!="")
	{
		snd_cont+="&ptype=";
		snd_cont+=document.getElementById('lst_proptype').value;
	}
	
		
	snd_cont+="&pgno=";
	snd_cont+=pgval;	
		
	if((document.getElementById('lst_states').value)!="")
	{
		snd_cont+="&states=";
		snd_cont+=document.getElementById('lst_states').value;
	}
	if((document.getElementById('lst_city').value)!="")
	{
		snd_cont+="&city=";
		snd_cont+=document.getElementById('lst_city').value;
	}
	
	
	if((document.getElementById('lst_pricemin').value)!="")
	{
		snd_cont+="&pricemin=";
		snd_cont+=document.getElementById('lst_pricemin').value;
	}
	if((document.getElementById('lst_pricemax').value)!="")
	{
		snd_cont+="&pricemax=";
		snd_cont+=document.getElementById('lst_pricemax').value;
	}
	
		
		
		
	//alert(snd_cont);
	//alert(document.getElementById('inputText').value);
   	 httpObject.open("GET",snd_cont, true);
	//httpObject.open("GET", "searchresult.php?ax_br_grom="+document.getElementById('lst_srch_br_gr').value, true);		
   	 httpObject.send(null); 
   	 httpObject.onreadystatechange = reload_propertys;
    }
}
 
var httpObject = null;



 


//-->

