	NotBlankValidator.prototype = new ValidatorObject();
	
	NotBlankValidator.constructor = NotBlankValidator;
	NotBlankValidator.superclass = ValidatorObject.prototype;
	
	function NotBlankValidator(id, errMsg, minLength) {
		if(arguments.length > 0)
		{
			this.init(id, errMsg, minLength);
		}
	}
	
	NotBlankValidator.prototype.validate = function() {
			var inputField = document.getElementById("" + this.id);
			var fieldError = document.getElementById("" + this.id + "_ERR");
			
			
			
			/* Test to see if the value meets the minimum length 
			   (if specified as an argument)
			*/
			if(this.minLength == null) 
			{
				this.minLength = 1;
			}
			
			// Remove the whitespace at the beginning and 
			// end of the field.
			var trimmedInputFieldValue = Trim(""+inputField.value);	
			
			/* Check to see that the length is greater than zero. */
			if(trimmedInputFieldValue.length >= this.minLength)
			{
				fieldError.innerHTML = "";
				fieldError.style.visibility = "hidden";
				fieldError.style.display = "none";
				return true;
			}
			else
			{
				fieldError.innerHTML = this.errMsg;
				fieldError.style.visibility = "visible";
				fieldError.style.display = "block";
				return false;
			}
		};
	
		function Trim(str) {
			  while(str.charAt(0) == (" ") )
			  {  str = str.substring(1);
			  }
			  while(str.charAt(str.length-1) == " " )
			  {  str = str.substring(0,str.length-1);
			  }
			  return str;
		}

