function valid_fields(theForm) { if (theForm.email.value == "") { alert("Veuillez inscrire votre courriel!"); theForm.email.focus(); return (false); } if (theForm.email.value.length < 5) { alert("Votre courriel est invalide!"); theForm.email.focus(); return (false); } if (theForm.subject.value =="") { alert("Veuillez inscrire le sujet de votre message pour une réponse rapide!"); theForm.subject.focus(); return (false); } if (theForm.message.value == "") { alert("Vous n'avez inscrit aucun message!"); theForm.message.focus(); return (false); } return (true); }