﻿function fnTextAreaTextLength(oForm, oObject, iMaxLength) {
	var iLength = oObject.value.length;
	oForm.xfrmCharsLeft.value = iMaxLength - iLength
}

function fnTextAreaMaxLength(oForm, oObject, iMaxLength)	{
	sString = oObject.value
	if (sString.length > iMaxLength) {
		oObject.value = sString.substring(0, iMaxLength);
	}
	fnTextAreaTextLength(oForm, oObject, iMaxLength);
}
