
var __nonMSDOMBrowser = (window.navigator.appName.toLowerCase().indexOf('explorer') == -1);
var _strpathAccom="UcSearchAccom1_";
function setPagePathACCOM(paraPath)
{
	_strpathAccom=paraPath;
}

function getCountryParamsAccom()
{ 
	document.all('hidSeacrhFor').value='country';
	//var strVal=document.all('hidSeacrhFor').value + ":ACCOM:-1"; // + document.getElementById(_strpathAccom+'cmbPropertyType').value;
	var strVal=document.all('hidSeacrhFor').value + ":ACCOM:" + document.getElementById(_strpathAccom+'cmbPropertyType').value;
	return strVal;
}

function fillCityAsAnyAccom()
{
	var oOption1 = document.createElement("OPTION"); 
	oOption1.text="Any"; 
	oOption1.value="-1";
	if(__nonMSDOMBrowser)
		document.getElementById(_strpathAccom+'cmbCity').add(oOption1,null); 				
	else
		document.getElementById(_strpathAccom+'cmbCity').add(oOption1); 				
}

function fillCountriesAccom(paraCountryDet)
{ 
	var arrDiv=paraCountryDet.split('*');
	//-----------set corresponding cities-----------------
	document.getElementById(_strpathAccom+'cmbCity').innerHTML="";
	if(arrDiv.length>1)
	{
		if(arrDiv[1].length==0)
		{//in case of empty
			fillCityAsAnyAccom();
		}
		else
		{
			getCitiesNewAccom(arrDiv[1],null); //all cities
		}
	}
	else
	{ //means, there is no city
		fillCityAsAnyAccom();
	}
	//----------------------------------------------------
	
	var arrCityItems = arrDiv[0].split(',');
	document.getElementById(_strpathAccom+'cmbCountry').innerHTML="";
	//var prevCyXid=document.all(_strpathAccom+'hidPrevCity').value;
	var index=-1;
	for (cntr = 0;cntr < arrCityItems.length; cntr++)
	{
		index=index+1;
		var arrCityIndvItem=arrCityItems[cntr].split(':');
		if(arrCityIndvItem[0].length>0)
		{
			var oOption = document.createElement("OPTION"); 
			oOption.text=arrCityIndvItem[1]; 
			oOption.value=arrCityIndvItem[0];
			if(__nonMSDOMBrowser)
				document.getElementById(_strpathAccom+'cmbCountry').add(oOption,null); 				
			else
				document.getElementById(_strpathAccom+'cmbCountry').add(oOption); 				
		}
		else
		{//no countries found
			var oOption = document.createElement("OPTION"); 
			oOption.text="Any"; 
			oOption.value="-1";
			if(__nonMSDOMBrowser)
				document.getElementById(_strpathAccom+'cmbCountry').add(oOption,null); 				
			else
				document.getElementById(_strpathAccom+'cmbCountry').add(oOption);
		}
	}
	if(index>-1)
		document.getElementById(_strpathAccom+'cmbCountry').selectedIndex=0;
	else
		{//no countries found
			var oOption = document.createElement("OPTION"); 
			oOption.text="Any"; 
			oOption.value="-1";
			if(__nonMSDOMBrowser)
				document.getElementById(_strpathAccom+'cmbCountry').add(oOption,null); 				
			else
				document.getElementById(_strpathAccom+'cmbCountry').add(oOption);
		}
}	

function getCityParamsNewAccom()
{
	document.all('hidSeacrhFor').value='city';	
	var strMenuItemType;
	strMenuItemType="ACCOM"
	//var strVal=document.all('hidSeacrhFor').value + ":" + strMenuItemType + ":" + document.getElementById(_strpathAccom+'cmbCountry').value + ":-1"; // + document.getElementById(_strpathAccom+'cmbPropertyType').value;
	var strVal=document.all('hidSeacrhFor').value + ":" + strMenuItemType + ":" + document.getElementById(_strpathAccom+'cmbCountry').value + ":" + document.getElementById(_strpathAccom+'cmbPropertyType').value;
	//alert(strVal);
	return strVal;
}

