Ext.ns("infoext");
infoext.Window=Ext.extend(Ext.Window,{closeAction:"close",aetype:"aewindow",bodyBorder:!1,border:!1,closeref:!1,iniframe:!1,loadsize:!0,shadow:!1,loadmask:!0,scripts:!0,bodyStyle:"padding:0px;background:ffffff;",plain:!1,pwindow:null,getWinId:function(){return this.id},initTools:function(){this.minimizable&&this.addTool({id:"minimize",handler:this.minimize.createDelegate(this,[])});this.maximizable&&(this.addTool({id:"maximize",handler:this.maximize.createDelegate(this,[])}),this.addTool({id:"restore",handler:this.restore.createDelegate(this,
[]),hidden:!0}));if(this.closable)if(this.closeref==!1)this.addTool({id:"close",handler:this[this.closeAction].createDelegate(this,[])});else{var a=this.iniframe,b=this.id;this.addTool({id:"close",handler:function(){a||coactsoft.window.closeListener(b)}})}}});
function AEHashMap(){var a=0,b={};this.put=function(c,d){this.containsKey(c)||a++;b[c]=d};this.get=function(a){return this.containsKey(a)?b[a]:null};this.remove=function(c){this.containsKey(c)&&delete b[c]&&a--};this.size=function(){return a};this.containsKey=function(a){return a in b};this.containsValue=function(a){for(var d in b)if(b[d]==a)return!0;return!1};this.values=function(){var a=[],d;for(d in b)a.push(b[d]);return a};this.keys=function(){var a=[],d;for(d in b)a.push(d);return a};this.clear=
function(){a=0;b={}}}var InfoEXTCookies={set:function(a,b,c,d,f,g){document.cookie=a+"="+escape(b)+(c?"; expires="+c.toGMTString():"")+(d?"; path="+d:"")+(f?"; domain="+f:"")+(g?"; secure":"")},get:function(a){var b=document.cookie.indexOf(a+"=");if(b<0)return"";a=document.cookie.substring(b+a.length+1);b=a.indexOf(";");return b<0?unescape(a):unescape(a.substring(0,b))}},extTree=Ext.tree;
coactsoft={FORM:"_idJsp1",setappcookie:function(a,b){var c=new Date;c.setTime(c.getTime()+864E5);document.cookie=a+"="+escape(b)+";expires="+c.toGMTString()},getappcookie:function(a){a=document.cookie.match(RegExp("(^| )"+a+"=([^;]*)(;|$)"));return a!=null?unescape(a[2]):null},openUrl:function(a,b,c,d,f){if(a==""||a==null){if(!(c==""||c==null))window.location.href=c}else if(!(c==""||c==null)){var a=Ext.getCmp(a.id),g=a.id+"_"+b;a.findById(g)?a.activate(g):(a.add({id:g,title:d,html:"<iframe id='"+
b+"frm' name='"+b+"frm' src='"+c+f+"' style='width:100%;height:100%;overflow:hidden;'  frameborder='0' border='0' marginwidth='0' marginheight='0'  scrolling='no' allowtransparency='yes' ></iframe>",closable:!0}).show(),a.items.length>a.tabCount&&a.remove(a.tabCount-1))}}};coactsoft.ext=coactsoft.ext?coactsoft.ext:{};
coactsoft.window={winmaps:new AEHashMap,ajaxfunclist:new AEHashMap,evalAJAXfunc:function(a){eval(a)},wincontainer:null,winnonparent:null,winWidth:100,winHieght:100,initToExtReady:"normal",closeDialog:function(){top.coactsoft.window.throwDialog(window.name)},createDialog:function(a,b,c,d,f,g,h,i,j,k,l,m,n){var b=document.body,o=document.createElement("div"),p=a+"_apply_tmp";o.id=p;b.appendChild(o);return new infoext.Window({id:a,applyTo:p,title:c,width:d+12,height:f+39,maximizable:g,closeref:h,closable:i,
resizable:j,modal:k,loadmask:l,pwindow:n,html:"<iframe id='"+a+"' name='"+a+"' frameborder='0' border='0' marginwidth='0' marginheight='0' style='width:100%;height:100%;' scrolling='no' allowtransparency='yes' src='"+m+"'></iframe>"})},getContain:function(a){return Ext.getCmp(a).pwindow}};coactsoft.loadMask={msakItem:null,show:function(a){this.msakItem.msg=a;this.msakItem.show()},hide:function(){this.msakItem.hide()}};
Ext.onReady(function(){coactsoft.tab={openTab:function(a,b,c,d,f){if(!(a==""||a==null))if(!(c==""||c==null)){var a=Ext.getCmp(a),g=a.id+"_"+b;a.findById(g)?a.activate(g):(a.add({id:g,title:d,tabTip:d,html:"<iframe id='"+b+"frm' name='"+b+"frm' src='"+c+f+"'  style='width:100%;height:100%;overflow:hidden;' frameborder='0' border='0' scrolling='no'  marginwidth='0' marginheight='0' allowtransparency='yes' ></iframe>",closable:!0}).show(),a.items.length>a.tabCount&&a.remove(a.tabCount-1))}},openTabReload:function(a,
b,c,d,f){if(!(a==""||a==null))if(!(c==""||c==null)){var a=Ext.getCmp(a),g=a.id+"_"+b;if(a.findById(g)){if(a.activate(g),f)document.frames[b+"frm"].location.href=c}else a.add({id:g,title:d,html:"<iframe id='"+b+"frm' name='"+b+"frm' src='"+c+"'  style='width:100%;height:100%;overflow:hidden;' frameborder='0' border='0' scrolling='no'  marginwidth='0' marginheight='0' allowtransparency='yes' ></iframe>",closable:!0}).show(),a.items.length>a.tabCount&&a.remove(a.tabCount-1)}},changetabpage:function(a,
b){var c=Ext.getCmp(a.id);b>=c.items.length||c.activate(b)},activetab:function(a,b){b>=a.items.length||a.activate(b)},removetaball:function(a){for(var b=a.items.length-1;b>-1;b--)a.remove(b)},removetabclosable:function(a){for(var b=a.items.length-1;b>-1;b--)a.items.get(b).closable&&a.remove(b)},removetabnone:function(a){for(var b=a.items.length-1;b>-1;b--)a.items.get(b).closable||a.remove(b)},removeitem:function(a,b){var c=Ext.getCmp(a);typeof c!="undefined"&&c!=null&&c.remove(c.getItem(b))}};coactsoft.window.openDialog=
function(a,b,c,d,f,g,h,i,j,k,l,m,n){coactsoft.window.winmaps.put(a,b);if(b==""){coactsoft.window.winnonparent=coactsoft.window.createDialog(a,"none",d,j,k,g,l,m,h,f,i,c,n);if(j!=150&&k!=150)coactsoft.window.winnonparent.loadsize=!1;i?(coactsoft.window.winnonparent.show(),coactsoft.window.winnonparent.hide(),top.coactsoft.loadMask.show("\u52a0\u8f7d["+d+"]\u4e2d\u8bf7\u7a0d\u5019\u3002")):(coactsoft.window.winnonparent.show(),coactsoft.window.winnonparent.center())}else{a=coactsoft.window.createDialog(a,
"owner",d,j,k,g,l,m,h,f,i,c,n);if(j!=150&&k!=150)a.loadsize=!1;i?(a.show(),a.hide(),top.coactsoft.loadMask.show("\u52a0\u8f7d["+d+"]\u4e2d\u8bf7\u7a0d\u5019\u3002")):(a.show(),a.center())}};coactsoft.window.throwDialog=function(a){var b=Ext.getCmp(a);coactsoft.window.winmaps.remove(a);b==null?(b=coactsoft.window.winnonparent,b.loadmask==!0&&coactsoft.loadMask.hide(),coactsoft.window.winnonparent.close()):(b.loadmask==!0&&coactsoft.loadMask.hide(),b.close())};coactsoft.window.closeReloadParent=function(a,
b){var c=top.coactsoft.window.winmaps.get(a);if(c=="")c=top.document.location.href,c=b==!0?coactsoft.window.buildForceInitUrl(c):coactsoft.window.getOldUrl(c),top.document.location.href=c;else if(parent.window.name==c)c=top.document.location.href,c=b==!0?coactsoft.window.buildForceInitUrl(c):coactsoft.window.getOldUrl(c),top.document.location.href=c;else{var d=top.coactsoft.window.getContain(a),c=d.location.href,c=b==!0?coactsoft.window.buildForceInitUrl(c):coactsoft.window.getOldUrl(c);d.location.href=
c}top.coactsoft.window.throwDialog(a)};coactsoft.window.closeListener=function(a){var b=top.coactsoft.window.getContain(a).document.getElementById(coactsoft.FORM+":ae_refresh_button");b&&b.click();top.coactsoft.window.throwDialog(a)};coactsoft.window.refreshParent=function(){var a=window.opener;if(a==null)a=window.parent;window==window.top?((a=a.document.getElementById(coactsoft.FORM+":ae_refresh_button"))&&a.click(),window.top.opener=null,window.top.open("","_self"),window.top.close()):(top.coactsoft.window.getContain(window.name).document.getElementById(coactsoft.FORM+
":ae_refresh_button").click(),top.coactsoft.window.throwDialog(window.name))};coactsoft.window.closeAndReloadUrl=function(){if(window==window.top){var a=window.opener;if(a){var b=a.location.href,b=getOldUrl(b);a.location.href=b}window.top.moveTo(-200,-200);window.top.resizeTo(100,100);window.top.opener=null;window.top.open("","_self");window.top.close()}else top.coactsoft.window.closeReloadParent(window.name,!1)};coactsoft.window.closeAndForceInitUrl=function(){if(window==window.top){var a=window.opener;
if(a){var b=a.location.href,b=coactsoft.window.buildForceInitUrl(b);a.location.href=b}window.top.moveTo(-200,-200);window.top.resizeTo(100,100);window.top.opener=null;window.top.open("","_self");window.top.close()}else top.coactsoft.window.closeReloadParent(window.name,!0)};coactsoft.window.closeWindow=function(a){window==window.top?(window.top.opener=null,window.top.open("","_self"),window.top.close()):top.coactsoft.window.throwDialog(a)};coactsoft.window.getOldUrl=function(a){a.search(/__ae_forceinit__=true&/)!=
-1&&(a=a.replace(/__ae_forceinit__=true&/,""));a.search(/__ae_forceinit__=true/)!=-1&&(a=a.replace(/__ae_forceinit__=true/,""));a.length-1==a.indexOf("?")&&(a=a.substring(0,a.indexOf("?")));return a};coactsoft.window.buildForceInitUrl=function(a){a.length-1!=a.indexOf("?")?a.search(/__ae_forceinit__=true/)==-1&&(a+="?__ae_forceinit__=true"):a.search(/__ae_forceinit__=true/)==-1&&(a+="&__ae_forceinit__=true");return a};coactsoft.window.buildtopdialog=function(a){return tmp=new infoext.Window(a)};coactsoft.ext.showbox=
coactsoft.ext.showbox?coactsoft.ext.showbox:{};coactsoft.ext.showbox.ShowBox_getId="";coactsoft.ext.showbox.ShowBox_getValue="";coactsoft.ext.showbox.openDialog=function(a,b,c,d,f,g,h,i,j,k,l,m,n,o){c===""?Ext.MessageBox.show({title:"\u7cfb\u7edf\u63d0\u793a",msg:"\u6ca1\u6709\u8bbe\u7f6e</br>\u3010\u7ed1\u5b9a\u754c\u9762\u3011",width:170,buttons:Ext.Msg.OK,icon:Ext.MessageBox.INFO}):(o()!=""&&coactsoft.window.ajaxfunclist.put(b,o()),top.coactsoft.window.openDialog(a,b,c,d,f,g,h,i,j,k,l,m,n))};coactsoft.ext.showbox.dataGrid_Selection=
function(a,b){coactsoft.ext.showbox.ShowBox_getId=a;coactsoft.ext.showbox.ShowBox_getValue=b};coactsoft.ext.showbox.returnShowBoxValue=function(){var a=top.coactsoft.window.winmaps.get(window.name);if(a=="")top.document.getElementById(window.name+"_hid").value=coactsoft.ext.showbox.ShowBox_getId,top.document.getElementById(window.name+"_txt").value=coactsoft.ext.showbox.ShowBox_getValue,a=top.window.coactsoft.window.ajaxfunclist.get(a),a!=null&&top.window.coactsoft.window.evalAJAXfunc(a);else{var b=
top.coactsoft.window.getContain(window.name);b.document.getElementById(window.name+"_hid").value=coactsoft.ext.showbox.ShowBox_getId;b.document.getElementById(window.name+"_txt").value=coactsoft.ext.showbox.ShowBox_getValue;a=b.coactsoft.window.ajaxfunclist.get(a);a!=null&&b.coactsoft.window.evalAJAXfunc(a)}top.coactsoft.window.throwDialog(window.name)};coactsoft.window.maxWindow=function(a,b,c){if(coactsoft.window.initToExtReady==="normal")if(window==top)top.moveTo(0,0),top.resizeTo(screen.availWidth,
screen.availHeight);else try{top.coactsoft.window.maxDialog(a,b,c)}catch(d){}};coactsoft.window.maxDialog=function(a,b,c){top.coactsoft.window.winmaps.get(a)!=null&&(a=coactsoft.window.getDialog(a,b,c),a!=null&&(a.loadmask&&a.show(),a.maximize()))};coactsoft.window.setSize=function(a,b,c){c>document.body.clientHeight&&(c=document.body.clientHeight-20);b>document.body.clientWidth&&(b=document.body.clientWidth-20);a=coactsoft.window.getDialog(a,b,c);if(a!=null)a.loadmask?(a.loadmask=!1,a.setSize(Number(b),Number(c)),
a.center(),a.show()):a.loadsize&&(a.setSize(Number(b),Number(c)),a.center())};coactsoft.window.getDialog=function(a){a=Ext.getCmp(a);if(a!=null)return a.loadmask&&coactsoft.loadMask.hide(),a;else if(coactsoft.window.winnonparent!=null)return coactsoft.window.winnonparent.loadmask&&coactsoft.loadMask.hide(),coactsoft.window.winnonparent};coactsoft.window.loadface=function(){var a=InfoEXTCookies.get("AEFacePath");Ext.util.CSS.swapStyleSheet("theme",a)};coactsoft.window.init=function(){coactsoft.window.loadface();
coactsoft.loadMask.msakItem=new Ext.LoadMask(Ext.getBody(),{msg:""});coactsoft.window.initToExtReady==="closeAndReloadUrl"?coactsoft.window.closeAndReloadUrl():coactsoft.window.initToExtReady==="refreshParent"?coactsoft.window.refreshParent():coactsoft.window.initToExtReady==="closeAndForceInitUrl"?coactsoft.window.closeAndForceInitUrl():coactsoft.window.initToExtReady==="closeWindow"?coactsoft.window.closeWindow(window.name):form_load()};coactsoft.window.init();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}}});
coactsoft.msg={_formName:"",_linkId:"",_target:"",_params:"",_eventlock:!1,SubmitForm:function(a){if(a=="yes"||a=="ok"){if(this._eventlock==!0)document.getElementById(this._linkId).disabled=!0;coastSubmitForm(this._formName,this._linkId,this._target,this._params)}}};
coactsoft.linkbutton={btnId:"",tdclick:function(a){document.getElementById(a).onclick()},callonclick:function(a){eval(a)},isdisabled:function(a){this.btnId=a;document.getElementById(a).disabled=!0},isenabled:function(){var a=document.getElementById(this.btnId);if(a!=null)a.disabled=!1}};
coactsoft.dateTimepicker={submitValue:function(a,b,c,d,f,g,h){var i=new Date(c),c=i.getYear(),j=i.getMonth()+1,i=i.getDate();document.getElementById(a).value=c+"-"+j+"-"+i;document.getElementById(b).value="_self";d?eval(h):coastSubmitForm(f,g,h,!0)},selectValue:function(a,b){var c=new Date(b),d=c.getYear(),f=c.getMonth()+1,c=c.getDate();document.getElementById(a).value=d+"-"+f+"-"+c}};
coactsoft.processbar={procmsg:Ext.MessageBox,verify:!0,alt:{_tmpmsg:Ext.MessageBox,_time:5,_interval:null,timing:function(a){this._time-=1;this._tmpmsg.updateText(a+" ( "+this._time+" )");if(this._time==0)clearInterval(this._interval),this._time=5,this._tmpmsg.hide()}},show:function(a,b,c,d,f,g){top.coactsoft.processbar.procmsg.show({title:b,msg:a,progressText:c,width:d,wait:!0,buttons:{cancel:"\u653e\u5165\u540e\u53f0\u6267\u884c"},waitConfig:{interval:f}});top.coactsoft.processbar.procmsg.getDialog().keyMap.disable();
this.verify=g},hide:function(){typeof top.coactsoft.processbar.procmsg!="undefined"&&top.coactsoft.processbar.procmsg!=null?top.coactsoft.processbar.procmsg.hide():this.procmsg.hide()},alert:function(a){if(this.errorMsg()){var b=this.getAlt();b._interval=setInterval("coactsoft.processbar.alt.timing('"+a+"')",1E3);b._tmpmsg.show({title:"\u7cfb\u7edf\u63d0\u793a",msg:a+"( 5 )",buttons:Ext.Msg.OK,icon:Ext.MessageBox.QUESTION,fn:function(){clearInterval(b._interval);b._time=5}})}},errorMsg:function(){var a=
document.getElementById(coactsoft.FORM+":AEappErrorMsg").value;return a!=""?(this.getAlt()._tmpmsg.show({title:"\u7cfb\u7edf\u63d0\u793a",msg:a,buttons:Ext.Msg.OK,icon:Ext.MessageBox.ERROR}),document.getElementById(coactsoft.FORM+":AEappErrorMsg").value="",!1):!0},getAlt:function(){return this.alt}};
coactsoft.find={btnOnclick:function(a,b){this.comparekeyCode(b)&&eval(a)},callbtnOnclick:function(a){document.getElementById(a).onclick()},comparekeyCode:function(a){return event.keyCode==a?!0:!1},menuDisabled:function(a,b){if(b!="menusep"){var c=document.getElementById(a).value;c!=null&&c=="true"&&Ext.getCmp(a).disable();c!=null&&c=="false"&&Ext.getCmp(a).enable()}}};
coactsoft.datefield={setDateValue:function(a,b){if(a.type==="datefield"||a.type==="timefield"){var c=a.value,d=a.disabled;c.indexOf("CST")>0&&(c=new Date(c),c=c.getTime()+c.getTimezoneOffset()*6E4,c=new Date(c+-216E5));document.getElementById(b).value=Ext.util.Format.date(c,a.formate);document.getElementById(b).disabled=d}},setAllValue:function(a){if(typeof a=="undefined"||a==null)window.location.href=__appctx+"/aewebcontrol/error/500.jsp?type=ajaxdataerror";else for(var a=eval("("+a+")"),b,c,d,f,
g,h=0;h<a.length;h++)if(b=a[h],d=coactsoft.FORM+b.id,f=coactsoft.FORM+b.contain,g=Ext.getCmp(d),f=Ext.getCmp(f),b.render){b.type==="datefield"?c=d+"_Div_DateField":b.type==="timefield"?c=d+"_Div_TimeField":b.type==="datepicker"&&(c=d+"_Div_DatePicker");var i=document.getElementById(c);f!=null?g!=null?b.disabled?g.disable():(g.enable(),this.setDateValue(b,d)):(eval(i.value),g=Ext.getCmp(d),f.add(g),f.doLayout()):document.getElementById(coactsoft.FORM+":"+b.contain)==null?g.destroy():(g!=null&&g.destroy(),
eval(i.value),this.setDateValue(b,d))}else f!=null?(f.remove(g),f.doLayout()):g!=null&&g.destroy()},renderFieldInContainer:function(a){var b=document.getElementById(coactsoft.FORM+":"+a),a=Ext.getCmp(coactsoft.FORM+a);if(b==null)return!1;else{for(var c=b.getElementsByTagName("input"),b=[],d=/(^|\s)Info_ext3_CreateFied_ByAJAX(\s|$)/,f=0;f<c.length;f++)d.test(c[f].className)&&b.push(c[f]);for(f=0;f<b.length;f++)eval(b[f].value),c=b[f].id.substring(0,b[f].id.indexOf("_Div_")),c=Ext.getCmp(c),a!=null&&
(c.hidden===!0?a.remove(c):a.add(c));a!=null&&a.doLayout()}},renderFieldInTable:function(a){a=document.getElementById(coactsoft.FORM+":"+a+":tbody_element");if(a==null)return!1;for(var a=a.getElementsByTagName("input"),b=[],c=/(^|\s)Info_ext3_CreateFied_ByAJAX(\s|$)/,d=0;d<a.length;d++)c.test(a[d].className)&&b.push(a[d]);for(d=0;d<b.length;d++)eval(b[d].value)}};coactsoft.faces={changecss:function(a){InfoEXTCookies.set("AEFacePath",a);Ext.util.CSS.swapStyleSheet("theme",a)}};
coactsoft.input={insertchart:function(a,b){var c=document.getElementById(b),d=c.value.length;c.focus();typeof document.selection!="undefined"?document.selection.createRange().text=a:c.value=c.value.substr(0,c.selectionStart)+a+c.value.substring(c.selectionStart,d)}};
coactsoft.treegrid={submitData:function(a,b){var c=[];Ext.each(a.modified,function(a){c.push(a.data)});document.getElementById(b).value=Ext.util.JSON.encode(c)},changeData:function(a,b,c){for(var c=eval("("+c+")"),d=0;d<c.length;d++){var f=c[d];f.id==b&&f.type=="treeGrid"&&a.loadData(eval("("+f.value+")"))}a.commitChanges()},submitOver:function(a){a.commitChanges()}};
coactsoft.grid={submitData:function(a,b){var c=[];Ext.each(a.modified,function(a){c.push(a.data)});document.getElementById(b).value=Ext.util.JSON.encode(c)},changeData:function(a,b,c){for(var c=eval("("+c+")"),d=0;d<c.length;d++){var f=c[d];f.id==b&&f.type=="grid"&&a.loadData(eval("("+f.value+")"))}a.commitChanges()},submitOver:function(a){a.commitChanges()}};
coactsoft.browseObject={tabpanelID:"",type:"",getObject:function(){return this.type==="dialogiframe"?top.coactsoft.window.getContain(window.name):this.type==="tabpageiframe"?top.coactsoft.window.getContain(window.name):this.type==="parent"?window.opener:null}};
coactsoft.textFieldTips=function(a,b,c,d,f,g){var h=document.getElementById("_idJsp1:"+a),i=document.getElementById(d).value;if(h!=null)if(c===!0){if(h.value==="")h.value=i}else if(b===!0){if(h.value==="")h.value=i}else if(b===!1&&c===!1){if(!(h.value!=""&&h.value!=i))h.style.color=f,h.value=i;h.onfocus=function(){if(!(h.value!=""&&h.value!=i)&&h.value==i)h.value="",this.style.color=g};h.onblur=function(){if(!h.value)h.value=i,this.style.color=f}}};var comp;
function form_load(){var a=document.getElementById("_idJsp1:ae_enforceRefresh");if(a!=null&&a.value=="true")a.value="false",(a=document.getElementById("_idJsp1:ae_refresh_button"))&&a.click();resizeui();window.errormsg&&errormsg!=null&&errormsg!=""&&(alert(errormsg),errormsg="")}
function resizeui(){if(window==window.parent&&window.restoreWinSize){if(window.pagewidth){window.resizeTo(pagewidth,pageheight);window.resizeTo(Number(pagewidth)+Number(pagewidth-document.body.clientWidth),Number(pageheight)+Number(pageheight-document.body.clientHeight));var a=(screen.height-pageheight)/2,b=(screen.width-pagewidth)/2;a<0&&(a=0);b<0&&(b=0);window.moveTo(b,a)}window.document.getElementById("_idJsp1:ae_reserved_field_restoreSize").value=!1}}
function loadpopcontent(){str=location.href.split("?")[1];if(str!=null)for(var a=str.split("&"),b=0;b<a.length;b++)if(paraName=a[b].split("=")[0],paraValue=a[b].split("=")[1],b==0&&(comp="_idJsp1:"+paraValue),b==1)popcontent.location=paraValue;if(window.titlename)window.document.title=titlename}function confirmPrompt(){pf=window.opener.document.getElementById("_idJsp1:promptField");var a=window.frames.popcontent.document.getElementById("_idJsp1:promptvalue");pf.value=a.value}
function openPop(a){window.open(a)}function submitToNewWin(a,b){var c=!0;arguments.length>=2&&(c=verifingBeforeButtonPerform(b));c&&document.getElementById(a).click()}function changeTableChecked(a,b){b?selectAll(a):unSelectAll(a)}function selectAll(a){a=document.getElementById(a).tBodies[0].rows;if(a.length>1)for(var b=0;b<a.length;b++)a[b].cells[0].firstChild.checked=!0}
function unSelectAll(a){a=document.getElementById(a).tBodies[0].rows;if(a.length>1)for(var b=0;b<a.length;b++)a[b].cells[0].firstChild.checked=!1}
function checkNum(a,b){var b=formatEvent(b),c=a.document.selection.createRange().text,d=a.document.selection.createRange();d.moveStart("character",-b.srcElement.value.length);var f="0123456789.-";if(!(a.value.length==0||a.value.length==c.length)){d.text.length<=0&&a.value.substr(0,1)=="-"&&(f=f.replace("0123456789.",""));if(d.text.length>0||a.value.substr(0,1)=="-")f=f.replace("-","");a.value.indexOf(".")>-1&&(f=f.replace(".",""))}if(window.event.keyCode==32)return!1;c=String.fromCharCode(b.charCode);
return f.indexOf(c)>-1||b.ctrlKey}
function checkInt(a,b){var b=formatEvent(b),c=a.document.selection.createRange().text,d=a.document.selection.createRange();d.moveStart("character",-b.srcElement.value.length);var f="0123456789-";if(!(a.value.length==0||a.value.length==c.length))if(d.text.length<=0&&a.value.substr(0,1)=="-"&&(f=f.replace("0123456789","")),d.text.length>0||a.value.substr(0,1)=="-")f=f.replace("-","");if(window.event.keyCode==32)return!1;c=String.fromCharCode(b.charCode);return f.indexOf(c)>-1||b.ctrlKey}
function formatEvent(a){a.charCode=a.type=="keypress"?a.keyCode:0;a.eventPhase=2;a.isChar=a.charCode>0;a.pageX=a.clientX+document.body.scrollLeft;a.pageY=a.clientY+document.body.scrollTop;a.preventDefault=function(){this.returnValue=!1};a.stopPropagating=function(){this.cancelBubble=!0};a.target=a.srcElement;a.time=(new Date).getTime();return a}function setZero(a){if((new String(a.value)).length==0)a.value=0}
function startEditingNum(a,b){var c=document.getElementById(b);if(c){if(c.value=="")c.value="0";if(a)a.style.visibility="hidden",a.style.display="none";c.style.visibility="visible";c.style.display="block";c.select();c.focus()}}function stopEditingNum(a,b){var c=document.getElementById(b);c.innerText=a.value==0?"":a.value;if(a)a.style.visibility="hidden",a.style.display="none";if(c)c.style.visibility="visible",c.style.display="block"}
function closeForm(a){window.top.moveTo(-200,-200);window.top.resizeTo(100,100);a!=null&&alert(a);window.top.close()}function startEditing(a,b){var c=document.getElementById(b);if(c){if(a)a.style.visibility="hidden",a.style.display="none";c.style.visibility="visible";c.style.display="block";c.select();c.focus()}}
function stopEditing(a,b){var c=document.getElementById(b);c.innerText=a.value;if(a)a.style.visibility="hidden",a.style.display="none";if(c)c.style.visibility="visible",c.style.display="block"}function changeTableStyle(a){var b=a.className,c=b.indexOf("_select");if(!(b.indexOf("_selected")>0))a.className=c<0?b+"_select":b.substring(0,c)}var oldRow=[],oldIndex=[];
function selectTableRow(a,b,c){if(oldRow[b]!=null)oldRow[b].className=oldIndex[b]%2==0?"aetableline":"aetableevenline";oldRow[b]=a;oldIndex[b]=c;a.className="aetableline_selected"}function invokeRowSelection(a){document.getElementById(a).click()}function selectRadio(a,b){document.getElementById("_idJsp1:"+a+":"+b+":"+a+"_selId").checked="checked"}
function selectCheckBox(a,b,c){var a=document.getElementById("_idJsp1:"+a),d=a.tBodies[0].rows,c=d[b%c];c.cells[0].firstChild.checked=!c.cells[0].firstChild.checked;b=!0;if(c.cells[0].firstChild.checked===!0)for(c=0;c<d.length;c++){if(d[c].cells[0].firstChild.checked===!1){b=!1;break}}else b=!1;a.rows[0].cells[0].firstChild.checked=b}function selectInput(a){document.getElementById("_idJsp1:"+a).select()}function stopBubble(a){a&&a.stopPropagation?a.stopPropagation():window.event.cancelBubble=!0}
function toSplitSggBoxValue(a,b,c){ss=document.getElementById("_idJsp1:"+a).value.split(c);document.getElementById("_idJsp1:"+a).value=ss[0];document.getElementById("_idJsp1:"+b).value=ss[1];return!0}function clearSggBoxValue(a,b){if(document.getElementById("_idJsp1:"+a).value=="")document.getElementById("_idJsp1:"+b).value=""}panelcollapse=function(){};panelexpand=function(){};extjspageInit=function(){};function collapseAll(a){collapse(window["Richfaces_Tree__idJsp1_"+a].childs)}
function expandAll(a){expand(window["Richfaces_Tree__idJsp1_"+a].childs)}function expandAllByTree(a){expand(a.childs)}function collapse(a){for(var b=0;b<a.length;b++){var c=a[b],d=c.childs;d.length!=0&&!c.isCollapsed()&&(collapse(d),c.eventCollapsionClick())}}function expand(a){for(var b=0;b<a.length;b++){var c=a[b],d=c.childs;d.length!=0&&c.isCollapsed&&(c.eventCollapsionClick(),expand(d))}}
function updateChildren(a){var b=a.checked,a=jQuery(a).parents("table")[0],a=jQuery(a).next("div");a.length>0&&jQuery(a[0]).contents().find(":checkbox").each(function(){this.checked=b})}function updateParent(a){var a=jQuery(a).parents("div")[0],b=!0,c=jQuery(a).prev("table"),d=0,f=0;jQuery(a).contents().find(":checkbox").each(function(){f++;this.checked?b=!0:d++});d==f&&(b=!1);if(c.length>0&&(a=jQuery(c[0]).find(":checkbox")[0],!(a==null||typeof a=="undefined")))a.checked=b,updateParent(a)}Ext.onReady(function(){extjspageInit()});

