I have a very simple form that I want to verify if the fields are filled out. On submit, I have a vbscript that sends the form contents via email to a mail box (thus the asp extension) but the following javascript validation does nothing. Any ideas?

function formValidator(theForm)
{
if (theForm.addrStreet.value == "")
{
alert("You must enter an address.");
theForm.addrStreet.focus();
return (false);
}

The form call is as follows:

<form method="post" action="form.asp" onsubmit="return formValidator(this)">