<!--
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_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_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_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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->




function show_liste (id)
{
if (document.getElementById(id).style.display == 'none')
	document.getElementById(id).style.display = "inline";
     
}


function ChangeMessage(message,champ)
  {
  if(document.getElementById)
    document.getElementById(champ).innerHTML = message;
  }
  
  
  //infos bull
var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var ie4 = document.all;
offsetX = 0;
offsetY = 20;
var toolTipSTYLE="";
function initToolTips()
{
  if(ns4||ns6||ie4)
  {
    if(ns4) toolTipSTYLE = document.toolTipLayer;
    else if(ns6) toolTipSTYLE = document.getElementById("toolTipLayer").style;
    else if(ie4) toolTipSTYLE = document.all.toolTipLayer.style;
    if(ns4) document.captureEvents(Event.MOUSEMOVE);
    else
    {
      toolTipSTYLE.visibility = "visible";
      toolTipSTYLE.display = "none";
    }
    document.onmousemove = moveToMouseLoc;
  }
}
function toolTip(msg, fg, bg)
{
  if(toolTip.arguments.length < 1) // hide
  {
    if(ns4) toolTipSTYLE.visibility = "hidden";
    else toolTipSTYLE.display = "none";
  }
  else // show
  {
    if(!fg) fg = "#5D7BC3";
    if(!bg) bg = "#FFFFFF";
    var content =
    '<table border="0" cellspacing="0" cellpadding="1" bgcolor="' + fg + '"><td>' +
    '<table border="0" cellspacing="0" cellpadding="1" bgcolor="' + bg + 
    '"><td align="center"><font face="sans-serif" color="' + fg +
    '" size="-2">&nbsp\;' + msg +
    '&nbsp\;</font></td></table></td></table>';
    if(ns4)
    {
      toolTipSTYLE.document.write(content);
      toolTipSTYLE.document.close();
      toolTipSTYLE.visibility = "visible";
    }
    if(ns6)
    {
      document.getElementById("toolTipLayer").innerHTML = content;
      toolTipSTYLE.display='block'
    }
    if(ie4)
    {
      document.all("toolTipLayer").innerHTML=content;
      toolTipSTYLE.display='block'
    }
  }
}
function moveToMouseLoc(e)
{
  if(ns4||ns6)
  {
    x = e.pageX;
    y = e.pageY;
  }
  else
  {
    x = event.x + document.body.scrollLeft;
    y = event.y + document.body.scrollTop;
  }
  toolTipSTYLE.left = x + offsetX;
  toolTipSTYLE.top = y + offsetY;
  return true;
}

function afficheVignette(cheminVignette,cheminMaxi)
	{
	document.write('<A HREF="javascript:afficheMaxi(\''+cheminMaxi+'\')"><IMG SRC="fr/%27+cheminVignette+%27" HSPACE=0 VSPACE=0 BORDER=0 ALT="cliquez ici pour voir en grand"></A>');
	}
function afficheMaxi(chemin)
	{
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>Image.</title></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="fr/%27+chemin+%27" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width,document.imageTest.height)"></CENTER></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=none,location=none,directories=none');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
	}

function rollover_tjs(nom,src) {	
document.images[nom].src=src;
}


