﻿// Contains all the utility functions and variables

var objWin = null;

function fOpenHelpPDF(strFileName)
{
    switch(navigator.appName)
    {
        case "Netscape":
            windowwidth = window.innerWidth;
            windowheight = window.innerHeight;
            break;
        case "Microsoft Internet Explorer":
            windowwidth = document.body.clientWidth;
            windowheight = document.body.clientHeight;
            
            break;
        default:
            windowwidth = 350;
            windowheight = 250;
            break;
    }
    
    
    if (objWin == null)
    {
        objWin = window.open('popup.htm','mywin','left=0,top=0,width=' + windowwidth+ ',height=' + windowheight + ',toolbar=0,resizable=1,status=0,directories=0,menubar=0,location=0');
//        objWin.moveTo(0,0);
    }

    objWin.document.frames['frmContent'].location.href = strFileName;
    objWin.focus();
}

function fCleanUp()
{
    if (objWin != null)
    {
        objWin.close();
        objWin = null;
    }
}