var xmlhotel

function GetXmlHotelObject()
{
	if (window.XMLHttpRequest)
	{
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject)
	{
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function hotel_buttons()
{
	xmlhotel=GetXmlHotelObject();
	if (xmlhotel==null)
	{
		alert ("Your browser does not support AJAX!");
		return;
	}
	var url="ajax/hotel_button.php";
	url=url+"?sid="+Math.random();
	xmlhotel.onreadystatechange=hotelbutton;
	xmlhotel.open("GET",url,true);
	xmlhotel.send(null);
}

function hotelbutton()
{
	if (xmlhotel.readyState==4)
	{
		document.getElementById("travel_links").innerHTML=xmlhotel.responseText;
	}
}