function show_img (id)
{
var tab = new Array ("actival","durcisseurs760","durcisseurs770","durcisseurs770","durcisseurs790","durcisseurs796","durcisseurs798","appretsynth","appetscellulo","appretsprimoval","extrafilet","appretsprimoval","deliant32","deliant12","diluant8","diluantreactif",
"diluantspolyur","autofer","autofersoup","masticcellul","insonore","masticfibre","spirit","slowspirit","dilcellulo","noirchassie","rougechassie","systemperfect","systemfiness","vernishs","vernisfinit","agenmatage","basetexturances","flexibil","appretuniver"
,"decapant","patepolir","vernisp","vernisms","vernishs","vernisfinit","systemperfect","systemfinesse","protecteurpolish","renovateurpolish","renovateurpara","cirepolish","abrasifsponceau","accessponcageau","abrasifs","accessoirepocage","prdtstolerie","rouleaux",
"renovateur","cire","nettoyant","desodorisant","antigoudron","anticrevaison","carburateur","additif","antigel","lubrifiant","bs","essence","traitementdiesel","graisse","traitement","autodemarrage","injecteurs","octane_booster","nettoyant_radiateur","anti_radiateur",
"detartrant","radiateur","prdtrevcarross","mastoc","protectpolish","capomur","appret","capomail","capomat","capohuil","capolite","capofix","caporex","capetanche","huile","capofix","essence","vernis",
"brillant","finition","polyurethanne","four","f32","f12","f8","primoval","polyurethannes","actival","durcisseur","polyurethanne","degraissant","bouchons","arceaux","casques","antichoc","antisoudure","lunettes","anti-soudure",
"nitroval","valemail","routiere","hydroxylee","galiasol","valdur","acrylique","valfour","anti-soudure","anti-choc","lunettes","primoval","extrafiler","polyurethane","nitro","degraissant","diluant","partenaires","produits","satisfaction","valentine","appret","netdil","decapant3","systemfinesse7","pdhy4","protection","bouchons","auditive","dilfour");
if (document.getElementById(id).style.display == 'none')
	{
	document.getElementById(id).style.display = "inline";
     for(i=0;i<tab.length;i++)
		{
		if ((tab[i] != id) && document.getElementById(tab[i]) )
 		document.getElementById(tab[i]).style.display = "none";
		}
	}
else
document.getElementById(id).style.display = "none";
}





function show_details (id)
{
var tab = new Array ("appr","appr1","appr2","appr3","dil1","dil","dil2","dil3","dil4","dil5","dur","dur1","dur2","dur3","dur4","dur5","dur6","mastic1","mastic2","mastic3","mastic4","mastic5","prdnet","prdnet1","prdnet2","prdnet3","polish1","polish2","polish3","polish4","polish5","polish6","plast1","plast2","plast3","plast4","plast5","prdtannex","prdtannex1","prdtannex2","ver","ver1","ver2","ver3","ver4",
"abr7","abr6","abr5","abr4","abr3","abr2","abr","conf4","conf3","conf2","conf1","conf","entrep","entrep1","entrep2","entrep3","entrep4","entrep5","entrep6","entrep7","entrep8","entrep9","entrep10","entrep11","entrep12","entrep13","entrep14","prdd","prdd1","prdd2","prdd3","prdd4","prdd5","prdd6",
"radia1","radia","radia2","revet3","revet2","revet1","appret2","appret1","appret","appret3","di6","di5","di4","di3","di2","di1","di",
"dur6","dur5","dur4","dur3","dur2","dur1","dur","prd1","prd2","pdhy","pdhy1","pdhy2","pdhy3","protect5","protect4","protect3","protect2","protect1","protect",
"solv1","solv2","psolv2","psolv1","psolv3","psolv4","psolv5","p3","peau1","peau2","peau4","peau5","prdtannex3","prdd7","3m","kraft");
if (document.getElementById(id).style.display == 'none')
	{
	document.getElementById(id).style.display = "inline";
     for(i=0;i<tab.length;i++)
		{
		if ((tab[i] != id) && document.getElementById(tab[i]) )
 		document.getElementById(tab[i]).style.display = "none";
		}
	}
else
document.getElementById(id).style.display = "none";
}


function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  { 
    test=args[i+2]; val=MM_findObj(args[i]);
    /*alert (val.name+" : "+ val.value.RLTrim().length);*/
    if (val) { nm=val.name; 
      if ((val=val.value.RLTrim())!="") 
      {
      if (test.indexOf('isEmail')!=-1) 
      { 
        p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } 
      else if (test!='R') 
        {
        num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) 
          {
           p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
          } 
        }
       } 
       else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n';
       }
    } 
  if (errors) alert('* : Champs obligatoires/Obligatory fields');
  document.MM_returnValue = (errors == '');
}

String.prototype.RLTrim = function ()
/* =========================
 supprimer les espaces initiaux et finaux
 ==========================
 exemples :
 alert("    exemple    ".RLTrim()); */
{
 return this.replace(/(^\s*)|(\s*$)/g,"");
}