function MHGetRef(str) {
  if (document.all)
    return document.all[str];
  else
    return document.getElementById(str);
}

function MHSwitchImage(strID, strFileName) {
  var obj = MHGetRef(strID);
  if (obj == null || obj + "" == "undefined")
    return;
  obj.src = strFileName;
}

function MHTGetRef(str) {
  if (document.all)
    return document.all[str];
  else
    return document.getElementById(str);
}

function MHTSetClass(strID, strClass) {
  var obj = MHTGetRef(strID);
  if (obj != null && typeof(obj) + "" != "undefined")
    obj.className = strClass;
  var obj = MHTGetRef(strID + "_second");
  if (obj != null && typeof(obj) + "" != "undefined")
    obj.className = strClass;
}

