function popupImgAuto(a,b){w=window.open("","chargement","toolbar=no,menubar=no,width=10,height=10");w.document.write("<html><head><title>"+b+"</title>\n");w.document.write('<script type="text/javascript">\n');w.document.write("function autoSize() {\n");w.document.write("self.resizeTo(document.images[0].width+10,document.images[0].height+57)\n");w.document.write("self.focus();\n");w.document.write("}\n");w.document.write("<\/script>\n");w.document.write("</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad='javascript:autoSize()'>");w.document.write("<a href='javascript:window.close()'><img src='"+a+"' border=0 alt='"+b+"' title='"+b+"'></a>");w.document.write("</body></html>");w.document.close()}function toggleFleche(b,a){var b=document.getElementById(b);var a=document.getElementById(a);if(b.style.display=="none"){b.style.display="";a.className="On"}else{b.style.display="none";a.className="Off"}}function showHide(a,b){var c=(b.checked)?"":"none";document.getElementById(a).style.display=c}function afficher(c,a){var b=c;while(b.nodeName!="UL"){b=b.nextSibling}if(b.style.display=="block"){b.style.display="none";c.src=images_path+"picto/show_"+a+".gif"}else{b.style.display="block";c.src=images_path+"picto/hide_"+a+".gif"}}function showMe(a){document.getElementById(a).style.display=""}function hideMe(a){document.getElementById(a).style.display="none"}function popupFlash(e,a,c,f,d,b){if(d==undefined){d=c;b=f}w=window.open("","chargement","width="+c+",height="+f+"");w.document.write('<html><head><meta http-equiv="X-UA-Compatible" content="IE=7"><title>'+a+"</title>\n");w.document.write("</head>\n");w.document.write("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>\n");w.document.write('<div style="height:'+f+'px;text-align:center;margin-top:2px">\n');w.document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+d+'" height="'+b+'"  codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0">\n');w.document.write('<param name="movie" value="'+e+'" />\n');w.document.write('<param name="wmode" value="transparent" />\n');w.document.write('<param name="play" value="true">\n');w.document.write('<param name="quality" value="high">\n');w.document.write('<embed src="'+e+'" width="'+d+'" height="'+f+'" play="true" quality="high" pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>\n');w.document.write("</object>\n");w.document.write("</div>\n");w.document.write("</body></html>\n\n");w.document.close()}function createXMLHttpRequest(){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(a){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){}try{return new XMLHttpRequest()}catch(a){}alert("XMLHttpRequest n'est pas support?mettez ?our votre navigateur, merci.");return null}function setAndExecute(divId,innerHTML){var div=document.getElementById(divId);div.innerHTML=innerHTML;var x=div.getElementsByTagName("script");for(var i=0;i<x.length;i++){eval(x[i].text)}}function showFormGeneratorArbo(a,c){var b=createXMLHttpRequest();var d=reverse_path+"service/ajax/index.php?component=form_generator&action=show_arbo&form_arbo_id="+a+"&field_id="+c;b.open("GET",d,true);b.onreadystatechange=onreadystatechange=function(){if(b.readyState==4&&b.status==200){setAndExecute("portletArbo",b.responseText);showMe("portletArbo");hideSelect()}};b.send(null)}function deleteArboLineQte(a){document.getElementById(a).value=""}function selectArboElement(c,b,a){document.getElementById(c).value=a;document.getElementById(c+"_id").value=b;hideMe("portletArbo");showSelect()}function hideSelect(){var a=document.getElementsByTagName("select");for(i=0;i!=a.length;i++){a[i].style.visibility="hidden"}}function disableCopyPaste(d){var b=new Array("c","x","v");var a;var c;if(window.event){a=window.event.keyCode;if(window.event.ctrlKey){c=true}else{c=false}}else{a=d.which;if(d.ctrlKey){c=true}else{c=false}}if(c){for(i=0;i<b.length;i++){if(b[i].toLowerCase()==String.fromCharCode(a).toLowerCase()){return false}}}return true}function estEntier(a){return(a.toString().search(/^-?[0-9]+$/)==0)}var compt=1;function repNext(){setTimeout("test()",1000)}function test(){var a=document.getElementById("question"+compt);var b=document.getElementById("question"+(compt+1));if(b!=null){a.style.display="none";b.style.display="block"}else{document.formQuestion.submit()}compt++;return}var current="";function showProduit(d,e){var b=document.getElementById("imgBack");b.style.backgroundImage="url('"+d+"')";b.style.backgroundPosition="bottom left";b.style.backgroundRepeat="no-repeat";if(current!=""){var c=document.getElementById(current);c.style.display="none"}current=e;var a=document.getElementById(e);a.style.display="block"}function hauteurPage(){var b=parseInt(document.body.clientHeight);var a=b-(72+35);if(a<615){a=615}document.getElementById("iframeflash").style.height=a+"px"};