// validation formulaire de creation d'un commentaire
function validationCommentaire(formName, actionName, action)
{
	var msg = "";

	//Nom 
	if (document.forms[formName].elements["currentCommentaire.contributorNickName"].value == "") 
	{ 
	 	msg += "<br>- Pseudo.";			
	    document.getElementById("pseudoId").style.color = "red";   
    }

	if (document.forms[formName].elements["currentCommentaire.contributorEmail"].value == ""  
		|| !validMail(document.forms[formName].elements["currentCommentaire.contributorEmail"].value)) 
	{ 
	 	msg += "<br>- Email (pseudo@serveur.xx(x)).";
	    document.getElementById("mailId").style.color = "red";
    }
	
	if (document.forms[formName].elements["currentCommentaire.contenu"].value == "") 
	{ 
	 	msg += "<br>- Commentaire.";			
	    document.getElementById("commentaireId").style.color = "red";   
    }
    
	if (msg != "") 
	{
		msg = "Certains champs sont manquants ou erron&eacute;s :<br>" + msg;
		var elmtDiv = document.getElementById("aVerifier");
		elmtDiv.innerHTML = msg;
		montreCenterPopUp('popReserver','638', 'containerOpaque');
	}
	else
	{
		submitWithAction(formName, actionName, action);
	}
}