function updateHotels(intLocationGeoCodeID){
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null){
alert ("Browser does not support HTTP Request");
return false;
}
tag_id="divHotelID";
document.getElementById(tag_id).innerHTML = "";
var url="/ajax_feedback_updatehotels.asp";
url=url + "?locationgeocodeid=" + intLocationGeoCodeID;
url=url + "&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function updateCities(intCountryID){
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null){
alert ("Browser does not support HTTP Request");
return false;
}
tag_id="divCityID";
document.getElementById(tag_id).innerHTML = "";
document.getElementById("divHotelID").innerHTML = "";
var url="/ajax_feedback_updatecities.asp";
url=url + "?countryid=" + intCountryID;
url=url + "&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function GetXmlHttpObject(){
var objXMLHttp=null;
if (window.XMLHttpRequest){
objXMLHttp=new XMLHttpRequest();
} else if (window.ActiveXObject){
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
return objXMLHttp;
}
function stateChanged(){
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
document.getElementById(tag_id).innerHTML = xmlHttp.responseText;
}
}