1.
function
popup(pageURL, title, w, h,idx) {
2.
3.
var
left = (screen.width - w) / 2;
4.
var
top = (screen.height - h) / 4;
5.
var
targetWin2 = window.open(pageURL+
'&&idx='
+idx, title,
'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='
+ w +
', height='
+ h +
', top='
+ top +
', left='
+ left);
6.
}