/**
 * Format zip code
 *
 * @param		sElement			Element name
 */
Validation.prototype.Zip=function (sElement) {
	this.setProperty(sElement,"datatype","string");
	this.setProperty(sElement,"filter","[a-zA-Z0-9]");
	this.setProperty(sElement,"mask","a9a9a9");
	this.setProperty(sElement,"uppercase",true);
}

/**
 * Format phone number
 *
 * @param		sElement			Element name
 */
Validation.prototype.Phone=function (sElement) {
	this.setProperty(sElement,"datatype","string");
	this.setProperty(sElement,"filter","[0-9\-\(\)]");
	this.setProperty(sElement,"mask","(999)999-9999");
}

/**
 * Format email
 *
 * @param		sElement			Element name
 */
Validation.prototype.Email=function (sElement) {
	this.setProperty(sElement,"datatype","string");
	this.setProperty(sElement,"regexp",/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/);
}

