function _nscNewWindow(url) {
    var winNew;
    winNew = window.open(url,'name');
    if( window.focus ) {
        winNew.focus()
    }
}

function _nscWindow(url,name,h,w)
{
    // fudge factors for window decoration space.
    w += 32;
    h += 96;
    wleft = (screen.width - w) / 2;
    wtop = (screen.height - h) / 2;
    
    // create new window, and center it
    var winNew = window.open(url,
        name,
        'width=' + w + ', height=' + h + ', ' +
        'left=' + wleft + ', top=' + wtop + ', ' +
        'location=no, menubar=no, ' +
        'status=no, toolbar=no, scrollbars=no, resizable=no');

    // in case width and height are ignored
    winNew.resizeTo(w, h);

    // in case left and top are ignored
    winNew.moveTo(wleft, wtop);
    winNew.focus();

    if( window.focus ) {
        winNew.focus()
    }
}
