/*
 * Se encarga de que el enter se comporte bien en formularios con
 * múltiples botones de tipo submit.
 */
jQuery(document).ready(function(){
	jQuery('form input[type!=submit]').keypress(function(e){
		var code = (e.keyCode ? e.keyCode : e.which);
		if(code == 13){
			jQuery(this)
				.parents('form')
				.find('input[type=submit]:last')
				.click();
			return false;
		}
	});
});