MyRGValidatorClass = function(element) {
	if(element == null){
		this.valid = false;
		return;
	}
	this.valid = true;
	this.element = element; //FinalTrim(element);
	this.useOtherCaracteres = true;
}
MyRGValidatorClass.prototype.RGIsEmpty = function() {
	if(this.valid){
		if(this.element == ''){
			return true;
		}else{
			if(!this.useOtherCaracteres){
				var intSize = this.element.length;
				for(var j=0; j<intSize; j++){
					var currentVal = this.element.charAt(j);
					if(currentVal == '\t' || currentVal == '\n'){
						return true;	
					}				
				}		
				return false;
			}else{
				return false;	
			}
		}
	}
}
MyRGValidatorClass.prototype.RGIsNumber = function() {
	if(this.valid){
		if(Number(this.element)!=Number.NaN){
			return true;
		}else{
			return false;
		}
	}
}
MyRGValidatorClass.prototype.RGIsEmail = function() {
	if(this.valid){
		if(this.RGIsEmpty(this.element)){
			return false;
		}		
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(this.element)){			
			return true;
		}else {
			return false;
		}
	}
}
