	NotBlankValidator.prototype = new ValidatorObject();
	
	NotBlankValidator.constructor = NotBlankValidator;
	NotBlankValidator.superclass = ValidatorObject.prototype;
	
	function NotBlankValidator(defaultErrorMsg) {
		if(arguments.length > 0)
		{
			this.init(defaultErrorMsg);
		}
	}

    NotBlankValidator.prototype.isValid = function(id) {
        // console.log("BEGIN: NotBlankValidator.isValid()");
        	var inputField = document.getElementById(id);
			
			// Remove the whitespace at the beginning and 
			// end of the field.
			var trimmedInputFieldValue = Trim(""+inputField.value);	


        // console.log("END: NotBlankValidator.isValid()");
            /* Check to see that the length is greater than zero. */
            return (trimmedInputFieldValue.length > 0);
    }


		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;
		}

