﻿// JScript 文件
// 在屏幕中央打开一个新窗口
function OpenWindowOnScreenCenter(url, title, width, height)
{
    swidth = screen.width - width;
    sheight = screen.height - height;
    var left = swidth / 2;
    var top = sheight / 2;
    var argString = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no," +
    "width=" +width + ",height=" + height + ", top=" + top +", left=" + left;
    var newWindow =  open(url, title, argString);
    newWindow.focus();
}
