
function disableButtons() {
    var theForm = document.forms['aspnetForm'];
    if (!theForm) {
        theForm = document.aspnetForm;
    }
    //alert(theForm.elements.length);
    for (var i = 0; i < theForm.elements.length; i++) {
        if (theForm.elements[i].type.toLowerCase() == "submit") {
            theForm.elements[i].style.visibility = "hidden";
            //theForm.elements[i].disabled = true;
            //alert(theForm.elements[i].value);
        }
    }
    return true;
}
  
  
  function ClientValidateComment(sender, args){
    if(args.Value.length > 2000)
      args.IsValid = false;
    else
      args.IsValid = true;
  }
  
