<!-- Fonctions diverses
//Eliminer les accents et autres caractères français
function NetAccent(txt){ var rts=txt.toLowerCase();
	rts=rts.replace(/[áàâä]/g,"a");
	rts=rts.replace(/[éèêë]/g,"e");
	rts=rts.replace(/[ììîï]/g,"i");
	rts=rts.replace(/[òóôö]/g,"o");
	rts=rts.replace(/[ùúûü]/g,"u");
	rts=rts.replace(/[œ]/g,"oe");
	rts=rts.replace(/[æ]/g,"ae");
	rts=rts.replace(/[ç]/g,"c");
//alert( "Départ : "+ txt +"\nArrivée : "+ rts);
	return rts.toUpperCase();
	}
function ToUpper(txt){ var rts=txt.toUpperCase();
	return rts.toUpperCase();
}

// Pour affichage de nbDigits minimum...
function FmtNum(num, nbDig) {
	str = '000000000';
	sz1 = num.toString();
	if (nbDig > sz1.length) {
  str += sz1;
      lg2 = str.length - nbDig;
	  sz1 = str.substr(lg2);
	}
	return sz1;
}
//Gestion des fenêtres popup
//  Ajouter dans <Body> : onUnload="EffPopUp();
function AffPopUp(prf,lurl,larg,haut){
//  alert( 'winfo :'+typeof(window["winfo"])+' et info :'+typeof(info));
  if(typeof info=='undefined' || info.closed)
    info=window.open(lurl,"winfo"+prf,"resizable=1,scrollbars=1,status=0,history=0,toolbar=0"+((haut>0)?(",height="+haut):(""))+((larg>0)?(",width="+larg):(""))+",marginwidth=0,marginheight=0,screenX=0,screenY=0,top=0,left=0");
  else
    info.location=lurl;
	if (info)
	  info.focus();
	return info;
}
function EffPopUp() {
	if(typeof info=='object' && info.closed==false) window.info.close();
}
function IsNumeric(ctl,d) { var t1,t2,l,n,c;
	e=window.event.keyCode;
	if (e==8 || e==9 || e==13 || e==16 || e==20 || e==144  || e==37 || e==39 || e==46 || (e>=47 && e<=58) || (e>=95 && e<=106) || (d==1 && (e==110 || e==188)))
	return true;
	window.event.returnValue=false;
	return false;	
}
// -->
