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)			{		   alert("Email error : You forgot the '@'")		   return false			}		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr)			{		   alert("Email error : your address can't start with '@'")		   return false			}		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){		    alert("Email error : You forgot the '.' in your address")		    return false		}		 if (str.indexOf(at,(lat+1))!=-1){		    alert("Email error : You only need one @ in your address")		    return false		 }		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){		    alert("Email error : You need the domain name between the '@' and the '.'")		    return false		 }		 if (str.indexOf(dot,(lat+2))==-1){		    alert("Email error : The '@' must be placed before the '.'")		    return false		 }				 if (str.indexOf(" ")!=-1){		    alert("Email error : Please do not use any spaces")		    return false		 } 		 return true;				}////////////////////////VALID BOOKING FORM////////////////////////function validation(){	var emailID=document.enquiry.email	if(document.enquiry.name.value=="")		{		alert('Please input your name');		document.enquiry.name.focus()		document.enquiry.name.select()		return false;		}	if ((emailID.value==null)||(emailID.value=="")){		alert('we need your email address');		emailID.focus()		emailID.select()		return false;	}	if (echeck(emailID.value)==false){		emailID.focus();		emailID.select();		return false;	}	if(document.enquiry.phone.value=="")		{		alert('Please fill in your phone number including the country code');		document.enquiry.phone.focus()		document.enquiry.phone.select()		return false;		}	//*****************************	//POPUP WINDOW TO CONFIRM DATA// (user can proceed or come back to form)	//******************************	/*var r=confirm("Here are your personnal information :"+'\n\n'+ 					"Name : "+ document.enquiry.name.value +'\n'+					"Email : "+ document.enquiry.email.value +'\n'+					"Phone : "+ document.enquiry.phone.value +'\n'+					"Message: "+ document.enquiry.message.value +'\n'+					"Would you like to proceed?");  if (r==true)    {	return true    }  else    {	return false	}*/}
