var 
    ua      = navigator.userAgent,
    isOpera = ua.toLowerCase().indexOf('opera') != -1,
    isIE    = (document.all && !isOpera)
;
function fsopen(url, wname) {
    var options = {
        toolbar     : 0,
        directories : 0,
        status      : 0,
        menubar     : 0,
        location    : 0,
        scrollbars  : 0
    };
    if (isIE) {
        options.fullscreen = 1;
    } else {
        options.width  = screen.availWidth;
        options.height = screen.availHeight;
        options.left = options.screenX = screen.availLeft;
        options.top = options.screenY = screen.availTop;
    }

    var opts = [];
    for(var i in options) opts.push( i+"="+options[i] );
    opts = opts.join(',');
    window.open(url, wname, opts);
}
