// NN6 document.all equalizer/*if (!document.all) {	Node.prototype.__defineGetter__("all", function() {		if (document.getElementsByTagName("*").length) {			switch (this.nodeType) {				case 9:					return document.getElementsByTagName("*")					break				case 1:					return this.getElementsByTagName("*")					break			}		}		return ""	})	Node.prototype.__defineSetter__("all", function() {})}*//* Détection navigateur */var Nom = navigator.appName; var Version = navigator.appVersion.substring(0, 3); var ns40 = (Nom == 'Netscape' && Version >= '3.0' && Version < '4.8' ) ? 1:0;var ns6 = (Nom == 'Netscape' && Version > '4.7' ) ? 1:0;var ie4 = (Nom == 'Microsoft Internet Explorer' && Version >= '4.0' ) ? 1:0;// -------------------------------------------------------------------------------------// Fonctions ---------------------------------------------------------------------------// -------------------------------------------------------------------------------------function MM_setTextOfTextfield(objName,x,newText) { //v3.0  var obj = MM_findObj(objName); if (obj) obj.value = newText;}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_showHideLayers() { //v3.0if (ie4 || ns6) { var i,p,v,obj,args=MM_showHideLayers.arguments;  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }    obj.visibility=v; } }}function MM_preloadImages() { //v3.0	var d=document; 	if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}function MM_reloadPage(init) {  //reloads the window if Nav4 resizedif (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}function MM_changeProp(objName,x,theProp,theValue) { //v6.0  var obj = MM_findObj(objName);  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){    if (theValue == true || theValue == false)      eval("obj."+theProp+"="+theValue);    else eval("obj."+theProp+"='"+theValue+"'");  }}function MM_callJS(jsStr) { //v2.0  return eval(jsStr);}function bgNavigOver(obj) { //v2.1 by Project VII	obj.style.color="#FF9933";}function bgNavig(obj) { //v2.1 by Project VII	obj.style.color="#333333";}function bgIndepOver(obj) { //v2.1 by Project VII	obj.style.color="#3E86BA";}function bgEntrepOver(obj) { //v2.1 by Project VII	obj.style.color="#2E9847";}function bgAdminOver(obj) { //v2.1 by Project VII	obj.style.color="#FF9900";	obj.style.backgroundColor="#DEF6F6";//	obj.bgColor="#80A6C1";}function bgAdmin(obj) { //v2.1 by Project VII	obj.style.color="#80A6C1";	obj.style.backgroundColor="#FFFFFF";//	obj.bgColor="#FFFFFF";}function newbgcolor(obj, new_bg) { //v2.1 by Project VII	obj.style.backgroundColor=new_bg;}function OuvrePopup() {	// Vérifie que le cookie "onetimePopup" n'est pas présent	if (GetCookie("onetimePopup")==null) {				// Paramétrez ici le mode d'affichage du popup		// Popup MacOSXMM : 470*320		window.open("../../fr/html/popup.html","onetimePopup","width=470, height=320, toolbars=no, scrollbars=no");		// Enregistre le cookie pour une durée de 24 heures		var pathname=location.pathname;		var myDomain=pathname.substring(0,pathname.lastIndexOf('/')) +'/';		var date_exp = new Date();		date_exp.setTime(date_exp.getTime()+(2*3600*1000)); // 2 heures		SetCookie("onetimePopup","ok",date_exp,myDomain);	}}function ViderCookie() {	var pathname=location.pathname;	var myDomain=pathname.substring(0,pathname.lastIndexOf('/')) +'/';	var date_exp = new Date();	date_exp.setTime(date_exp.getTime()-(1000)); // Heure déjà expirée	SetCookie("onetimePopup","",date_exp,myDomain);}//// "Internal" function to return the decoded value of a cookie//function getCookieVal (offset) {  var endstr = document.cookie.indexOf (";", offset);  if (endstr == -1)    endstr = document.cookie.length;  return unescape(document.cookie.substring(offset, endstr));}////  Function to correct for 2.x Mac date bug.  Call this function to//  fix a date object prior to passing it to SetCookie.//  IMPORTANT:  This function should only be called *once* for//  any given date object!  See example at the end of this document.//function FixCookieDate (date) {  var base = new Date(0);  var skew = base.getTime(); // dawn of (Unix) time - should be 0  if (skew > 0)  // Except on the Mac - ahead of its time    date.setTime (date.getTime() - skew);	return date;}////  Function to return the value of the cookie specified by "name".//function GetCookie (name) {  var arg = name + "=";  var alen = arg.length;  var clen = document.cookie.length;  var i = 0;  while (i < clen) {    var j = i + alen;    if (document.cookie.substring(i, j) == arg)      return getCookieVal (j);	i = document.cookie.indexOf(" ", i) + 1;    if (i == 0) break;   }return null;}////  Function to create or update a cookie.//function SetCookie (name,value,expires,path,domain,secure) {  document.cookie = name + "=" + escape (value) +    ((expires) ? "; expires=" + expires.toGMTString() : "") +    ((path) ? "; path=" + path : "") +    ((domain) ? "; domain=" + domain : "") +    ((secure) ? "; secure" : "");}////  Function to delete a cookie. (Sets expiration date to start of epoch)//function DeleteCookie (name,path,domain) {  if (GetCookie(name)) {    document.cookie = name + "=" +      ((path) ? "; path=" + path : "") +      ((domain) ? "; domain=" + domain : "") +      "; expires=Thu, 01-Jan-70 00:00:01 GMT";  }}function logout(id) {	var URL = document.loginForm.logoutRef.value;	document.location.href = URL;}function EstSirenValide(siren) {	var estValide;	if ( (siren.length != 9) || (isNaN(siren)) )		estValide = false;	else 	{      	var somme = 0;      	var tmp;      	for (var cpt = 0; cpt<siren.length; cpt++) 		{        	if ((cpt % 2) == 1) 			{        	  	tmp = siren.charAt(cpt) * 2;          		if (tmp > 9)             		tmp -= 9;        	}        	else          		tmp = siren.charAt(cpt);        			somme += parseInt(tmp);		}    	if ((somme % 10) == 0)        	estValide = true;    	else        	estValide = false;    }    return estValide;}function EstSiretValide(siret) {    var estValide;    if ( (siret.length != 14) || (isNaN(siret)) )      	estValide = false;    else 	{      	var somme = 0;      	var tmp;      	for (var cpt = 0; cpt<siret.length; cpt++) 		{        	if ((cpt % 2) == 0) 			{          		tmp = siret.charAt(cpt) * 2;          		if (tmp > 9)             		tmp -= 9;        	}       		else         		tmp = siret.charAt(cpt);        			somme += parseInt(tmp);    	}    	if ((somme % 10) == 0)        	estValide = true;    	else        	estValide = false;	}    return estValide;}function checkOnlineEditFields() {	if(self.opener.document.forms['onlineEditFields'].ole_refresh.value == "1")	{		alert("refresh=1");		self.opener.document.forms['onlineEditFields'].ole_refresh.value == "0";		window.history.go(0);	}}/* MM_reloadPage(true); */