var vd="Vous devez ";
var vdi=vd+"indiquer ";
var erm="Votre adresse E-mail n'est pas valide !";
function validForm(t){
var ok=true;
var rExpC=/^\d+$/;
if (t.email.value==""){
ok=false;
alert(vdi+"un email.");
t.email.focus();
}
else if ((t.email.value.indexOf('@',0)==-1) || (t.email.value.indexOf('.',0)==-1)){
alert(erm);
t.email.select();
t.email.focus();
ok=false;
}
else if (!(rExpC.test(t.commande.value))){
ok=false;
alert(vdi+"un numéro de commande ne contenant que des chiffres.");
t.commande.select();
t.commande.focus();
}
return ok;
}
function controlForm(t){
var ok=true;
var rExpC=/^\d+$/;
if (t.nom.value==""){
ok=false;
alert(vdi+"un nom ou un pseudo.");
t.nom.focus();
}
else if (t.email.value==""){
ok=false;
alert(vdi+"un email.");
t.email.focus();
}
else if ((t.email.value.indexOf('@',0)==-1) || (t.email.value.indexOf('.',0)==-1)){
alert(erm);
t.email.select();
t.email.focus();
ok=false;
}
else if (t.objet.value==""){
ok=false;
alert(vdi+"un sujet au message.");
t.objet.focus();
}
else if (t.message.value==""){
ok=false;
alert(vd+"tapper un message.");
t.message.focus();
}
return ok;
}
function photo(i){
window.open(i,"", "directories=0,location=0,menubar=0,resizable=1,scrollbars=0,toolbar=0,width=300,height=300");
return false;
}

