$(document).ready( function() {
    // normal zipcheck
    $("#postcodecheck").bind( 'submit', function(event) {
        $("#postcodecheck_submit").hide();
        $("#postcodecheck_loading").show('slow');

        // also hide the other submit button
        $("#side_postcodecheck_submit").attr('disabled', '1');
    });

    // small zipcheck in the sidebar
    $("#side_postcodecheck").bind( 'submit', function(event) {
        $("#side_postcodecheck_submit").hide();
        $("#side_postcodecheck_loading").show();

        // also hide the other submit button
        $("#postcodecheck_submit").attr('disabled', '1');
    });
});

