/* Ouverture pop-up */ function OpenWindowComp(chemin, h, w, titre, resize, toolbar, menubar, scrollbars, directories, status) { var postop = (screen.height-h) / 2; var posleft = (screen.width-w) / 2; var args="height="+h+",width="+w+",top="+postop+",left="+posleft+",resizable="+resize+",scrollbars="+scrollbars+",toolbar="+toolbar+",directories="+directories+",status="+status+",menubar="+menubar+""; if (typeof(popupWin) != 'object'){ popupWin = window.open(chemin, titre, args); } else { if (!popupWin.closed){ try{ popupWin.location.href = chemin; } catch(exception){ popupWin.close(); } } else { popupWin = window.open(chemin, titre, args); } } try { popupWin.focus(); } catch(exception){} } function OpenWindowCompSRUB(chemin,langue){ if(langue=='EN'){chemin=chemin[0];} if(langue=='FR'){chemin=chemin[1];} if(langue=='LCL'){chemin=chemin[2];} var postop=(screen.height-600)/2; var posleft=(screen.width-850)/2; var args="height=600,width=850,top="+postop+",left="+posleft+",resizable=no,scrollbars=yes,toolbar=no,directories=no,status=no,menubar=yes"; if(typeof(popupWin)!='object'){ popupWin=window.open(chemin,'Aide',args); } else{ if(!popupWin.closed){ try{ popupWin.location.href = chemin; } catch(exception){ popupWin.close(); } } else{ popupWin=window.open(chemin,'Aide',args); } } try{ popupWin.focus(); } catch(exception){} }