var vd="Please ";
var vdi=vd+"give ";
var erm="Your E-mail address is not valid !";

function controlForm(t){
var ok=true;
var rExpC=/^\d+$/;
if (t.nom.value==""){
ok=false;
alert(vdi+"company name.");
t.nom.focus();
}
else if (t.responsable.value==""){
ok=false;
alert(vdi+"the name of the person in charge.");
t.responsable.focus();
}
else if (t.date.value==""){
ok=false;
alert(vdi+"your seminar's date.");
t.date.focus();
}
else if (t.personne.value==""){
ok=false;
alert(vdi+"the number of people.");
t.personne.focus();
}
else if (t.adresse.value==""){
ok=false;
alert(vdi+"an email.");
t.adresse.focus();
}
else if ((t.adresse.value.indexOf('@',0)==-1) || (t.adresse.value.indexOf('.',0)==-1)){
alert(erm);
t.adresse.select();
t.adresse.focus();
ok=false;
}
else if (t.tel.value==""){
ok=false;
alert(vdi+"a phone number.");
t.tel.focus();
}
else if (t.message.value==""){
ok=false;
alert(vd+"write a message.");
t.message.focus();
}
return ok;
}