Ext.onReady(function(){
        Ext.MessageBox.show({
           title: 'Загрузка',
           msg: 'Подождите, идет загрузка...',
           progressText: 'Инициализация...',
           width:200,
           progress:true,
           closable:false,
           animEl: 'mb6'
       });

       // this hideous block creates the bogus progress
       var f = function(v){
            return function(){
                if(v == 98){
                    Ext.MessageBox.hide();
                    Ext.example.msg('Выполнено', 'Загрузка завершена');

     		Ext.MessageBox.show({
	           title: 'Скоро',
	           msg: 'Скоро открытие!',
	           buttons: Ext.MessageBox.OK,
	           animEl: 'mb9',
	           fn: showResult,
	           icon: info
	       	});


                }else{
                    var i = v/99;
                    Ext.MessageBox.updateProgress(i, Math.round(100*i)+'% выполненно');
		}
           };
       };
       for(var i = 1; i < 100; i++){
           setTimeout(f(i), i*100);
       }

});