function validerAbonnementInfolettre( strCourriel ) {
    if( valide_courriel_input( strCourriel ) ){
      if (document.getElementById("infolettre_prenom_input").value != "")
{
      if (document.getElementById("infolettre_nom_input").value != "")
{
if (ValidCaptcha()==false){
				alert("Erreur dans la validation du code.");
			}else{
       document.abonnement.submit();
}
}
else {
 alert( 'Veuillez entrer votre nom.' );
}
}
else {
   alert( 'Veuillez entrer votre prénom.' );
}
}
    else {
        alert( 'Vous avez entré un courriel invalide.' );
}
}
//valide le courriel entre et retour true ou false
function valide_courriel_input( courriel ) {
    /*var regCourrielValide = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,3}$/;
    return regCourrielValide.test( courriel );*/
        var strPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z.]{2,9}$/;
	//var strPattern = /^([0-9a-zA-Z]+([_.-]?[0-9a-zA-Z]+)*@[0-9a-zA-Z]+[0-9,a-z,A-Z,.,-]*(.){1}[a-zA-Z]{2,4})+$/;
	var oREGEXP = new RegExp(strPattern);
	return oREGEXP.test( courriel );
}

