<!--- This
javascript will check for form errors --->
<SCRIPT language="JavaScript">
function checkForm(){
theform=document.contact
// Check that the form has a full name specified in the field called "name"
if (theform.name.value==""){
alert("Please provide your name.")
theform.name.focus()
return false;
}
// Check that the form has an email specified in the field called "email"
if (theform.email.value==""){
alert("Please provide your email address.")
theform.email.focus()
return false;
}
return true;
}
</SCRIPT>
<form name="contact" action="formaction.cfm" method="post" onsubmit='return
checkForm();'>
<p>Name:
<input name="name" type="text" id="name" size="30">
<br>
Email Address:
<input name="email" type="text" id="email" size="30">
< /p>
<p>
<input type="submit" name="Submit" value="Submit">
< /p>
</form>

