function PopupCentrer(page) { imagePOP = new Image(); imagePOP.src = page; nbf = 0; affiche(); } function affiche() { if (imagePOP.width != 0) {setTimeout("pop()",0);return;} nbf++ if (nbf<200) {setTimeout("affiche()",20);return;} } function pop() { largeur = imagePOP.width; hauteur = imagePOP.height; ttop=(screen.height-hauteur)/2; tleft=(screen.width-largeur)/2; POPUP = window.open("","affiche","top="+ttop+",left="+tleft+",width="+largeur+",height="+hauteur+",menubar=no,scrollbars=no,statusbar=no"); POPUP.document.write(""); POPUP.document.close(); POPUP.focus(); } function PopupCentrer2(page,largeur,hauteur,options) { var top=(screen.height-hauteur)/2; var left=(screen.width-largeur)/2; window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options); }