Quello non lo avevi detto.

La chiamata deve essere:
<form ... onsubmit="return nomefunzione();">

Ciao
Michele