<!--
function checkform()
{
	error="";
	if (document.form1.name.value == ""){
		alert("Enter Name");
		document.form1.name.focus();
		return false;
	}
	if (document.form1.phone.value == ""){
		error += "Enter Phone No";
		alert(error);
		document.form1.phone.focus();
		return false;
	}	
	if (document.form1.email.value == ""){
		alert("Enter Email ID");
		document.form1.email.focus();
		return false;
	}else if(!echeck(document.form1.email.value)){
		error += "Invalid Email";
		alert(error);
		document.form1.email.focus();
		return false;
	}
	
	/*if (document.form1.activity[].value == ""){
		error += "Select a Activity Interested";
		alert(error);
		document.form1.activity[].focus();
		return false;
	}*/
	
	if (document.form1.no_of_peoples.value == ""){
		error += "Select the No. of Peoples";
		alert(error);
		document.form1.no_of_peoples.focus();
		return false;
	}
	
	if (document.form1.date1.value == ""){
		error += "Select Tentative Arrival Date";
		alert(error);
		document.form1.date1.focus();
		return false;
	}
	
	if (document.form1.date2.value == ""){
		error += "Select Tentative Departure Date";
		alert(error);
		document.form1.date2.focus();
		return false;
	}
	
	
	return true;

}
function isNotaNumber (inputString)
{
  return isNaN(inputString);
}
function onlyNumbers(inputString)
{
  var searchForNumbers = /\D+\_+\W+\s+\S+/;
  return (searchForNumbers.test(inputString)) ? false : true;
}

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    return false
		 }

 		 return true					
	}

-->
