//弹出窗口函数

var popUpWin=0;  

var width=700;  //窗口宽度
var height=400;  //窗口高度
var center=true;  //是否居中显示，如是则left和top将不起作用
var left=200;
var top=200;

var True=true;
var False=false;

if (center) {
    left=(screen.width-width)/2;
    top=(screen.height-height)/2;
}

function Popup(URLStr, popuped)
{
    if (popuped) {
        if(popUpWin)
        {
            if(!popUpWin.closed) 
                popUpWin.close();
        }
        popUpWin = window.open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no'+
                               ',menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+
                               ',height='+height+',left='+left+', top='+top+',screenX='+left+
                               ',screenY='+top+'');

        return false;
    } else {
        return true;
    }
}

