I think onsubmit would execute as soon as the submission was taking place, you have to intercept it before that, maybe use onclick and have code in there to check the status of the confirmation object and then submit directly from that function.
I am assuming you have some sort of check box to...