
function maxlength2(element, maxvalue)
     {
     var q = eval("document.pooh."+element+".value.length");
     var r = q - maxvalue;
     var msg = "Sorry, you have input "+q+" characters into the "+
       "text area box you just completed. It can return no more than "+
       maxvalue+" characters to be processed. Please abbreviate "+
       "your text by at least "+r+" characters";
     if (q > maxvalue){ 
	document.pooh.Submit.disabled = true;
	alert(msg);
     }else if (q <= maxvalue){
	document.pooh.Submit.disabled = false;
     }

     }


