<!--
function checkBrowser()
{
 // alert(navigator.userAgent); --- Text étudde
 // alert(navigator.appVersion);

 this.ver=(navigator.userAgent.indexOf('Firefox')>-1)?'Firefox':navigator.appVersion;
 this.SeaMonkey=(navigator.userAgent.indexOf('SeaMonkey')>-1)?1:0;
 this.firefox=(navigator.userAgent.indexOf("Firefox")>-1)?1:0;
 this.Opera=(navigator.userAgent.indexOf('Opera')>-1)?1:0;
 this.Netscape=(navigator.userAgent.indexOf('Netscape/')>-1)?1:0;
 this.dom=document.getElementById?1:0;
 this.ie7=(this.ver.indexOf("MSIE 7")>-1)?1:0;
 this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
 this.ie55=((this.ver.indexOf("MSIE 5.5")>-1 || this.ie6) && this.dom)?1:0;
 this.ie5=((this.ver.indexOf("MSIE 5")>-1 || this.ie5 || this.ie6) && this.dom)?1:0;
 this.ie4=(document.all && !this.dom)?1:0;
 this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
 this.ns4=(document.layers && !this.dom)?1:0;
 this.ie4plus=(this.ie7 || this.ie6 || this.ie5 || this.ie4);
 this.ie5plus=(this.ie7 || this.ie6 || this.ie5)
 this.ie=(this.ie7 || this.ie6 || this.ie5 || this.ie55 || this.ie4);
 this.bw=(this.ie4plus || this.ns4 || this.ns5);
 this.Mozilla=(navigator.userAgent.indexOf('Mozilla')<0 ||this.SeaMonkey || this.firefox || this.Opera || this.Netscape || this.ie4plus || this.ie55)?0:1;
 return this;
}

function getObjectById(ID)
{
 // var obj;
 if (bw.dom)
  return document.getElementById(ID);
 else
  if (bw.ie4)
   return document.all(ID);
  else
   if (bw.ns4)
    return eval('document.' + ID);
}

function getObjectByIdParent(ID)
{
 // var obj;
 if (bw.dom)
  return parent.document.getElementById(ID);
 else
  if (bw.ie4)
   return parent.document.all(ID);
  else
   if (bw.ns4)
    return eval('parent.document.' + ID);
}

function fChangeClass(ps_id, ps_class)
{
 var obj = getObjectById(ps_id);
 obj.className=ps_class;
}

function checkHeight(ps_id)
{
 var d = getObjectById(ps_id);
 if (d.offsetHeight < 600) d.style.height='655px';
}

function CorrectWidth(ps_id,ps_width,pb_explorateur)
{
 if (pb_explorateur)
 {
  var d = getObjectById(ps_id);
  d.style.width=ps_width;
 }
}

function fRedirection(ps_page)
{
 document.location=ps_page;
}

String.prototype.trim = function ()
{
 return this.replace(/^\s*/, "").replace(/\s*$/, "");
}

//-->

