if (window != top) {
  if (location.replace)
    top.location.replace(location.href);
  else
    top.location.href = location.href;
}
function getElem(evt) {
  evt = evt ? evt : (window.event ? window.event : null);
  if (evt) {
    var elem = evt.currentTarget;
    return elem;
  }
}
function setHilite(evt) {
  var elem = getElem(evt);
  if (elem) {
    elem.style.backgroundColor = "#00c000";
  }
}
function unsetHilite(evt) {
  var elem = getElem(evt);
  if (elem) {
    elem.style.backgroundColor = "#008000";
    elem.style.borderStyle = "outset";
  }
}
function press(evt) {
  var elem = getElem(evt);
  if (elem)
    elem.style.borderStyle = "inset";
}
