// Used to prevent the enter key from being pressed to submit the form.
// Source: http://javascript.internet.com/forms/return-key-disable.html
function checkCR(evt) {
    var evt  = (evt) ? evt : ((event) ? event : null);
    var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);

    if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
}

// Make sure that pressing the enter key does not submit the form for this web page.
document.onkeypress = checkCR;
