
/*  -TWK

    This file is used to track a single instance of the global 
    help window that is used for displaying RoboHelp.
*/


var  globalHelpWindow;  // Private


function getHelpWindow()
{
   return globalHelpWindow;
}

function setHelpWindow(win)
{
    globalHelpWindow = win;
}


// Update the help window with a specific help URL
function openHelp(strHelpURL)
{
    // Remove the existing help window if it's there.  
    try
    {
        globalHelpWindow.close();
    }
    catch(error)
    {
        // This might fail if the window does not exist.
    }
     
    // Launch the help viewer window.
    globalHelpWindow = window.open(strHelpURL, 'VIHELP', 'left=25,top=100,width=750,height=450,resizable=yes,status=no,toolbar=no,menubar=no,location=no');         
    globalHelpWindow.focus();
}