function getCitiesNewAccom(strCityDet,cont)
{ 
	var arrDiv=strCityDet.split('|');
	var arrCityItems = arrDiv[0].split(',');
	
	document.all(_strpathAccom+'cmbCity').innerHTML="";
	//-----------set corresponding zones-----------------
	hideZoneAccom();
	//----------------------------------------------------
	var index=-1;
	for (cntr = 0;cntr < arrCityItems.length; cntr++)
	{
		index=index+1;
		var arrCityIndvItem=arrCityItems[cntr].split(':');
		if(arrCityIndvItem.length>1)
		{
			var oOption = document.createElement("OPTION"); 
			oOption.text=arrCityIndvItem[1]; 
			oOption.value=arrCityIndvItem[0];
			if(__nonMSDOMBrowser)
				document.getElementById(_strpathAccom+'cmbCity').add(oOption,null); 				
			else
				document.getElementById(_strpathAccom+'cmbCity').add(oOption); 				
		}
		else
		{
			fillCityAsAnyAccom();
		}
	}
	if(index>-1)
	{
		document.getElementById(_strpathAccom+'cmbCity').selectedIndex=0;
	}
	//----------------fill zones
	if(arrDiv.length>1)
	{
		fillZonesNewAccom(arrDiv[1]);
	}
}	

function getZonesParamsNewAccom()
{
	document.all('hidSeacrhFor').value='zone';	
	var strMenuItemType;
	strMenuItemType="ACCOM";
	//'CITY':'accom':countryxid:propertyxid
	var strVal=document.all('hidSeacrhFor').value + ":" + strMenuItemType + ":" + document.getElementById(_strpathAccom+'cmbCountry').value + ":" + document.getElementById(_strpathAccom+'cmbCity').value;
	return strVal;
}

function fillZonesNewAccom(strPropertyTypes)
{
	hideZoneAccom();
	if(document.all('divZone').style.display=='none') return;
		
	var arrCityItems = strPropertyTypes.split(',');	
	if(document.getElementById(_strpathAccom+'cmbZone'))
	{	
		document.getElementById(_strpathAccom+'cmbZone').innerHTML="";
		
		var oOption = document.createElement("OPTION"); 
		oOption.text="Any"; 
		oOption.value=-1; 
		if(__nonMSDOMBrowser)
			document.getElementById(_strpathAccom+'cmbZone').add(oOption,null); 
		else
			document.getElementById(_strpathAccom+'cmbZone').add(oOption); 
		
		for (cntr = 0;cntr < arrCityItems.length; cntr++)
		{	
			var arrCityIndvItem=arrCityItems[cntr].split(':');
			if(arrCityIndvItem.length>0)
			{
			var oOption = document.createElement("OPTION"); 
			oOption.text=arrCityIndvItem[1]; 
			oOption.value=arrCityIndvItem[0]; 
			if(__nonMSDOMBrowser)
				document.getElementById(_strpathAccom+'cmbZone').add(oOption,null); 				
			else
				document.getElementById(_strpathAccom+'cmbZone').add(oOption); 				
			}
		}
		if(arrCityItems.length>0)
			document.getElementById(_strpathAccom+'cmbZone').selectedIndex=0;
		
	}//end if
}


//=======================================restore previous settings==========================================
function restorePreviousAccom()
{	
	if(document.all('hidCurCountry').value.length>0)
	{	
		WebForm_DoAsyncCallback('frmDefault',getCountryParamsAccom(),fillCountriesAccom,"",errorCityAccom);
		document.getElementById(_strpathAccom+'cmbCountry').value=document.all('hidCurCountry').value;
		
		WebForm_DoAsyncCallback('frmDefault',getCityParamsNewAccom(),getCitiesNewAccom,"",errorCityAccom);
		document.getElementById(_strpathAccom+'cmbCity').value=document.all('hidCurCity').value;
	}
}

