  function getObj(name) {
    /* take a close look at this code, folks!  You'll notice
     * there are no browser names hard-coded in here.  The
     * result?  It works on Netscape, IE, Konqueror, Opera,
     * and any future browsers, for that matter, as long as
     * they use one of the three following ways to access
     * elements
     */
    if (document.getElementById) {
      return document.getElementById(name);
      //this.obj = document.getElementById(name);
      //this.style = document.getElementById(name).style;
    }
    else if (document.all) {
      return document.all[name];
      //this.obj = document.all[name];
      //this.style = document.all[name].style;
    }
    else if (document.layers) {
      return getObjNN4(document,name);
      //this.obj = getObjNN4(document,name);
      //this.style = this.obj;
    }
  }

  function getObjNN4(obj,name) {
    var x = obj.layers;
    var thereturn;
    for (var i=0;i < x.length;i++) {
      if (x[i].id == name)
        thereturn = x[i];
      else if (x[i].layers.length)
        var tmp = getObjNN4(x[i],name);
      if (tmp) thereturn = tmp;
    }
    return thereturn;
  }
