function checkForm(theForm) { if (theForm.realname.value == "") { alert("Veuillez inscrire votre nom d'entreprise, d'école ou d'institution!"); theForm.realname.focus(); return (false); } if (theForm.telephone.value == "") { alert("Veuillez inscrire votre numéro de téléphone!"); theForm.telephone.focus(); return (false); } if (theForm.telephone.value.length < 6) { alert("Veuillez inscrire un numéro de téléphone valide!"); theForm.telephone.focus(); return (false); } if (theForm.nom.value == "") { alert("Veuillez inscrire votre nom!"); theForm.nom.focus(); return (false); } if (theForm.nom.value.length < 1) { alert("Veuillez inscrire votre nom!"); theForm.nom.focus(); return (false); } if (!theForm.code.value) { alert("Veuillez entrer votre code postal!"); theForm.code.focus(); return (false); } if (theForm.email.value == "") { alert("Veuillez indiquer votre courriel!"); theForm.email.focus(); return (false); } if (theForm.email.value == "") { alert("Veuillez indiquer votre courriel!"); theForm.email.focus(); return (false); } if (theForm.email.value.length < 5) { alert("Veuillez inscrire un courriel valide!"); theForm.email.focus(); return (false); } if (theForm.email.value.length > 50) { alert("Votre courriel doit contenir un maximum de 50 caractères!"); theForm.email.focus(); return (false); } return (true); }