try this. it's not as pretty but for such a small form it works good. I change the form tag to use the event onSubmit and added a little functionality to the function.
<html>
<head>
<script language="javascript">
function checkLength() {
var str = document.formComments.comments.value;
strArray = str.split(" "

; //split at first space
strChk = strArray[0]; // variable declare not needed but good for debug reasons
if (strChk.length > 25) { // check length of first array element > then 25 give alert
alert("why are you doing this to my site?"

;
document.formComments.comments.focus();
return false;
} else {
return true;
}
}
</script>
</head>
<body>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr><form method="POST" action="addComment.asp?id=<% =intPollID %>" id="comments" name="formComments" onSubmit="return checkLength()">
<td align="left" class="baseFont12" bgcolor="#3366CC"><br><font color="#FFFFFF">Tell us what you think:</font></td></tr>
<tr><td bgcolor="#3366CC"><img src="dot_clear.gif" width="20" height="0"><font color="#FFFFFF">Name:<input type="text" name="author" size="20" tabindex="1"> </td></tr>
<tr><td bgcolor="#3366CC"><img src="dot_clear.gif" width="20" height="0"><font color="#FFFFFF">Comments:<input type="text" name="comments" size="60" tabindex="2">
<br><center><input type="submit" Value="WRITE YOUR COMMENT" name="B1"><br> </center> </td></tr></form>
</table>
</body>
</html> I dare to learn more
admin@onpntwebdesigns.com