//====================================
// DDL Popup
// From Dawson's DHTML Library
//
// Version: 1.04
//
// Author:   Dawson Cowals
// Created:  04-14-2003
// Modified: 08-18-2003
//
//====================================

// GLOBALS
var popup;

/*
 * openPopup is a popup window function for use by help and faq pages.
 * Contributed by Dawson 03-05-2002.
 *
 * URL         -- URL of document to load in the window
 * name        -- name for the window (for html reference)
 * width       -- window width in pixels
 * height      -- window height in pixels
 * resize      -- allow window to be resized
 * scroll      -- show scroll bars in window
 * status      -- show status bar in window
 * tools       -- show tool bar in window
 */
function openPopup(URL,name,width,height,resize,scroll,status,tools,location) {
  if (popup != null && !popup.closed) {
     popup.close();
  }

  var settings;
  settings  = "width="+width+",height="+height+",resizable="+resize+",";
  settings += "scrollbars="+scroll+",status="+status+",toolbar="+tools+",location="+location;

  popup=window.open(URL, name, settings);
  popup.focus();
}

//function download(filePath){
//    myTempWindow = window.open(filePath,’’,’left=10000,screenX=10000’);
//    myTempWindow.document.execCommand(’SaveAs’,null,filePath);
//    myTempWindow.close();
//}