function Validate_ContactUs()
{
	if(getVal('fullname')=='')
		{
			alert('Please enter your fullname');
			document.getElementById('fullname').focus();
			return false;
		}
		
	
	if(getVal('address')=='')
		{
			alert('Please enter your Address');
			document.getElementById('address').focus();
			return false;
		}
		
	
	if(getVal('country')=='')
		{
			alert('Please enter country');
			document.getElementById('country').focus();
			return false;
		}
		
	
	if(!emailverify(getVal('email')))
		{
			alert('Invalid Email');
			document.getElementById('email').focus();
			return false;
		}
		
		
	if(getVal('message')=='')
		{
			alert('Please enter your message');
			document.getElementById('message').focus();
			return false;
		}
	
	
}


function ValidateBooking()
{
	
	//alert(getVal('tripcode')); return false;
	
	
	if(getVal('tripcode')=='fasle')
		{
			alert('First, please select a package suitable for you.');
			
			return false;
		}
		
		
	
	if(getVal('nationality')=='')
		{
			alert('Please enter your nationality');
			document.getElementById('nationality').focus();
			return false;
		}
		
	
	if(getVal('fullname')=='')
		{
			alert('Please enter your fullname');
			document.getElementById('fullname').focus();
			return false;
		}
		
		
	if(!emailverify(getVal('email')))
		{
			alert('Invalid Email');
			document.getElementById('email').focus();
			return false;
		}
		
	
	if(getVal('mail')=='')
		{
			alert('Please enter your mailing address');
			document.getElementById('mail').focus();
			return false;
		}
	
	
	
	
}


function Validate_Customize()
{
	
	
	theForm=document.getElementById("form1");
	
	//alert(theForm.sex.length);
	
	
	

	if(getVal('days')=='' || isNaN(getVal('days')))
		{
			alert("Number of days is empty or invalid data");
			document.getElementById('days').focus();
			return false;
		}
		
	
	if(getVal('adult')!='' && isNaN(getVal('adult')))
		{
			alert("Invalid data in Adult field");
			document.getElementById('adult').focus();
			return false;
		}
		
		if(getVal('child')!='' && isNaN(getVal('child')))
		{
			alert("Invalid data in Children field");
			document.getElementById('child').focus();
			return false;
		}
	
	if(getVal('infant')!='' && isNaN(getVal('infant')))
		{
			alert("Invalid data in Infant field");
			document.getElementById('child').focus();
			return false;
		}
		
	
	if(getVal('adult')=='' && getVal('child')=='' && getVal('infant')=='')
		{
			alert("One of the fields must be filled in No. of travellers");
			document.getElementById('adult').focus();
			return false;
		}
	
	
	
	if(getVal('name')=='')
		{
			alert("Please enter your name");
			document.getElementById('name').focus();
			return false;
		}
	
	
	var checkvalue=false;
	for (i=0, n=theForm.sex.length; i<n; i++)
		{
   		if (theForm.sex[i].checked)
			{
      		var checkvalue = true;
      		break;
			}
		}
	
	
	if(!checkvalue)
		{
			alert("Please select sex");
			//document.getElementById('sex').focus();
			return false;
		}
		
	
	if(getVal('mail')=='')
		{
			alert("Please enter your mailing address");
			document.getElementById('mail').focus();
			return false;
		}
		
	
	if(getVal('nationality')=='')
		{
			alert("Please enter your Nationality");
			document.getElementById('nationality').focus();
			return false;
		}
		
	if(getVal('tel')=='')
		{
			alert("Please enter your Telephone");
			document.getElementById('tel').focus();
			return false;
		}
		
	
	if(!emailverify(getVal('email')))
		{
			alert("Invalid Email");
			document.getElementById('email').focus();
			return false;
		}
		
	
	if(getVal('passport')=='')
		{
			alert("Please enter your passport");
			document.getElementById('passport').focus();
			return false;
		}
		
		
	if(getVal('msg')=='')
		{
			alert("Please enter your message");
			document.getElementById('msg').focus();
			return false;
		}


}