function textCounter(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
cntfield.value = maxlimit - field.value.length;
}
//  End -->


function GetCharCount(e)
{
///Get the text from the control
varTheText = e.value
/// return the name of the control and the length of the text
 CountDisplay.innerText = e.name + " has " + parseInt(varTheText.length) 
}
