﻿function rs(n, u, w, h, r, s, x) {
    var left = (screen.width - w) / 2;
    var top = (screen.height - h) / 2;
    var params = '';

    params += 'left=' + left;
    params += ',top=' + top;
    params += ',width=' + w;
    params += ',height=' + h;
    params += ',directories=no';
    params += ',fullscreen=no';
    params += ',location=no';
    params += ',menubar=no';
    params += ',resizable=' + r;
    params += ',scrollbars=' + s;
    params += ',status=' + x;
    params += ',titlebar=no';
    params += ',toolbar=no';

    remote = window.open(u, n, params);

    if (remote != null) {
        if (remote.opener == null) {
            remote.opener = self;
        }
    }
    remote.focus();

    if (x == 1) {
        return remote;
    }
}

function expand(param) {
    param.style.display = (param.style.display == "none") ? "" : "none";
}
