function maxlength_run()
{
/*
   $("textarea[maxlength]").each(function(){
     var max  = this.getAttribute('maxlength');
     var name  = this.getAttribute('name');
     var html_counter = "<div><span id=\"" + name + "counter\">0</span>/" + max +"</div>";
      $(this).after(html_counter);
      this.relatedElement = $("#"+name+"counter");

      if(this.value.length == 0)
		currentLength = '0';
	  else
		currentLength = this.value.length;

      this.relatedElement.html(currentLength);
    });


     // check the max chars
     $("textarea[maxlength]").keyup(function(){
       var maxLength     = this.getAttribute('maxlength');
       var currentLength = this.value.length;

       if(currentLength >= maxLength)
       {
         this.relatedElement.className = 'toomuch';
         this.value = this.value.substring(0, maxLength);
       }
       else
       {
         this.relatedElement.className = '';
       }

		if(this.value.length == 0)
			currentLength = '0';
		else
			currentLength = this.value.length;
		
        this.relatedElement.html(currentLength);
     });
*/

} 