function getPreviousCitiesNewAccom(strCityDet,cont)
{
	var arrDiv=strCityDet.split('|');
	var arrCityItems = arrDiv[0].split(',');
		
	document.getElementById(_strpathAccom+'cmbCity').innerHTML="";
	
	//-----------set corresponding zones-----------------
	hideZoneAccom();
	if(arrDiv.length>1)
		fillZonesNewAccom(arrDiv[1]);
	//----------------------------------------------------
	
	var index=-1;
	for (cntr = 0;cntr < arrCityItems.length; cntr++)
	{
		index=index+1;
		var arrCityIndvItem=arrCityItems[cntr].split(':');
		if(arrCityIndvItem.length>1)
		{
			var oOption = document.createElement("OPTION"); 
			oOption.text=arrCityIndvItem[1]; 
			oOption.value=arrCityIndvItem[0];
			if(__nonMSDOMBrowser)
				document.getElementById(_strpathAccom+'cmbCity').add(oOption,null); 				
			else
				document.getElementById(_strpathAccom+'cmbCity').add(oOption); 				
		}
		else
		{
			fillCityAsAnyAccom();
		}
	}
	if(index>-1)
	{
		document.getElementById(_strpathAccom+'cmbCity').value=document.all('hidCurCity').value;
	}
}	

