function ClassValid()
{	this.string=function(ele){ return (ele.value.length > 0);	}
	this.checkBox=function(ele){ return ele.checked; }
	this.selection=function(ele){ return (ele.selectedIndex > 0); }
	this.email=function(ele){ return new RegExp('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$').test(ele.value); }
	this.blank=function(ele){ return new RegExp('^[A-Za-z0-9_]+$').test(ele.value);}
	this.url=function(ele){ return new RegExp('^(news|telnet|nttp|file|http|ftp|https)://(.*)+$').test(ele.value); }
	this.number=function(ele){ return new RegExp('^-?[0-9]*\\.?[0-9]*$').test(ele.value); }
	this.integer=function(ele){ return new RegExp('^-?[0-9]*$').test(ele.value); }
	this.nombre=function(ele){ return 1; }
	this.file =function(ele,ext){return new RegExp('(.*)\.['+ext+']$').test(ele.value); }
}
