1 function openWindow(url,windowName,width,height){
2 var x = parseInt(screen.width / 2.0) - (width / 2.0);
3 var y = parseInt(screen.height / 2.0) - (height / 2.0);
4 var isMSIE= (navigator.appName == "Microsoft Internet Explorer");
5 if (isMSIE) {
6 var p = "resizable=1,location=no,scrollbars=no,width=";
7 p = p+width;
8 p = p+",height=";
9 p = p+height;
10 p = p+",left=";
11 p = p+x;
12 p = p+",top=";
13 p = p+y;
14 retval = window.open(url, windowName, p);
15 } else {
16 var win = window.open(url, "ZyiisPopup", "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=yes,modal=yes,width=" + width + ",height=" + height + ",resizable=no" );
17 eval("try { win.resizeTo(width, height); } catch(e) { }");
18 win.focus();
19 }
20 }