function raiseTab(n)
  {
  // cycle through the three tabs/panels
  for(i=0;i<3;i++)
    {
    // create variables to represent the page elements being examined
    var curPanel = window.document.getElementById("panel"+i);
    var curTab = window.document.getElementById("tab"+i);
    if(i==n)
      {
      // if the current panel/tab being examined is the one clicked on
      // raise it to the top
      curPanel.style.zIndex = 2;
      curTab.style.zIndex = 2;
      }
    else
      {
      // otherwise, stick it at the bottom
      curPanel.style.zIndex = 0;
      curTab.style.zIndex = 0;
      }
    }
  }
