
if(typeof Z1RHELMETS == 'undefined') {
	Z1RHELMETS = {};
}

/**
 * Model
 * @author Ebobbitt
 * @classDescription This is the Model class for the Z1R Helmets site.
 */
(function() {
	// Model Constructor
	Z1RHELMETS.Model = function() {
		this.get_form_fields();
	};
	
	// Setup Prototype Object Reference
	var Model = Z1RHELMETS.Model.prototype;
	
	// Properties
	Model.form_fields = [];
	
	Model.get_form_fields = function() {
		$(':input').each(function() {
			if(this.id) {
				Model.form_fields.push({name: this.id, value: this.value});
			}
		});
	};
	 
})();

