function EffaceActu(descr,titre){
    return confirm("Vous êtes sur le point de supprimer l'objet : "+descr+".\n '"+titre+"'\n Voulez-vous confirmer ?");
}

function valider(cible){
          if(document.test.departements.value != "Sélectionnez votre département" ) {
            url = cible+"dept="+document.test.departements.value
            self.location=url
            return false
          }
          else {
            alert("Veuillez choisir votre département !")
            return false
          }
}

function decode(num,tab,cl) {
	if( cl == null ) cl = "taho11liensouligrisnoir" ;
	bnum = num&0xff;
	ch1= String.fromCharCode(tab[0]^bnum)+String.fromCharCode(tab[1]^bnum) ;
	ch2= String.fromCharCode(tab[2]^bnum) ;
	document.write('<a href="javascript:envoi('+num+', new Array('+tab.slice(3,tab.length)+') )" class='+cl+'>');
	for(i=3;i<tab.length;i++) document.write(ch1+(tab[i]^bnum)+ch2) ;
	document.write('</a>') ;
}

function envoi(num,tab) {
	bnum = num&0xff;
	ch="";
	for(i=0;i<tab.length;i++) ch = ch+String.fromCharCode(tab[i]^bnum) ;
	window.location="mailto:"+ch ;
}

function  popup(theURL, largeur)
{ // RB
	fenetre  = window.open(theURL,'XLIM','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width='+largeur+',height=550');
	fenetre.window.focus();
}

function sendRecherche()
{
    document.getElementById("formulaireRecherche").submit() ;
}

function hover(obj){
			  if(document.all){
			    UL = obj.getElementsByTagName('ul');
			    if(UL.length > 0){
			      sousMenu = UL[0].style;
			      if(sousMenu .display == 'none' || sousMenu.display == ''){
			        sousMenu.display = 'block';
			      }else{
			        sousMenu.display = 'none';
			      }
			    }
			  }
}