// JavaScript Document
$(function(){
    $('input').keydown(function(e){
        if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {   
            $(this).parents('form').submit();
            return false;
        }
    });
}); 