
var req;
function loadXMLDoc(url){
 req = null;

if (window.XMLHttpRequest) {
 req = new XMLHttpRequest();
 req.onreadystatechange = processReqChange;
 req.open("GET", url, true); 
 req.send(null);

} else if (window.ActiveXObject) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP.4.0");
} catch(e) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP.3.0");
} catch(e) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
req = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
req = false;
}
}
}
}
if (req) {
 req.onreadystatechange = processReqChange;
 req.open("GET", url, true);
 req.send();
}
}
}


function processReqChange(){
	if (req.readyState == 4) {
	if (req.status == 200) {

	document.getElementById("Home").innerHTML = req.responseText;
} else {
	alert("Error!:\n" + req.statusText);
	}
	}
}



function atualiza(valor,OrderBy,Sort,CountryID){
	//alert(valor);
	//alert(OrderBy);
	//alert(Sort);
	loadXMLDoc("/_includes/Ajax/hotel_index3.asp?Key="+valor+"&OrderBy="+OrderBy+"&Sort="+Sort+"&CountryID="+CountryID);
}
