/* Prevent execution of ajaxForm if included more than once */
if(typeof window.pr == "undefined") {
    var progress = {
        /**
         *   Toggle popup to busy mode.
         */
        toggleToBusyMode : function () {
            $('#modal_cmd').hide();
            $('#modal_busy').show();
        },

        /**
         *   Toggle popup to edit mode.
         */
        toggleToEditMode : function () {
            $('#modal_cmd').show();
            $('#modal_busy').hide();
        }
    };

    // Map the progress utils namespace to the 'pr' one.
    var pr = progress;
}
