
function checkReturnKeyPressed(evt) {

  // check if the return key was pressed

  var targetName;
  var pressedKeyCode;

  if (is_nav) {
    //Netscape
    pressedKeyCode = evt.which;
    targetName = evt.target.name;
    }
  else {
    //Microsoft
    pressedKeyCode = window.event.keyCode;
    targetName = evt.srcElement.name;
  };

  // Checking the targetName is only necessary for Nestacpe versions < 5 due to
  // the fact, that in these versions the onKeyPress event can not directly be
  // attached to a table row.
  if (pressedKeyCode == 13) {
    //Initiate Refresh
    document.forms[0].submithidden.value ='true';
    document.forms[0].submit();
  };
  return true;
}

if (is_nav && (is_major < 5)) {
   // Only necessary for Netscape versions < 5
   document.captureEvents(Event.KEYPRESS);
   document.onkeypress = checkReturnKeyPressed;
};

