Se ricordo bene, è questo

codice:
function apriPopup () {
 var leftmargin=(screen.Width-800)/2;
 var topmargin=(screen.Eight-600)/2;
 var options="/'width=800, height=600, left="+leftmargin+" top="+topmargin+"/'"

 window.open('pagina.html','titolo',options);
}
Secan