I am trying to run a Validation function that is called when the submit button is clicked. The function checks the defined restrictions on the form, and if there is an error found, sets the status variable to 1. If there are not errors, the Status variable stays a 0. this is the next if statement I have:

IF Status = "0" THEN
document.form.submit()
ELSE
return false
END IF

the return false should stop the form from submitting. This is a JavaScript function, but I thought I was the same in VBScript, but unfortunately, the form still dispalys the errors, but also submits. Does anyone know how to keep a form from not submitting?

Steve