var isNav = navigator.appName.indexOf("Netscape") !=-1;var isN6 = ((isNav) && (document.getElementById));var isMac = navigator.appVersion.indexOf("Macintosh") !=-1;var isIE = document.all;var isIEPC = ((isIE) && (!(isMac)))var Egale = '=';if (isN6){	h=".left";	v=".top";	dS="document.getElementById('";	sD="').style";	appComp = "true";	Hauteur = "').offsetHeight";	ECRIRE = "').innerHTML=";	VISIBLE = ".visibility='visible'";	fD = "')";}else {	if (isNav)	{		h=".left";		v=".top";		dS="document.";		sD="";		appComp = "true";		Hauteur = ".document.height";		VISIBLE = ".visibility='show'";		fD = "";	}	else	{		h=".pixelLeft";		v=".pixelTop";		dS="";		sD=".style";		appComp = "true";		Hauteur = ".offsetHeight";		ECRIRE = ".innerHTML=";		VISIBLE = ".visibility='visible'";		fD = "";	}}function findPosX(obj){	var curleft = 0;	if (obj.offsetParent)	{		while (obj.offsetParent)		{			curleft += obj.offsetLeft			obj = obj.offsetParent;		}	}	else if (obj.x)		curleft += obj.x;	return curleft;}function findPosY(obj){	var curtop = 0;	if (obj.offsetParent)	{		while (obj.offsetParent)		{			curtop += obj.offsetTop			obj = obj.offsetParent;		}	}	else if (obj.y)		curtop += obj.y;	return curtop;}function AfficheLayer(Layer,x,y){	eval(dS+Layer+sD+v+Egale+y);	eval(dS+Layer+sD+h+Egale+x);}function HiLite(imgN,PathImage2,Extension){		eval("document [imgN].src = \"/images/" + PathImage2 + imgN + "_" + Extension + ".gif\"");}function OuvreFenetre(URL,NomControle,Largeur,Hauteur,AffScrollBars){	if (AffScrollBars!="no") AffScrollBars='yes';	Top = screen.height/2-Hauteur/2 	Gauche = screen.width/2-Largeur/2	var popup = window.open(URL, NomControle, "toolbar=no,status=no,menubar=no,scrollbars=" + AffScrollBars + ",resizable=no,directories=no,location=no,width=" + Largeur + ",height=" + Hauteur +",top=" + Top + ",left=" + Gauche)}function del() {		document.forms[0].action="del.php";		document.forms[0].submit();}	function SoumettreForm() {		document.forms[0].action="save.php";		document.forms[0].submit();	}function Popup_Message(message){	if (message!='') alert(message);}	function retaille(largeur,hauteur){	//if ((screen.width > 1024) && (screen.height > 768))		window.resizeTo(largeur,hauteur);	}function change_alpha(alpha,ctrl){	document.getElementById(ctrl).style.opacity = (alpha/100);	document.getElementById(ctrl).style.filter = 'alpha(opacity=' + alpha + ')';}function getScrollerWidth() {    var scr = null;    var inn = null;    var wNoScroll = 0;    var wScroll = 0;    // Outer scrolling div    scr = document.createElement('div');    scr.style.position = 'absolute';    scr.style.top = '-1000px';    scr.style.left = '-1000px';    scr.style.width = '100px';    scr.style.height = '50px';    // Start with no scrollbar    scr.style.overflow = 'hidden';    // Inner content div    inn = document.createElement('div');    inn.style.width = '100%';    inn.style.height = '200px';    // Put the inner div in the scrolling div    scr.appendChild(inn);    // Append the scrolling div to the doc    document.body.appendChild(scr);    // Width of the inner div sans scrollbar    wNoScroll = inn.offsetWidth;    // Add the scrollbar    scr.style.overflow = 'auto';    // Width of the inner div width scrollbar    wScroll = inn.offsetWidth;    // Remove the scrolling div from the doc    document.body.removeChild(        document.body.lastChild);    // Pixel width of the scroller    return (wNoScroll - wScroll);}