//=======================================end new addition======================================

	var objTd=''
	function tabShowAdvanceAccom()
	{
		objTd=document.all(_strpathAccom+'tdAdvance')
		document.all(_strpathAccom+'divBasic').style.display='none';		
		document.all(_strpathAccom+'divAdvance').style.display='block';
		tdAdvance.style.background='url(images/tab_active.png)';
		tdBasic.style.background='url(images/tab.png)';			
		////tdLeftAdv.style.borderTop=style="black 1px solid";			
		tdLeftAdv.className='tabTopBorder';
		tdAdvance.style.fontWeight='bold';
		tdBasic.style.fontWeight='';
	}
	
	function tabShowBasicAccom()
	{		
		objTd=document.all(_strpathAccom+'tdBasic')
		document.all(_strpathAccom+'divBasic').style.display='block';		
		document.all(_strpathAccom+'divAdvance').style.display='none';	
		tdBasic.style.background='url(images/tab_active.png)';		
		////tdCenter.style.borderTop=style="black 1px solid";
		tdCenter.className='tabTopBorder';
		tdAdvance.style.background='url(images/tab.png)';
		tdBasic.style.fontWeight='bold';
		tdAdvance.style.fontWeight='';
	}

	function hideZoneAccom()
	{ 
		if ((document.all(_strpathAccom+'cmbCity').value=='3481')||(document.all(_strpathAccom+'cmbCity').value=='3')||(document.all(_strpathAccom+'cmbCity').value=='2784'))
		{
			document.all('divZone').style.display='block';
		}
		else
		{
			document.all('divZone').style.display='none';				
		}
	}
	
	function onValidateBasicAccom()
	{
		var noofnights=document.all(_strpathAccom+'txtNoOfNights').value;
		if(isNaN(noofnights))
		{
			alert('Enter Nights as numeric value only');
			document.all(_strpathAccom+'txtNoOfNights').focus();
			return false;
		}
		
		noofnights=document.all(_strpathAccom+'txtNoOfNightsAdv').value;
		if(isNaN(noofnights))
		{
			alert('Enter Nights as numeric value only');
			document.all(_strpathAccom+'txtNoOfNightsAdv').focus();
			return false;
		}
		var noofadult=document.all(_strpathAccom+'txtAdultBasic').value;
		if(isNaN(noofadult))
		{
			alert('Enter Adults as numeric value only');
			document.all(_strpathAccom+'txtAdultBasic').focus();
			return false;
		}
		var noofchild=document.all(_strpathAccom+'txtChildrenBasic').value;
		if(isNaN(noofchild))
		{
			alert('Enter Children as numeric value only');
			document.all(_strpathAccom+'txtChildrenBasic').focus();
			return false;
		}
		if(noofadult=='') document.all(_strpathAccom+'txtAdultBasic').value="1";
		if(noofadult<1)
		{
			alert('Adults should be entered with a number greater than zero');
			document.all(_strpathAccom+'txtAdultBasic').focus();
			return false;
		}
		if(noofchild=='') document.all(_strpathAccom+'txtChildrenBasic').value="0";
		if(noofchild<0)
		{
			alert('Value less than zero is not allowed for Children');
			document.all(_strpathAccom+'txtChildrenBasic').focus();
			return false;
		}
		//==============================================================
		document.all(_strpathAccom+'hidPrevCity').value=document.getElementById(_strpathAccom+'cmbCity').value;
		//=======================for restore values =================================================
		document.all('hidCurProperty').value=document.getElementById(_strpathAccom+'cmbPropertyType').value;
		document.all('hidCurCountry').value=document.getElementById(_strpathAccom+'cmbCountry').value;
		document.all('hidCurCity').value=document.getElementById(_strpathAccom+'cmbCity').value;
		//========================end new addition on 6-dec-2005======================================
		
		if (document.all(_strpathAccom+'txtCheckInDt').value=='')
		{
			alert('Enter check in date');
			return false;
		}
		
		if (document.all(_strpathAccom+'txtCheckOutDt').value=='')
		{
			if (document.all(_strpathAccom+'txtNoOfNights').value=='')
			{
				alert('Enter No. of nights');
				document.all(_strpathAccom+'txtNoOfNights').focus();
				return false;
			}
		}
		
		if (document.all(_strpathAccom+'txtCheckOutDt').value=='')
		{
			alert('Enter check out date');
			//document.all('addNewProject_txtEndDate').focus();
			return false;
		}			
		
		startDate=document.all(_strpathAccom+'txtCheckInDt').value.split("/")
		startDateDay = startDate[0];
		startDateMon = startDate[1];
		startDateYear = startDate[2];
		var startDateFinal=new Date(startDateMon + "/" + startDateDay  + "/" + startDateYear)
		
		//---------checkindate should be 3 days greater than today's date
		varstrCurDate=document.all(_strpathAccom+'hidCurDate').value;
		var curDate=new Date(varstrCurDate);
		
		if(startDateFinal<=curDate)
		{
			alert('Arrival Date must be at least 3 days from the current date!');
			return false;
		}
		//===============================================================
		
		
		endDate=document.all(_strpathAccom+'txtCheckOutDt').value.split("/");
		endDateDay = endDate[0];
		endDateMon = endDate[1];
		endDateYear = endDate[2];
		endDateFinal=new Date(endDateMon + "/" + endDateDay + "/" + endDateYear)
		//alert(startDateFinal)
		//alert(endDateFinal)
		if (startDateFinal>endDateFinal)
		{
			alert('Check In date can not be greater then Check out date')
			return false;
		}	
		
		calcNoOfNightsAccom();
		
		document.getElementById(_strpathAccom+'hidCountry').value=document.getElementById(_strpathAccom+'cmbCountry').value		
		document.getElementById(_strpathAccom+'hidCityXid').value=document.getElementById(_strpathAccom+'cmbCity').value
		document.getElementById(_strpathAccom+'hidPropertyXid').value=document.getElementById(_strpathAccom+'cmbPropertyType').value
		document.getElementById(_strpathAccom+'hidZoneXid').value=document.getElementById(_strpathAccom+'cmbZone').value
		//================
		//document.all(_strpathAccom+'divSearch').style.display='none';
		VisibleAnimation();
		//================
		return true;
	}

	function onNoOfNightsLostFocusAccom()
	{
		if (document.all(_strpathAccom+'txtNoOfNights').value!='')
		{
			//---------------------------------------------------
			startDate=document.all(_strpathAccom+'txtCheckInDt').value
			if(isValidDate(startDate,'1')==false)
			{
				document.all(_strpathAccom+'txtCheckInDt').focus();
				return false;
			}
			//---------------------------------------------------
			startDate=document.all(_strpathAccom+'txtCheckInDt').value.split("/")
			startDateDay = startDate[0];
			startDateMon = startDate[1];
			startDateYear = startDate[2];
			startDateFinal=new Date(startDateMon + "/" + startDateDay  + "/" + startDateYear)
			
			Addmillisec = (document.all(_strpathAccom+'txtNoOfNights').value * 24 * 60 * 60 * 1000)
			depart = new Date((startDateFinal.getTime() + Addmillisec ))
			
			departDay = depart.getDate();
			departMon = depart.getMonth() + 1;
			//if(__nonMSDOMBrowser)
			//	departYear = depart.getFullYear();
			//else
			departYear = depart.getFullYear();
			document.all(_strpathAccom+'txtCheckOutDt').value=departDay + "/" + departMon + "/" + departYear
		}
	}
	function calcNoOfNightsAccom()
	{
		startDate=document.all(_strpathAccom+'txtCheckInDt').value.split("/")
		startDateDay = startDate[0];
		startDateMon = startDate[1];
		startDateYear = startDate[2];
		startDateFinal=new Date(startDateMon + "/" + startDateDay  + "/" + startDateYear)
		
		endDate=document.all(_strpathAccom+'txtCheckOutDt').value.split("/");
		endDateDay = endDate[0];
		endDateMon = endDate[1];
		endDateYear = endDate[2];
		endDateFinal=new Date(endDateMon + "/" + endDateDay + "/" + endDateYear)
		document.all(_strpathAccom+'txtNoOfNights').value= (( endDateFinal - startDateFinal ) / (  24 * 60 * 60 * 1000 ));
	}
	
	function onValidateAdvanceAccom()
	{
		var noofnights=document.all(_strpathAccom+'txtNoOfNights').value;
		if(isNaN(noofnights))
		{
			alert('Enter Nights as numeric value only');
			document.all(_strpathAccom+'txtNoOfNights').focus();
			return false;
		}
		
		noofnights=document.all(_strpathAccom+'txtNoOfNightsAdv').value;
		if(isNaN(noofnights))
		{
			alert('Enter Nights as numeric value only');
			document.all(_strpathAccom+'txtNoOfNightsAdv').focus();
			return false;
		}
		var noofadult=document.all(_strpathAccom+'txtAdultAdv').value;
		if(isNaN(noofadult))
		{
			alert('Enter Adults as numeric value only');
			document.all(_strpathAccom+'txtAdultAdv').focus();
			return false;
		}
		var noofchild=document.all(_strpathAccom+'txtChildrenAdv').value;
		if(isNaN(noofchild))
		{
			alert('Enter Children as numeric value only');
			document.all(_strpathAccom+'txtChildrenAdv').focus();
			return false;
		}
		if(noofadult=='') document.all(_strpathAccom+'txtAdultAdv').value="1";
		if(noofadult<1)
		{
			alert('Adults should be entered with a number greater than zero');
			document.all(_strpathAccom+'txtAdultAdv').focus();
			return false;
		}
		if(noofchild=='') document.all(_strpathAccom+'txtChildrenAdv').value="0";
		if(noofchild<0)
		{
			alert('Negative number is not allowed for Children');
			document.all(_strpathAccom+'txtChildrenAdv').focus();
			return false;
		}
		//==============================================================
		if (document.all(_strpathAccom+'txtHotelName').value=='')
		{
			alert('Enter hotel name');
			document.all(_strpathAccom+'txtHotelName').focus();
			return false;
		}
						
		if (document.all(_strpathAccom+'txtCheckInAdv').value=='')
		{
			alert('Enter check in date');
			//document.all(_strpathAccom+'txtCheckInDt').focus();
			return false;
		}
		
		if (document.all(_strpathAccom+'txtNoOfNightsAdv').value=='')
		{
			alert('Enter No. of nights');
			document.all(_strpathAccom+'txtNoOfNightsAdv').focus();
			return false;
		}

		if (document.all(_strpathAccom+'txtCheckOutAdv').value=='')
		{
			alert('Enter check out date');
			//document.all('addNewProject_txtEndDate').focus();
			return false;
		}			
		
		startDate=document.all(_strpathAccom+'txtCheckInAdv').value.split("/")
		startDateDay = startDate[0];
		startDateMon = startDate[1];
		startDateYear = startDate[2];
		startDateFinal=new Date(startDateMon + "/" + startDateDay  + "/" + startDateYear)
		
		//---------checkindate should be 3 days greater than today's date
		varstrCurDate=document.all(_strpathAccom+'hidCurDate').value;
		var curDate=new Date(varstrCurDate);
		
		if(startDateFinal<=curDate)
		{
			alert('Arrival Date must be at least 3 days from the current date!');
			return false;
		}
		//===============================================================		
		endDate=document.all(_strpathAccom+'txtCheckOutAdv').value.split("/");
		endDateDay = endDate[0];
		endDateMon = endDate[1];
		endDateYear = endDate[2];
		endDateFinal=new Date(endDateMon + "/" + endDateDay + "/" + endDateYear)
		
		if (startDateFinal>endDateFinal)
		{
			alert('Check In date can not be greater then Check out date')
			return false;
		}	
		
		calcNoOfNightsAdvAccom();
		setSeachTypeAccom('advance');
		//================
		//document.all(_strpathAccom+'divSearch').style.display='none';
		VisibleAnimation();
		//================
		return true;
	}

	function onNoOfNightsLostFocusAdvAccom()
	{
		if (document.all(_strpathAccom+'txtNoOfNightsAdv').value!='')
		{
			//---------------------------------------------------
			startDate=document.all(_strpathAccom+'txtCheckInAdv').value
			if(isValidDate(startDate,'1')==false)
			{
				document.all(_strpathAccom+'txtCheckInAdv').focus();
				return false;
			}
			//---------------------------------------------------
			startDate=document.all(_strpathAccom+'txtCheckInAdv').value.split("/")
			startDateDay = startDate[0];
			startDateMon = startDate[1];
			startDateYear = startDate[2];
			startDateFinal=new Date(startDateMon + "/" + startDateDay  + "/" + startDateYear)
			
			Addmillisec = (document.all(_strpathAccom+'txtNoOfNightsAdv').value * 24 * 60 * 60 * 1000)
			depart = new Date((startDateFinal.getTime() + Addmillisec ))
			
			departDay = depart.getDate();
			departMon = depart.getMonth() + 1;
			//if(__nonMSDOMBrowser)
			//	departYear = depart.getFullYear();
			//else
			//	departYear = depart.getYear();
			departYear = depart.getFullYear();
			document.all(_strpathAccom+'txtCheckOutAdv').value=departDay + "/" + departMon + "/" + departYear
		}
	}
	
	function calcNoOfNightsAdvAccom()
	{
		startDate=document.all(_strpathAccom+'txtCheckInAdv').value.split("/")
		startDateDay = startDate[0];
		startDateMon = startDate[1];
		startDateYear = startDate[2];
		startDateFinal=new Date(startDateMon + "/" + startDateDay  + "/" + startDateYear)
		
		endDate=document.all(_strpathAccom+'txtCheckOutAdv').value.split("/");
		endDateDay = endDate[0];
		endDateMon = endDate[1];
		endDateYear = endDate[2];
		endDateFinal=new Date(endDateMon + "/" + endDateDay + "/" + endDateYear)
		
		document.all(_strpathAccom+'txtNoOfNightsAdv').value= (( endDateFinal - startDateFinal ) / (  24 * 60 * 60 * 1000 ));
	}
	
	function setSeachTypeAccom(typeName)
	{
		if (typeName=='basic')
		{
			document.all(_strpathAccom+'hidSearchType').value='basic';
		}
		else
		{
			document.all(_strpathAccom+'hidSearchType').value='advance';
		}
		//alert(document.all(_strpathAccom+'hidSearchType').value);
	}
	
