
function ValidarForm()
{
	if(document.getElementById("name").value== "")
	{
		alert("Please insert your Name");	
		document.getElementById("name").focus();
		return false;
	}
	if(document.getElementById("lname").value== "")
	{
		alert("Please insert your Last Name");	
		document.getElementById("lname").focus();
		return false;
	}
	if(document.getElementById("mail").value== "")
	{
		alert("Please insert your E-mail");	
		document.getElementById("mail").focus();
		return false;			
	}else{
		if(validarEmail(document.getElementById("mail").value) == "no")
		{
			alert("Please insert your E-mail the following way name@server.domain");	
			document.getElementById("mail").focus();
			return false;	
		}
	}
	
	


document.form1.action = "contact_response.php"
document.form1.submit();

}


function validarEmail(valor) {
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){

  } else {
   return ("no");
  }
 }
