
		function valid_form()
		{
			frm	=	document.searchEngine;
			var countryName = frm.cboCountry.value;
			var cityName = document.getElementById("cboCity").value;
			frm.hndcountry.value=countryName;
			frm.hndcity.value=cityName;
			//hotelBOX();
			//----------New Code for Keyword Search #pritam m
			//alert(document.getElementById('txtkeyword').value);
			if(document.getElementById('txtkeyword').value !='')
			{
				//searchkeyword();
				var Keyword = frm.txtkeyword.value;
				
				frm.action='http://www.partner.viator.com/en/2195/search/'+Keyword;
				frm.submit();
			}
			if(document.getElementById('txtkeyword').value =='')
			{			
			//----------End new Code-----------------------
				frm.action=cityName+'-things-to-do.htm';
				frm.submit();
			}
		}

		function CityList(str,path)
		{	
			document.getElementById("CityList").style.display = "none";
			document.getElementById("CityListD").style.display = "inline";

			var xmlreload = initxmlhttp() ;
			var url = path+str;
			//alert(str+">>"+url);
			xmlreload.open( "GET", url, true ) ;
			xmlreload.onreadystatechange=function()
			{
				if (xmlreload.readyState==4)
				{	//alert(value);
					CityID = xmlreload.responseText;//alert(CityID);
					document.getElementById("CityList").innerHTML = " <select name='cboCity' id='cboCity' class='textbox-w'>"+CityID+"</select>";

					document.getElementById("CityList").style.display = "inline";
					document.getElementById("CityListD").style.display = "none";

					CityData(str,'includes/ajax/citydata.php?city=');
				}
			}
			xmlreload.send(null) ;
		}

		function CityData(str,path)
		{
			var xmlreload = initxmlhttp() ;
			var url = path+str;
			
			xmlreload.open( "GET", url, true ) ;
			xmlreload.onreadystatechange=function()
			{
				if (xmlreload.readyState==4)
				{
					CityID = xmlreload.responseText;
				}
			}
			xmlreload.send(null);
		}
		
		function searchkeyword()
		{
			frm	=	document.searchEngine;
			var Keyword = frm.txtkeyword.value;
			
			frm.action='http://www.partner.viator.com/en/2195/search/'+Keyword;
			frm.submit();
		}
		function allcities()
		{
			frm=document.searchEngine;
			frm.hndflag.value="All";
			frm.action='things-to-do-all-cities.htm';
			frm.submit();
		}
	function cities(countryid,cityName,IATACode)
	{
		//alert(countryid);
		frm	=	document.thingtodo;
		frm.hndcountry.value=countryid;
		frm.hndcity.value=cityName;
		frm.action=cityName+'-things-to-do.htm';
		frm.submit();
		
	}// JavaScript Document