function errorCityAccom(res,cont)
{
	alert(res);
}


//=======================new additions on 13-dec-2005 for home search result
function validateAndSearchResultAccom()
{
	if(onValidateBasicAccom()==false)
		return false;
	else
		return ExtractSearchResultAccom();
}
function validateAndSearchResultAdvanceAccom()
{
	if(onValidateAdvanceAccom()==false)
		return false;
	else
		return ExtractSearchResultAdvanceAccom();
}

function ExtractSearchResultAccom()
{
	var strArrivalDate=document.all(_strpathAccom+'txtCheckInDt').value;
	var strDeptDate=document.all(_strpathAccom+'txtCheckOutDt').value;
	var strCountryXid=document.getElementById(_strpathAccom+'hidCountry').value;
	var strCityXid=document.getElementById(_strpathAccom+'hidCityXid').value;
	var strStandardXid="-1";
	var strPropertyXid=document.getElementById(_strpathAccom+'hidPropertyXid').value;
	var strZoneXid=document.getElementById(_strpathAccom+'hidZoneXid').value;
	var strRate=document.all(_strpathAccom+'cmbRate').value;
	var strTOP=document.all(_strpathAccom+'cmbShowTopBasic').value;
	var strExp=document.all(_strpathAccom+'cmbShowByExpBasic').value;
	var strHotel="";
	var curxid=document.all('hidActiveCurrency').value;
	//--------------------------------------------------------
	var strResult="";
	strResult="HOMEACCOMSEARCH:"+strArrivalDate+"|"+strDeptDate +"|"+ strCountryXid +"|"+ strCityXid +"|"+ strStandardXid +"|"+ strPropertyXid+"|"+strZoneXid+"|"+strRate+"|"+strTOP+"|"+strExp+"|"+strHotel+"|"+curxid;
	//alert(strResult);
	return strResult;	
}

