
function showPopup(pURL) {
  var cWidth= 550;
  var cHeight= 350;
  var cParams= "status=0,toolbar=0,scrollbars=1,location=0,menu=0,resizable=1";
 
  var width = (showPopup.arguments[1] > 0) ? showPopup.arguments[1] : cWidth; 
  var height = (showPopup.arguments[2] > 0) ? showPopup.arguments[2] : cHeight; 
  var params = (showPopup.arguments[3]) ? showPopup.arguments[3] : cParams; 
  popupWindow = window.open(pURL,
                            "popupWindow",
                            "width=" + width + "," +
                            "height=" + height + "," +
                            params); 
  if (popupWindow.focus) popupWindow.focus();
}

function showCityMaps(pURL) {
  var cWidth= 600;
  var cHeight= 550;
  var cParams= "status=0,toolbar=0,scrollbars=1,location=0,menu=0,resizable=1";
 
  var width = (showCityMaps.arguments[1] > 0) ? showCityMaps.arguments[1] : cWidth; 
  var height = (showCityMaps.arguments[2] > 0) ? showCityMaps.arguments[2] : cHeight; 
  var params = (showCityMaps.arguments[3]) ? showCityMaps.arguments[3] : cParams; 
  popupWindow = window.open(pURL,
                            "popupWindow",
                            "width=" + width + "," +
                            "height=" + height + "," +
                            params); 
  if (popupWindow.focus) popupWindow.focus();
}

function switchPage(pURL) {
  var cWidth= 420;
  var cHeight= 625;

  var width = (switchPage.arguments[1] > 0) ? switchPage.arguments[1] : cWidth; 
  var height = (switchPage.arguments[2] > 0) ? switchPage.arguments[2] : cHeight; 
  window.resizeTo(width, height);
  window.location.href= pURL;
}

function switchSite(pURL) {
  opener.location= pURL;
  close();
}

function deletePopupClose(status) {
  if (status == 1) opener.location= "$yesURL";
  window.close();
}                                                                                                              
function processGoTo() {
  var value= document.goToForm.GoTo.options[
                            document.goToForm.GoTo.selectedIndex].value;
  if (value != '../travel_agent.htm') {
    window.open(value, '_top');
  }
  else {
    showPopup(value, 424, 280, 
              "status=0,toolbar=0,location=0,menu=0,resizable=1,scrollbars=0");
  }
}

function fsCategory(categoryName) {
  showPopup("/us/rail/fares_schedules/fare_categories/" + categoryName + ".htm",
            380, 350, 
            "status=1,toolbar=0,location=0,menu=1,resizable=1,scrollbars=1");
}

