
	function menuDisplay(monDiv)
	{
		monDiv.style.display = (monDiv.style.display == "block") ? "none" : "block";
		return true;
	}

    function handleSubmit() 
    {
		var cpt = 0;
		if (!document.frmComment.authorNickName.value)
		    cpt = 4;
		if (!document.frmComment.authorEmail.value)
		    cpt += 2;
		if (!document.frmComment.commentBody.value)
		    cpt += 1;
		switch(cpt)
		{
		    case 7 :
			alert("Problème : pseudo manquant, email manquante, commentaire vide");
		      break;
		    case 6 :
			alert("Problème : pseudo manquant, email manquante");
		      break;
		    case 5 :
			alert("Problème : pseudo manquant, commentaire vide");
		      break;
		    case 4 :
			alert("Problème : pseudo manquant");
		      break;
		    case 3 :
			alert("Problème : email manquante, commentaire vide");
		      break;
		    case 2 :
			alert("Problème : email manquante ou incorrecte");
		      break;
		    case 1 :
			alert("Problème : commentaire vide");
		      break;
		    default :
			document.frmComment.submit();
		      break;
		}
    }
