Ext.onReady(function(){ClientAPI={openTab:function(a,b,c,d,f){f==!0&&(c+="?__ae_forceinit__=true");f=Ext.getCmp(a);typeof f!="undefined"&&f!=null?coactsoft.tab.openTab(a,b,__appctx+c,d,""):parent.ClientAPI.openTab(a,b,c,d)},openTabReload:function(a,b,c,d,f){c+="?__ae_forceinit__=true";var g=Ext.getCmp(a);typeof g!="undefined"&&g!=null?coactsoft.tab.openTabReload(a,b,__appctx+c,d,f):parent.ClientAPI.openTabReload(a,b,c,d,f)},openTabByHref:function(a,b,c,d){var f=Ext.getCmp(a);typeof f!="undefined"&&
f!=null&&coactsoft.tab.openTab(a,b,c,d,"")},activeTab:function(a,b){var c=Ext.getCmp(a);typeof c!="undefined"&&c!=null&&coactsoft.tab.activetab(c,b)},removeTabAll:function(a){var b=Ext.getCmp(a);typeof b!="undefined"&&b!=null?coactsoft.tab.removetaball(b):parent.ClientAPI.removeTabAll(a)},removeTabClosable:function(a){var b=Ext.getCmp(a);typeof b!="undefined"&&b!=null?coactsoft.tab.removetabclosable(b):parent.ClientAPI.removeTabClosable(a)},removeTabItem:function(a){var b=window.name,b=b.substring(0,
b.length-3);top.coactsoft.tab.removeitem(a,a+"_"+b)},setFocusById:function(a){var a=document.getElementById(a),b=e.createTextRange();b.moveStart("character",a.length());b.collapse(!0);b.select();a.focus()},focusByEnter:function(a){event.keyCode==13&&(a=document.getElementById(coactsoft.FORM+":"+a),a.focus(),a.select())},closeRefreshParent:function(){coactsoft.window.refreshParent()},closeAndReload:function(){coactsoft.window.closeAndReloadUrl()},closeAndForceInit:function(){coactsoft.window.closeAndForceInitUrl()},
openDilog:function(a,b,c){a();for(var d=a=0;d<top.document.frames.length;d++)if(top.document.frames[d].name==b){a=d;break}top.document.frames[a].location.href=c},openPage:function(a,b){b=="self"?window.location.href=a:b=="blank"&&window.open(a,"_blank")},closeDialog:function(){coactsoft.window.closeDialog()},replyShowBoxValue:function(){coactsoft.ext.showbox.returnShowBoxValue()},gotoPageArea:function(a){location.href="#"+a}}});

