  var NS = (navigator.appName=="Netscape")?true:false; 

function ouvrefenetre(url) {
popup = window.open(url,'windowName','width=450,height=400,resizable=yes,scrollbars=1');
if (!popup.opener)
    popup.opener = self;
}


function supressError() {
    return true;
}

function ouvreparent(url) {
    window.onerror = supressError;
    opener.location.href = url;
}


function supressError() {
    return true;
}

function load(url) {
    window.onerror = supressError;
    opener.location.href = url;
}

function getRefToDivMod( divID, oDoc ) {
  if( !oDoc ) { oDoc = document; }
  if( document.layers ) {
    if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
      for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
        y = getRefToDivMod(divID,oDoc.layers[x].document); }
      return y; } }
  if( document.getElementById ) { return oDoc.getElementById(divID); }
  if( document.all ) { return oDoc.all[divID]; }
  return document[divID];
}

function resizeWinTo( idOfDiv ) {
  var oH = getRefToDivMod( idOfDiv ); if( !oH ) { return false; }
  var oW = oH.clip ? oH.clip.width : oH.offsetWidth;
  var oH = oH.clip ? oH.clip.height : oH.offsetHeight; if( !oH ) { return false; }
  var x = window; x.resizeTo( oW + 200, oH + 200 );
  var myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;
  if( x.innerWidth ) { myW = x.innerWidth; myH = x.innerHeight; }
  else if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }
  else if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }
  if( window.opera && !document.childNodes ) { myW += 16; }
  x.resizeTo( oW + ( ( oW + 200 ) - myW ), oH + ( (oH + 200 ) - myH ) );
}


/* Augmentation et réduction des polices d'affichage
*/

var taille=13
function choixStyle(dir) {
var li; 

if (10<taille+dir&&taille+dir<20){
   for(var i=0; li=document.getElementsByTagName("link")[i]; i++) {

     if(li.getAttribute("rel").indexOf("style") != -1 && li.getAttribute("title")) {
      if(li.getAttribute("title").indexOf("cr") !=-1) li.disabled = true;
		if (li.getAttribute("title").indexOf(taille+dir)>-1)li.disabled = false;
	  }
	 }

    taille=taille+dir;
   }
  }



