function verif()
{
var email = document.contact.email.value;

var verif = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,3}$/ ;
var verif1 =/^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z-]{2,}[.][a-zA-Z]{2,3}$/ ;

if(document.contact.nom.value=='')
{
alert('Entrez votre nom !');
document.contact.nom.focus();
}

else if ((verif.exec(email) == null) &&  (verif1.exec(email) == null))
{
alert('E-mail invalide !');
document.contact.email.focus();
}

else if(document.contact.message.value=='')
{
alert('Entrez votre message !');
document.contact.message.focus();
}

else 
{
document.contact.method = "POST";
document.contact.action = "sendmail.php";
document.contact.submit();
}
}	