﻿// capture whenever enter is pressed and focus on the chosen button
function captureEnterKey(butObj, e) {
    var evt = e || window.event;
    var key = evt.which || evt.keyCode;
    if (key == 13) {
        butObj.focus();
    }
};