	function GetXmlHttpObject(handler)
		{ 
		var objXmlHttp=null
		
		if (navigator.userAgent.indexOf("Opera")>=0)
		{
		alert("This example doesn't work in Opera") 
		return 
		}
		if (navigator.userAgent.indexOf("MSIE")>=0)
		{ 
		var strName="Msxml2.XMLHTTP"
		if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
		{
		strName="Microsoft.XMLHTTP"
		} 
		try
		{ 
		objXmlHttp=new ActiveXObject(strName)
		objXmlHttp.onreadystatechange=handler 
		return objXmlHttp
		} 	
		catch(e)
		{ 
		alert("Error. Scripting for ActiveX might be disabled") 
		return 
		} 
		} 
		if (navigator.userAgent.indexOf("Mozilla")>=0)
		{
		objXmlHttp=new XMLHttpRequest()
		objXmlHttp.onload=handler
		objXmlHttp.onerror=handler 
		return objXmlHttp
		}
		}

	//var url = "ajax.php?param="; // The server-side scripts	
		
		
		
		function getimg(id,type,showfloor){
			
			var propertyid = id;
			var bedroomtype=type;
			var showfloor=showfloor;
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponse);
			xmlHttp.open("GET","ajax.php?propertyid="+propertyid+"&bedroomtype="+bedroomtype+"&showfloor="+showfloor);
			xmlHttp.send(null);
		}
		
		function handleHttpResponse() {
			if (xmlHttp.readyState == 4) {
			//	alert(xmlHttp.responseText);
				document.getElementById("floorplanimg").style.display="block";
			  document.getElementById("floorplanimg").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function addtofavorite(id,uid,bid,fav){
			var propertyid = id;
			var uid=uid;
			var bedroomid=bid;
			var fav=fav
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsefav);
			xmlHttp.open("GET","ajax.php?propertyid="+propertyid+"&uid="+uid+"&fav="+fav+"&bedroomid="+bedroomid);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsefav() {
			if (xmlHttp.readyState == 4) {
			//	alert(xmlHttp.responseText);
			  document.getElementById("addfav").style.display="block";
			  document.getElementById("addfav").innerHTML=xmlHttp.responseText;
			  
			}
		}
		function sendtofriend(id,uid,sendtofrnd,bid){
			
			var propertyid = id;
			var uid=uid;
			var sendtofrnd=sendtofrnd
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsesend);
			xmlHttp.open("GET","ajax.php?propertyid="+propertyid+"&uid="+uid+"&bid="+bid+"&sendtofrnd="+sendtofrnd);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsesend() {
			if (xmlHttp.readyState == 4) {
			//	alert(xmlHttp.responseText);
				document.getElementById("showsendtofriend").style.display="block";
			  document.getElementById("showsendtofriend").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		function forgetpass(forgetpassword){
			//alert("hi");
			
			var forgetpassword=forgetpassword
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsefor);
			xmlHttp.open("GET","ajax.php?forgetpassword="+forgetpassword);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsefor() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				document.getElementById("showforgetpass").style.display="block";
			  document.getElementById("showforgetpass").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
		
		function listrentalsignin(listrental){
			//alert("hi");
			
			var listrental=listrental
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponselist);
			xmlHttp.open("GET","ajax.php?listrental="+listrental);
			xmlHttp.send(null);
		}
		
		function handleHttpResponselist() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				document.getElementById("showlistsignin").style.display="block";
			  document.getElementById("showlistsignin").innerHTML=xmlHttp.responseText;
			  
			}
		}
		
		
			function signinfunction(signinform){
			var signinform=signinform
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp=GetXmlHttpObject(handleHttpResponsesign);
			xmlHttp.open("GET","ajax.php?signinform="+signinform);
			xmlHttp.send(null);
		}
		
		function handleHttpResponsesign() {
			if (xmlHttp.readyState == 4) {
			//alert(xmlHttp.responseText);
				document.getElementById("showsign").style.display="block";
			  document.getElementById("showsign").innerHTML=xmlHttp.responseText;
			  
			}
		}