magari.... è quello che già sto facendo ma nonfunge

Codice PHP:
<textarea cols='50' value='old_tempo_libero' rows='5' name='new_tempo_libero' onkeydown='LimitInput(this.form.new_tempo_libero,this.form.areacount,500);' onkeyup='LimitInput(this.form.new_tempo_libero,this.form.areacount,500);'>
</
textarea
questo è il codice che sto usando.... bho!!!