
function validateForm()
{
	if(document.getElementById("fullname").value == "")
	{
		alert("Please insert your Name");	
		document.getElementById("fullname").focus();
		return false;
	}
	if(document.getElementById("phone").value == "")
	{
		alert("Please insert your Phone");	
		document.getElementById("phone").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.frm1.action = "contact.php"
document.frm1.submit();

}



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

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