// JavaScript Document
function validateForm() 
			{
			 var okSoFar=true
			 with (document.phpformmailer)
			 {
			  var foundAt = email.value.indexOf("@",0)
				  if (foundAt < 1 && okSoFar)
				  {
					okSoFar = false
					alert ("Please write down a valid email.")
					email.focus()
				  }
			  
			   if (name.value=="" && okSoFar)
			  {
				okSoFar=false
				alert("Please write down your name.")
				name.focus()
			  }
			  
			  if (last_name.value=="" && okSoFar)
			  {
				okSoFar=false
				alert("Please write down your last name.")
				last_name.focus()
			  }
			  
			  		  			 
			  if (themessage.value=="" && okSoFar)
			  {
				okSoFar=false
				alert("Please write your comments.")
				themessage.focus()
			  }
			  if (okSoFar==true)  submit();
			 }
			}















/*function validateForm() 
	{
	 var okSoFar=true
	 with (document.phpformmailer)
	 {
	  var foundAt = email.value.indexOf("@",0)
	  if (foundAt < 1 && okSoFar)
	  {
		okSoFar = false
		alert ("Por favor escriba un email válido.")
		email.focus()
	  }
	  var e1 = email.value
	 
	  if (themessage.value=="" && okSoFar)
	  {
		okSoFar=false
		alert("Por favor escriba sus comentarios.")
		themessage.focus()
	  }
	  if (okSoFar==true)  submit();
	 }
	}*/