//
//  @(#)gui8fa:popup.js 2.4 3/27/09 10:24:36
//
//  Copyright (c) 2008.  CSF Corporation.  All rights reserved.
//

/*
** Displays a popup when someone clicks on a number in the vanity column
** of a avails results display.  This will show other spellings for the
** number.
*/
function DoSpellingPopup(tn, vanity, tdigits)
{
  values = new Array();

  values['tn'] = tn;
  values['vanity'] = vanity;
  values['tdigits'] = tdigits;

  url = 'spell.php';
  popupName = 'SpellPopup';
  popupTitle = '800ForAll Vanity Spelling';

  Popup8fa(url, popupName, popupTitle, values);
  return false;
}

/*
** Displays a popup when someone clicks on a number in the number column
** of a avails results display.  This will show our complete WRS history
** for the number.  Only the local database will be checked, so only data
** for the last year will be displayed.
*/
function DoHistoryPopup(tn)
{
  npa = tn.substr(0, 3);
  telnumber = tn.substr(3);

  values = new Array();

  values['npa'] = npa;
  values['telnumber'] = telnumber;

  url = 'history.php';
  popupName = 'HistoryPopup';
  popupTitle = '800ForAll Number History';

  Popup8fa(url, popupName, popupTitle, values);
  return false;
}
