javascript/general.js
// Must define variable maxChars & maxCharsError in the HTML tag or via javascript

Must define variable maxChars & maxCharsError in the HTML tag or via javascript
Must define variable maxChars & maxCharsError in the HTML tag or via javascript
function checkMaxChars(obj) {
		if (obj.value.length >= obj.maxChars) {
			alert(obj.maxCharsError + ': ' + obj.maxChars);
			obj.value = obj.value.substr(0, obj.maxChars);
			return false;
		}
		return true;
	}
function checkMaxChars ( obj ) { if ( obj . value . length >= obj . maxChars ) { alert ( obj . maxCharsError + ': ' + obj . maxChars ) ; obj . value = obj . value . substr ( 0 , obj . maxChars ) ; return false ; } return true ; }
Must define variable maxChars & maxCharsError in the HTML tag or via javascript
Must define variable maxChars & maxCharsError in the HTML tag or via javascript
// current key is not counted in length yet
