function countit(){ var formcontent=document.wordcount.wordcount2.value formcontent=formcontent.split(" ") document.wordcount.wordcount3.value=formcontent.length } function countchar(what){ formcontent=document.wordcount.wordcount2.value document.wordcount.charcount.value=formcontent.length } ?