last="";
function swap(targetId) {
  if (document.getElementById(targetId)) {
    targetId_p = targetId+"p"
    if (last != targetId) {
      if (document.getElementById(last)) {
        lasttarget = document.getElementById(last);
        lasttarget.style.display="none";
      }
    }
    last = targetId;
    target = document.getElementById(targetId);
    if (target.style.display == "none") {
      target.style.display="block";
    }
    else {
      target.style.display="none";
    }
  }
}
function showMenu(page) {
  if (document.getElementById(page)) {
    lasttarget = document.getElementById(page);
    lasttarget.style.display="block";
    last = page;
  }
}
