	function get_radio_value(url)
	{
		//alert('hai')
		for (var i=0; i < document.frm.type_trans.length; i++)
		{
			if (document.frm.type_trans[i].checked)
			{
				var rad_val = document.frm.type_trans[i].value;
				submit_url = url+"&transaction="+rad_val;
				document.location.href = submit_url
				/*document.frm.action = submit_url;
				document.frm.method = 'GET';
				alert(document.frm.action);
				document.frm.submit();*/
			}
		}
	}
	function getHTTPObject()
	{
		var xmlhttp;
		try
		{
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try 
			{
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (E)
			{
				xmlhttp = false;
			}
		}
		if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
		{
			try
			{
				xmlhttp = new XMLHttpRequest();
			}
			catch (e)
			{
				xmlhttp = false;
			}
		}
		return xmlhttp;
	}
	function handleHttpResponse()
	{
		if (http.readyState == 4)
		{
			///alert(http.responseText);
			document.getElementById("featuredsellproperties").innerHTML=http.responseText;
		}
	}
	/*function handleRealtorHttpResponse()
	{
		if (http.readyState == 4)
		{
			///alert(http.responseText);
			document.getElementById("featuredrealtors").innerHTML=http.responseText;
		}
	}*/
	function handleAgentHttpResponse()
	{
		if (httpA.readyState == 4)
		{
			
			document.getElementById("featuredbuyproperties").innerHTML = "";
			document.getElementById("featuredbuyproperties").innerHTML=httpA.responseText; }
		}
		function get_SellFeaturedProperties()
		{
			// AJAX module to refresh the Featured Property
			var urltoget = "/bhr/system/gethotproperties.php?purpose=S";
			//var urltoget = "http://www.sqyard.com/bhr/system/gethotproperties.php?purpose=S";
			//var urltoget = "http://sys3/bhr/system/gethotproperties.php?purpose=S";
			http = new getHTTPObject();
			if (http)
			{
				
				http.open("GET", urltoget, true);
				http.send(null);
				http.onreadystatechange = handleHttpResponse;
			}
			//alert('kk')
			setTimeout('get_SellFeaturedProperties()',8000);
		}
		/*function get_BuyFeaturedProperties()
		{
			// AJAX module to refresh the Featured Property
			var urltoget = "http://sys1:8080/bhr/system/gethotproperties.php?purpose=R";
			//alert("Second==" + urltoget);
			httpA = new getHTTPObject();
			if (http)
			{
				httpA.open("POST", urltoget, true);
				httpA.send(null);
				httpA.onreadystatechange = handleAgentHttpResponse;
			}
			setTimeout('get_BuyFeaturedProperties()',8000);
		}*/
		
		/*function get_FeaturedRealtors()
		{
			// AJAX module to refresh the Featured Property
			var urltoget = "http://kiran1/bhr/system/getfeaturedrealtors.php";
			//var urltoget = "http://www.sqyard.com/bhr/system/gethotproperties.php?purpose=S";
			//var urltoget = "http://sys3/bhr/system/gethotproperties.php?purpose=S";
			http = new getHTTPObject();
			if (http)
			{
				http.open("GET", urltoget, true);
				http.send(null);
				http.onreadystatechange = handleRealtorHttpResponse;
			}
			setTimeout('get_FeaturedRealtors()',8000);
		}*/

		function get_IndividualBuySellFeaturedProperties()
		{
			//alert("IndividualBuySellFeaturedProperties");
			// AJAX module to refresh the Featured Property
			var urltoget = "http://www.sqyard.com/bhr/system/gethotpropertiesinnerpage.php?purpose=S";
			//var urltoget = "http://sys1:8080/bhr/system/gethotproperties.php?purpose=S";
			http = new getHTTPObject();
			if (http)
			{
				http.open("GET", urltoget, true);
				http.send(null);
				http.onreadystatechange = handleHttpResponse;
			}
			setTimeout('get_IndividualBuySellFeaturedProperties()',12000);
		}