var agent = navigator.userAgent.toLowerCase(); /** * Common popup fonction */ function popup(url,width,height,scroll,windowName) { if(url != 0){ var top=(screen.height-height)/2; var left=(screen.width-width)/2; if(!windowName) windowName = 'popupLag'; oWinPop = window.open(url, windowName, 'top='+top+',left='+left+',resizable=no,location=no,menubar=no,scrollbars='+scroll+',status=no,toolbar=no,fullscreen=no,dependent=no,width='+width+',height='+height); return false; oWinPop.focus(); } } function setupPopup(){ if(!document.getElementsByTagName) return; // Implémentation du lien d'impression if(document.getElementById("envoie")){ var monElemList=document.createElement("li"); var monLienPrint=document.createElement("a"); var monText=document.createTextNode("Print"); monLienPrint.id="imprime"; monLienPrint.href="window.print()"; monLienPrint.onclick=function(){ window.print(); return(false); } monLienPrint.appendChild(monText); monElemList.appendChild(monLienPrint); document.getElementById("envoie").parentNode.parentNode.insertBefore(monElemList, document.getElementById("envoie").parentNode); } var all_links=document.getElementsByTagName("a"); for(var i=0; i