function CheckMultilineTextMaxLength(TxtBx, maxLength){ if(TxtBx.value.length > maxLength) { TxtBx.value = TxtBx.value.substr(0,maxLength); }}