// JavaScript Document
function showCD(str)
{
if (str=="")
  {
  //document.getElementById("txtHint").innerHTML="";
 // return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("div1").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","subcategory.php?q="+str,true);
xmlhttp.send();
}// JavaScript Document
//----------------------------------------------------------
function showCD1(str1)
{

string =document.getElementById("cat").value+"$";
string =string+document.getElementById("scat").value+"$";
//alert(""+string);
if (str1=="")
  {
  //document.getElementById("txtHint").innerHTML="";
 // return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("div2").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","products.php?string="+string,true);
xmlhttp.send();
}// JavaScript Document

//---------------------------------------

function searching()
{
string =document.getElementById("cat").value+"$";
string =string+document.getElementById("scat").value+"$";
string =string+document.getElementById("prod").value+"$";

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("srch").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","search.php?q="+string,true);
xmlhttp.send(); 
}// JavaScript Document
//---------------------------------------

function counterp()
{


string =document.getElementById("img").value;


if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("nothng").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","prop_ban_counter.php?q="+string,true);
xmlhttp.send(); 
}// JavaScript Document
//-----------------------------
function counter()
{


string =document.getElementById("img").value;


if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("nothng").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","con_ban_counter.php?q="+string,true);
xmlhttp.send(); 
}// JavaScript Document
//-----------------------------
function locality(str1)
{
if (str1=="")
  {
	  
  //document.getElementById("txtHint").innerHTML="";
 // return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("div1").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","arch_loc.php?q="+str1,true);
xmlhttp.send();
}// JavaScript Document
//============================

function searcharch()
{
	
	if(document.getElementById("selcity").value==0)
		{
	//	alert("Please select any city");	
	//	return false;
		}
	if(document.getElementById("locatn").value==0)
		{
	//	alert("Please select any location");	
	//	return false;
		}
	return true;
	/*else{
string =document.getElementById("selcity").value+"$";
string =string+document.getElementById("locatn").value+"$";

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("srch").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","searcharch.php?q="+string,true);
xmlhttp.send();  
	
	}*/
}// JavaScript Document
//-------------------------------------

function intlocality(str1)
{
if (str1=="")
  {
	  
  //document.getElementById("txtHint").innerHTML="";
 // return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("div1").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","interior_loc.php?q="+str1,true);
xmlhttp.send();
}
//------------------------

function estaelocality(str1)
{
	if (str1=="")
  {
	  
  //document.getElementById("txtHint").innerHTML="";
 // return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("div1").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","estate_loc.php?q="+str1,true);
xmlhttp.send();
}
//------------------------

//------------------------

function loanlocality(str1)
{
	if (str1=="")
  {
	  
  //document.getElementById("txtHint").innerHTML="";
 // return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("div1").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","loan_loc.php?q="+str1,true);
xmlhttp.send();
}
//------------------------
function searchinte()
{
	
	if(document.getElementById("int_city").value==0)
		{
		//alert("Please select any city");
	//	return false;	
		}
	else if(document.getElementById("intlocatn").value==0)
		{
		//alert("Please select any location");	
	//	return false;
		}
	else{
string =document.getElementById("intcity").value+"$";
string =string+document.getElementById("intlocatn").value+"$";
//alert(""+string);
/*
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("srch").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","search.php?q="+string,true);
xmlhttp.send();
	
	*/}
}
//-----------------------------
function searchestate()
{
	
	if(document.getElementById("int_city").value==0)
		{
	//	alert("Please select any city");
	//	return false;	
		}
	else if(document.getElementById("intlocatn").value==0)
		{
	//	alert("Please select any location");	
	//	return false;
		}
	else{
string =document.getElementById("intcity").value+"$";
string =string+document.getElementById("intlocatn").value+"$";
//alert(""+string);
/*
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("srch").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","search.php?q="+string,true);
xmlhttp.send();
	
	*/}
}
//-------------------------------------------

function searchloan()
{
	
	if(document.getElementById("int_city").value==0)
		{
	//	alert("Please select any city");
	//	return false;	
		}
	else if(document.getElementById("intlocatn").value==0)
		{
	//	alert("Please select any location");	
	//	return false;
		}
	else{
string =document.getElementById("intcity").value+"$";
string =string+document.getElementById("intlocatn").value+"$";
//alert(""+string);
/*
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("srch").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","search.php?q="+string,true);
xmlhttp.send();
	
	*/}
}
//-------------------------------------------
function vastulocality(str1)
{
if (str1=="")
  {
	  
  //document.getElementById("txtHint").innerHTML="";
 // return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("div1").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","vastuloc.php?q="+str1,true);
xmlhttp.send();
}
//------------------------
function searchvastu()
{
	if(document.getElementById("vascity").value==0)
		{
	//	alert("Please select any city");
	//	return false;	
		}
	else if(document.getElementById("vaslocatn").value==0)
		{
	//	alert("Please select any location");	
	//	return false;
		}
/*	else{
string =document.getElementById("vascity").value+"$";
string =string+document.getElementById("vaslocatn").value+"$";
alert(""+string);

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("srch").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","search.php?q="+string,true);
xmlhttp.send();
	
	}*/
}
//-----------------------------------
function contlocality(str1)
{

if (str1=="")
  {
	  
  //document.getElementById("txtHint").innerHTML="";
 // return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
   document.getElementById("div4").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","contloc.php?q="+str1,true);
xmlhttp.send();
}
//------------------------
function searchcont()
{
	if(document.getElementById("cat").value==0)
		{
		//	alert("Please select category");
		//	return false;
		}
	else if(document.getElementById("contcity").value==0)
		{
		//	alert("Please select city");
		//	return false;	
		}
	else if(document.getElementById("contlocatn").value==0)
		{
	//		alert("Please select location");
	//		return false;	
		}
		
		/*
string =document.getElementById("cat").value+"$";
string =string+document.getElementById("contcity").value+"$";
string =string+document.getElementById("contlocatn").value+"$";
alert(""+string);

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("srch").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","search.php?q="+string,true);
xmlhttp.send();  */
}// JavaScript Document
//---------------------------------------

function countercp()
{



string =document.getElementById("img").value;

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("nothng").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","pc-hit-counter.php?q="+string,true);
xmlhttp.send(); 

}// JavaScript Document

function contcity(str1)
{
	alert("hai");
	return true;
	/*
if (str1=="")
  {
	  
  //document.getElementById("txtHint").innerHTML="";
 // return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("div1").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","vastuloc.php?q="+str1,true);
xmlhttp.send();
*/
}

