<SCRIPT><br>
function checkContent(){
if(document.comment.username.value.length==0){
alert("请输入评论者,谢谢!");
document.comment.username.focus();
return flase;
}
if (document.comment.content.value.length==0) {
alert("留言内容不能为空!");
document.comment.content.focus();
return false;
}
if (document.comment.content.value.length>500) {
alert("留言内容不能超过500字!");
document.comment.content.focus();
return false;
}
return true;
}
<br></script>