DOM= document.getElementById && !document.all;
IE4= document.all;
var currentSousrub="";
function displayMenu(nomlayer,lien_focus) {
	lien_focus.blur();
	if(currentSousrub==nomlayer){nomlayer="";}
	if (IE4) {
		if (currentSousrub!="") {document.all[currentSousrub].style.display="none";}
		currentSousrub = nomlayer;
		if (nomlayer!="") {document.all[currentSousrub].style.display="block";}
	}
	if(DOM){
		if (currentSousrub!="") {document.getElementById(currentSousrub).style.display="none";}
		currentSousrub=nomlayer;
		if (nomlayer!="") {document.getElementById(currentSousrub).style.display="block";}
	}
}
function popup(theURL,winName,features) { //v2.0
  fen=window.open(theURL,winName,features);
  fen.focus();
}
function clicMenu(id) { 
  if (DOM){ var lediv = document.getElementById(id);}
  if (IE4){ var lediv = document.all[id];}
  if (lediv.style.display == "none"){
    lediv.style.display = "";
  } else {
    lediv.style.display = "none";
  }   
}
function fermer_pop(){
	if(window.fen){
		fen.close();
	}else{
		return false;		
	}
}
function display_style(classe,elemt){
	elemt.attributes['class'].nodeValue=classe;//alert(classe);
}
function passerValeur(elt,valeur){
	if(document.getElementById){
		document.getElementById(elt).value=valeur;	
	}
}