Usa questa funzione:
codice:
<script language="javascript">
<!--
// Variabile globale contenente l'istanza 'window' del popup corrente
var popup = null;
function ApripopUp(pag)
{
var w = 800;
var h = 350;
var pw = Math.floor((screen.width - w) / 2);
var ph = Math.floor((screen.height - h) / 2);
// Crea il popup solo se non è già stato aperto
if (!popup || popup.closed)
popup = window.open(pag, "scelte", "scrollbars=yes, toolbar=no, width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw);
// Attiva il popup (portalo in primo piano)
if (popup) popup.focus();
}
//-->
</script>
da richiamare così: