function WindowClose()
{
  // Routine to close the current window...
  close();
  return;
}


function WindowOpen(sURL)
{
  // Routine to show a window from a link within the help page
  // based on the sURL...
  window.open (sURL,'', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=700,height=600,top=0,left=0');
}

function WindowOpen2(sURL, iWidth, iHeight)
{
  // Routine to show a window from a link within the help page
  // based on the sURL...
  window.open (sURL,'', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + iWidth + ',height=' + iHeight + ',top=0,left=0');
}

function openWindow(sURL, sName, iWidth, iHeight, iLeft, iTop)
{
  // Routine to show a window from a link within the help page
  // based on the sURL...
  window.open (sURL,sName, 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + iWidth + ',height=' + iHeight + ',top=' + iTop + ',left=' + iLeft + '\'');
}

function showImage(sURL, sBNID, sOID)
{
  // Routine to show a window from a link within the help page
  // based on the sURL...
  sURL += "?BNID=" + sBNID + "&OID=" + sOID
  window.open (sURL,'', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=700,height=600,top=0,left=0');
}

function swfSet()
{
  // Routine to load the SWF file...
  if (document.all['ctl00_txtSWF'] != undefined)
    {
        var sSWFSourceFile = document.all['ctl00_txtSWF'].value;
        var sFlashFile = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
        sFlashFile += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" '
        sFlashFile += 'id="asipics" width="275" height="151" name="asipics"> '
        sFlashFile += '<param name="movie" value="images/common/' + sSWFSourceFile + '"> '
        sFlashFile += '<param name="bgcolor" value="#FFFFFF"> '
        sFlashFile += '<embed name="FSB" src="images/common/' + sSWFSourceFile + '" '
        sFlashFile += 'quality="high" bgcolor="#FFFFFF" swLiveConnect="true" width="275" height="151" '
        sFlashFile += 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> '
        sFlashFile += '</embed></object>'
                
        if (document.all['swfBlock'] != undefined)
            document.all['swfBlock'].innerHTML = sFlashFile;
    }
}
