function contact_validation()
{
var name=/^[a-zA-Z\.S]+$/;
var email_type=/^[a-zA-Z0-9\.\_\-\'S]+@[a-zA-Z\S]+\.([a-zA-Z]{2,4})+$/;
var Number=/^[0-9\'S]+$/;

 if(document.getElementById('name').value.length==0)
	{
		alert("Please enter your name");
		document.getElementById('name').focus();
		return false;
	}
	
	if(!(name.test(document.getElementById('name').value)))
	{
		alert("Invalid name");
		document.getElementById('name').focus();
		return false;
	}


 if(document.getElementById('address').value.length==0)
	{
		alert("Please enter your address");
		document.getElementById('address').focus();
		return false;
	}
	
	 if(document.getElementById('country').value.length==0)
	{
		alert("Please enter your country");
		document.getElementById('country').focus();
		return false;
	}
	
	if(!(name.test(document.getElementById('country').value)))
	{
		alert("Invalid country");
		document.getElementById('country').focus();
		return false;
	}
	
	 if(document.getElementById('phone').value.length==0)
	{
		alert("Please enter your phone number");
		document.getElementById('phone').focus();
		return false;
	}
	
	if(!(Number.test(document.getElementById('phone').value)))
	{
		alert("Invalid phone number");
		document.getElementById('phone').focus();
		return false;
	}
	
	 if(document.getElementById('email').value.length==0)
	{
		alert("Please enter your email address");
		document.getElementById('email').focus();
		return false;
	}
	
	if(!(email_type.test(document.getElementById('email').value)))
	{
		alert("Invalid email address");
		document.getElementById('email').focus();
		return false;
	}
	
	if((document.contact_fom.adults.options[0].selected) && (document.contact_fom.kids.options[0].selected))
	{
	 alert("Please select the no of adults and children travelling");
	return false;
	}
	
	if((document.contact_fom.from_date.options[0].selected) || (document.contact_fom.from_month.options[0].selected) || (document.contact_fom.from_year.options[0].selected))
	{
	 alert("Select your travell date");
	return false;
	}
	
	if(document.contact_fom.tour_days.options[0].selected) 
	{
	 alert("Please select the tour duaration");
	return false;
	}
	
	if((!document.getElementById('check_interest_1').checked)&&(!document.getElementById('check_interest_2').checked)&&(!document.getElementById('check_interest_3').checked)&&(!document.getElementById('check_interest_4').checked)&&(!document.getElementById('check_interest_5').checked)&&(!document.getElementById('check_interest_6').checked)&&(!document.getElementById('check_interest_7').checked)&&(!document.getElementById('check_interest_8').checked)&&(!document.getElementById('check_interest_9').checked)&&(!document.getElementById('check_interest_10').checked)&&(!document.getElementById('check_interest_11').checked))
	{
	alert("Choose atleast one area of interest");
	return false;
	}
	
	if((!document.getElementById('check_hotel_1').checked)&&(!document.getElementById('check_hotel_2').checked)&&(!document.getElementById('check_hotel_3').checked)&&(!document.getElementById('check_hotel_4').checked))
	{
	alert("Choose atleast one hotel preferances");
	return false;
	}
	
	if((!document.getElementById('check_destination_1').checked)&&(!document.getElementById('check_destination_2').checked)&&(!document.getElementById('check_destination_3').checked)&&(!document.getElementById('check_destination_4').checked)&&(!document.getElementById('check_destination_5').checked))
   {
    alert("Choose atleast one destination that you wish to explore");
	return false;
   }

   	 if(document.getElementById('other_interest').value.length==0)
	{
		alert("Please enter your other interests");
		document.getElementById('other_interest').focus();
		return false;
	}
}
