<script type='text/javascript'>
$(function(){
var inputs = $('input, select, textarea, a').not(':input[type=button],:input[type=submit], :input[type=reset], :input[type=password]');
$(inputs).bind('keydown', function (e) {
var self = $(this), form = self.parents('form:eq(0)'), focusable, next;
if (e.keyCode == 13) {
focusable = form.find('input, select, textarea, a').not(':input[type=button], :input[type=reset], :input[type=password]').filter(':visible');
next = focusable.eq(focusable.index(this) + 1);
next.focus();
e.preventDefault();
return false;
}
});
});
</script>