function formValidation()
	{
	var msg;
	msg = ""; 
	
	
	if(document.form1.name.value == "")
		{
		msg = "Please enter your Name";
		document.form1.name.focus() 
		}
	
	if((document.form1.customer_mail.value.indexOf('@')== -1) || (document.form1.customer_mail.value.indexOf('.')== -1))
		{
		if (msg == "")
			{
			msg = "Your email address appears to be invalid, please correct."; 	
			document.form1.customer_mail.focus()
			}
		else {
				 msg = msg + ", your email address"
				 }
		}
	
	if (msg == "")
  	{
    document.form1.submit()
    }
  else {
  		 alert(msg)
       }
	}

