﻿// in a form, a CR normally sends the entered values.
// this script makes CR only jump to the next field of the form.
// Thus, the form can only be sent by directly activating the 'send' button.
function jumpNextOnEnter(elmnt,ev){
  if (ev.keyCode==13){ // keyCode 13 = carriage return
    next=elmnt.tabIndex
    if (next<document.forms[0].elements.length){
      document.forms[0].elements[next].focus()
    }
    return false;
  } else {
    return true;
  }
}
