Ext.SSL_SECURE_URL="Include/extjs/resources/images/default/s.gif";Ext.BLANK_IMAGE_URL="Include/extjs/resources/images/default/s.gif";var RCAService=RCA.WebServices.RCAService;var Services={onTimeout:function Services_onTimeout(B){var A=[];for(var C in B){A.push(C+" - "+B[C])}alert(A.join("\n"))},onError:function Services_onError(A,B){Ext.MessageBox.show({title:"Error...",msg:A.get_message(),buttons:Ext.Msg.OK,fn:B,icon:Ext.MessageBox.ERROR})}};var UI={load:function(){if("undefined"!=typeof (RCAService)){RCAService.set_defaultFailedCallback(Services.onError)}Ext.QuickTips.init();Ext.apply(Ext.QuickTips.getQuickTip(),{showDelay:50,hidedelay:500});var A=Ext.isIE?"keydown":"keypress";Ext.EventManager.addListener(document,A,function(C){if(C.getKey()==C.BACKSPACE){var B=C.target.tagName.toLowerCase();if(B!="input"&&B!="textarea"){C.stopEvent()}}});if("function"==typeof (this.onLoad)){this.onLoad.call(this)}},verifyLogin:function(){if("object"==typeof (ClientSession)&&"number"==typeof (ClientSession.UserID)&&ClientSession.UserID>0){if("boolean"==typeof (ClientSession.Admin)&&ClientSession.Admin==true){this.bodyPanel.getTopToolbar().show();this.bodyPanel.getTopToolbar().items.each(function(A){A.show()});this.bodyPanel.tools.gear.setVisible(false)}document.getElementById("userName").innerHTML=ClientSession.Name;return true}else{this.bodyPanel.getTopToolbar().items.each(function(A){A.hide()});this.bodyPanel.tools.gear.setVisible(true);return false}},onLoad:undefined};Ext.EventManager.on(window,"load",function(){this.load()},UI);
