Some basics again
The trigger for our validation event will be on Submission or in VBScript language onSubmit and we will perform our field validation on a form that we will call frmInput. This Function will be called when the form is submitted and we must declare what language the script is written in and ensure all of the Function is contained within <script> </script> tags.
<html>
<head>
<script language="VBScript">
<!—-Function must stay inside these tags -->
</script>
</head>
To ensure our Function will run when the form is submitted we add the onSubmit action to the Function. When frmInput is submitted our Function will run.