function MM_findObj(n, d) { //v4.01
  var p,i,x,myMM_FindObj;  
  if(!d) d=document; 
  if((p=n.indexOf("?"))>0&&parent.frames.length) 
  {
    d=parent.frames[n.substring(p+1)].document; 
    n=n.substring(0,p);
  }
  if(!(x=d[n])&&d.all) x=d.all[n]; 
  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) 
{ //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style))
  {
    if (theValue == true || theValue == false)
    {
        eval("obj."+theProp+"="+theValue);
    }
    else 
    {
        eval("obj."+theProp+"='"+theValue+"'");
    }
  }
}

function MM_HideH1(vOldH1, vNewH1)
{
var myDispString;
MM_changeProp('H1_' + vOldH1,'','style.display','none','DIV');
MM_changeProp('H1_' + vNewH1,'','style.display','block','DIV');
document.idxH1.oldH1.value = vNewH1;
}

function UpdTocOfPage(nbreHeadToc)
{
	for (j=1; j<nbreHeadToc+1; j++)
	{
		SetTocTopOfPage(j);
	}
}

function browser_check(){
    this.ver=navigator.appVersion
    this.dom=document.getElementById?1:0
    this.ie4=(document.all && !this.dom)?1:0;
    this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
    this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
    this.ns4=(document.layers && !this.dom)?1:0;
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
    this.all=(this.ie6||this.ie5 || this.ie4 || this.ns4 || this.ns5) && !this.ie4mac;
    this.IE = (this.ie6||this.ie5 || this.ie4);
    this.NS = (this.ns4 || this.ns5);
    
return this
}
