function showHint (elem, show, hintTagName) {
  hints = elem.getElementsByClassName (hintTagName);
  hint = hints [0];
  if (show == 1) {
    hint.className = hint.className + ' shown';
  } else {
    hint.className = hint.className.replace (/ shown/, "");
  }
}

