<!--
// toggles the display style for given obejct and objects within given obejct
function toggleVisible(ObjName, ObjPrefix)
{
  var ObjValue= document.getElementById(ObjName);

  // if prefix is set, then hide all other objects with that prefix
  if (ObjPrefix!="")
  {
    // get the list of objects with the same tag as applied object
    var ObjList= document.getElementsByTagName(ObjValue.tagName);

    for (var i = 0; i < ObjList.length; i++)
    {
      // if id is set and it is not the same object
      if ((ObjList[i].id != "") && (ObjList[i] != ObjValue))
      {
        var ObjIDName= String(ObjList[i].id);

        // is this object within the prefix ?
        if (ObjIDName.substring(0, ObjPrefix.length) == ObjPrefix)
        {
          if (ObjList[i].style.display != "none")
            ObjList[i].style.display = "none";
        }
      }
    }
  }

  // toggle visibility for selected object
  if (ObjValue.style.display == "none")
    ObjValue.style.display = "";
  else
    ObjValue.style.display = "none";
}
-->

