function openWindow(url,fileType,winName,winWidth,winHt,winLoc,winTool,winStatus,winMenu,winScroll,winResize)
{
        // Code by John Mack - LWW
        // fileType can = 'PDFPopUp' or 'HTMLPopUp'
        // set variables
        bName = navigator.appName;
        bVer = parseInt(navigator.appVersion);
        winParams = "width="+winWidth+",height="+winHt+",location="+winLoc+",toolbar="+winTool+",status="+winStatus+",menubar="+winMenu+",scrollbars="+winScroll+",resizable="+winResize;

        //alert(bName + "X" + bVer + "X");

        // if MSIE 3, just open new window, the focus method
        // throws errors on some MSIE 3 versions
        if (bName == "Microsoft Internet Explorer" && bVer <= 3) {
                window.open(url,winName,winParams);
        }
        
        // this block is for all other browsers
        else {
        // this block for NS 3+
                if (bName == "Netscape" && bVer >= 3) {
                // Netscape 3+ knows if a PDF plugin is present, IE does not
                // If the popup window will be a PDF file this block executes
                        if (fileType.indexOf("PDFPopUp") != -1) {
                                if (navigator.mimeTypes['application/pdf'].enabledPlugin != null) {
                                // open new window and focus it for PDF file
                                        fullText = window.open(url,winName,winParams);
                                        fullText.focus();
                                }
                                else {
                                // if PDF plugin not present, Acrobat will spawn automatically
                                // so no need to open a new window
                                        this.location=url;
                                }
                        }
                        else {
                        // If popup window to be HTML file, just open it in a focused new window
                                fullText = window.open(url,winName,winParams);
                                fullText.focus();
                        }
                }
                else {
                // this block for IE 4+ and misc. 4+ browsers
                // IE 4 throws errors for the focus method, need to 
                // delay focus call (via setTimeout) to prevent this error 
                // Also, the URL of the popup must be from the same
                // webserver or an 'Access Denied' error occurs
                        if (bVer > 3) {
                                fullText = window.open(url,winName,winParams);
                                setTimeout('fullText.focus()',200);
                        }
                        else {
                                window.open(url,winName,winParams);
                        }
                }
        }
}

function openLink(urlLink)
{
        if (window.parent.frames.length == 2)
        {
                window.parent.frames["submenu"].clearAllButtons();
                window.parent.frames["subbody"].location.href=urlLink;
        }
        else
        {
                window.parent.frames["body"].location.href=urlLink;
        }
        
        return true;
}