function ExtractSearchResultAdvanceAccom()
{
	var strArrivalDate=document.all(_strpathAccom+'txtCheckInAdv').value;
	var strDeptDate=document.all(_strpathAccom+'txtCheckOutAdv').value;
	var strCountryXid="-1";
	var strCityXid="-1";
	var strStandardXid="-1";
	var strPropertyXid="-1";
	var strZoneXid="-1";
	var strRate="-1";
	var strTOP=document.all(_strpathAccom+'cmbShowTopBasic').value;
	var strExp=document.all(_strpathAccom+'cmbShowByExpBasic').value;
	var strHotel=document.all(_strpathAccom+'txtHotelName').value;
	var curxid=document.all('hidActiveCurrency').value;
	//--------------------------------------------------------
	var strResult="";
	strResult="HOMEACCOMSEARCH:"+strArrivalDate+"|"+strDeptDate +"|"+ strCountryXid +"|"+ strCityXid +"|"+ strStandardXid +"|"+ strPropertyXid+"|"+strZoneXid+"|"+strRate+"|"+strTOP+"|"+strExp+"|"+strHotel+"|"+curxid;
	//alert(strResult);
	return strResult;	
}


function displaySearchResultAccom(paraResult, cont)
{
	document.all('divSearchResult').style.display='block';
	document.all('divSearchResult').innerHTML=paraResult;
	document.all('divProcessing').style.display='none';
}
function gotoBackAccom()
{
	document.all('divSearchResult').style.display='none';
	document.all(_strpathAccom+'divSearch').style.display='block';
}
function displayBasicSearchAccom()
{
	document.all('divBasic').style.display='block';
	document.all(_strpathAccom+'divAdvance').style.display='none';
}
function displayAdvanceSearchAccom()
{
	document.all('divBasic').style.display='none';
	document.all(_strpathAccom+'divAdvance').style.display='block';
}
function OpenHelpAccom(url)
{
	window.open(url,'','menubars=no,resizable=yes,scrollbars=no,left=0,top=0,width=370,height=250');
}

