 /**
  - $Archive: /Development/Web/ARCWeb3/Main/Development/WebApp/WebRoot/js/showLayer.js $
  - $Revision: 206141 $
  - $Date: 2006-01-13 17:16:39 +0000 (Fri, 13 Jan 2006) $
  -
  - Project     : ARC Web
  - Author      : Richard Heath
  - Description : The functions that produce the help popups
  -
  - (c) 2005 U.S. National Archives and Records Administration
  -
  - Modification History:
  -
  - RCH  24/08/05 Initial development.
  -
  */
  
/** 
 * Create a popup window suitable for displaying a help page.
 *
 * @param url the url to use for the content of the popup
 * @param target the name of the popup.
 */
function definePopup(url, target) 
{
   features = 'toolbar=1,location=0,status=1,scrollbars=1,resizable=1,width=560,height=400';
   var theWindow = window.open(url, target, features);
   theWindow.focus();
   return theWindow;
}

/**
 * Create a popup window based on the content of the given hyperlink
 *   
 * @param src the hyperlink from which to grab the info
 */
function createPopup(src) 
{
   definePopup(src.getAttribute('href'), src.getAttribute('target') || '_blank');
   return;
}
  