<scriptlanguage="javascript"type="text/javascript"> /* Visit http://www.yaldex.com/
for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin var
submitcount=0; function
checkSubmit(){
function
wordCounter(field,
countfield,
maxlimit){ wordcounter=0; for(x=0;x<field.value.length;x++){ if(field.value.charAt(x)==" "&&
field.value.charAt(x-1)!=" "){wordcounter++}// Counts the spaces while
ignoring double spaces, usually one in between each word. if(wordcounter
>250){field.value=
field.value.substring(0,x);} else{countfield.value=
maxlimit -
wordcounter;} } }
function
textCounter(field,
countfield,
maxlimit){ if(field.value.length>
maxlimit) {field.value=
field.value.substring(0,
maxlimit);} else {countfield.value=
maxlimit -
field.value.length;} } // End --> </script> <FORMNAME=Surv> <TABLEBORDER="0"CELLSPACING="0"CELLPADDING="3"width=550>
<tr><tdvalign="top"> <fontcolor="000000"size="2"face="verdana,
helvetica, arial">In
100 <b>words</b>
or less, why do you (or would you) like living on the coast?</font><fontcolor="ff0000"size="2"face="verdana,
helvetica, arial">*</font> <tdvalign="top"><textareaname="Q3367"cols="40"rows="5"wrap="hard"onKeyDown="wordCounter(this.form.Q3367,this.form.remLen,100);"onKeyUp="wordCounter(this.form.Q3367,this.form.remLen,100);"></textarea> <br>Words
remaining: <inputtype=boxreadonlyname=remLensize=3value=100></td></tr>
<tr><tdcolspan=2><hrwidth=80%></td></tr>
<tr><tdvalign="top"> <fontcolor="000000"size="2"face="verdana,
helvetica, arial">In
100 <b>characters</b>
or less, why do you (or would you) like living on the coast?</font><fontcolor="ff0000"size="2"face="verdana,
helvetica, arial">*</font> <tdvalign="top"> <textareaname="Q336"cols="40"rows="5"wrap="hard"onKeyDown="textCounter(this.form.Q336,this.form.remLentext,100);"onKeyUp="textCounter(this.form.Q336,this.form.remLentext,100);"></textarea> <br>Characters
remaining: <inputtype=boxreadonlyname=remLentextsize=3value=100> </td></tr>
</TABLE>