function noEntry()
{
nom=document.ajout.nom.value; 

 if ((nom.length<2)||(nom.substring(0,3)=="***"))
 {
 alert("Entrer votre Nom et prénom?");
 document.ajout.nom.value="***Veuillez compléter ce champ";
 document.ajout.nom.focus();
 document.ajout.nom.select();
 return false;
 } 

 else 
librairie=document.ajout.librairie.value; 

 if ((librairie.length<3)||(librairie.substring(0,3)=="***"))
 {
 alert("Nom de votre librairie?");
 document.ajout.librairie.value="***Veuillez compléter ce champ";
 document.ajout.librairie.focus();
 document.ajout.librairie.select();
 return false;
 } 

 else 
adresse=document.ajout.adresse.value; 

 if ((adresse.length<5)||(adresse.substring(0,3)=="***"))
 {
 alert("Votre adresse?");
 document.ajout.adresse.value="***Veuillez compléter ce champ";
 document.ajout.adresse.focus();
 document.ajout.adresse.select();
 return false;
 } 

else 
code=document.ajout.code.value; 

 if ((code.length<5)||(code.substring(0,5)=="*****"))
 {
 alert("Votre code postal?");
 document.ajout.code.value="*****";
 document.ajout.code.focus();
 document.ajout.code.select();
 return false;
 } 

else 
ville=document.ajout.ville.value; 

 if ((ville.length<2)||(code.substring(0,5)=="*****"))
 {
 alert("Votre ville?");
 document.ajout.ville.value="*****";
 document.ajout.ville.focus();
 document.ajout.ville.select();
 return false;
 } 

 else 
tel=document.ajout.tel.value; 

 if ((tel.length<10)||(code.substring(0,5)=="*****"))
 {
 alert("Votre telephone?");
 document.ajout.tel.value="*****";
 document.ajout.tel.focus();
 document.ajout.tel.select();
 return false;
 } 

 else 
email=document.ajout.email.value; 

 if ((email.length<10)||(email.search(/^[^._-][a-z0-9._-]+[^._-]@[a-z0-9._-]+([a-z0-9]+[^._-])?[.-]+[a-z]{2,4}$/) == -1))
 {
 alert("entrez une adresse Email valide");
 document.ajout.email.value="";
 document.ajout.email.focus();
 document.ajout.email.select();
 return false;
 } 

 else { return true; }
} 