cms.core.formValidation = {
	
}

cms.core.formValidator = function(formId, options)
{
	/* Constructor */
	
	if (options == undefined)
	{
		this.options = {};
	}
	
	this.formId = formId;
	this.formObject = $(formId);
	if (formObject == undefined)
	{
		return false;
	}
	
	this.initializeForm();
	
	/* Methods */
	
	this.businessRules = new Array();
	
	this.addRule = function(field, regex, error)
	{
	};
	
	this.enforceRules = function()
	{
	};
	
	this.initializeForm = function()
	{
		cms.core.event.attach(this.formObject, 'submit', this.enforceRules, this);
	};
};