$(document).ready(function () {
    $('a.button').click(function () {
        this.blur();
    });

    $('input').keydown(function(e){
        if (e.keyCode == 13) {
            $(this).parents('form').submit();
            return false;
        }
    });
});

