function countit(what){
//Character count script- by javascriptkit.com //Visit JavaScript Kit (http://javascriptkit.com) for script //Credit must stay intact for use
formcontent=what.form.charcount.value what.form.displaycount.value=formcontent.length }
Source: http://www.javascriptkit.com/script/script2/charcount.shtml