self.window.name='mainwindow'; function formHandler(){ var URL=document.dev_form.dev_links.options[document.dev_form.dev_links.selectedIndex].value window.location.href=URL } function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);} function trim(texte){return texte.replace(/(^\s*)|(\s*$)/g, "");} function MM_swapImgRestore(){ var i,x,a=document.MM_sr; for(i=0;a && i0&&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\n'; str+='0){ rightLiItem=document.getElementById('menuListItem'+indice); if (rightLiItem.className=='menu_off') { rightLiItem.className='menu_on'; } else { rightLiItem.className='menu_on_last'; } } } currentlyShownIrresistible=false; function swapIrresistible(what){ if (currentlyShownIrresistible===false){ allTitles=document.getElementById('irr_title_all').childNodes; for(i=0;imaxIndex) { curIndex=maxIndex; } } function previewPhoto() { curIndex=curIndex - 1; if (curIndex0 ? '&' : '?')+'article='+listRef+'&nbarticle='+nbArticle,'Comparomètre','toolbar=0,location=0,directories=0,status=no,menubar=no,scrollbars=yes,resizable=0,width=930,height=650,left=30,top=30','mainwindow'); } function verifData(form) { if (form.login.value=="") { alert(sErrorMail); form.login.focus(); return false; } else { return true; } } function findObjectPosition(obj){ var curleft=curtop=0; if (obj.offsetParent){ curleft=obj.offsetLeft curtop=obj.offsetTop while (obj=obj.offsetParent){ curleft+=obj.offsetLeft curtop+=obj.offsetTop } } return [curleft,curtop]; } function doKeepInList(refCentrale) { myForm=document.getElementById("ajouter_list_form"); myForm.RefCentrale.value=refCentrale; myForm.article.value=refCentrale; myForm.submit(); } function swapBlocVisu(position) { what='lyrBlocVisu'+position; if (what !=cur_fade_lyr) { toShowLayer=document.getElementById(what); currentLayer=document.getElementById(cur_fade_lyr); hideItNoSpace(currentLayer.id); showItNoSpace(toShowLayer.id); cur_fade_lyr=what; } } function swapBlocFA(position) { whatFA='BlocFA_'+position; if (whatFA !=cur_fade_lyrFA) { toShowLayer=document.getElementById(whatFA); currentLayer=document.getElementById(cur_fade_lyrFA); hideItNoSpace(currentLayer.id); showItNoSpace(toShowLayer.id); cur_fade_lyrFA=whatFA; whatFA2='listItem'+position; toLight=document.getElementById(whatFA2); toDarken=document.getElementById(currentlyLitFA); toLight.className='lienblanc_on'; toDarken.className='lienblanc'; currentlyLitFA=whatFA2; whatFA3='LiFA_'+position; toLight=document.getElementById(whatFA3); toDarken=document.getElementById(currentlyLitLiFA); toLight.className=toLight.className+"on"; toDarken.className=toDarken.className.substr(0,toDarken.className.length - 2); currentlyLitLiFA=whatFA3; } } function VerifFormMail() { var f=document.send_mail; if ((f.mail_dest.value.length<6) || (f.mail_src.value.length<6) || (f.nom_dest.value.length==0) || (f.nom_src.value.length==0)) { alert(mailAmiErr); } else { f.submit(); } } function startCycleSubLevel(i,nbItems){ var j=0; while (j<=nbItems){ if (getDivDisplayMode('cmsSubLevel_'+i+'_'+j) !='none'){ hideItNoSpace('cmsSubLevel_'+i+'_'+j); lastHidden=j; } j++; } nextDisplay=lastHidden+1; nextDisplay='cmsSubLevel_'+i+'_'+nextDisplay; if (!document.getElementById(nextDisplay)) nextDisplay='cmsSubLevel_'+i+'_0'; showItNoSpace(nextDisplay); return setTimeout("startCycleSubLevel("+i+","+nbItems+");",5000); } var bulle=false; var timer; var isBulle=false; function GetId(id) { return document.getElementById(id); } function move(e){ if (bulle==true || isBulle==true) { if (navigator.appName!="Microsoft Internet Explorer"){ GetId("curseur").style.left=(e.pageX -10)+'px'; GetId("curseur").style.top=(e.pageY -10)+'px'; } else{ if (document.documentElement && document.documentElement.scrollTop) theTop=document.documentElement.scrollTop; else if (document.body) theTop=document.body.scrollTop GetId("curseur").style.left=window.event.x - 10; GetId("curseur").style.top=window.event.y - 10+theTop; } } } function montre(text){ if(bulle==false){ bulle=true; if (navigator.appName=="Microsoft Internet Explorer") move(); GetId("curseur").style.display="block"; GetId("curseur").innerHTML=text; } } function cache(){ isBulle=false; clearTimeout(timer); if(bulle==true){ GetId("curseur").style.display="none"; bulle=false; GetId("curseur").style.left=200; GetId("curseur").style.top=200; } } function time(text){ isBulle=true; text1=text; timer=setTimeout("montre(text1)",600); } function getEcoContribution() { content='
'; content+='EcoContribution'; content+='
'; content+='
'; content+='Participons ensemble au recyclage et à la revalorisation des produits électriques et électroniques en fin de vie.'; content+='
'; //content+='(En savoir+)'; content+='(En savoir+)'; content+='
'; content+='
'; return content; } if (navigator.appName!="Microsoft Internet Explorer"){ document.captureEvents(Event.MOUSEMOVE); } document.onclick=move; function showDiv(sDivId) { if (document.getElementById) { currDiv=document.getElementById(sDivId); currDiv.style.display='block'; } else if (document.all) { document.all[sDivId].style.display='block'; } else if (document.layers) { document.layers[sDivId].display='block'; } } function hideDiv(sDivId) { if (document.getElementById) { currDiv=document.getElementById(sDivId); currDiv.style.display='none'; } else if (document.all) { document.all[sDivId].style.display='none'; } else if (document.layers) { document.layers[sDivId].display='none'; } }