// ------------------------------- //
// -------- Start of File -------- //
// ------------------------------- //
// ----------------------------------------------------------- // 
// JavaScript File
// Browser support: Internet Explorer, Netscape, Firefox, Chrome 
// Original Author: Douglas.Gaer@noaa.gov
// File Creation Date: 05/29/2008
// Date Last Modified: 03/17/2009
//
// Version control: 1.30
//
// Support Team:
//
// Contributors:    
// ----------------------------------------------------------- // 
// ------------- Program Description and Details ------------- // 
// ----------------------------------------------------------- // 
//
// Common JavaScript functions shared all GHLS pages  
//
// ----------------------------------------------------------- // 

function ghlsJumpAlert() {
  window.alert('You are now leaving the National Weather Service Website.\n\nThe National Weather Service provides a link to this external web page\nbecause it may contain related information of interest to you.\nThis link does not constitute an endorsement by the National Weather\nService of any information, products,or services on the external site.\n\nYou may return to the National Weather Service page by using the Back button\non your web browser.');
}

function ghlsPopUpWin(mylink, windowname)
{
  if (! window.focus)return true;
  var href;
  if (typeof(mylink) == 'string') {
    href=mylink;
  }	
  else {
    href=mylink.href;
  }
  window.open(href, windowname, 'width=400,height=150,scrollbars=yes');
  return false;
}

function ghlsPopUp(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600, height=350,left = 180,top = 20');");
}

// ----------------------------------------------------------- //
// ------------------------------- //
// --------- End of File --------- //
// ------------------------------- //
