/**
 * Ajax.Form
 * Builds/sends a request based on all elements of the given form.
 * Be sure to specify the action and method in the form tag as the request will pull from it
 * @todo may be impossible but find a way to upload images as part of the request.
 *
 */

Ajax.Form = Class.create({
	initialize: function (form, options)
	{
		var form = $(form);
		if(!form) return false;
		if(form.tagName.toLowerCase() != 'form') return false; // Only <FORM> elements can be used

		form.request(options);
	}
});
