ich versteh den fehler einfach net 

[js]
<script>
function IsIE()
{
  return ( (document.all) && (window.offscreenBuffering) ) ? true : false;
}
function GetDisplayProperty($visible)
{
  ie = IsIE();
       
  if ($visible)
    return ((ie) ? "block" : "table-row");
  else
    return "none";
}
function SetDisplay($element,$mode)
{
  $element.style.display = $mode;
}
function DoByName(name,mode)
{
  ie = IsIE();
  if (!ie)
  {
    nodes = document.getElementsByName(name);
    for (i=0;i<nodes.length;i++)
    {
      node = nodes
;
      alert(node.id);
      SetDisplay(node,mode);      
      //DoByName(node.id,mode);
    }
    for (i=0;i<nodes.length;i++)
    {
      node = nodes[i];
      DoByName(node.id,mode);
    }    
  }
  else
  {
    mother = document.getElementById(name);
    if (mother.sub == null)
      return;
    children = mother.sub.split(";");
    for(i=0;i<children.length;i++)
    {
      child = document.getElementById(children[i]);
      if (child != null) SetDisplay(child,mode);
    }
    for(i=0;i<children.length;i++)
    {
      child = document.getElementById(children[i]);
      if (child != null) DoByName(child.id,mode);
    }
  }
}
function ShowName($name)
{
  DoByName($name,GetDisplayProperty(true));
}
function HideName($name)
{
  DoByName($name,GetDisplayProperty(false));
}
</script>
ShowGroup
<input type="button" value="Main" onclick="ShowName('table1')" />
<input type="button" value="1" onclick="ShowName('tr' + this.value)" />
<input type="button" value="4" onclick="ShowName('tr' + this.value)" />
<br />
HideGroup
<input type="button" value="Main" onclick="HideName('table1')" />
<input type="button" value="1" onclick="HideName('tr' + this.value)" />
<input type="button" value="4" onclick="HideName('tr' + this.value)" />
<table id="table1" sub="tr1;tr4">
    <tr id="tr1" name="table1" sub="tr2;tr3">
        <td>1</td>
    </tr>
    <tr id="tr2" name="tr1">
        <td></td>
        <td>2</td>
    </tr>
    <tr id="tr3" name="tr1">
        <td></td>
        <td>3</td>
    </tr>
    <tr id="tr4" name="table1" sub="tr5;tr6">
        <td>4</td>
    </tr>
    <tr id="tr5" name="tr4">
        <td></td>
        <td>5</td>
    </tr>
    <tr id="tr6" name="tr4">
        <td></td>
        <td>6</td>
    </tr>
</table>
[/js]
Wenn ich auf Hide Main klicke, itereriert / rekursiert der einfach net korrekt durch, weder IE noch FF. ich find einfach net warum