
function checksearchbox()
{
	var sboxval;
	sboxval = document.getElementById("searchString").value;
	
	if(sboxval=="")
	{ 
      divObj = document.getElementById('searchBoxErrDiv');
	  divObj.style.display = "block";
	  return false;	 
	}	
}
/*
*/
function showcity(str1,str2,str3)
{
	//alert('kk');
	var url1="getcityhome.php?StateId="+str1+"&CityId="+str2+"&CityName="+str3;
	xmlHttp1=GetXmlHttpObject(stateChanged1)
	xmlHttp1.open("GET", url1, true)
	xmlHttp1.send(null)
}

function stateChanged1()
{

	if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
	{
		document.getElementById("searchcity").innerHTML=xmlHttp1.responseText
	}
}

function GetXmlHttpObject(handler)
{
	var objXmlHttp=null

	if (navigator.userAgent.indexOf("Opera")>=0)
	{
		alert("This Site 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
		}
}


// For Image Hide and Show regarding featured Properties

function showDIV(divID,totalDIV)
{
	for (i=1; i<=totalDIV; i++) {
		if (i == divID) {
			divObj = document.getElementById(divID);
			divObj.style.display = "block";
		}
		else {
			divObj = document.getElementById(i);
			divObj.style.display = "none";
		}
	}
}
function shohide_div(divID,count)
{
	//alert(divID);
	//alert(count);
	//alert(document.getElementById(divID));
	for (i=1; i<= count; i++) {
		if (i == divID) {
			divObj = document.getElementById(divID);
			divObj.style.display = "block";
		}
		else {
			divObj = document.getElementById(i);
			divObj.style.display = "none";
		}
	}
}

function shohide1_div(divID,count1)
{
	//alert(count1);
	//alert(divID);
	for (i=101; i<= count1; i++) {
		//alert(divID);
		if (i == divID) {
			divObj = document.getElementById(divID);
			divObj.style.display = "block";
		}
		else {
			divObj = document.getElementById(i);
			divObj.style.display = "none";
		}
	}
}

function openfeedback(mypagename){
	window.open('feedback.php?pagename='+mypagename,'','resizable=no,location=no,menubar=no,scrollbars=yes,toolbar=no,fullscreen=no,dependent=no,width=650,height=300,left=225,top=25');
} 

