var xmlHttp 
function showEmployee(str)
  { 
  xmlHttp=CreateXmlHttpObject()
  if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 
  var url="propertyAjax.php"
  url=url+"?qparam="+str
  url=url+"&sid="+Math.random()
  xmlHttp.onreadystatechange=stateChanged; 
  xmlHttp.open("GET",url,true)
  xmlHttp.send(null);
  }
function showEmployee1(str)
  { 
  xmlHttp=CreateXmlHttpObject()
  if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 
  var url="submit.php"
  url=url+"?qparam="+str
  url=url+"&sid="+Math.random()
  xmlHttp.onreadystatechange=stateChanged2; 
  xmlHttp.open("GET",url,true)
  xmlHttp.send(null);
  }
function showEmployee2(str)
  { 
  xmlHttp=CreateXmlHttpObject()
  if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 
  var url="submit.php"
  url=url+"?qparam="+str
  url=url+"&sid="+Math.random()
  xmlHttp.onreadystatechange=stateChanged3; 
  xmlHttp.open("GET",url,true)
  xmlHttp.send(null);
  }
  function showEmployee3(str)
  { 
  xmlHttp=CreateXmlHttpObject()
  if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 
  var url="advsearch.php"
  url=url+"?qparam="+str
  url=url+"&sid="+Math.random()
  xmlHttp.onreadystatechange=stateChanged5; 
  xmlHttp.open("GET",url,true)
  xmlHttp.send(null);
  }
 function showEmployee4(str)
  { 
  xmlHttp=CreateXmlHttpObject()
  if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 
  var url="advsearch.php"
  url=url+"?qparam="+str
  url=url+"&sid="+Math.random()
  xmlHttp.onreadystatechange=stateChanged4; 
  xmlHttp.open("GET",url,true)
  xmlHttp.send(null);
  }

function showCity(str)
{ 
xmlHttp=CreateXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="cityAjax.php"
url=url+"?qparam="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged1 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}


function stateChanged4() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("city5").innerHTML=xmlHttp.responseText 
} 

function stateChanged5() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("city5").innerHTML=xmlHttp.responseText 
} 
} 
} 
function stateChanged1() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("city2").innerHTML=xmlHttp.responseText 
} 
} 

function stateChanged() 
  { 
  if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
  { 
  document.getElementById("typeid").innerHTML=xmlHttp.responseText 
  } 
  }
function stateChanged2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("typeidp").innerHTML=xmlHttp.responseText 
} 
} 

function stateChanged3() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("city5").innerHTML=xmlHttp.responseText 
} 
} 



function CreateXmlHttpObject()
  { 
  var objXMLHttp=null
  if (window.XMLHttpRequest)
  {
  objXMLHttp=new XMLHttpRequest()
  }
  else if (window.ActiveXObject)
  {
  objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
  }
  return objXMLHttp
  }


