function SubmitEnter(myfield,e) { // Checks to see if the Enter key is pressed, // in which case it runs the calculation script(s). var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if (keycode == 13) { CalcCheck(); return false; } else return true; }