// JavaScript Document
function updateSearchForm(propertyTypeID, numBeds, locationID, locationTypeID, propAreaRange, propPriceRange, lang, divref) { 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request")
		return
	}
	divRef = divref
	var url=siteUrl+"includes/ajax/updateSearchForm.php"
	url=url+"?propertyTypeID="+propertyTypeID
	url=url+"&numBeds="+numBeds
	url=url+"&locationID="+locationID
	url=url+"&locationTypeID="+locationTypeID
	url=url+"&propAreaRange="+propAreaRange
	url=url+"&propPriceRange="+propPriceRange
	url=url+"&propPriceRange="+propPriceRange
	url=url+"&lang="+lang
	url=url+"&sid="+Math.random()
	//alert (url)
	xmlHttp.onreadystatechange=stateChanged
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
		
}
function deactivateForm(){
	document.searchForm.propertyTypeID.disabled = true; 
	document.searchForm.numBeds.disabled = true;
	document.searchForm.locationID.disabled = true;
	document.searchForm.locationTypeID.disabled = true;
	document.searchForm.propAreaRange.disabled = true;
	document.searchForm.propPriceRange.disabled = true;
}