<!--
// Script to count number of words submitted in a form field.  If over limit,
// then popup a little warning to the user.

function countit(fldobj,max)
{
var count=0
var len=0
var formcontent=fldobj.value // grab the text from the textarea
formcontent=formcontent.split(" ") // split the words into an array
for(i=0;i<formcontent.length;i++)
{
if(formcontent[i]=="") // Count the number of spaces or nulls
{
count++
}
}
len=formcontent.length-count // subtract spaces or nulls from the length
window.status="You have entered "+len+" words."
if(len>max)
//{alert(max+" is the max!")}
{alert("Sorry, please limit your entry to "+max+" words.  Your entry currently contains "+len+" words.")}
}

-->