
function D_findObj(n) { 
var i,x,d=document; if(!(x=d[n])&&d.all) x=d.all[n];
if(!x && d.getElementById) x=d.getElementById(n);
return x;
}

function D_getBounds(obj){
obj.X=0;obj.Y=0;obj.W=obj.offsetWidth;obj.H=obj.offsetHeight;
var tempObj=obj;
 while(tempObj.tagName!='BODY'){
 obj.X+=tempObj.offsetLeft;obj.Y+=tempObj.offsetTop;
  if(!tempObj.offsetParent) break;
 tempObj=tempObj.offsetParent;
 }
return obj;
}

function arrondi(nbre){
nbre=String(Math.round(nbre*100)/100);
nbre=nbre.replace(/(^[0-9]+$)/,"$1.00");
nbre=nbre.replace(/(^[0-9]+\.[0-9]$)/,"$1	0");//pour Mozz \t;
nbre=nbre.replace(/\t/,"");//pour Mozz;
return nbre;
}

function arrondi2(nbre){
nbre=String(Math.round(nbre*1000)/1000);
nbre=nbre.replace(/(^[0-9]+$)/,"$1.00");
nbre=nbre.replace(/(^[0-9]+\.[0-9]$)/,"$1	0");//pour Mozz \t;
nbre=nbre.replace(/\t/,"");//pour Mozz;
return nbre;
}