	// Returns true if character c is a digit 
	// (0 .. 9).
	function isDigit (c) {
		return ((c >= "0") && (c <= "9"))
	}

	function isInteger (s) {
		var i;

		// Search through string's characters one by one
		// until we find a non-numeric character.
		// When we do, return false; if we don't, return true.

		for (i = 0; i < s.length; i++) {   
			// Check that current character is number.
			var c = s.charAt(i);

			if (!isDigit(c)) return false;
		}

		// All characters are numbers.
		return true;
	}

	function ValidateNumber( target, cmt) {
		if ( !isInteger( target.value )) {		
			alert ( cmt + " must be a whole number greater than 0 without decimal point.");
			target.focus();
			return true;
		}

		return false;
	}

