 function VerifInfos(){
      	var probleme = 'non';

      	if (document.saisie_news.titre.value.length <= 0){
        	alert ("Veuillez donner un titre");
        	document.saisie_news.titre.value ="*** Titre";
        	document.saisie_news.titre.focus();
        	probleme = 'oui';
        }
        if (document.saisie_news.texte.value.length <= 0){
        	alert ("Veuillez rentrer un texte");
        	document.saisie_news.texte.value ="*** Texte";
        	document.saisie_news.texte.focus();
        	probleme = 'oui';
        }

        if(probleme == 'non'){
        	return true;
        }
        else {
            return false;
        }
	}

function UpdateInfo( cId ){
		document.formInfo.txtId.value = cId ;
		document.formInfo.txtAction.value = "L" ;
		document.formInfo.submit() ;
} 
function SupprInfo( cId ){
        if(confirm("Etes vous sûr de vouloir supprimer cet élément?")){
		    document.formInfo.txtId.value = cId ;
		    document.formInfo.txtAction.value = "S" ;
		    document.formInfo.submit() ;
	    }
} 
   
function valideForm( cName ) {
       document.getElementById(cName).submit();
}

  function affiche(id) { 
          

        var display = window.document.getElementById(id).style.display; 
            display = "block";

           window.document.getElementById(id).style.display = display; 
       }
     
      function cache(id) { 
          

        var display = window.document.getElementById(id).style.display; 
            display = "none";

           window.document.getElementById(id).style.display = display; 
       }


