<SCRIPT type="text/javascript">
var forbidden = new Array ("v[!i1]agra", "xen[!i1]c[o0@]l",
"c[i!1]al[i!1]s", "to", "forbid", "a", "word", "in","form","Here");
function checkForm (form){
var input = form.textarea.value;
var fail = false;
for (var i=0; i < forbidden.length; i++) {
Regex=eval('/'+forbidden+'/i');
if (Regex.test(input)){
fail = true; break;
}
}
if (fail) {
alert("hey, you can't put that here!")
return false; }
return true;
}
</SCRIPT>
<FORM name="myform" method="post" action="" onSubmit="return
checkForm(this);">
<TEXTAREA NAME="textarea" COLS="40" ROWS="5"></TEXTAREA>
<INPUT TYPE="submit">
</FORM>