var io_operation = 'ioBegin';
var io_bbout_element_id          = 'ioBB';
var io_install_stm               = false;
var io_exclude_stm               = 12;
function redirectActiveX(){ document.location.href="explainActiveX.html"; }
function redirectFlash(){ document.location.href = "http://www.macromedia.com/flash"; }
var io_flash_needs_update_handler = "";
var io_install_flash_error_handler = "";
var io_max_wait = 5000;
var io_submit_form_id = 'io_form';
var io_submit_element_id = 'io_submit';

var counter = 0;
var IOV_handler = {
    checkBB: function() {
        var ioBB = jQuery("input[name='ioBB']").val();
        if (jQuery.trim(ioBB).length > 0) {
            var form = jQuery('form[name=iov_check]');
            this.IOV_send(form);
            clearInterval(iov_check);
        }
        // max # of calls
        counter++;
        if (3 < counter) {
            clearInterval(iov_check);
        }
    },
    IOV_send: function(form) {
        // ajax post blackbox to run an iovation transaction
        jQuery.ajax( {
            type : "POST",
            url : form.attr('action'),
            data : form.serialize(),
            success: function(result) { return result; },
            complete : function() { },
            error: function() {}
        });
    }
};
