Using javascript to submit a SPRY validated form

I have a basic html form and some spry validation to check for proper email addresses and phone numbers. Everything works fine when i try to submit the form with a “standard” button like this:


<input type="submit" name="button" id="button" value="Submit" />

but when i use something like this:


<script language="javascript" type="text/javascript">
function submitForm()
{
 document.forms['myForm'].submit();
}
</script>
<input type="button2" name="Submit" id="button2" value="Submit" onclick="submitForm();" />

Then it submits the form BUT doesn’t check for validation any more… why is that ?