﻿
function confirmHREmployeesOnlyUrl(urlText, url)
{
  // Purpose:  wrapper routine for displaying a confirmation box before allowing navigation to
  // links hosted by NEOGOV for Human Resources.  This routine is designe to be invoked from
  // custom <LinkCollectionItem> nodes on the XML configuration file, although in reality it would 
  // probably work from anywhere.  (EYang, Oct 2008)
  //
  var msg = urlText + ' are only available for current City of Berkeley employees.  If you are '
    + 'a city employee, please click \"OK\" to continue, otherwise click \"Cancel\" to be redirected '
    + 'to the previous page.';
  if(confirm(msg))
  {
    document.location = url;
  }
  
}
