<!--// Start Hotel Search
   var request_type= new Array(1)
       request_type[0]="Destination";
       request_type[1]="Hotel Name";
// Destination submit
 	function goDestination() {
 		document.frmSearch.Type.value="Destination";
	}	
// Hotel Name Submit
   function goHotel() {
		document.frmSearch.Type.value="Hotel Name";
	}	
// Background change from destination to hotel name	
	function bgSwap(idFrom, idTo) {
	var i, showFrom, visitFrom, showTo, visitTo, cellStyleLocation, cellStyleHotel, URLLocation, URLHotel, cellLocation, cellHotel;
	 for (i=0; i<9; i++) {
		with (document) {
			if (document.all) {
				showFrom = all(idFrom + "_hotel" + i)
				visitFrom = all(idFrom + "_d" + i)
				showTo = all(idTo + "_hotel" + i)
				visitTo = all(idTo + "_d" + i)
			} else {
				showFrom = getElementById(idFrom + "_hotel" + i)
				visitFrom = getElementById(idFrom + "_d" + i)
				showTo = getElementById(idTo + "_hotel" + i)
				visitTo = getElementById(idTo + "_d" + i)
			}
		}
		if (showFrom) showFrom.style.display = "none"
		if (visitFrom) visitFrom.style.visibility = "hidden"
		if (showTo) showTo.style.display = ""
		if (visitTo) visitTo.style.visibility = ""		
	}
	if (document.all) {
		cellStyleLocation = document.all.cellLocation
		cellStyleHotel = document.all.cellHotel
		URLLocation = document.all.URLLocation
		URLHotel = document.all.URLHotel
	} else {
		cellStyleLocation = document.getElementById("cellLocation")
		cellStyleHotel = document.getElementById("cellHotel")
		URLLocation = document.getElementById("URLLocation")
		URLHotel = document.getElementById("URLHotel")
	}	
//set Background focus 
	if (idTo == "shn") {
		this.URLLocation.focus()
		cellStyleHotel.className = "tab-act"
		cellStyleLocation.className = "tab-pass"
		URLHotel.className = "tab-lnk-pass"
		URLLocation.className = "tab-lnk-act"
	} else {
		this.URLHotel.focus()
		cellStyleLocation.className = "tab-act"
		cellStyleHotel.className = "tab-pass"
		URLLocation.className = "tab-lnk-pass"
		URLHotel.className = "tab-lnk-act"
	}
}
//-->
