(function(jQuery) {
	jQuery.fn.formFocus = function() {
	if (this.length === 1) {
		return this.each(function() {
			var campos = $(this).find('input');
			for (var i = 0; i<campos.length; i++) {
				if (campos[i].type != 'hidden') {
					campos[i].focus();
					return this;
				}
			}
			
		});
	}
	return this;	
};
})(jQuery);