﻿// JScript 文件

 function showMsg(btn,msg,nWidth){
        if(btn != undefined && msg != undefined)
        {
            if(nWidth == undefined)
            {
                nWidth = 200;
            }
            Ext.MessageBox.show({
               title: '消息提示',
               msg: '<span style="color:navyblue;font-size:13px;font-weight:bold;">&nbsp;'+msg+'</span>',
               width:nWidth,
               progress:false,
               closable:false,
               //multiline:true,
               animEl: btn
           });
        }
       // this hideous block creates the bogus progress
       var f = function(v)
       {
            return function(){
                if(v == false){
                    Ext.MessageBox.hide();
                }
           };
       };
       setTimeout(f(false), 4000); 
    }