just modify Sebs code:

function mySubmit(){
var isSubmit
if (isSubmit != True){
myForm.submit();
}else{
// do nothing
}