﻿function  ValidateHtlInfo()
{
/*
  if(document.getElementById("cbo_Country").selectedIndex==0)
  {
	 alert("Please Select Country");	
	 document.getElementById("cbo_Country").focus();
	 return false;
  }
   if(document.getElementById("cbo_City").selectedIndex==0)
  {
	 alert("Please Select City");	
	 document.getElementById("cbo_City").focus();
	 return false;
  }*/

   if(document.getElementById("HDptDateDDMMYY").value=="")
  {
	 alert("Please Select Check-In date");	
	 document.getElementById("HDptDateDDMMYY").focus();
	 return false;
  }
    if(document.getElementById("cbo_NoOfNights").value=="")//selectedIndex
  {
	 alert("Please Select No. of Night");	
	 document.getElementById("cbo_NoOfNights").focus();
	 return false;
  }
  	if(!CheckRoom())
	{
		alert("Select Rooms");
		document.getElementById("Txt_No_Sin_Pax").focus();
		return false;
	}
	return true;				
    
}
function CheckRoom()
{
	
	var pass = false;
	
 	 if(document.getElementById("Txt_No_Sin_Pax").value!='0')
	{	
	    
		pass =true;
	}
	 if(document.getElementById("Txt_No_Sin_1_Chd_Pax").value!='0')
	{		
		pass =true;
	}
	 if(document.getElementById("Txt_No_Sin_2_Chd_Pax").value!='0')
	{		
		pass =true;
	}
	  if(document.getElementById("Txt_No_Dbl_Pax").value!='0')
	{		
		pass =true;
	}
	  if(document.getElementById("Txt_No_Tpl_Pax").value!='0')
	{		
		pass =true;
	}
	  if(document.getElementById("Txt_No_Quard_Pax").value!='0')
	{		
		pass =true;
	}
	if(document.getElementById("Txt_No_Dbl_1_Chd_Pax").value!='0')
	{
		pass =true;
	}
	if(document.getElementById("Txt_No_Dbl_2_Chd_Pax").value!='0')
	{
		pass =true;
	}
	if(document.getElementById("Txt_No_Tpl_1_Chd_Pax").value!='0')
	{
		pass =true;
	}
	if(document.getElementById("Txt_No_Tpl_2_Chd_Pax").value!='0')
	{
		pass =true;
	}
	if(document.getElementById("Txt_No_Quard_1_Chd_Pax").value!='0')
	{
		pass =true;
	}
	if(document.getElementById("Txt_No_Quard_2_Chd_Pax").value!='0')
	{
		pass =true;
	}
	return pass;
}

