/* sfHover = function() {
  var sfEls = document.getElementById("Nav").getElementsByTagName("LI");
  for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
      this.className+=" sfhover";
    }
    sfEls[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
  }
  
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
*/
function voirmenu(id) {
	var d = document.getElementById(id);
	for (var i = 1; i<=4; i++) {
		if (document.getElementById('dNav'+i)) {document.getElementById('dNav'+i).style.display='none';}
	}
	if (d) {d.style.display='block';}

}

function voirsoumenu(id) {
if (id=="") {
	var d = document.getElementById(document.forms['local'].displai.value);
	if (d) {
		d.style.display='none';
	}
}
else {
	var d = document.getElementById(id);
	if (d) {
		d.style.display='block';
		document.forms['local'].displai.value=id;
	}
}
}

//--><!]]>

// JavaScript Document
/*
startList = function()
{
    if (document.all && document.getElementById)
    {
        navRoot = document.getElementById("Nav");
        for (i=0; i<navRoot.childNodes.length; i++)
        {
            node = navRoot.childNodes[i];
            if (node.nodeName=="LI")
            {
                node.onmouseover=function()
                {
                    this.className+=" over";
                }
                node.onmouseout=function()
                {
                    this.className=this.className.replace(" over", "");
                }
            }
        }
    }
}
window.onload=startList;
*/
//window.onload=montre;
function montre(radic, id)
{
    var d = document.getElementById( radic + id);
    var etat = "";
    if ( d )
    {
        etat = d.style.display;
        if ( etat != 'block')
            etat = 'none';
    }


    for (var i = 1; i<=100; i++)
    {
        if (document.getElementById(radic+i))
            document.getElementById(radic+i).style.display='none';
    }
    if (d)
    {
        if ( etat == 'none' )
        {
            d.style.display='block';
        }
        else
        {
            d.style.display='none';
        }
    }
}

function confirmDelete()
{
   var retour = confirm("Etes vous sur du vouloir supprimer ce élément ?")
  // alert ( retour );
   return retour;
}
