A ver, aparentemente parece buien, pero prueba a cambiar un par de cosillas:
Código HTML:
<form method='post' name='MyForm'>
y en el boton pones:
Código HTML:
<input name='submit' type='submit' style='margin-right:10px' value='Send' onclick="javascript:validate(); return false;"> />
y el js:
Código:
function validate() {
if (document.MyForm.email.value.length == 0)
{
alert("Please enter an e-mail address.")
document.MyForm.email.focus()
return false
}
if (document.MyForm.phone.value.length == 0)
{
alert("Please enter a contact phone number.")
document.MyForm.phone.focus()
return false
}
document.MyForm.action = "./send.php";
document.MyForm.submit();
}
Yo es comolo hago y hast ahora sin problemas.
Saludos.