...make sure that you don't have any other form controls on your page that have ID="submit". This caused the same error on my system whilst converting an HTML layout to ASP.NET because JavaScript was referencing a form element called submit, rather than the submit() method of the form.
L
LloydJJ
@LloydJJ