// generic functions requiring a FORM element // written by JAS (of CTSI) - please do not steal
// include stringDataValidation.js before this file to avoid errors


function checkTextAreaSize(frmElmt,intMaxLen,blnAlert) {
	//expects valid TEXTAREA form element for frmElmt parameter
	var intCurrLen = frmElmt.value.length;
	if (intCurrLen > intMaxLen) {
		if (blnAlert) {
			alert ('Please limit your text description to ' + intMaxLen.toString() + ' characters.\n' +
				'Your current text consists of ' + intCurrLen.toString() + ' characters.');
			frmElmt.focus();
		}	
		return false;
	}
	return true;	
}
