var isNS4 = document.layers?1:0;
var isIE4 = document.all?1:0;
var isNS6 = document.getElementById&&!document.all?1:0;

function toggleVis(id) {
  var thename;
  var thing;
  var theresult;
  var unhidden = false;

  thename = "msg-" + id;
  thing = document.getElementById(thename);
  if (thing != null) {
    if (thing.style.display == '') {
      thing.style.display = 'none';
    } else {
      thing.style.display = '';
      unhidden = true;
    }
  }
  thename = "info-" + id;
  thing = document.getElementById(thename);
  if (thing != null) {
    if (thing.style.display == '') {
      thing.style.display = 'none';
    } else {
      thing.style.display = '';
    }
  }
  thename = "line-" + id;
  thing = document.getElementById(thename);
  if (thing != null) {
    if (thing.style.display == '') {
      thing.style.display = 'none';
    } else {
      thing.style.display = '';
      unhidden = true;
    }
  }
}

function simLinkOn(obj) {
  obj.style.textDecoration='underline';
  if (document.all) {
    obj.style.cursor='hand';
  } else {
    obj.style.cursor='pointer';
  }

}

function simLinkOff(obj) {
  obj.style.textDecoration='none';
  obj.style.cursor='auto';
}
