<!--

// core function for popping up windows
function launch(newURL, newName, newFeatures, orgName) {
        var remote = open(newURL, newName, newFeatures);
        if (remote.opener == null)
                remote.opener = window;
        remote.opener.name = orgName;
        return remote;
}

// fuction to pop up window with same size as parent window
function LaunchRemote(name, url, b, s) {
        thisRemote = launch(url,
                name,
                "channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable="+s+",scrollbars="+s+",status=0,toolbar="+b,

                "thisWindow");
        thisRemote.focus();
}

// fuction to pop up window with resizeble size
function SizeLaunchRemote(name, url, w, h, b, s) {
        thisRemote = launch(url,
                name,
                "height="+h+",width="+w+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable="+s+",scrollbars="+s+",status=0,toolbar="+b,

                "thisWindow");
        thisRemote.focus();
}

//-->
