<!-- hide script from old browsers

//-----------------------------------
//  SHARED.JS
//-----------------------------------

//Place shared functions here

//Pass an html textarea object to this function and it will trim
//the text in the control to maxLen (can be used to simulate an html
//input controls maxlength attribute).
function trimTextareaInputToMaxLength(textareaObj, maxLen)
{
  if (textareaObj.value.length > maxLen){
    textareaObj.value= textareaObj.value.substring(0, maxLen);
  }
}

// end hiding script from old browsers -->

