function carrello () { w = 800 ; h = 400 ; while(screen.width < (w + 20)) { w--; // diminuisco fino a che non e' 20 pix in meno della larghezza dello schermo } L = (screen.width) ? (screen.width-w)/2 : 0; T = (screen.height) ? (screen.height-h)/2 : 0; L = L - 5 // aggiustamento empirico, ci deve essere qualcosa che sfalsa la centratura, forse la scrollbar S = "status=yes,scrollbars=yes,resizable=yes,height="+h+",width="+w+",top="+T+",left="+L; cart = window.open ("","carrello",S) cart.opener = self return (1); }