// JavaScript Document

function verif()
{
var nom=document.form1.nom.value;
var prenom=document.form1.prenom.value;
var email=document.form1.email.value;
var ville=document.form1.ville.value;
var contact=document.form1.contact.value;


if((nom==0) || (prenom==0) || (email==0) || (ville==0) || (contact==0))
	alert("Veuillez remplir l'ensemble des champs obligatoires s.v.p.");
	else
	{
	checkbae();//document.form2.submit();
	
	}
	//window.open('reponse-contact.php', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=480,height=280');
	//window.open('services/sms_gp.html');
}

var testresults
function checkemail(){
var str=document.form1.email.value;
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str))
//testresults=true
document.form1.submit();
else{
alert("Adresse email non valide")
testresults=false
}
// return (testresults)
}

function checkbae(){
if (document.layers||document.getElementById||document.all)
return checkemail()
else
return true
}