    function DOMGetFirstNodeChild(id)
    {
	var nparent=window.document.getElementById(id);
	for(child=nparent.firstChild;child!=null;child=child.nextSibling)
	{
	  if(child.nodeType==1)
	    return child;
	}
	return null;
    }

    function onglets()
    {
	this.onglet_actif=null;

	this.getElement = function(id)
	{
	    return window.document.getElementById(id);
	}
	this.actuel = function(obj)
	{
	    this.onglet_actif=obj;
	}

	this.activer = function(obj)
	{
	  if(this.onglet_actif!=null)
	  {
	    //for(var i= 0;i<this.onglet_actif.length;i++)
	    //document.write(this.onglet_actif[i]);
	    this.onglet_actif.setAttribute('type','close');
	    var e=this.getElement('content'+this.onglet_actif.getAttribute('name'));
	    if(e!=null)
	    {
		e.style.display='none';
	    }
	  }
	  this.onglet_actif=obj;
	  obj.setAttribute('type','open');
	  var e=this.getElement('content'+obj.getAttribute('name'));
	  e.style.display='block';
	}
    }
    var ong=new onglets();
