/* ------------------------------------------------------------- */
/* name:    dhtml.js                                             */
/* purpose: DHTML utility functions                              */
/* ------------------------------------------------------------- */
function showLayer(thisLayer) {
  hideLayer();
  toggleDisplay(thisLayer);
  oldLayer = thisLayer;
}
/* ------------------------------------------------------------- */
function hideLayer() {
  if (oldLayer != "") {
    toggleDisplay(oldLayer);
    oldLayer = "";
  }
}
/* ------------------------------------------------------------- */
function showPhase(thisPhase) {
  hidePhase();
  toggleDisplay(thisPhase);
  oldPhase = thisPhase;
}
/* ------------------------------------------------------------- */
function hidePhase() {
  if (oldPhase != "") {
    toggleDisplay(oldPhase);
    oldPhase = "";
  }
}
/* ------------------------------------------------------------- */
function toggleDisplay(content) {
  if (document.getElementById) {
    thisContent = document.getElementById(content).style;
    if (thisContent.display == "block") {
      thisContent.display = "none";
    } else {
      thisContent.display = "block";
    }
    return false;
  } else {
    return true;
  }
}
