function giveFocus(inElementId) {
  var t = document.getElementById(inElementId);
  if (t) {
    t.focus();
  }
}
