// JavaScript Document

  // This stores the name of the div that's currently shown.
  // You should -always- show a div when you run the page for
  // the first time. 
currentDiv = "";

  // Takes a string name for the div you want to show, and shows
  // it, then stores it as the currently shown div, so the next
  // time you show a div, it can hide the current one, and show
  // the new one.
function showdiv(whichDiv) {
    // Check to see which browser the client is running
  if (document.getElementById) { // DOM3 = IE5, NS6
      // Make sure we have a current div to show.
    if(currentDiv != "") {
      document.getElementById(currentDiv).style.visibility = 'hidden';
    }
    document.getElementById(whichDiv).style.visibility = 'visible';
  } else { // We don't support anything else.
    alert("Sorry, doesn't work in IE4/Netscape4, get a newer browser. :)");
  }
  currentDiv = whichDiv;
} 