﻿function toggleVisibility(id, mode) {
  var NNtype = (mode == "show") ? mode : "hidden";
  var IEtype = (mode == "show") ? "visible" : "hidden";
  var WC3type = (mode == "show") ? "visible" : "hidden";


  if (document.getElementById) 
  {
    eval("document.getElementById(id).style.visibility = \"" + WC3type + "\"");
  } 
  else 
  {
    if (document.layers) 
    {
      document.layers[id].visibility = NNtype;
    } 
    else 
    {
      if (document.all) 
      {
      eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
      }
    }
  }

}

