function hideContent(d) {
  document.getElementById(d).style.display = "none";
}
function showContent(d) {
  document.getElementById(d).style.display = "block";
}
function reverseDisplay(d) {
  if ( document.getElementById(d).style.display == "none") { 
    document.getElementById(d).style.display = "block";
  } else { 
    document.getElementById(d).style.display = "none";
  }
}

function selectRouteMap() {
  hideContent('ProfileMap');
  showContent('RouteMap');
  hideContent('ProfileMapSelector');
  showContent('RouteMapSelector');
  return false;
}

function selectProfileMap() {
  hideContent('RouteMap');
  showContent('ProfileMap');
  hideContent('RouteMapSelector');
  showContent('ProfileMapSelector');
  return false;
}

function selectPage(elementId, page, argument) {
        f = document.getElementById(elementId);
        window.open(page + "?" + argument + "=" + f[f.selectedIndex].value, "_self");
}
 

