make the submit button actually a regular button which calls a javascript (linked file) and if that works out then the javascript calls document.formname.submit();
However this is so insecure that it's not worth the effort.
If there's a block which prevents you altering the script you are posting to then I would recommend posting to your own validation script printing out into a confirmation form (html and hidden fields) with an "ok to proceed" button. This confirmation form then calls the script you really want to post to.