var xmlHttp
function callInfo(url,pais,str,thisID,whichID)
{ 
if (str.length<3)
 { 
 document.getElementById(whichID).style.display="none";
 return
 }
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
//var url="getHotel.php"
url=url+"?q="+str+"&z="+pais+"&which="+whichID+"&thisID="+thisID
url=url+"&sid="+Math.random()
xmlHttp.open("GET",url,true)
xmlHttp.onreadystatechange=function stateChanged() {
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
if (xmlHttp.responseText.length>0)
 { 
 document.getElementById(whichID).style.visibility = "visible" ;
 document.getElementById(whichID).style.display="block";
 document.getElementById(whichID).innerHTML=xmlHttp.responseText
 document.getElementById(whichID).style.border="1px solid #A5ACB2";
 }
 } 

}
xmlHttp.send(null)
}
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;
}
function fillin(fieldvalue,thisID,which) {
document.getElementById(thisID).value = fieldvalue;
document.getElementById(which).style.display = 'none';
}
document.onclick=getRid;
function getRid() {
document.getElementById('livesearch1').style.display = 'none';
document.getElementById('livesearch2').style.display = 'none';
document.getElementById('livesearch3').style.display = 'none';
document.getElementById('livesearch4').style.display = 'none';
}
