	PhoneValidator.prototype = new ValidatorObject();
	
	PhoneValidator.constructor = PhoneValidator;
	PhoneValidator.superclass = ValidatorObject.prototype;
	
	function PhoneValidator(id, errMsg, minLength) {
		if(arguments.length > 0)
		{
			this.init(id, errMsg, minLength);
		}
	}
	
	PhoneValidator.prototype.validate = function() {
			
			var phoneField = document.getElementById("" + this.id);
			var phoneError = document.getElementById("" + this.id + "_ERR");
			//console.warn(phoneField.value.length);
			
			if(phoneField.value.length > 10) 
			{
				phoneError.innerHTML = "";
				phoneError.visibility = "hidden";
				phoneError.style.display = "none";
				return true;
			}else
			{
				phoneError.innerHTML = this.errMsg;
				phoneError.visibility = "visible";
				phoneError.style.display = "block";
				return false;
			}
	};
