//auto submit
function gotoCityURL(field) {
	var url = field[field.selectedIndex].value
	if (url != "") document.hotelSearch.submit()
	else field.selectedIndex = 0
}
// clear select options
function clearSelect(ctlSelect) {
	for (var i=ctlSelect.options.length; i>1; i--) ctlSelect.options[i] = null
}

var cntrCity=document.hotelSearch.city

arrCont = new Array();
arrCont[0]=new Array('Auckland','auckl.htm');
arrCont[1]=new Array('Bangkok','bangkok.htm');
arrCont[2]=new Array('Bali','bali.htm');
arrCont[3]=new Array('Hong Kong','hongkong.htm');
arrCont[4]=new Array('New York','nyork.htm');
arrCont[5]=new Array('Orlando','orlando.htm');
arrCont[6]=new Array('Singapore','singapore.htm');
arrCont[7]=new Array('Sydney','sydney.htm');
arrCont[8]=new Array('More...','default.asp');

//reset country
function countrySet() {
	clearSelect(cntrCity);
	for (var i=0; i<arrCont.length; i++) {
		var newOpt = new Option(arrCont[i][0], arrCont[i][1])
		cntrCity.options[i+2] = newOpt	

	}
	cntrCity.options[0].text = "Select City";
	cntrCity.options[1].text = "";
	cntrCity.options[0].selected = true;
}
countrySet();
