	function clearEntry(city_type)
	{
		if (city_type==1)
			window.document.aForm.us_city.selectedIndex=-1;
		else
			window.document.aForm.international_city.selectedIndex=-1;
	}
	function select_usurl(x,y)
	{
            clearEntry(0);
            if (x != '---')
            {
			location = y + "&us_city=" + x;
            }
	}
	function select_inturl(x,y)
	{
		clearEntry(1);
        	if (x != '---')
            {
			location = y + "&international_city=" + x;
		}
	}

	function validateForm() {
		var f = window.document.aForm;

		if (f.search_txt.value == '' && f.search_locale.value == '') {
			alert('Please select a city');
			return false;
		}

		return true;
	}
	function intx(city)
	{
		root = "http://www.hotel-guide.to/cgi-bin/intlink.pl?city=" + city;
		var width = parseInt( screen.width * 0.9 );
		var height = 450;
		var left = parseInt( ( screen.width - width ) /2 );
		window.open(root,"Details","toolbar=1,menubar=0,location=0,status=1,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
	}


