function resize(large,haut){ if (!document.all&&!document.layers) return sw=screen.width sh=screen.height w=(sw>large)?large:sw h=(sh>haut)?haut:sh posx=(sw>large)?(sw-large)/2:0 posy=(sh>haut)?(sh-haut)/2:0 //alert("posx="+posx+" posy="+posy+" w="+w+" h="+h) window.resizeTo(w,h) window.moveTo(posx,posy) }