function Validate(frm)
{			
		v1=frm.name
		if(isblank(v1)==false) 
	 		{
			alert("Name cannot be blank.");
			v1.focus(); 
			return false
			}	
			
			v1=frm.persons
		if(isblank(v1)==false) 
	 		{
			alert("Number of person cannot be blank.");
			v1.focus(); 
			return false
			}	
				
			v1=frm.adate
		if(isblank(v1)==false) 
	 		{
			alert("Arrival date cannot be blank.");
			v1.focus(); 
			return false
			}	
			
			v1=frm.duration
		if(isblank(v1)==false) 
	 		{
			alert("Duration of stay cannot be blank.");
			v1.focus(); 
			return false
			}	
			
			v1=frm.ht
		if(isblank(v1)==false) 
	 		{
			alert("Hotel type cannot be blank.");
			v1.focus(); 
			return false
			}	
			
			v1=frm.tourplan
		if(isblank(v1)==false) 
	 		{
			alert("Tour plan cannot be blank.");
			v1.focus(); 
			return false
			}	
						
			v1=frm.email
		if(isblank(v1)==false) 
			{
			alert("E-mail cannot be blank.");
			v1.focus(); 
			return false
			}
		if(isEmail(v1)==false) 
			{
			alert("The email \""+ v1.value+" \"is not valid email");
			v1.focus(); 
			return false;
			}
			
									
		v1=frm.phone
		if(isblank(v1)==false) 
	 		{
			alert("Phone no. cannot be blank.");
			v1.focus(); 
			return false
			}	
			
			v1=frm.country
		if(isblank(v1)==false) 
	 		{
			alert("Country cannot be blank.");
			v1.focus(); 
			return false
			}	
			
			v1=frm.strCAPTCHA
		if(isblank(v1)==false) 
			{
			alert("you must enter varification code");
			v1.focus(); 
			return false
			}
			
	return true;
}




function isblank(s3) 
{
	if (s3.value == "") 
	{
	return false;
	}
else 
	{
	return true;
   }
}



function isEmail(s2) 
{
	if ((s2.value == "" || s2.value.indexOf('@', 0) == -1) || s2.value.indexOf('.')<5) 
	{
	return false;
	}
else {
	return true;
   	}
}