<!--


function validate()
{
var check1,check2,flag;
var url;
url=window.location.href;
country=document.frmhotel.country.value;
document.frmhotel.url.value=url;

slctDate=parseInt(document.frmhotel.cmbDate.value)
slctMonth=parseInt(document.frmhotel.cmbMonth.value)
slctYear=parseInt(document.frmhotel.cmbYear.value)



flag=true;
var mail=document.frmhotel.txtMail.value;

var invalidChar = " *|,\":<>/[]{}`\';()&$#%";

//date validation


	todayDate=new Date();
	thisday=todayDate.getDay();
		
	thismonth=todayDate.getMonth()+1;
	thisdate=todayDate.getDate();
	thisyear=todayDate.getFullYear();
	
	if(slctYear<thisyear)
	{
		
		alert("Please enter Valid Year");
		flag=false;
		document.frmhotel.cmbYear.focus();
		return false;
									
	}
	else
	{
		if(slctYear==thisyear)
		{
		
			if(slctMonth<thismonth)
			{
				alert("month error");
				flag=false;
				document.frmhotel.cmbMonth.focus();
				return false;
									
			}
			else
			{
			
				if(slctMonth==thismonth)
				{
					if(slctDate<=thisdate)
					{
						alert("date error");
						flag=false;
						document.frmhotel.cmbDate.focus();
						return false;
					}
				
		
				}
				else
				{
					flag=true;
				}
	
				flag=true;
			}	
		
			flag=true;
	}

}
		
		
// date validation ends


if(country==0)
{
	alert("Please select the Country");
	flag=false;
	document.frmhotel.country.focus();
	return false;
}
else
{
	flag=true;
}


   for (var i = 0; i < mail.length; i++) 
   {
      if (invalidChar.indexOf(mail.charAt(i)) != -1)
      	{
         alert("Invalid Mail ID");
				flag=false;
				document.frmhotel.txtMail.focus();
				return false;
       }
   }
			

if(mail!="")
	{
		check1=mail.indexOf("@");
		check2=mail.indexOf(".");
		if(check1==-1 || check2==-1)
			{
				alert("Invalid Mail ID");
				flag=false;
				document.frmhotel.txtMail.focus();
				return false;
			}
		if((check1-check2)==1 || (check1-check2)==-1)
			{
				alert("Invalid Mail ID");
				flag=false;
				document.frmhotel.txtMail.focus();
				return false;
			}
		
	}

if(mail=="")
{
				alert("Invalid Mail ID");
				flag=false;
				document.frmhotel.txtMail.focus();
				return false;
}

if(flag==true)
	{
		document.frmhotel.submit();
	}
}


// end the hiding comment --> 

