Right, But you don't have to put it inside a document.write to write it to the client side, if I put in:
-----------------------------------------------------
<html>
<head>
<title>My Form Test</title>
<script language="javascript">
<!--
function checkForm(form){
if(form.name.value == ""

{
alert("Enter your information"

;
form.name.focus();
return false;
}
if(form.name.value.length < 3){
alert("You must enter at least 3 characters"

;
form.name.focus();
return false;
}
else{
return true;
}
}
-->
</script>
</head>
<body bgcolor='white' text='black'>
<br>
<DD><DD>
<table border=0><tr><td>
<form onSubmit='return checkForm(this)' method='post' action='nextpage.asp'>
Enter Your Name:<BR>
<input type='text' name='name'><BR>
<input type='submit' value='Submit'>
</form>
</td></tr></table>
</body>
</html>
----------------------------------------------------
that works fine. Why would I want to use the document.write?