Ext.namespace('AIS');
AIS.app = function(){
var browser = '';
var platform = '';
var msg = '';
    return {
       //browser: '',
       //platform: '',
       //msg: '',
       testBrowser: function(){
        if (Ext.isChrome) {
                browser = "Chrome";
            }
            if (Ext.isGecko) {
                browser = "Gecko";
            }

            if (Ext.isIE) {
                browser = "IE";   
            }
            if (Ext.isOpera) {
                browser = "Opera";
            }
            if (Ext.isSafari) {
                browser = "Safari";
            }
                       //
            if (Ext.isAir) {
                platform = "Air";
            }
            if (Ext.isLinux) {
                platform = "Linux";
            }
            if (Ext.isMac) {
                platform = "Mac";
            }
            if (Ext.isWindows) {
                platform = "Windows ";
            }
            msg = "The " + browser + " browser (PC or MAC) does not support the technology used on this website. " +
                " Please use Internet Explorer or Firefox.";
             if(!(browser == 'IE' || browser == 'Gecko' || browser == 'Safari' || browser == 'Opera')){
               Ext.Msg.alert('Notice:  Browser and Platform', msg);
               return false;
            }else return true;
    
        }   
        
       };//return
    }();            
Ext.onReady(AIS.app.testBrowser, AIS.app);

