
	function hideLoading(){
		document.getElementById("loadingHotel").style.display = "none";
	}
	
	function loadHotels(url, whichHoliday, whichAirport, whichMinDuration, whichResort, whichExcludeBoard, whichHotel)
	{
		
		url = url + "whichHoliday=" + whichHoliday + "&whichAirport=" + whichAirport + "&whichMinDuration=" + whichMinDuration + "&whichResort=" + whichResort + "&whichExcludeBoard=" + whichExcludeBoard + "&whichHotel=" + whichHotel;
		xmlhttp2=null;
		
		if (window.XMLHttpRequest)
		{// code for Firefox, Opera, IE7, etc.
			xmlhttp2=new XMLHttpRequest();
		}
		else if (window.ActiveXObject)
		{// code for IE6, IE5
			xmlhttp2=new ActiveXObject("Microsoft.XMLHTTP");
		}
		if (xmlhttp2!=null)
		{	
			xmlhttp2.onreadystatechange=getHotels;
			xmlhttp2.open("GET",url,true);
			xmlhttp2.send(null);
		}
		else
		{
			alert("Your browser does not support XMLHTTP.");
		}
	}	
	
	function getHotels()
	{
		if (xmlhttp2.readyState==4)
		{// 4 = "loaded"
			if (xmlhttp2.status==200)
			{// 200 = "OK"
				hideLoading();
				document.getElementById("holidayBox").innerHTML = xmlhttp2.responseText;
			}
			else
			{
				alert("Problem retrieving hotels data:" + xmlhttp2.statusText);
			}
		}
	}		

		  
	