$(document).ready(function(){
     jQuery.fn.preventDoubleSubmit = function() {
        jQuery(this).submit(function() {
            if (this.beenSubmitted)
                return false;
            else
                this.beenSubmitted = true;
            });
    };
    $("#orderSubmissionForm").preventDoubleSubmit();

    // attach a listener to the form. on submit, fire up an
    // "we're doing some work here, hold tight!" modal
 });