jQuery.fn.autocompleteForm = function( options )
{
	var defaults =
	{
		inputs: "input[type='text']",
		url:	'/autocomplete'
	};
	jQuery.extend( defaults, options );

	return this.each( function()
	{
		var $inputs = jQuery( defaults.inputs, jQuery(this) );

		$inputs.each( function()
		{
			$input = jQuery(this);
			var nombre = $input.attr('name');
			$input.autocomplete( defaults.url,
			{
				extraParams:
				{
					name: function()
					{
						return nombre;
					}
				}
			});
		});
	});
}
