﻿// JScript File
// Purpose: Counts the number of characters used in the message body
//              Change the parameters in the page code calling this function
// Requires: 3 parameters - field watched, the control displaying the value, and the value start length
// I. D'Anna May 2009
function textCounter(field, countfield, maxlimit) 
{
if (field.value.length > maxlimit)
   field.value = field.value.substring(0, maxlimit);
else
   countfield.value = maxlimit - field.value.length;
}