function hotel_disable(){
	cmb_arron=document.Wiz.cmb_arron.value
	if(cmb_arron=="all")
		{
		document.Wiz.cmb_hotel.disabled = false;
		
		}
	else
	   {
		document.Wiz.cmb_hotel.options.selectedIndex = 0;
		document.Wiz.cmb_hotel.disabled = true;
		}
	
	}

function getUKCities(arg_city)
	{
	// for DOM2 including NN 6 & 7
		//chk_length();
		//getUKCities
				//if(arg_city != "London")
		//{
			//document.Wiz.cmb_area.disabled = true;
			//document.Wiz.cmb_area.selectedIndex = 0;
		//} 
		//else
		//{
			//document.Wiz.cmb_area.disabled = false;
		//}
		//var area_name = document.Wiz.cmb_area.value;
		//if(area_name != "")
		//{
			//document.Wiz.cmb_hotel.disabled = true;
		//} 
		//else
		//{
			//document.Wiz.cmb_hotel.disabled = false;
		//} 
				
		if (document.implementation && document.implementation.createDocument)
		{
		// create the XML Doc
			xmldoc = document.implementation.createDocument("", "", null);
		// define a function to run on load
			xmldoc.onload=function(){city_picker(arg_city);}
		}
	// for IE
		else if (window.ActiveXObject)
		{
		// create a new XML object for IE
			xmldoc=new ActiveXObject("Microsoft.XMLDOM");
		// define some attributes of the doc
			xmldoc.async = false;
		// define a function to run on load
			xmldoc.onreadystatechange=function(){if(xmldoc.readyState == 4){city_picker(arg_city);}}
		}
	// for the rest
	else
	{
		alert('Your browser can\'t handle this script');
	}
	//load the XML file in
	var p_file = "xmlfiles/hotel_list.xml"
	xmldoc.load(p_file);   
	}
// 
	
	function city_picker(arg_city)
	{
	  // alert(arg_city);
	   
	   var lc_countrycode;
	   var obj_city;
	   var objHotel;
	   var cmb_hotelcode;
	   var cmb_hotelname;
	   var jc_hotelcode;
	   var jc_hotelname;
	   var cmb_index;
	   //empty_list(p_field);
	   objCity = xmldoc.getElementsByTagName("city");

	   // newsItems = xmldoc.selectNodes("//newsticker/newselement");
	   // newsItemsspec = newsItems.getElementById('3333');
	
		// populate the Arrays from the XML file
			mv_totalcnt = 1;
			for (var i=0;i<objCity.length;i++)
			{
				//	COUNTRY ATTRIBUTES
				jc_cityname = objCity[i].getAttribute("name");
				if ((jc_cityname == arg_city) || (arg_city==''))
				{
					objHotel = xmldoc.getElementsByTagName("city")[i].getElementsByTagName("hotel");	
					for(var hotel_index=0;hotel_index<objHotel.length;hotel_index++)
					{
						cmb_index = hotel_index + 1;	
						jc_hotelcode = objHotel[hotel_index].getAttribute("hotel_id");
						jc_hotelname = objHotel[hotel_index].getAttribute("hotel_name");
						cmb_hotelcode = jc_hotelcode;
						cmb_hotelname = jc_hotelname;
						document.Wiz.cmb_hotel.options[cmb_index] = new Option(cmb_hotelname, cmb_hotelcode);
					}	// end hotel loop		
				} // end if
			}  // end city for loop 
	 } // end function
function chk_length(object)
{
cmb_len1=document.Wiz.cmb_hotel.length
for (j=1; j<=cmb_len1; j++) {
cmb_len2=document.Wiz.cmb_hotel.length
for (i=1; i<=cmb_len2; i++) {
document.Wiz.cmb_hotel.options[i] = null;
}
}
}