var xmlHttp

function showBusinessArea(str)
{ 
	document.getElementById("txtHint").innerHTML="Please Wait..."
	document.getElementById("makeHint").innerHTML=""
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="/search.asp"
url=url+"?s=businessarea&q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedBA 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChangedBA() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
 } 
}


function showMake(str, area)
{
	document.getElementById("makeHint").innerHTML="Please Wait..."
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="/search.asp"
url=url+"?s=make&a="+area+"&q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedMake
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChangedMake() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("makeHint").innerHTML=xmlHttp.responseText 
 } 
}



function showType(str, area)
{ 
	document.getElementById("typeHint").innerHTML="Please Wait..."
	document.getElementById("makeHint").innerHTML=""
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="/search.asp"
url=url+"?s=type&a="+area+"&q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedType
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChangedType() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("typeHint").innerHTML=xmlHttp.responseText 
 } 
}



function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}
