You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
klhis/open6.0.js

1 lines
1.6 MiB

!function(_,$){"object"==typeof module&&"object"==typeof module.exports?module.exports=_.document?$(_,!0):function(_){if(!_.document)throw new Error("jQuery requires a window with a document");return $(_)}:$(_)}("undefined"!=typeof window?window:this,function(V0,S0){var T0=[],Q0=T0.slice,R0=T0.concat,N0=T0.push,O0=T0.indexOf,e0={},g0=e0.toString,b0=e0.hasOwnProperty,c0={},Y0="1.11.1",Z0=function(_,$){return new Z0.fn.init(_,$)},W0=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,X0=/^-ms-/,s0=/-([\da-z])/gi,r0=function(_,$){return $.toUpperCase()};Z0.fn=Z0.prototype={jquery:Y0,constructor:Z0,selector:"",length:0,toArray:function(){return Q0.call(this)},get:function($){return null!=$?0>$?this[$+this.length]:this[$]:Q0.call(this)},pushStack:function(_){var $=Z0.merge(this.constructor(),_);return $.prevObject=this,$.context=this.context,$},each:function(_,$){return Z0.each(this,_,$)},map:function($){return this.pushStack(Z0.map(this,function(_,A){return $.call(_,A,_)}))},slice:function(){return this.pushStack(Q0.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(A){var $=this.length,_=+A+(0>A?$:0);return this.pushStack(_>=0&&$>_?[this[_]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:N0,sort:T0.sort,splice:T0.splice},Z0.extend=Z0.fn.extend=function(){var E,C,D,A,B,$,_=arguments[0]||{},G=1,H=arguments.length,F=!1;for("boolean"==typeof _&&(F=_,_=arguments[G]||{},G++),"object"==typeof _||Z0.isFunction(_)||(_={}),G===H&&(_=this,G--);H>G;G++)if(null!=(B=arguments[G]))for(A in B)E=_[A],D=B[A],_!==D&&(F&&D&&(Z0.isPlainObject(D)||(C=Z0.isArray(D)))?(C?(C=!1,$=E&&Z0.isArray(E)?E:[]):$=E&&Z0.isPlainObject(E)?E:{},_[A]=Z0.extend(F,$,D)):void 0!==D&&(_[A]=D));return _},Z0.extend({expando:"jQuery"+(Y0+Math.random()).replace(/\D/g,""),isReady:!0,error:function($){throw new Error($)},noop:function(){},isFunction:function($){return"function"===Z0.type($)},isArray:Array.isArray||function($){return"array"===Z0.type($)},isWindow:function($){return null!=$&&$==$.window},isNumeric:function($){return!Z0.isArray($)&&$-parseFloat($)>=0},isEmptyObject:function(_){var $;for($ in _)return!1;return!0},isPlainObject:function(A){var $;if(!A||"object"!==Z0.type(A)||A.nodeType||Z0.isWindow(A))return!1;try{if(A.constructor&&!b0.call(A,"constructor")&&!b0.call(A.constructor.prototype,"isPrototypeOf"))return!1}catch(_){return!1}if(c0.ownLast)for($ in A)return b0.call(A,$);for($ in A);return void 0===$||b0.call(A,$)},type:function($){return null==$?$+"":"object"==typeof $||"function"==typeof $?e0[g0.call($)]||"object":typeof $},globalEval:function($){$&&Z0.trim($)&&(V0.execScript||function($){V0.eval.call(V0,$)})($)},camelCase:function($){return $.replace(X0,"ms-").replace(s0,r0)},nodeName:function(_,$){return _.nodeName&&_.nodeName.toLowerCase()===$.toLowerCase()},each:function(E,C,D){var A,B=0,$=E.length,_=p0(E);if(D){if(_){for(;$>B;B++)if(A=C.apply(E[B],D),A===!1)break}else for(B in E)if(A=C.apply(E[B],D),A===!1)break}else if(_){for(;$>B;B++)if(A=C.call(E[B],B,E[B]),A===!1)break}else for(B in E)if(A=C.call(E[B],B,E[B]),A===!1)break;return E},trim:function($){return null==$?"":($+"").replace(W0,"")},makeArray:function(A,$){var _=$||[];return null!=A&&(p0(Object(A))?Z0.merge(_,"string"==typeof A?[A]:A):N0.call(_,A)),_},inArray:function(B,_,A){var $;if(_){if(O0)return O0.call(_,B,A);for($=_.length,A=A?0>A?Math.max(0,$+A):A:0;$>A;A++)if(A in _&&_[A]===B)return A}return-1},merge:function(C,A){var B=+A.length,$=0,_=C.length;while(B>$)C[_++]=A[$++];if(B!==B)while(void 0!==A[$])C[_++]=A[$++];return C.length=_,C},grep:function(E,C,D){for(var A,B=[],$=0,_=E.length,F=!D;_>$;$++)A=!C(E[$],$),A!==F&&B.push(E[$]);return B},map:function(D,B,C){var A,$=0,_=D.length,E=p0(D),F=[];if(E){for(;_>$;$++)A=B(D[$],$,C),null!=A&&F.push(A)}else for($ in D)A=B(D[$],$,C),null!=A&&F.push(A);return R0.apply([],F)},guid:1,proxy:function(C,A){var B,_,$;return"string"==typeof A&&($=C[A],A=C,C=$),Z0.isFunction(C)?(B=Q0.call(arguments,2),_=function(){return C.apply(A||this,B.concat(Q0.call(arguments)))},_.guid=C.guid=C.guid||Z0.guid++,_):void 0},now:function(){return+new Date},support:c0}),Z0.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(_,$){e0["[object "+$+"]"]=$.toLowerCase()});function p0(A){var $=A.length,_=Z0.type(A);return"function"===_||Z0.isWindow(A)?!1:1===A.nodeType&&$?!0:"array"===_||0===$||"number"==typeof $&&$>0&&$-1 in A}var m0=function(y){var w,x,u,v,s,t,F0,G0,C0,D0,_0,A0,z,$0,Q0,P0,O0,N0,L0,K0="sizzle"+-new Date,J0=y.document,H0=0,V0=0,U0=_(),T0=_(),Q=_(),R=function(_,$){return _===$&&(_0=!0),0},S="undefined",M=1<<31,N={}.hasOwnProperty,O=[],P=O.pop,X=O.push,Z=O.push,a=O.slice,c=O.indexOf||function(A){for(var $=0,_=this.length;_>$;$++)if(this[$]===A)return $;return-1},T="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",U="[\\x20\\t\\r\\n\\f]",V="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=V.replace("w","w#"),j="\\["+U+"*("+V+")(?:"+U+"*([*^$|!~]?=)"+U+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+U+"*\\]",i=":("+V+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",m=new RegExp("^"+U+"+|((?:^|[^\\\\])(?:\\\\.)*)"+U+"+$","g"),k=new RegExp("^"+U+"*,"+U+"*"),e=new RegExp("^"+U+"*([>+~]|"+U+")"+U+"*"),d=new RegExp("="+U+"*([^\\]'\"]*?)"+U+"*\\]","g"),h=new RegExp(i),g=new RegExp("^"+W+"$"),q={ID:new RegExp("^#("+V+")"),CLASS:new RegExp("^\\.("+V+")"),TAG:new RegExp("^("+V.replace("w","w*")+")"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+i),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+U+"*(even|odd|(([+-]|)(\\d*)n|)"+U+"*(?:([+-]|)"+U+"*(\\d+)|))"+U+"*\\)|)","i"),bool:new RegExp("^(?:"+T+")$","i"),needsContext:new RegExp("^"+U+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+U+"*((?:-\\d)?\\d*)"+U+"*\\)|)(?=[^-]|$)","i")},p=/^(?:input|select|textarea|button)$/i,r=/^h\d$/i,G=/^[^{]+\{\s*\[native \w/,n=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,S0=/[+~]/,E=/'|\\/g,$=new RegExp("\\\\([\\da-f]{1,6}"+U+"?|("+U+")|.)","ig"),F=function(B,_,A){var $="0x"+_-65536;return $!==$||A?_:0>$?String.fromCharCode($+65536):String.fromCharCode($>>10|55296,1023&$|56320)};try{Z.apply(O=a.call(J0.childNodes),J0.childNodes),O[J0.childNodes.length].nodeType}catch(Y){Z={apply:O.length?function(_,$){X.apply(_,a.call($))}:function(B,_){var A=B.length,$=0;while(B[A++]=_[$++]);B.length=A-1}}}function E0(D,C,_,A){var $,J,H,I,G,F,M,L,K,O;if((C?C.ownerDocument||C:J0)!==z&&A0(C),C=C||z,_=_||[],!D||"string"!=typeof D)return _;if(1!==(I=C.nodeType)&&9!==I)return[];if(Q0&&!A){if($=n.exec(D))if(H=$[1]){if(9===I){if(J=C.getElementById(H),!J||!J.parentNode)return _;if(J.id===H)return _.push(J),_}else if(C.ownerDocument&&(J=C.ownerDocument.getElementById(H))&&L0(C,J)&&J.id===H)return _.push(J),_}else{if($[2])return Z.apply(_,C.getElementsByTagName(D)),_;if((H=$[3])&&x.getElementsByClassName&&C.getElementsByClassName)return Z.apply(_,C.getElementsByClassName(H)),_}if(x.qsa&&(!P0||!P0.test(D))){if(L=M=K0,K=C,O=9===I&&D,1===I&&"object"!==C.nodeName.toLowerCase()){F=t(D),(M=C.getAttribute("id"))?L=M.replace(E,"\\$&"):C.setAttribute("id",L),L="[id='"+L+"'] ",G=F.length;while(G--)F[G]=L+B0(F[G]);K=S0.test(D)&&B(C.parentNode)||C,O=F.join(",")}if(O){try{return Z.apply(_,K.querySelectorAll(O)),_}catch(N){}finally{M||C.removeAttribute("id")}}}}return G0(D.replace(m,"$1"),C,_,A)}function _(){var _=[];function $(B,A){return _.push(B+" ")>u.cacheLength&&delete $[_.shift()],$[B+" "]=A}return $}function H($){return $[K0]=!0,$}function f(A){var $=z.createElement("div");try{return!!A($)}catch(_){return!1}finally{$.parentNode&&$.parentNode.removeChild($),$=null}}function I0(B,_){var A=B.split("|"),$=B.length;while($--)u.attrHandle[A[$]]=_}function C(B,_){var A=_&&B,$=A&&1===B.nodeType&&1===_.nodeType&&(~_.sourceIndex||M)-(~B.sourceIndex||M);if($)return $;if(A)while(A=A.nextSibling)if(A===_)return-1;return B?1:-1}function L($){return function(_){var A=_.nodeName.toLowerCase();return"input"===A&&_.type===$}}function l($){return function(_){var A=_.nodeName.toLowerCase();return("input"===A||"button"===A)&&_.type===$}}function M0($){return H(function(_){return _=+_,H(function(E,C){var D,A=$([],E.length,_),B=A.length;while(B--)E[D=A[B]]&&(E[D]=!(C[D]=E[D]))})})}function B($){return $&&typeof $.getElementsByTagName!==S&&$}x=E0.support={},s=E0.isXML=function(_){var $=_&&(_.ownerDocument||_).documentElement;return $?"HTML"!==$.nodeName:!1},A0=E0.setDocument=function(D){var B,A=D?D.ownerDocument||D:J0,_=A.defaultView;return A!==z&&9===A.nodeType&&A.documentElement?(z=A,$0=A.documentElement,Q0=!s(A),_&&_!==_.top&&(_.addEventListener?_.addEventListener("unload",function(){A0()},!1):_.attachEvent&&_.attachEvent("onunload",function(){A0()})),x.attributes=f(function($){return $.className="i",!$.getAttribute("className")}),x.getElementsByTagName=f(function($){return $.appendChild(A.createComment("")),!$.getElementsByTagName("*").length}),x.getElementsByClassName=G.test(A.getElementsByClassName)&&f(function($){return $.innerHTML="<div class='a'></div><div class='a i'></div>",$.firstChild.className="i",2===$.getElementsByClassName("i").length}),x.getById=f(function($){return $0.appendChild($).id=K0,!A.getElementsByName||!A.getElementsByName(K0).length}),x.getById?(u.find.ID=function(A,$){if(typeof $.getElementById!==S&&Q0){var _=$.getElementById(A);return _&&_.parentNode?[_]:[]}},u.filter.ID=function(A){var _=A.replace($,F);return function($){return $.getAttribute("id")===_}}):(delete u.find.ID,u.filter.ID=function(A){var _=A.replace($,F);return function(A){var $=typeof A.getAttributeNode!==S&&A.getAttributeNode("id");return $&&$.value===_}}),u.find.TAG=x.getElementsByTagName?function(_,$){return typeof $.getElementsByTagName!==S?$.getElementsByTagName(_):void 0}:function(D,B){var C,_=[],A=0,$=B.getElementsByTagName(D);if("*"===D){while(C=$[A++])1===C.nodeType&&_.push(C);return _}return $},u.find.CLASS=x.getElementsByClassName&&function(_,$){return typeof $.getElementsByClassName!==S&&Q0?$.getElementsByClassName(_):void 0},O0=[],P0=[],(x.qsa=G.test(A.querySelectorAll))&&(f(function($){$.innerHTML="<select msallowclip=''><option selected=''></option></select>",$.querySelectorAll("[msallowclip^='']").length&&P0.push("[*^$]="+U+"*(?:''|\"\")"),$.querySelectorAll("[selected]").length||P0.push("\\["+U+"*(?:value|"+T+")"),$.querySelectorAll(":checked").length||P0.push(":checked")}),f(function(_){var $=A.createElement("input");$.setAttribute("type","hidden"),_.appendChild($).setAttribute("name","D"),_.querySelectorAll("[name=d]").length&&P0.push("name"+U+"*[*^$|!~]?="),_.querySelectorAll(":enabled").length||P0.push(":enabled",":disabled"),_.querySelectorAll("*,:x"),P0.push(",.*:")})),(x.matchesSelector=G.test(N0=$0.matches||$0.webkitMatchesSelector||$0.mozMatchesSelector||$0.oMatchesSelector||$0.msMatchesSelector))&&f(function($){x.disconnectedMatch=N0.call($,"div"),N0.call($,"[s!='']:x"),O0.push("!=",i)}),P0=P0.length&&new RegExp(P0.join("|")),O0=O0.length&&new RegExp(O0.join("|")),B=G.test($0.compareDocumentPosition),L0=B||G.test($0.contains)?function(B,_){var A=9===B.nodeType?B.documentElement:B,$=_&&_.parentNode;return B===$||!(!$||1!==$.nodeType||!(A.contains?A.contains($):B.compareDocumentPosition&&16&B.compareDocumentPosition($)))}:function(_,$){if($)while($=$.parentNode)if($===_)return!0;return!1},R=B?function(B,_){if(B===_)return _0=!0,0;var $=!B.compareDocumentPosition-!_.compareDocumentPosition;return $?$:($=(B.ownerDocument||B)===(_.ownerDocument||_)?B.compareDocumentPosition(_):1,1&$||!x.sortDetached&&_.compareDocumentPosition(B)===$?B===A||B.ownerDocument===J0&&L0(J0,B)?-1:_===A||_.ownerDocument===J0&&L0(J0,_)?1:D0?c.call(D0,B)-c.call(D0,_):0:4&$?-1:1)}:function(F,D){if(F===D)return _0=!0,0;var E,B=0,$=F.parentNode,_=D.parentNode,G=[F],H=[D];if(!$||!_)return F===A?-1:D===A?1:$?-1:_?1:D0?c.call(D0,F)-c.call(D0,D):0;if($===_)return C(F,D);E=F;while(E=E.parentNode)G.unshift(E);E=D;while(E=E.parentNode)H.unshift(E);while(G[B]===H[B])B++;return B?C(G[B],H[B]):G[B]===J0?-1:H[B]===J0?1:0},A):z},E0.matches=function(_,$){return E0(_,null,null,$)},E0.matchesSelector=function(B,A){if((B.ownerDocument||B)!==z&&A0(B),A=A.replace(d,"='$1']"),!(!x.matchesSelector||!Q0||O0&&O0.test(A)||P0&&P0.test(A))){try{var $=N0.call(B,A);if($||x.disconnectedMatch||B.document&&11!==B.document.nodeType)return $}catch(_){}}return E0(A,z,null,[B]).length>0},E0.contains=function(_,$){return(_.ownerDocument||_)!==z&&A0(_),L0(_,$)},E0.attr=function(B,A){(B.ownerDocument||B)!==z&&A0(B);var _=u.attrHandle[A.toLowerCase()],$=_&&N.call(u.attrHandle,A.toLowerCase())?_(B,A,!Q0):void 0;return void 0!==$?$:x.attributes||!Q0?B.getAttribute(A):($=B.getAttributeNode(A))&&$.specified?$.value:null},E0.error=function($){throw new Error("Syntax error, unrecognized expression: "+$)},E0.uniqueSort=function(C){var B,_=[],A=0,$=0;if(_0=!x.detectDuplicates,D0=!x.sortStable&&C.slice(0),C.sort(R),_0){while(B=C[$++])B===C[$]&&(A=_.push($));while(A--)C.splice(_[A],1)}return D0=null,C},v=E0.getText=function(C){var A,B="",_=0,$=C.nodeType;if($){if(1===$||9===$||11===$){if("string"==typeof C.textContent)return C.textContent;for(C=C.firstChild;C;C=C.nextSibling)B+=v(C)}else if(3===$||4===$)return C.nodeValue}else while(A=C[_++])B+=v(A);return B},u=E0.selectors={cacheLength:50,createPseudo:H,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(_){return _[1]=_[1].replace($,F),_[3]=(_[3]||_[4]||_[5]||"").replace($,F),"~="===_[2]&&(_[3]=" "+_[3]+" "),_.slice(0,4)},CHILD:function($){return $[1]=$[1].toLowerCase(),"nth"===$[1].slice(0,3)?($[3]||E0.error($[0]),$[4]=+($[4]?$[5]+($[6]||1):2*("even"===$[3]||"odd"===$[3])),$[5]=+($[7]+$[8]||"odd"===$[3])):$[3]&&E0.error($[0]),$},PSEUDO:function(A){var $,_=!A[6]&&A[2];return q.CHILD.test(A[0])?null:(A[3]?A[2]=A[4]||A[5]||"":_&&h.test(_)&&($=t(_,!0))&&($=_.indexOf(")",_.length-$)-_.length)&&(A[0]=A[0].slice(0,$),A[2]=_.slice(0,$)),A.slice(0,3))}},filter:{TAG:function(A){var _=A.replace($,F).toLowerCase();return"*"===A?function(){return!0}:function($){return $.nodeName&&$.nodeName.toLowerCase()===_}},CLASS:function(_){var $=U0[_+" "];return $||($=new RegExp("(^|"+U+")"+_+"("+U+"|$)"))&&U0(_,function(_){return $.test("string"==typeof _.className&&_.className||typeof _.getAttribute!==S&&_.getAttribute("class")||"")})},ATTR:function(A,$,_){return function(B){var C=E0.attr(B,A);return null==C?"!="===$:$?(C+="","="===$?C===_:"!="===$?C!==_:"^="===$?_&&0===C.indexOf(_):"*="===$?_&&C.indexOf(_)>-1:"$="===$?_&&C.slice(-_.length)===_:"~="===$?(" "+C+" ").indexOf(_)>-1:"|="===$?C===_||C.slice(0,_.length+1)===_+"-":!1):!0}},CHILD:function(E,C,D,A,B){var $="nth"!==E.slice(0,3),_="last"!==E.slice(-4),F="of-type"===C;return 1===A&&0===B?function($){return!!$.parentNode}:function(C,D,M){var K,L,I,J,G,H,Q=$!==_?"nextSibling":"previousSibling",P=C.parentNode,O=F&&C.nodeName.toLowerCase(),N=!M&&!F;if(P){if($){while(Q){I=C;while(I=I[Q])if(F?I.nodeName.toLowerCase()===O:1===I.nodeType)return!1;H=Q="only"===E&&!H&&"nextSibling"}return!0}if(H=[_?P.firstChild:P.lastChild],_&&N){L=P[K0]||(P[K0]={}),K=L[E]||[],G=K[0]===H0&&K[1],J=K[0]===H0&&K[2],I=G&&P.childNodes[G];while(I=++G&&I&&I[Q]||(J=G=0)||H.pop())if(1===I.nodeType&&++J&&I===C){L[E]=[H0,G,J];break}}else if(N&&(K=(C[K0]||(C[K0]={}))[E])&&K[0]===H0)J=K[1];else while(I=++G&&I&&I[Q]||(J=G=0)||H.pop())if((F?I.nodeName.toLowerCase()===O:1===I.nodeType)&&++J&&(N&&((I[K0]||(I[K0]={}))[E]=[H0,J]),I===C))break;return J-=B,J===A||J%A===0&&J/A>=0}}},PSEUDO:function(B,_){var A,$=u.pseudos[B]||u.setFilters[B.toLowerCase()]||E0.error("unsupported pseudo: "+B);return $[K0]?$(_):$.length>1?(A=[B,B,"",_],u.setFilters.hasOwnProperty(B.toLowerCase())?H(function(E,D){var C,A=$(E,_),B=A.length;while(B--)C=c.call(E,A[B]),E[C]=!(D[C]=A[B])}):function(_){return $(_,0,A)}):$}},pseudos:{not:H(function(B){var _=[],A=[],$=F0(B.replace(m,"$1"));return $[K0]?H(function(E,C,D,B){var _,A=$(E,null,B,[]),F=E.length;while(F--)(_=A[F])&&(E[F]=!(C[F]=_))}):function(D,C,B){return _[0]=D,$(_,null,B,A),!A.pop()}}),has:H(function($){return function(_){return E0($,_).length>0}}),contains:H(function($){return function(_){return(_.textContent||_.innerText||v(_)).indexOf($)>-1}}),lang:H(function(_){return g.test(_||"")||E0.error("unsupported lang: "+_),_=_.replace($,F).toLowerCase(),function($){var A;do if(A=Q0?$.lang:$.getAttribute("xml:lang")||$.getAttribute("lang"))return A=A.toLowerCase(),A===_||0===A.indexOf(_+"-");while(($=$.parentNode)&&1===$.nodeType);return!1}}),target:function($){var _=y.location&&y.location.hash;return _&&_.slice(1)===$.id},root:function($){return $===$0},focus:function($){return $===z.activeElement&&(!z.hasFocus||z.hasFocus())&&!!($.type||$.href||~$.tabIndex)},enabled:function($){return $.disabled===!1},disabled:function($){return $.disabled===!0},checked:function(_){var $=_.nodeName.toLowerCase();return"input"===$&&!!_.checked||"option"===$&&!!_.selected},selected:function($){return $.parentNode&&$.parentNode.selectedIndex,$.selected===!0},empty:function($){for($=$.firstChild;$;$=$.nextSibling)if($.nodeType<6)return!1;return!0},parent:function($){return!u.pseudos.empty($)},header:function($){return r.test($.nodeName)},input:function($){return p.test($.nodeName)},button:function(_){var $=_.nodeName.toLowerCase();return"input"===$&&"button"===_.type||"button"===$},text:function(_){var $;return"input"===_.nodeName.toLowerCase()&&"text"===_.type&&(null==($=_.getAttribute("type"))||"text"===$.toLowerCase())},first:M0(function(){return[0]}),last:M0(function(_,$){return[$-1]}),eq:M0(function(A,$,_){return[0>_?_+$:_]}),even:M0(function(A,$){for(var _=0;$>_;_+=2)A.push(_);return A}),odd:M0(function(A,$){for(var _=1;$>_;_+=2)A.push(_);return A}),lt:M0(function(B,_,A){for(var $=0>A?A+_:A;--$>=0;)B.push($);return B}),gt:M0(function(B,_,A){for(var $=0>A?A+_:A;++$<_;)B.push($);return B})}},u.pseudos.nth=u.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})u.pseudos[w]=L(w);for(w in{submit:!0,reset:!0})u.pseudos[w]=l(w);function I(){}I.prototype=u.filters=u.pseudos,u.setFilters=new I,t=E0.tokenize=function(D,B){var C,A,$,_,G,H,E,F=T0[D+" "];if(F)return B?0:F.slice(0);G=D,H=[],E=u.preFilter;while(G){(!C||(A=k.exec(G)))&&(A&&(G=G.slice(A[0].length)||G),H.push($=[])),C=!1,(A=e.exec(G))&&(C=A.shift(),$.push({value:C,type:A[0].replace(m," ")}),G=G.slice(C.length));for(_ in u.filter)!(A=q[_].exec(G))||E[_]&&!(A=E[_](A))||(C=A.shift(),$.push({value:C,type:_,matches:A}),G=G.slice(C.length));if(!C)break}return B?G.length:G?E0.error(D):T0(D,H).slice(0)};function B0(B){for(var _=0,A=B.length,$="";A>_;_++)$+=B[_].value;return $}function b(D,B,C){var _=B.dir,A=C&&"parentNode"===_,$=V0++;return B.first?function(B,C,$){while(B=B[_])if(1===B.nodeType||A)return D(B,C,$)}:function(C,E,B){var G,H,F=[H0,$];if(B){while(C=C[_])if((1===C.nodeType||A)&&D(C,E,B))return!0}else while(C=C[_])if(1===C.nodeType||A){if(H=C[K0]||(C[K0]={}),(G=H[_])&&G[0]===H0&&G[1]===$)return F[2]=G[2];if(H[_]=F,F[2]=D(C,E,B))return!0}}}function J($){return $.length>1?function(B,C,_){var A=$.length;while(A--)if(!$[A](B,C,_))return!1;return!0}:$[0]}function A(C,A,B){for(var $=0,_=A.length;_>$;$++)E0(C,A[$],B);return B}function R0(E,C,D,A,B){for(var $,_=[],G=0,H=E.length,F=null!=C;H>G;G++)($=E[G])&&(!D||D($,A,B))&&(_.push($),F&&C.push(G));return _}function o(E,C,D,_,B,$){return _&&!_[K0]&&(_=o(_)),B&&!B[K0]&&(B=o(B,$)),H(function($,F,M,N){var K,L,I,J=[],G=[],H=F.length,Q=$||A(C||"*",M.nodeType?[M]:M,[]),P=!E||!$&&C?Q:R0(Q,J,E,M,N),O=D?B||($?E:H||_)?[]:F:P;if(D&&D(P,O,M,N),_){K=R0(O,G),_(K,[],M,N),L=K.length;while(L--)(I=K[L])&&(O[G[L]]=!(P[G[L]]=I))}if($){if(B||E){if(B){K=[],L=O.length;while(L--)(I=O[L])&&K.push(P[L]=I);B(null,O=[],K,N)}L=O.length;while(L--)(I=O[L])&&(K=B?c.call($,I):J[L])>-1&&($[K]=!(F[K]=I))}}else O=R0(O===F?O.splice(H,O.length):O),B?B(null,F,O,N):Z.apply(F,O)})}function K(D){for(var B,C,A,$=D.length,_=u.relative[D[0].type],H=_||u.relative[" "],I=_?1:0,G=b(function($){return $===B},H,!0),E=b(function($){return c.call(B,$)>-1},H,!0),F=[function(C,A,$){return!_&&($||A!==C0)||((B=A).nodeType?G(C,A,$):E(C,A,$))}];$>I;I++)if(C=u.relative[D[I].type])F=[b(J(F),C)];else{if(C=u.filter[D[I].type].apply(null,D[I].matches),C[K0]){for(A=++I;$>A;A++)if(u.relative[D[A].type])break;return o(I>1&&J(F),I>1&&B0(D.slice(0,I-1).concat({value:" "===D[I-2].type?"*":""})).replace(m,"$1"),C,A>I&&K(D.slice(I,A)),$>A&&K(D=D.slice(A)),$>A&&B0(D))}F.push(C)}return J(F)}function D(C,A){var B=A.length>0,_=C.length>0,$=function($,D,I,J,H){var F,G,E,R=0,Q="0",O=$&&[],N=[],M=C0,L=$||_&&u.find.TAG("*",H),K=H0+=null==M?1:Math.random()||0.1,S=L.length;for(H&&(C0=D!==z&&D);Q!==S&&null!=(F=L[Q]);Q++){if(_&&F){G=0;while(E=C[G++])if(E(F,D,I)){J.push(F);break}H&&(H0=K)}B&&((F=!E&&F)&&R--,$&&O.push(F))}if(R+=Q,B&&Q!==R){G=0;while(E=A[G++])E(O,N,D,I);if($){if(R>0)while(Q--)O[Q]||N[Q]||(N[Q]=P.call(J));N=R0(N)}Z.apply(J,N),H&&!$&&N.length>0&&R+A.length>1&&E0.uniqueSort(J)}return H&&(H0=K,C0=M),O};return B?H($):$}return F0=E0.compile=function(E,B){var C,_=[],A=[],$=Q[E+" "];if(!$){B||(B=t(E)),C=B.length;while(C--)$=K(B[C]),$[K0]?_.push($):A.push($);$=Q(E,D(A,_)),$.selector=E}return $},G0=E0.select=function(D,C,A,_){var L,J,K,H,I,E="function"==typeof D&&D,G=!_&&t(D=E.selector||D);if(A=A||[],1===G.length){if(J=G[0]=G[0].slice(0),J.length>2&&"ID"===(K=J[0]).type&&x.getById&&9===C.nodeType&&Q0&&u.relative[J[1].type]){if(C=(u.find.ID(K.matches[0].replace($,F),C)||[])[0],!C)return A;E&&(C=C.parentNode),D=D.slice(J.shift().value.length)}L=q.needsContext.test(D)?0:J.length;while(L--){if(K=J[L],u.relative[H=K.type])break;if((I=u.find[H])&&(_=I(K.matches[0].replace($,F),S0.test(J[0].type)&&B(C.parentNode)||C))){if(J.splice(L,1),D=_.length&&B0(J),!D)return Z.apply(A,_),A;break}}}return(E||F0(D,G))(_,C,!Q0,A,S0.test(D)&&B(C.parentNode)||C),A},x.sortStable=K0.split("").sort(R).join("")===K0,x.detectDuplicates=!!_0,A0(),x.sortDetached=f(function($){return 1&$.compareDocumentPosition(z.createElement("div"))}),f(function($){return $.innerHTML="<a href='#'></a>","#"===$.firstChild.getAttribute("href")})||I0("type|href|height|width",function(A,$,_){return _?void 0:A.getAttribute($,"type"===$.toLowerCase()?1:2)}),x.attributes&&f(function($){return $.innerHTML="<input/>",$.firstChild.setAttribute("value",""),""===$.firstChild.getAttribute("value")})||I0("value",function(A,$,_){return _||"input"!==A.nodeName.toLowerCase()?void 0:A.defaultValue}),f(function($){return null==$.getAttribute("disabled")})||I0(T,function(B,_,A){var $;return A?void 0:B[_]===!0?_.toLowerCase():($=B.getAttributeNode(_))&&$.specified?$.value:null}),E0}(V0);Z0.find=m0,Z0.expr=m0.selectors,Z0.expr[":"]=Z0.expr.pseudos,Z0.unique=m0.uniqueSort,Z0.text=m0.getText,Z0.isXMLDoc=m0.isXML,Z0.contains=m0.contains;var k0=Z0.expr.match.needsContext,j0=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,i0=/^.[^:#\[\.,]*$/;function h0(A,$,_){if(Z0.isFunction($))return Z0.grep(A,function(B,A){return!!$.call(B,A,B)!==_});if($.nodeType)return Z0.grep(A,function(A){return A===$!==_});if("string"==typeof $){if(i0.test($))return Z0.filter($,A,_);$=Z0.filter($,A)}return Z0.grep(A,function(A){return Z0.inArray(A,$)>=0!==_})}Z0.filter=function(B,_,A){var $=_[0];return A&&(B=":not("+B+")"),1===_.length&&1===$.nodeType?Z0.find.matchesSelector($,B)?[$]:[]:Z0.find.matches(B,Z0.grep(_,function($){return 1===$.nodeType}))},Z0.fn.extend({find:function(C){var A,B=[],$=this,_=$.length;if("string"!=typeof C)return this.pushStack(Z0(C).filter(function(){for(A=0;_>A;A++)if(Z0.contains($[A],this))return!0}));for(A=0;_>A;A++)Z0.find(C,$[A],B);return B=this.pushStack(_>1?Z0.unique(B):B),B.selector=this.selector?this.selector+" "+C:C,B},filter:function($){return this.pushStack(h0(this,$||[],!1))},not:function($){return this.pushStack(h0(this,$||[],!0))},is:function($){return!!h0(this,"string"==typeof $&&k0.test($)?Z0($):$||[],!1).length}});var y0,x0=V0.document,w0=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,e=Z0.fn.init=function(B,_){var A,$;if(!B)return this;if("string"==typeof B){if(A="<"===B.charAt(0)&&">"===B.charAt(B.length-1)&&B.length>=3?[null,B,null]:w0.exec(B),!A||!A[1]&&_)return!_||_.jquery?(_||y0).find(B):this.constructor(_).find(B);if(A[1]){if(_=_ instanceof Z0?_[0]:_,Z0.merge(this,Z0.parseHTML(A[1],_&&_.nodeType?_.ownerDocument||_:x0,!0)),j0.test(A[1])&&Z0.isPlainObject(_))for(A in _)Z0.isFunction(this[A])?this[A](_[A]):this.attr(A,_[A]);return this}if($=x0.getElementById(A[2]),$&&$.parentNode){if($.id!==A[2])return y0.find(B);this.length=1,this[0]=$}return this.context=x0,this.selector=B,this}return B.nodeType?(this.context=this[0]=B,this.length=1,this):Z0.isFunction(B)?"undefined"!=typeof y0.ready?y0.ready(B):B(Z0):(void 0!==B.selector&&(this.selector=B.selector,this.context=B.context),Z0.makeArray(B,this))};e.prototype=Z0.fn,y0=Z0(x0);var f=/^(?:parents|prev(?:Until|All))/,g={children:!0,contents:!0,next:!0,prev:!0};Z0.extend({dir:function(C,A,B){var $=[],_=C[A];while(_&&9!==_.nodeType&&(void 0===B||1!==_.nodeType||!Z0(_).is(B)))1===_.nodeType&&$.push(_),_=_[A];return $},sibling:function(A,$){for(var _=[];A;A=A.nextSibling)1===A.nodeType&&A!==$&&_.push(A);return _}}),Z0.fn.extend({has:function(B){var _,A=Z0(B,this),$=A.length;return this.filter(function(){for(_=0;$>_;_++)if(Z0.contains(this,A[_]))return!0})},closest:function(E,C){for(var D,A=0,B=this.length,$=[],_=k0.test(E)||"string"!=typeof E?Z0(E,C||this.context):0;B>A;A++)for(D=this[A];D&&D!==C;D=D.parentNode)if(D.nodeType<11&&(_?_.index(D)>-1:1===D.nodeType&&Z0.find.matchesSelector(D,E))){$.push(D);break}return this.pushStack($.length>1?Z0.unique($):$)},index:function($){return $?"string"==typeof $?Z0.inArray(this[0],Z0($)):Z0.inArray($.jquery?$[0]:$,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(_,$){return this.pushStack(Z0.unique(Z0.merge(this.get(),Z0(_,$))))},addBack:function($){return this.add(null==$?this.prevObject:this.prevObject.filter($))}});function Z(_,$){do _=_[$];while(_&&1!==_.nodeType);return _}Z0.each({parent:function(_){var $=_.parentNode;return $&&11!==$.nodeType?$:null},parents:function($){return Z0.dir($,"parentNode")},parentsUntil:function(A,$,_){return Z0.dir(A,"parentNode",_)},next:function($){return Z($,"nextSibling")},prev:function($){return Z($,"previousSibling")},nextAll:function($){return Z0.dir($,"nextSibling")},prevAll:function($){return Z0.dir($,"previousSibling")},nextUntil:function(A,$,_){return Z0.dir(A,"nextSibling",_)},prevUntil:function(A,$,_){return Z0.dir(A,"previousSibling",_)},siblings:function($){return Z0.sibling(($.parentNode||{}).firstChild,$)},children:function($){return Z0.sibling($.firstChild)},contents:function($){return Z0.nodeName($,"iframe")?$.contentDocument||$.contentWindow.document:Z0.merge([],$.childNodes)}},function(_,$){Z0.fn[_]=function(C,A){var B=Z0.map(this,$,C);return"Until"!==_.slice(-5)&&(A=C),A&&"string"==typeof A&&(B=Z0.filter(A,B)),this.length>1&&(g[_]||(B=Z0.unique(B)),f.test(_)&&(B=B.reverse())),this.pushStack(B)}});var b=/\S+/g,c={};function d(_){var $=c[_]={};return Z0.each(_.match(b)||[],function(A,_){$[_]=!0}),$}Z0.Callbacks=function(E){E="string"==typeof E?c[E]||d(E):Z0.extend({},E);var C,D,A,B,$,_,H=[],I=!E.once&&[],F=function(J){for(D=E.memory&&J,A=!0,$=_||0,_=0,B=H.length,C=!0;H&&B>$;$++)if(H[$].apply(J[0],J[1])===!1&&E.stopOnFalse){D=!1;break}C=!1,H&&(I?I.length&&F(I.shift()):D?H=[]:G.disable())},G={add:function(){if(H){var A=H.length;!function $(_){Z0.each(_,function(A,B){var _=Z0.type(B);"function"===_?E.unique&&G.has(B)||H.push(B):B&&B.length&&"string"!==_&&$(B)})}(arguments),C?B=H.length:D&&(_=A,F(D))}return this},remove:function(){return H&&Z0.each(arguments,function(D,A){var _;while((_=Z0.inArray(A,H,_))>-1)H.splice(_,1),C&&(B>=_&&B--,$>=_&&$--)}),this},has:function($){return $?Z0.inArray($,H)>-1:!(!H||!H.length)},empty:function(){return H=[],B=0,this},disable:function(){return H=I=D=void 0,this},disabled:function(){return!H},lock:function(){return I=void 0,D||G.disable(),this},locked:function(){return!I},fireWith:function(_,$){return!H||A&&!I||($=$||[],$=[_,$.slice?$.slice():$],C?I.push($):F($)),this},fire:function(){return G.fireWith(this,arguments),this},fired:function(){return!!A}};return G},Z0.extend({Deferred:function(C){var A=[["resolve","done",Z0.Callbacks("once memory"),"resolved"],["reject","fail",Z0.Callbacks("once memory"),"rejected"],["notify","progress",Z0.Callbacks("memory")]],B="pending",$={state:function(){return B},always:function(){return _.done(arguments).fail(arguments),this},then:function(){var B=arguments;return Z0.Deferred(function(C){Z0.each(A,function(E,A){var D=Z0.isFunction(B[E])&&B[E];_[A[1]](function(){var _=D&&D.apply(this,arguments);_&&Z0.isFunction(_.promise)?_.promise().done(C.resolve).fail(C.reject).progress(C.notify):C[A[0]+"With"](this===$?C.promise():this,D?[_]:arguments)})}),B=null}).promise()},promise:function(_){return null!=_?Z0.extend(_,$):$}},_={};return $.pipe=$.then,Z0.each(A,function(E,C){var D=C[2],F=C[3];$[C[1]]=D.add,F&&D.add(function(){B=F},A[1^E][2].disable,A[2][2].lock),_[C[0]]=function(){return _[C[0]+"With"](this===_?$:this,arguments),this},_[C[0]+"With"]=D.fireWith}),$.promise(_),C&&C.call(_,_),_},when:function(D){var B=0,C=Q0.call(arguments),A=C.length,$=1!==A||D&&Z0.isFunction(D.promise)?A:0,_=1===$?D:Z0.Deferred(),G=function(C,A,B){return function(D){A[C]=this,B[C]=arguments.length>1?Q0.call(arguments):D,B===H?_.notifyWith(A,B):--$||_.resolveWith(A,B)}},H,E,F;if(A>1)for(H=new Array(A),E=new Array(A),F=new Array(A);A>B;B++)C[B]&&Z0.isFunction(C[B].promise)?C[B].promise().done(G(B,F,C)).fail(_.reject).progress(G(B,E,H)):--$;return $||_.resolveWith(F,C),_.promise()}});var m;Z0.fn.ready=function($){return Z0.ready.promise().done($),this},Z0.extend({isReady:!1,readyWait:1,holdReady:function($){$?Z0.readyWait++:Z0.ready(!0)},ready:function($){if($===!0?!--Z0.readyWait:!Z0.isReady){if(!x0.body)return setTimeout(Z0.ready);Z0.isReady=!0,$!==!0&&--Z0.readyWait>0||(m.resolveWith(x0,[Z0]),Z0.fn.triggerHandler&&(Z0(x0).triggerHandler("ready"),Z0(x0).off("ready")))}}});function n(){x0.addEventListener?(x0.removeEventListener("DOMContentLoaded",q,!1),V0.removeEventListener("load",q,!1)):(x0.detachEvent("onreadystatechange",q),V0.detachEvent("onload",q))}function q(){(x0.addEventListener||"load"===event.type||"complete"===x0.readyState)&&(n(),Z0.ready())}Z0.ready.promise=function(A){if(!m)if(m=Z0.Deferred(),"complete"===x0.readyState)setTimeout(Z0.ready);else if(x0.addEventListener)x0.addEventListener("DOMContentLoaded",q,!1),V0.addEventListener("load",q,!1);else{x0.attachEvent("onreadystatechange",q),V0.attachEvent("onload",q);var B=!1;try{B=null==V0.frameElement&&x0.documentElement}catch($){}B&&B.doScroll&&!function _(){if(!Z0.isReady){try{B.doScroll("left")}catch($){return setTimeout(_,50)}n(),Z0.ready()}}()}return m.promise(A)};var t="undefined",h;for(h in Z0(c0))break;c0.ownLast="0"!==h,c0.inlineBlockNeedsLayout=!1,Z0(function(){var B,_,A,$;A=x0.getElementsByTagName("body")[0],A&&A.style&&(_=x0.createElement("div"),$=x0.createElement("div"),$.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",A.appendChild($).appendChild(_),typeof _.style.zoom!==t&&(_.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",c0.inlineBlockNeedsLayout=B=3===_.offsetWidth,B&&(A.style.zoom=1)),A.removeChild($))}),function(){var _=x0.createElement("div");if(null==c0.deleteExpando){c0.deleteExpando=!0;try{delete _.test}catch($){c0.deleteExpando=!1}}_=null}(),Z0.acceptData=function(A){var $=Z0.noData[(A.nodeName+" ").toLowerCase()],_=+A.nodeType||1;return 1!==_&&9!==_?!1:!$||$!==!0&&A.getAttribute("classid")===$};var i=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,j=/([A-Z])/g;function l(C,A,B){if(void 0===B&&1===C.nodeType){var $="data-"+A.replace(j,"-$1").toLowerCase();if(B=C.getAttribute($),"string"==typeof B){try{B="true"===B?!0:"false"===B?!1:"null"===B?null:+B+""===B?+B:i.test(B)?Z0.parseJSON(B):B}catch(_){}Z0.data(C,A,B)}else B=void 0}return B}function A0(_){var $;for($ in _)if(("data"!==$||!Z0.isEmptyObject(_[$]))&&"toJSON"!==$)return!1;return!0}function $0(D,C,A,B){if(Z0.acceptData(D)){var $,_,G=Z0.expando,H=D.nodeType,E=H?Z0.cache:D,F=H?D[G]:D[G]&&G;if(F&&E[F]&&(B||E[F].data)||void 0!==A||"string"!=typeof C)return F||(F=H?D[G]=T0.pop()||Z0.guid++:G),E[F]||(E[F]=H?{}:{toJSON:Z0.noop}),("object"==typeof C||"function"==typeof C)&&(B?E[F]=Z0.extend(E[F],C):E[F].data=Z0.extend(E[F].data,C)),_=E[F],B||(_.data||(_.data={}),_=_.data),void 0!==A&&(_[Z0.camelCase(C)]=A),"string"==typeof C?($=_[C],null==$&&($=_[Z0.camelCase(C)])):$=_,$}}function C0(E,C,D){if(Z0.acceptData(E)){var A,B,$=E.nodeType,_=$?Z0.cache:E,F=$?E[Z0.expando]:Z0.expando;if(_[F]){if(C&&(A=D?_[F]:_[F].data)){Z0.isArray(C)?C=C.concat(Z0.map(C,Z0.camelCase)):C in A?C=[C]:(C=Z0.camelCase(C),C=C in A?[C]:C.split(" ")),B=C.length;while(B--)delete A[C[B]];if(D?!A0(A):!Z0.isEmptyObject(A))return}(D||(delete _[F].data,A0(_[F])))&&($?Z0.cleanData([E],!0):c0.deleteExpando||_!=_.window?delete _[F]:_[F]=null)}}}Z0.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function($){return $=$.nodeType?Z0.cache[$[Z0.expando]]:$[Z0.expando],!!$&&!A0($)},data:function(A,$,_){return $0(A,$,_)},removeData:function(_,$){return C0(_,$)},_data:function(A,$,_){return $0(A,$,_,!0)},_removeData:function(_,$){return C0(_,$,!0)}}),Z0.fn.extend({data:function(E,C){var D,A,B,$=this[0],_=$&&$.attributes;if(void 0===E){if(this.length&&(B=Z0.data($),1===$.nodeType&&!Z0._data($,"parsedAttrs"))){D=_.length;while(D--)_[D]&&(A=_[D].name,0===A.indexOf("data-")&&(A=Z0.camelCase(A.slice(5)),l($,A,B[A])));Z0._data($,"parsedAttrs",!0)}return B}return"object"==typeof E?this.each(function(){Z0.data(this,E)}):arguments.length>1?this.each(function(){Z0.data(this,E,C)}):$?l($,E,Z0.data($,E)):void 0},removeData:function($){return this.each(function(){Z0.removeData(this,$)})}}),Z0.extend({queue:function(B,_,A){var $;return B?(_=(_||"fx")+"queue",$=Z0._data(B,_),A&&(!$||Z0.isArray(A)?$=Z0._data(B,_,Z0.makeArray(A)):$.push(A)),$||[]):void 0},dequeue:function(E,C){C=C||"fx";var D=Z0.queue(E,C),A=D.length,B=D.shift(),$=Z0._queueHooks(E,C),_=function(){Z0.dequeue(E,C)};"inprogress"===B&&(B=D.shift(),A--),B&&("fx"===C&&D.unshift("inprogress"),delete $.stop,B.call(E,_,$)),!A&&$&&$.empty.fire()},_queueHooks:function(A,$){var _=$+"queueHooks";return Z0._data(A,_)||Z0._data(A,_,{empty:Z0.Callbacks("once memory").add(function(){Z0._removeData(A,$+"queue"),Z0._removeData(A,_)})})}}),Z0.fn.extend({queue:function(A,$){var _=2;return"string"!=typeof A&&($=A,A="fx",_--),arguments.length<_?Z0.queue(this[0],A):void 0===$?this:this.each(function(){var _=Z0.queue(this,A,$);Z0._queueHooks(this,A),"fx"===A&&"inprogress"!==_[0]&&Z0.dequeue(this,A)})},dequeue:function($){return this.each(function(){Z0.dequeue(this,$)})},clearQueue:function($){return this.queue($||"fx",[])},promise:function(E,C){var D,A=1,B=Z0.Deferred(),$=this,_=this.length,F=function(){--A||B.resolveWith($,[$])};"string"!=typeof E&&(C=E,E=void 0),E=E||"fx";while(_--)D=Z0._data($[_],E+"queueHooks"),D&&D.empty&&(A++,D.empty.add(F));return F(),B.promise(C)}});var B0=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,x=["Top","Right","Bottom","Left"],v=function(_,$){return _=$||_,"none"===Z0.css(_,"display")||!Z0.contains(_.ownerDocument,_)},z=Z0.access=function(E,C,D,A,B,$,_){var G=0,H=E.length,F=null==D;if("object"===Z0.type(D)){B=!0;for(G in D)Z0.access(E,C,G,D[G],!0,$,_)}else if(void 0!==A&&(B=!0,Z0.isFunction(A)||(_=!0),F&&(_?(C.call(E,A),C=null):(F=C,C=function(A,$,_){return F.call(Z0(A),_)})),C))for(;H>G;G++)C(E[G],D,_?A:A.call(E[G],G,C(E[G],D)));return B?E:F?C.call(E):H?C(E[0],D):$},y=/^(?:checkbox|radio)$/i;!function(){var B=x0.createElement("input"),_=x0.createElement("div"),A=x0.createDocumentFragment();if(_.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",c0.leadingWhitespace=3===_.firstChild.nodeType,c0.tbody=!_.getElementsByTagName("tbody").length,c0.htmlSerialize=!!_.getElementsByTagName("link").length,c0.html5Clone="<:nav></:nav>"!==x0.createElement("nav").cloneNode(!0).outerHTML,B.type="checkbox",B.checked=!0,A.appendChild(B),c0.appendChecked=B.checked,_.innerHTML="<textarea>x</textarea>",c0.noCloneChecked=!!_.cloneNode(!0).lastChild.defaultValue,A.appendChild(_),_.innerHTML="<input type='radio' checked='checked' name='t'/>",c0.checkClone=_.cloneNode(!0).cloneNode(!0).lastChild.checked,c0.noCloneEvent=!0,_.attachEvent&&(_.attachEvent("onclick",function(){c0.noCloneEvent=!1}),_.cloneNode(!0).click()),null==c0.deleteExpando){c0.deleteExpando=!0;try{delete _.test}catch($){c0.deleteExpando=!1}}}(),function(){var _,A,$=x0.createElement("div");for(_ in{submit:!0,change:!0,focusin:!0})A="on"+_,(c0[_+"Bubbles"]=A in V0)||($.setAttribute(A,"t"),c0[_+"Bubbles"]=$.attributes[A].expando===!1);$=null}();var L0=/^(?:input|select|textarea)$/i,K0=/^key/,M0=/^(?:mouse|pointer|contextmenu)|click/,M=/^(?:focusinfocus|focusoutblur)$/,F0=/^([^.]*)(?:\.(.+)|)$/;function A2(){return!0}function J1(){return!1}function $1(){try{return x0.activeElement}catch($){}}Z0.event={global:{},add:function(E,C,D,A,B){var $,_,K,L,I,J,H,F,G,O,N,M=Z0._data(E);if(M){D.handler&&(L=D,D=L.handler,B=L.selector),D.guid||(D.guid=Z0.guid++),(_=M.events)||(_=M.events={}),(J=M.handle)||(J=M.handle=function($){return typeof Z0===t||$&&Z0.event.triggered===$.type?void 0:Z0.event.dispatch.apply(J.elem,arguments)},J.elem=E),C=(C||"").match(b)||[""],K=C.length;while(K--)$=F0.exec(C[K])||[],G=N=$[1],O=($[2]||"").split(".").sort(),G&&(I=Z0.event.special[G]||{},G=(B?I.delegateType:I.bindType)||G,I=Z0.event.special[G]||{},H=Z0.extend({type:G,origType:N,data:A,handler:D,guid:D.guid,selector:B,needsContext:B&&Z0.expr.match.needsContext.test(B),namespace:O.join(".")},L),(F=_[G])||(F=_[G]=[],F.delegateCount=0,I.setup&&I.setup.call(E,A,O,J)!==!1||(E.addEventListener?E.addEventListener(G,J,!1):E.attachEvent&&E.attachEvent("on"+G,J))),I.add&&(I.add.call(E,H),H.handler.guid||(H.handler.guid=D.guid)),B?F.splice(F.delegateCount++,0,H):F.push(H),Z0.event.global[G]=!0);E=null}},remove:function(E,C,D,A,B){var $,_,K,L,I,J,H,F,G,O,N,M=Z0.hasData(E)&&Z0._data(E);if(M&&(J=M.events)){C=(C||"").match(b)||[""],I=C.length;while(I--)if(K=F0.exec(C[I])||[],G=N=K[1],O=(K[2]||"").split(".").sort(),G){H=Z0.event.special[G]||{},G=(A?H.delegateType:H.bindType)||G,F=J[G]||[],K=K[2]&&new RegExp("(^|\\.)"+O.join("\\.(?:.*\\.|)")+"(\\.|$)"),L=$=F.length;while($--)_=F[$],!B&&N!==_.origType||D&&D.guid!==_.guid||K&&!K.test(_.namespace)||A&&A!==_.selector&&("**"!==A||!_.selector)||(F.splice($,1),_.selector&&F.delegateCount--,H.remove&&H.remove.call(E,_));L&&!F.length&&(H.teardown&&H.teardown.call(E,O,M.handle)!==!1||Z0.removeEvent(E,G,M.handle),delete J[G])}else for(G in J)Z0.event.remove(E,G+C[I],D,A,!0);Z0.isEmptyObject(J)&&(delete M.handle,Z0._removeData(E,"events"))}},trigger:function(C,D,A,B){var $,_,I,J,H,G,E,F=[A||x0],N=b0.call(C,"type")?C.type:C,L=b0.call(C,"namespace")?C.namespace.split("."):[];if(I=G=A=A||x0,3!==A.nodeType&&8!==A.nodeType&&!M.test(N+Z0.event.triggered)&&(N.indexOf(".")>=0&&(L=N.split("."),N=L.shift(),L.sort()),_=N.indexOf(":")<0&&"on"+N,C=C[Z0.expando]?C:new Z0.Event(N,"object"==typeof C&&C),C.isTrigger=B?2:3,C.namespace=L.join("."),C.namespace_re=C.namespace?new RegExp("(^|\\.)"+L.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,C.result=void 0,C.target||(C.target=A),D=null==D?[C]:Z0.makeArray(D,[C]),H=Z0.event.special[N]||{},B||!H.trigger||H.trigger.apply(A,D)!==!1)){if(!B&&!H.noBubble&&!Z0.isWindow(A)){for(J=H.delegateType||N,M.test(J+N)||(I=I.parentNode);I;I=I.parentNode)F.push(I),G=I;G===(A.ownerDocument||x0)&&F.push(G.defaultView||G.parentWindow||V0)}E=0;while((I=F[E++])&&!C.isPropagationStopped())C.type=E>1?J:H.bindType||N,$=(Z0._data(I,"events")||{})[C.type]&&Z0._data(I,"handle"),$&&$.apply(I,D),$=_&&I[_],$&&$.apply&&Z0.acceptData(I)&&(C.result=$.apply(I,D),C.result===!1&&C.preventDefault());if(C.type=N,!B&&!C.isDefaultPrevented()&&(!H._default||H._default.apply(F.pop(),D)===!1)&&Z0.acceptData(A)&&_&&A[N]&&!Z0.isWindow(A)){G=A[_],G&&(A[_]=null),Z0.event.triggered=N;try{A[N]()}catch(K){}Z0.event.triggered=void 0,G&&(A[_]=G)}return C.result}},dispatch:function(D){D=Z0.event.fix(D);var B,C,A,$,_,G=[],H=Q0.call(arguments),E=(Z0._data(this,"events")||{})[D.type]||[],F=Z0.event.special[D.type]||{};if(H[0]=D,D.delegateTarget=this,!F.preDispatch||F.preDispatch.call(this,D)!==!1){G=Z0.event.handlers.call(this,D,E),B=0;while(($=G[B++])&&!D.isPropagationStopped()){D.currentTarget=$.elem,_=0;while((A=$.handlers[_++])&&!D.isImmediatePropagationStopped())(!D.namespace_re||D.namespace_re.test(A.namespace))&&(D.handleObj=A,D.data=A.data,C=((Z0.event.special[A.origType]||{}).handle||A.handler).apply($.elem,H),void 0!==C&&(D.result=C)===!1&&(D.preventDefault(),D.stopPropagation()))}return F.postDispatch&&F.postDispatch.call(this,D),D.result}},handlers:function(E,C){var D,A,B,$,_=[],F=C.delegateCount,G=E.target;if(F&&G.nodeType&&(!E.button||"click"!==E.type))for(;G!=this;G=G.parentNode||this)if(1===G.nodeType&&(G.disabled!==!0||"click"!==E.type)){for(B=[],$=0;F>$;$++)A=C[$],D=A.selector+" ",void 0===B[D]&&(B[D]=A.needsContext?Z0(D,this).index(G)>=0:Z0.find(D,this,null,[G]).length),B[D]&&B.push(A);B.length&&_.push({elem:G,handlers:B})}return F<C.length&&_.push({elem:this,handlers:C.slice(F)}),_},fix:function(E){if(E[Z0.expando])return E;var C,D,A,B=E.type,$=E,_=this.fixHooks[B];_||(this.fixHooks[B]=_=M0.test(B)?this.mouseHooks:K0.test(B)?this.keyHooks:{}),A=_.props?this.props.concat(_.props):this.props,E=new Z0.Event($),C=A.length;while(C--)D=A[C],E[D]=$[D];return E.target||(E.target=$.srcElement||x0),3===E.target.nodeType&&(E.target=E.target.parentNode),E.metaKey=!!E.metaKey,_.filter?_.filter(E,$):E},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(_,$){return null==_.which&&(_.which=null!=$.charCode?$.charCode:$.keyCode),_}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(E,C){var D,A,B,$=C.button,_=C.fromElement;return null==E.pageX&&null!=C.clientX&&(A=E.target.ownerDocument||x0,B=A.documentElement,D=A.body,E.pageX=C.clientX+(B&&B.scrollLeft||D&&D.scrollLeft||0)-(B&&B.clientLeft||D&&D.clientLeft||0),E.pageY=C.clientY+(B&&B.scrollTop||D&&D.scrollTop||0)-(B&&B.clientTop||D&&D.clientTop||0)),!E.relatedTarget&&_&&(E.relatedTarget=_===E.target?C.toElement:_),E.which||void 0===$||(E.which=1&$?1:2&$?3:4&$?2:0),E}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==$1()&&this.focus){try{return this.focus(),!1}catch($){}}},delegateType:"focusin"},blur:{trigger:function(){return this===$1()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return Z0.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function($){return Z0.nodeName($.target,"a")}},beforeunload:{postDispatch:function($){void 0!==$.result&&$.originalEvent&&($.originalEvent.returnValue=$.result)}}},simulate:function(C,A,B,$){var _=Z0.extend(new Z0.Event,B,{type:C,isSimulated:!0,originalEvent:{}});$?Z0.event.trigger(_,null,A):Z0.event.dispatch.call(A,_),_.isDefaultPrevented()&&B.preventDefault()}},Z0.removeEvent=x0.removeEventListener?function(A,$,_){A.removeEventListener&&A.removeEventListener($,_,!1)}:function(B,_,A){var $="on"+_;B.detachEvent&&(typeof B[$]===t&&(B[$]=null),B.detachEvent($,A))},Z0.Event=function(_,$){return this instanceof Z0.Event?(_&&_.type?(this.originalEvent=_,this.type=_.type,this.isDefaultPrevented=_.defaultPrevented||void 0===_.defaultPrevented&&_.returnValue===!1?A2:J1):this.type=_,$&&Z0.extend(this,$),this.timeStamp=_&&_.timeStamp||Z0.now(),void(this[Z0.expando]=!0)):new Z0.Event(_,$)},Z0.Event.prototype={isDefaultPrevented:J1,isPropagationStopped:J1,isImmediatePropagationStopped:J1,preventDefault:function(){var $=this.originalEvent;this.isDefaultPrevented=A2,$&&($.preventDefault?$.preventDefault():$.returnValue=!1)},stopPropagation:function(){var $=this.originalEvent;this.isPropagationStopped=A2,$&&($.stopPropagation&&$.stopPropagation(),$.cancelBubble=!0)},stopImmediatePropagation:function(){var $=this.originalEvent;this.isImmediatePropagationStopped=A2,$&&$.stopImmediatePropagation&&$.stopImmediatePropagation(),this.stopPropagation()}},Z0.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(_,$){Z0.event.special[_]={delegateType:$,bindType:$,handle:function(D){var C,A=this,B=D.relatedTarget,_=D.handleObj;return(!B||B!==A&&!Z0.contains(A,B))&&(D.type=_.origType,C=_.handler.apply(this,arguments),D.type=$),C}}}),c0.submitBubbles||(Z0.event.special.submit={setup:function(){return Z0.nodeName(this,"form")?!1:void Z0.event.add(this,"click._submit keypress._submit",function(A){var $=A.target,_=Z0.nodeName($,"input")||Z0.nodeName($,"button")?$.form:void 0;_&&!Z0._data(_,"submitBubbles")&&(Z0.event.add(_,"submit._submit",function($){$._submit_bubble=!0}),Z0._data(_,"submitBubbles",!0))})},postDispatch:function($){$._submit_bubble&&(delete $._submit_bubble,this.parentNode&&!$.isTrigger&&Z0.event.simulate("submit",this.parentNode,$,!0))},teardown:function(){return Z0.nodeName(this,"form")?!1:void Z0.event.remove(this,"._submit")}}),c0.changeBubbles||(Z0.event.special.change={setup:function(){return L0.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(Z0.event.add(this,"propertychange._change",function($){"checked"===$.originalEvent.propertyName&&(this._just_changed=!0)}),Z0.event.add(this,"click._change",function($){this._just_changed&&!$.isTrigger&&(this._just_changed=!1),Z0.event.simulate("change",this,$,!0)})),!1):void Z0.event.add(this,"beforeactivate._change",function(_){var $=_.target;L0.test($.nodeName)&&!Z0._data($,"changeBubbles")&&(Z0.event.add($,"change._change",function($){!this.parentNode||$.isSimulated||$.isTrigger||Z0.event.simulate("change",this.parentNode,$,!0)}),Z0._data($,"changeBubbles",!0))})},handle:function(_){var $=_.target;return this!==$||_.isSimulated||_.isTrigger||"radio"!==$.type&&"checkbox"!==$.type?_.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return Z0.event.remove(this,"._change"),!L0.test(this.nodeName)}}),c0.focusinBubbles||Z0.each({focus:"focusin",blur:"focusout"},function(A,$){var _=function(_){Z0.event.simulate($,_.target,Z0.event.fix(_),!0)};Z0.event.special[$]={setup:function(){var B=this.ownerDocument||this,C=Z0._data(B,$);C||B.addEventListener(A,_,!0),Z0._data(B,$,(C||0)+1)},teardown:function(){var B=this.ownerDocument||this,C=Z0._data(B,$)-1;C?Z0._data(B,$,C):(B.removeEventListener(A,_,!0),Z0._removeData(B,$))}}}),Z0.fn.extend({on:function(E,C,D,A,B){var $,_;if("object"==typeof E){"string"!=typeof C&&(D=D||C,C=void 0);for($ in E)this.on($,C,D,E[$],B);return this}if(null==D&&null==A?(A=C,D=C=void 0):null==A&&("string"==typeof C?(A=D,D=void 0):(A=D,D=C,C=void 0)),A===!1)A=J1;else if(!A)return this;return 1===B&&(_=A,A=function($){return Z0().off($),_.apply(this,arguments)},A.guid=_.guid||(_.guid=Z0.guid++)),this.each(function(){Z0.event.add(this,E,A,D,C)})},one:function(B,_,A,$){return this.on(B,_,A,$,1)},off:function(C,A,B){var $,_;if(C&&C.preventDefault&&C.handleObj)return $=C.handleObj,Z0(C.delegateTarget).off($.namespace?$.origType+"."+$.namespace:$.origType,$.selector,$.handler),this;if("object"==typeof C){for(_ in C)this.off(_,A,C[_]);return this}return(A===!1||"function"==typeof A)&&(B=A,A=void 0),B===!1&&(B=J1),this.each(function(){Z0.event.remove(this,C,B,A)})},trigger:function(_,$){return this.each(function(){Z0.event.trigger(_,$,this)})},triggerHandler:function(A,$){var _=this[0];return _?Z0.event.trigger(A,$,_,!0):void 0}});function N1(A){var $=p.split("|"),_=A.createDocumentFragment();if(_.createElement)while($.length)_.createElement($.pop());return _}var p="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",d0=/ jQuery\d+="(?:null|\d+)"/g,B=new RegExp("<(?:"+p+")[\\s/>]","i"),O=/^\s+/,g1=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,w1=/<([\w:]+)/,H1=/<tbody/i,X1=/<|&#?\w+;/,E0=/<(?:script|style|link)/i,n0=/checked\s*(?:[^=]|=\s*.checked.)/i,F=/^$|\/(?:java|ecma)script/i,S=/^true\/(.*)/,t1=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e1={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:c0.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},T1=N1(x0),D1=T1.appendChild(x0.createElement("div"));e1.optgroup=e1.option,e1.tbody=e1.tfoot=e1.colgroup=e1.caption=e1.thead,e1.th=e1.td;function u0(D,B){var C,_,A=0,$=typeof D.getElementsByTagName!==t?D.getElementsByTagName(B||"*"):typeof D.querySelectorAll!==t?D.querySelectorAll(B||"*"):void 0;if(!$)for($=[],C=D.childNodes||D;null!=(_=C[A]);A++)!B||Z0.nodeName(_,B)?$.push(_):Z0.merge($,u0(_,B));return void 0===B||B&&Z0.nodeName(D,B)?Z0.merge([D],$):$}function J0($){y.test($.type)&&($.defaultChecked=$.checked)}function U(_,$){return Z0.nodeName(_,"table")&&Z0.nodeName(11!==$.nodeType?$:$.firstChild,"tr")?_.getElementsByTagName("tbody")[0]||_.appendChild(_.ownerDocument.createElement("tbody")):_}function H($){return $.type=(null!==Z0.find.attr($,"type"))+"/"+$.type,$}function p1(_){var $=S.exec(_.type);return $?_.type=$[1]:_.removeAttribute("type"),_}function b1(B,_){for(var A,$=0;null!=(A=B[$]);$++)Z0._data(A,"globalEval",!_||Z0._data(_[$],"globalEval"))}function h1(E,C){if(1===C.nodeType&&Z0.hasData(E)){var D,A,B,$=Z0._data(E),_=Z0._data(C,$),F=$.events;if(F){delete _.handle,_.events={};for(D in F)for(A=0,B=F[D].length;B>A;A++)Z0.event.add(C,D,F[D][A])}_.data&&(_.data=Z0.extend({},_.data))}}function y1(C,A){var B,$,_;if(1===A.nodeType){if(B=A.nodeName.toLowerCase(),!c0.noCloneEvent&&A[Z0.expando]){_=Z0._data(A);for($ in _.events)Z0.removeEvent(A,$,_.handle);A.removeAttribute(Z0.expando)}"script"===B&&A.text!==C.text?(H(A).text=C.text,p1(A)):"object"===B?(A.parentNode&&(A.outerHTML=C.outerHTML),c0.html5Clone&&C.innerHTML&&!Z0.trim(A.innerHTML)&&(A.innerHTML=C.innerHTML)):"input"===B&&y.test(C.type)?(A.defaultChecked=A.checked=C.checked,A.value!==C.value&&(A.value=C.value)):"option"===B?A.defaultSelected=A.selected=C.defaultSelected:("input"===B||"textarea"===B)&&(A.defaultValue=C.defaultValue)}}Z0.extend({clone:function(F,D,E){var A,C,$,_,G,H=Z0.contains(F.ownerDocument,F);if(c0.html5Clone||Z0.isXMLDoc(F)||!B.test("<"+F.nodeName+">")?$=F.cloneNode(!0):(D1.innerHTML=F.outerHTML,D1.removeChild($=D1.firstChild)),!(c0.noCloneEvent&&c0.noCloneChecked||1!==F.nodeType&&11!==F.nodeType||Z0.isXMLDoc(F)))for(A=u0($),G=u0(F),_=0;null!=(C=G[_]);++_)A[_]&&y1(C,A[_]);if(D)if(E){for(G=G||u0(F),A=A||u0($),_=0;null!=(C=G[_]);_++)h1(C,A[_])}else h1(F,$);return A=u0($,"script"),A.length>0&&b1(A,!H&&u0(F,"script")),A=G=C=null,$},buildFragment:function(E,C,D,A){for(var B,$,_,K,L,J,I,G=E.length,H=N1(C),N=[],M=0;G>M;M++)if($=E[M],$||0===$)if("object"===Z0.type($))Z0.merge(N,$.nodeType?[$]:$);else if(X1.test($)){K=K||H.appendChild(C.createElement("div")),L=(w1.exec($)||["",""])[1].toLowerCase(),I=e1[L]||e1._default,K.innerHTML=I[1]+$.replace(g1,"<$1></$2>")+I[2],B=I[0];while(B--)K=K.lastChild;if(!c0.leadingWhitespace&&O.test($)&&N.push(C.createTextNode(O.exec($)[0])),!c0.tbody){$="table"!==L||H1.test($)?"<table>"!==I[1]||H1.test($)?0:K:K.firstChild,B=$&&$.childNodes.length;while(B--)Z0.nodeName(J=$.childNodes[B],"tbody")&&!J.childNodes.length&&$.removeChild(J)}Z0.merge(N,K.childNodes),K.textContent="";while(K.firstChild)K.removeChild(K.firstChild);K=H.lastChild}else N.push(C.createTextNode($));K&&H.removeChild(K),c0.appendChecked||Z0.grep(u0(N,"input"),J0),M=0;while($=N[M++])if((!A||-1===Z0.inArray($,A))&&(_=Z0.contains($.ownerDocument,$),K=u0(H.appendChild($),"script"),_&&b1(K),D)){B=0;while($=K[B++])F.test($.type||"")&&D.push($)}return K=null,H},cleanData:function(D,C){for(var A,B,$,_,H=0,I=Z0.expando,G=Z0.cache,F=c0.deleteExpando,E=Z0.event.special;null!=(A=D[H]);H++)if((C||Z0.acceptData(A))&&($=A[I],_=$&&G[$])){if(_.events)for(B in _.events)E[B]?Z0.event.remove(A,B):Z0.removeEvent(A,B,_.handle);G[$]&&(delete G[$],F?delete A[I]:typeof A.removeAttribute!==t?A.removeAttribute(I):A[I]=null,T0.push($))}}}),Z0.fn.extend({text:function($){return z(this,function($){return void 0===$?Z0.text(this):this.empty().append((this[0]&&this[0].ownerDocument||x0).createTextNode($))},null,$,arguments.length)},append:function(){return this.domManip(arguments,function(_){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var $=U(this,_);$.appendChild(_)}})},prepend:function(){return this.domManip(arguments,function(_){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var $=U(this,_);$.insertBefore(_,$.firstChild)}})},before:function(){return this.domManip(arguments,function($){this.parentNode&&this.parentNode.insertBefore($,this)})},after:function(){return this.domManip(arguments,function($){this.parentNode&&this.parentNode.insertBefore($,this.nextSibling)})},remove:function(C,A){for(var B,$=C?Z0.filter(C,this):this,_=0;null!=(B=$[_]);_++)A||1!==B.nodeType||Z0.cleanData(u0(B)),B.parentNode&&(A&&Z0.contains(B.ownerDocument,B)&&b1(u0(B,"script")),B.parentNode.removeChild(B));return this},empty:function(){for(var _,$=0;null!=(_=this[$]);$++){1===_.nodeType&&Z0.cleanData(u0(_,!1));while(_.firstChild)_.removeChild(_.firstChild);_.options&&Z0.nodeName(_,"select")&&(_.options.length=0)}return this},clone:function(_,$){return _=null==_?!1:_,$=null==$?_:$,this.map(function(){return Z0.clone(this,_,$)})},html:function($){return z(this,function(D){var A=this[0]||{},C=0,$=this.length;if(void 0===D)return 1===A.nodeType?A.innerHTML.replace(d0,""):void 0;if(!("string"!=typeof D||E0.test(D)||!c0.htmlSerialize&&B.test(D)||!c0.leadingWhitespace&&O.test(D)||e1[(w1.exec(D)||["",""])[1].toLowerCase()])){D=D.replace(g1,"<$1></$2>");try{for(;$>C;C++)A=this[C]||{},1===A.nodeType&&(Z0.cleanData(u0(A,!1)),A.innerHTML=D);A=0}catch(_){}}A&&this.empty().append(D)},null,$,arguments.length)},replaceWith:function(){var $=arguments[0];return this.domManip(arguments,function(_){$=this.parentNode,Z0.cleanData(u0(this)),$&&$.replaceChild(_,this)}),$&&($.length||$.nodeType)?this:this.remove()},detach:function($){return this.remove($,!0)},domManip:function(D,B){D=R0.apply([],D);var C,A,$,_,K,L,J=0,I=this.length,E=this,G=I-1,N=D[0],M=Z0.isFunction(N);if(M||I>1&&"string"==typeof N&&!c0.checkClone&&n0.test(N))return this.each(function(_){var $=E.eq(_);M&&(D[0]=N.call(this,_,$.html())),$.domManip(D,B)});if(I&&(L=Z0.buildFragment(D,this[0].ownerDocument,!1,this),C=L.firstChild,1===L.childNodes.length&&(L=C),C)){for(_=Z0.map(u0(L,"script"),H),$=_.length;I>J;J++)A=L,J!==G&&(A=Z0.clone(A,!0,!0),$&&Z0.merge(_,u0(A,"script"))),B.call(this[J],A,J);if($)for(K=_[_.length-1].ownerDocument,Z0.map(_,p1),J=0;$>J;J++)A=_[J],F.test(A.type||"")&&!Z0._data(A,"globalEval")&&Z0.contains(K,A)&&(A.src?Z0._evalUrl&&Z0._evalUrl(A.src):Z0.globalEval((A.text||A.textContent||A.innerHTML||"").replace(t1,"")));L=C=null}return this}}),Z0.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(_,$){Z0.fn[_]=function(D){for(var C,A=0,B=[],_=Z0(D),E=_.length-1;E>=A;A++)C=A===E?this:this.clone(!0),Z0(_[A])[$](C),N0.apply(B,C.get());return this.pushStack(B)}});var q1,$={};function N(B,C){var _,A=Z0(C.createElement(B)).appendTo(C.body),$=V0.getDefaultComputedStyle&&(_=V0.getDefaultComputedStyle(A[0]))?_.display:Z0.css(A[0],"display");return A.detach(),$}function Y(B){var _=x0,A=$[B];return A||(A=N(B,_),"none"!==A&&A||(q1=(q1||Z0("<iframe frameborder='0' width='0' height='0'/>")).appendTo(_.documentElement),_=(q1[0].contentWindow||q1[0].contentDocument).document,_.write(),_.close(),A=N(B,_),q1.detach()),$[B]=A),A}!function(){var $;c0.shrinkWrapBlocks=function(){if(null!=$)return $;$=!1;var A,B,_;return B=x0.getElementsByTagName("body")[0],B&&B.style?(A=x0.createElement("div"),_=x0.createElement("div"),_.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",B.appendChild(_).appendChild(A),typeof A.style.zoom!==t&&(A.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",A.appendChild(x0.createElement("div")).style.width="5px",$=3!==A.offsetWidth),B.removeChild(_),$):void 0}}();var U0=/^margin/,I1=new RegExp("^("+B0+")(?!px)[a-z%]+$","i"),U1,l1,x1=/^(top|right|bottom|left)$/;V0.getComputedStyle?(U1=function($){return $.ownerDocument.defaultView.getComputedStyle($,null)},l1=function(E,C,D){var A,B,$,_,F=E.style;return D=D||U1(E),_=D?D.getPropertyValue(C)||D[C]:void 0,D&&(""!==_||Z0.contains(E.ownerDocument,E)||(_=Z0.style(E,C)),I1.test(_)&&U0.test(C)&&(A=F.width,B=F.minWidth,$=F.maxWidth,F.minWidth=F.maxWidth=F.width=_,_=D.width,F.width=A,F.minWidth=B,F.maxWidth=$)),void 0===_?_:_+""}):x0.documentElement.currentStyle&&(U1=function($){return $.currentStyle},l1=function(E,C,D){var A,B,$,_,F=E.style;return D=D||U1(E),_=D?D[C]:void 0,null==_&&F&&F[C]&&(_=F[C]),I1.test(_)&&!x1.test(C)&&(A=F.left,B=E.runtimeStyle,$=B&&B.left,$&&(B.left=E.currentStyle.left),F.left="fontSize"===C?"1em":_,_=F.pixelLeft+"px",F.left=A,$&&(B.left=$)),void 0===_?_:_+""||"auto"});function J(_,$){return{get:function(){var A=_();if(null!=A)return A?void delete this.get:(this.get=$).apply(this,arguments)}}}!function(){var C,D,A,B,$,_,E;if(C=x0.createElement("div"),C.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",A=C.getElementsByTagName("a")[0],D=A&&A.style){D.cssText="float:left;opacity:.5",c0.opacity="0.5"===D.opacity,c0.cssFloat=!!D.cssFloat,C.style.backgroundClip="content-box",C.cloneNode(!0).style.backgroundClip="",c0.clearCloneStyle="content-box"===C.style.backgroundClip,c0.boxSizing=""===D.boxSizing||""===D.MozBoxSizing||""===D.WebkitBoxSizing,Z0.extend(c0,{reliableHiddenOffsets:function(){return null==_&&F(),_},boxSizingReliable:function(){return null==$&&F(),$},pixelPosition:function(){return null==B&&F(),B},reliableMarginRight:function(){return null==E&&F(),E}});function F(){var C,D,A,F;D=x0.getElementsByTagName("body")[0],D&&D.style&&(C=x0.createElement("div"),A=x0.createElement("div"),A.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",D.appendChild(A).appendChild(C),C.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",B=$=!1,E=!0,V0.getComputedStyle&&(B="1%"!==(V0.getComputedStyle(C,null)||{}).top,$="4px"===(V0.getComputedStyle(C,null)||{width:"4px"}).width,F=C.appendChild(x0.createElement("div")),F.style.cssText=C.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",F.style.marginRight=F.style.width="0",C.style.width="1px",E=!parseFloat((V0.getComputedStyle(F,null)||{}).marginRight)),C.innerHTML="<table><tr><td></td><td>t</td></tr></table>",F=C.getElementsByTagName("td"),F[0].style.cssText="margin:0;border:0;padding:0;display:none",_=0===F[0].offsetHeight,_&&(F[0].style.display="",F[1].style.display="none",_=0===F[0].offsetHeight),D.removeChild(A))}}}(),Z0.swap=function(E,C,D,A){var B,$,_={};for($ in C)_[$]=E.style[$],E.style[$]=C[$];B=D.apply(E,A||[]);for($ in C)E.style[$]=_[$];return B};var V=/alpha\([^)]*\)/i,G0=/opacity\s*=\s*([^)]*)/,z0=/^(none|table(?!-c[ea]).+)/,P1=new RegExp("^("+B0+")(.*)$","i"),A1=new RegExp("^([+-])=("+B0+")","i"),n1={position:"absolute",visibility:"hidden",display:"block"},j1={letterSpacing:"0",fontWeight:"400"},R=["Webkit","O","Moz","ms"];function D(C,A){if(A in C)return A;var B=A.charAt(0).toUpperCase()+A.slice(1),$=A,_=R.length;while(_--)if(A=R[_]+B,A in C)return A;return $}function o0(E,C){for(var D,A,B,$=[],_=0,F=E.length;F>_;_++)A=E[_],A.style&&($[_]=Z0._data(A,"olddisplay"),D=A.style.display,C?($[_]||"none"!==D||(A.style.display=""),""===A.style.display&&v(A)&&($[_]=Z0._data(A,"olddisplay",Y(A.nodeName)))):(B=v(A),(D&&"none"!==D||!B)&&Z0._data(A,"olddisplay",B?D:Z0.css(A,"display"))));for(_=0;F>_;_++)A=E[_],A.style&&(C&&"none"!==A.style.display&&""!==A.style.display||(A.style.display=C?$[_]||"":"none"));return E}function u(B,_,A){var $=P1.exec(_);return $?Math.max(0,$[1]-(A||0))+($[2]||"px"):_}function R1(E,C,D,A,B){for(var $=D===(A?"border":"content")?4:"width"===C?1:0,_=0;4>$;$+=2)"margin"===D&&(_+=Z0.css(E,D+x[$],!0,B)),A?("content"===D&&(_-=Z0.css(E,"padding"+x[$],!0,B)),"margin"!==D&&(_-=Z0.css(E,"border"+x[$]+"Width",!0,B))):(_+=Z0.css(E,"padding"+x[$],!0,B),"padding"!==D&&(_+=Z0.css(E,"border"+x[$]+"Width",!0,B)));return _}function B1(E,C,D){var A=!0,B="width"===C?E.offsetWidth:E.offsetHeight,$=U1(E),_=c0.boxSizing&&"border-box"===Z0.css(E,"boxSizing",!1,$);if(0>=B||null==B){if(B=l1(E,C,$),(0>B||null==B)&&(B=E.style[C]),I1.test(B))return B;A=_&&(c0.boxSizingReliable()||B===E.style[C]),B=parseFloat(B)||0}return B+R1(E,C,D||(_?"border":"content"),A,$)+"px"}Z0.extend({cssHooks:{opacity:{get:function(A,$){if($){var _=l1(A,"opacity");return""===_?"1":_}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":c0.cssFloat?"cssFloat":"styleFloat"},style:function(F,C,E,A){if(F&&3!==F.nodeType&&8!==F.nodeType&&F.style){var B,$,_,H=Z0.camelCase(C),I=F.style;if(C=Z0.cssProps[H]||(Z0.cssProps[H]=D(I,H)),_=Z0.cssHooks[C]||Z0.cssHooks[H],void 0===E)return _&&"get"in _&&void 0!==(B=_.get(F,!1,A))?B:I[C];if($=typeof E,"string"===$&&(B=A1.exec(E))&&(E=(B[1]+1)*B[2]+parseFloat(Z0.css(F,C)),$="number"),null!=E&&E===E&&("number"!==$||Z0.cssNumber[H]||(E+="px"),c0.clearCloneStyle||""!==E||0!==C.indexOf("background")||(I[C]="inherit"),!(_&&"set"in _&&void 0===(E=_.set(F,E,A))))){try{I[C]=E}catch(G){}}}},css:function(F,C,E,A){var B,$,_,G=Z0.camelCase(C);return C=Z0.cssProps[G]||(Z0.cssProps[G]=D(F.style,G)),_=Z0.cssHooks[C]||Z0.cssHooks[G],_&&"get"in _&&($=_.get(F,!0,E)),void 0===$&&($=l1(F,C,A)),"normal"===$&&C in j1&&($=j1[C]),""===E||E?(B=parseFloat($),E===!0||Z0.isNumeric(B)?B||0:$):$}}),Z0.each(["height","width"],function(_,$){Z0.cssHooks[$]={get:function(B,A,_){return A?z0.test(Z0.css(B,"display"))&&0===B.offsetWidth?Z0.swap(B,n1,function(){return B1(B,$,_)}):B1(B,$,_):void 0},set:function(C,B,_){var A=_&&U1(C);return u(C,B,_?R1(C,$,_,c0.boxSizing&&"border-box"===Z0.css(C,"boxSizing",!1,A),A):0)}}}),c0.opacity||(Z0.cssHooks.opacity={get:function(_,$){return G0.test(($&&_.currentStyle?_.currentStyle.filter:_.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":$?"1":""},set:function(D,B){var C=D.style,_=D.currentStyle,A=Z0.isNumeric(B)?"alpha(opacity="+100*B+")":"",$=_&&_.filter||C.filter||"";C.zoom=1,(B>=1||""===B)&&""===Z0.trim($.replace(V,""))&&C.removeAttribute&&(C.removeAttribute("filter"),""===B||_&&!_.filter)||(C.filter=V.test($)?$.replace(V,A):$+" "+A)}}),Z0.cssHooks.marginRight=J(c0.reliableMarginRight,function(_,$){return $?Z0.swap(_,{display:"inline-block"},l1,[_,"marginRight"]):void 0}),Z0.each({margin:"",padding:"",border:"Width"},function(_,$){Z0.cssHooks[_+$]={expand:function(D){for(var B=0,C={},A="string"==typeof D?D.split(" "):[D];4>B;B++)C[_+x[B]+$]=A[B]||A[B-2]||A[0];return C}},U0.test(_)||(Z0.cssHooks[_+$].set=u)}),Z0.fn.extend({css:function(_,$){return z(this,function(E,C,D){var A,B,$={},_=0;if(Z0.isArray(C)){for(A=U1(E),B=C.length;B>_;_++)$[C[_]]=Z0.css(E,C[_],!1,A);return $}return void 0!==D?Z0.style(E,C,D):Z0.css(E,C)},_,$,arguments.length>1)},show:function(){return o0(this,!0)},hide:function(){return o0(this)},toggle:function($){return"boolean"==typeof $?$?this.show():this.hide():this.each(function(){v(this)?Z0(this).show():Z0(this).hide()})}});function r1(C,A,B,$,_){return new r1.prototype.init(C,A,B,$,_)}Z0.Tween=r1,r1.prototype={constructor:r1,init:function(D,B,C,_,A,$){this.elem=D,this.prop=C,this.easing=A||"swing",this.options=B,this.start=this.now=this.cur(),this.end=_,this.unit=$||(Z0.cssNumber[C]?"":"px")},cur:function(){var $=r1.propHooks[this.prop];return $&&$.get?$.get(this):r1.propHooks._default.get(this)},run:function(A){var $,_=r1.propHooks[this.prop];return this.pos=$=this.options.duration?Z0.easing[this.easing](A,this.options.duration*A,0,1,this.options.duration):A,this.now=(this.end-this.start)*$+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),_&&_.set?_.set(this):r1.propHooks._default.set(this),this}},r1.prototype.init.prototype=r1.prototype,r1.propHooks={_default:{get:function(_){var $;return null==_.elem[_.prop]||_.elem.style&&null!=_.elem.style[_.prop]?($=Z0.css(_.elem,_.prop,""),$&&"auto"!==$?$:0):_.elem[_.prop]},set:function($){Z0.fx.step[$.prop]?Z0.fx.step[$.prop]($):$.elem.style&&(null!=$.elem.style[Z0.cssProps[$.prop]]||Z0.cssHooks[$.prop])?Z0.style($.elem,$.prop,$.now+$.unit):$.elem[$.prop]=$.now}}},r1.propHooks.scrollTop=r1.propHooks.scrollLeft={set:function($){$.elem.nodeType&&$.elem.parentNode&&($.elem[$.prop]=$.now)}},Z0.easing={linear:function($){return $},swing:function($){return 0.5-Math.cos($*Math.PI)/2}},Z0.fx=r1.prototype.init,Z0.fx.step={};var B2,k,$2=/^(?:toggle|show|hide)$/,K1=new RegExp("^(?:([+-])=|)("+B0+")([a-z%]*)$","i"),Y1=/queueHooks$/,M1=[f1],r={"*":[function(E,C){var D=this.createTween(E,C),A=D.cur(),B=K1.exec(C),$=B&&B[3]||(Z0.cssNumber[E]?"":"px"),_=(Z0.cssNumber[E]||"px"!==$&&+A)&&K1.exec(Z0.css(D.elem,E)),F=1,G=20;if(_&&_[3]!==$){$=$||_[3],B=B||[],_=+A||1;do F=F||".5",_/=F,Z0.style(D.elem,E,_+$);while(F!==(F=D.cur()/A)&&1!==F&&--G)}return B&&(_=D.start=+_||+A||0,D.unit=$,D.end=B[1]?_+(B[1]+1)*B[2]:+B[2]),D}]};function f0(){return setTimeout(function(){B2=void 0}),B2=Z0.now()}function A(C,A){var B,$={height:C},_=0;for(A=A?1:0;4>_;_+=2-A)B=x[_],$["margin"+B]=$["padding"+B]=C;return A&&($.opacity=$.width=C),$}function P(E,C,D){for(var A,B=(r[C]||[]).concat(r["*"]),$=0,_=B.length;_>$;$++)if(A=B[$].call(D,C,E))return A}function f1(E,C,D){var A,B,$,_,J,K,I,H,F=this,G={},N=E.style,M=E.nodeType&&v(E),L=Z0._data(E,"fxshow");D.queue||(J=Z0._queueHooks(E,"fx"),null==J.unqueued&&(J.unqueued=0,K=J.empty.fire,J.empty.fire=function(){J.unqueued||K()}),J.unqueued++,F.always(function(){F.always(function(){J.unqueued--,Z0.queue(E,"fx").length||J.empty.fire()})})),1===E.nodeType&&("height"in C||"width"in C)&&(D.overflow=[N.overflow,N.overflowX,N.overflowY],I=Z0.css(E,"display"),H="none"===I?Z0._data(E,"olddisplay")||Y(E.nodeName):I,"inline"===H&&"none"===Z0.css(E,"float")&&(c0.inlineBlockNeedsLayout&&"inline"!==Y(E.nodeName)?N.zoom=1:N.display="inline-block")),D.overflow&&(N.overflow="hidden",c0.shrinkWrapBlocks()||F.always(function(){N.overflow=D.overflow[0],N.overflowX=D.overflow[1],N.overflowY=D.overflow[2]}));for(A in C)if(B=C[A],$2.exec(B)){if(delete C[A],$=$||"toggle"===B,B===(M?"hide":"show")){if("show"!==B||!L||void 0===L[A])continue;M=!0}G[A]=L&&L[A]||Z0.style(E,A)}else I=void 0;if(Z0.isEmptyObject(G))"inline"===("none"===I?Y(E.nodeName):I)&&(N.display=I);else{L?"hidden"in L&&(M=L.hidden):L=Z0._data(E,"fxshow",{}),$&&(L.hidden=!M),M?Z0(E).show():F.done(function(){Z0(E).hide()}),F.done(function(){var $;Z0._removeData(E,"fxshow");for($ in G)Z0.style(E,$,G[$])});for(A in G)_=P(M?L[A]:0,A,F),A in L||(L[A]=_.start,M&&(_.end=_.start,_.start="width"===A||"height"===A?1:0))}}function v1(E,C){var D,A,B,$,_;for(D in E)if(A=Z0.camelCase(D),B=C[A],$=E[D],Z0.isArray($)&&(B=$[1],$=E[D]=$[0]),D!==A&&(E[A]=$,delete E[D]),_=Z0.cssHooks[A],_&&"expand"in _){$=_.expand($),delete E[A];for(D in $)D in E||(E[D]=$[D],C[D]=B)}else C[A]=B}function F1(E,C,D){var A,B,$=0,_=M1.length,H=Z0.Deferred().always(function(){delete I.elem}),I=function(){if(B)return!1;for(var C=B2||f0(),D=Math.max(0,F.startTime+F.duration-C),A=D/F.duration||0,$=1-A,_=0,G=F.tweens.length;G>_;_++)F.tweens[_].run($);return H.notifyWith(E,[F,$,D]),1>$&&G?D:(H.resolveWith(E,[F]),!1)},F=H.promise({elem:E,props:Z0.extend({},C),opts:Z0.extend(!0,{specialEasing:{}},D),originalProperties:C,originalOptions:D,startTime:B2||f0(),duration:D.duration,tweens:[],createTween:function(_,A){var $=Z0.Tween(E,F.opts,_,A,F.opts.specialEasing[_]||F.opts.easing);return F.tweens.push($),$},stop:function(_){var A=0,$=_?F.tweens.length:0;if(B)return this;for(B=!0;$>A;A++)F.tweens[A].run(1);return _?H.resolveWith(E,[F,_]):H.rejectWith(E,[F,_]),this}}),G=F.props;for(v1(G,F.opts.specialEasing);_>$;$++)if(A=M1[$].call(F,E,G,F.opts))return A;return Z0.map(G,P,F),Z0.isFunction(F.opts.start)&&F.opts.start.call(E,F),Z0.fx.timer(Z0.extend(I,{elem:E,anim:F,queue:F.opts.queue})),F.progress(F.opts.progress).done(F.opts.done,F.opts.complete).fail(F.opts.fail).always(F.opts.always)}Z0.Animation=Z0.extend(F1,{tweener:function(C,A){Z0.isFunction(C)?(A=C,C=["*"]):C=C.split(" ");for(var B,$=0,_=C.length;_>$;$++)B=C[$],r[B]=r[B]||[],r[B].unshift(A)},prefilter:function(_,$){$?M1.unshift(_):M1.push(_)}}),Z0.speed=function(B,_,A){var $=B&&"object"==typeof B?Z0.extend({},B):{complete:A||!A&&_||Z0.isFunction(B)&&B,duration:B,easing:A&&_||_&&!Z0.isFunction(_)&&_};return $.duration=Z0.fx.off?0:"number"==typeof $.duration?$.duration:$.duration in Z0.fx.speeds?Z0.fx.speeds[$.duration]:Z0.fx.speeds._default,(null==$.queue||$.queue===!0)&&($.queue="fx"),$.old=$.complete,$.complete=function(){Z0.isFunction($.old)&&$.old.call(this),$.queue&&Z0.dequeue(this,$.queue)},$},Z0.fn.extend({fadeTo:function(B,_,A,$){return this.filter(v).css("opacity",0).show().end().animate({opacity:_},B,A,$)},animate:function(E,C,D,A){var B=Z0.isEmptyObject(E),$=Z0.speed(C,D,A),_=function(){var _=F1(this,Z0.extend({},E),$);(B||Z0._data(this,"finish"))&&_.stop(!0)};return _.finish=_,B||$.queue===!1?this.each(_):this.queue($.queue,_)},stop:function(B,_,A){var $=function(_){var $=_.stop;delete _.stop,$(A)};return"string"!=typeof B&&(A=_,_=B,B=void 0),_&&B!==!1&&this.queue(B||"fx",[]),this.each(function(){var E=!0,D=null!=B&&B+"queueHooks",_=Z0.timers,C=Z0._data(this);if(D)C[D]&&C[D].stop&&$(C[D]);else for(D in C)C[D]&&C[D].stop&&Y1.test(D)&&$(C[D]);for(D=_.length;D--;)_[D].elem!==this||null!=B&&_[D].queue!==B||(_[D].anim.stop(A),E=!1,_.splice(D,1));(E||!A)&&Z0.dequeue(this,B)})},finish:function($){return $!==!1&&($=$||"fx"),this.each(function(){var D,E=Z0._data(this),B=E[$+"queue"],C=E[$+"queueHooks"],_=Z0.timers,A=B?B.length:0;for(E.finish=!0,Z0.queue(this,$,[]),C&&C.stop&&C.stop.call(this,!0),D=_.length;D--;)_[D].elem===this&&_[D].queue===$&&(_[D].anim.stop(!0),_.splice(D,1));for(D=0;A>D;D++)B[D]&&B[D].finish&&B[D].finish.call(this);delete E.finish})}}),Z0.each(["toggle","show","hide"],function(B,$){var _=Z0.fn[$];Z0.fn[$]=function(D,B,C){return null==D||"boolean"==typeof D?_.apply(this,arguments):this.animate(A($,!0),D,B,C)}}),Z0.each({slideDown:A("show"),slideUp:A("hide"),slideToggle:A("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(_,$){Z0.fn[_]=function(B,A,_){return this.animate($,B,A,_)}}),Z0.timers=[],Z0.fx.tick=function(){var A,$=Z0.timers,_=0;for(B2=Z0.now();_<$.length;_++)A=$[_],A()||$[_]!==A||$.splice(_--,1);$.length||Z0.fx.stop(),B2=void 0},Z0.fx.timer=function($){Z0.timers.push($),$()?Z0.fx.start():Z0.timers.pop()},Z0.fx.interval=13,Z0.fx.start=function(){k||(k=setInterval(Z0.fx.tick,Z0.fx.interval))},Z0.fx.stop=function(){clearInterval(k),k=null},Z0.fx.speeds={slow:600,fast:200,_default:400},Z0.fn.delay=function(_,$){return _=Z0.fx?Z0.fx.speeds[_]||_:_,$=$||"fx",this.queue($,function(A,B){var $=setTimeout(A,_);B.stop=function(){clearTimeout($)}})},function(){var C,A,B,$,_;A=x0.createElement("div"),A.setAttribute("className","t"),A.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",$=A.getElementsByTagName("a")[0],B=x0.createElement("select"),_=B.appendChild(x0.createElement("option")),C=A.getElementsByTagName("input")[0],$.style.cssText="top:1px",c0.getSetAttribute="t"!==A.className,c0.style=/top/.test($.getAttribute("style")),c0.hrefNormalized="/a"===$.getAttribute("href"),c0.checkOn=!!C.value,c0.optSelected=_.selected,c0.enctype=!!x0.createElement("form").enctype,B.disabled=!0,c0.optDisabled=!_.disabled,C=x0.createElement("input"),C.setAttribute("value",""),c0.input=""===C.getAttribute("value"),C.value="t",C.setAttribute("type","radio"),c0.radioValue="t"===C.value}();var V1=/\r/g;Z0.fn.extend({val:function(C){var A,B,$,_=this[0];if(arguments.length)return $=Z0.isFunction(C),this.each(function(B){var _;1===this.nodeType&&(_=$?C.call(this,B,Z0(this).val()):C,null==_?_="":"number"==typeof _?_+="":Z0.isArray(_)&&(_=Z0.map(_,function($){return null==$?"":$+""})),A=Z0.valHooks[this.type]||Z0.valHooks[this.nodeName.toLowerCase()],A&&"set"in A&&void 0!==A.set(this,_,"value")||(this.value=_))});if(_)return A=Z0.valHooks[_.type]||Z0.valHooks[_.nodeName.toLowerCase()],A&&"get"in A&&void 0!==(B=A.get(_,"value"))?B:(B=_.value,"string"==typeof B?B.replace(V1,""):null==B?"":B)}}),Z0.extend({valHooks:{option:{get:function(_){var $=Z0.find.attr(_,"value");return null!=$?$:Z0.trim(Z0.text(_))}},select:{get:function(E){for(var C,D,A=E.options,B=E.selectedIndex,$="select-one"===E.type||0>B,_=$?null:[],F=$?B+1:A.length,G=0>B?F:$?B:0;F>G;G++)if(D=A[G],!(!D.selected&&G!==B||(c0.optDisabled?D.disabled:null!==D.getAttribute("disabled"))||D.parentNode.disabled&&Z0.nodeName(D.parentNode,"optgroup"))){if(C=Z0(D).val(),$)return C;_.push(C)}return _},set:function(E,C){var D,A,B=E.options,$=Z0.makeArray(C),_=B.length;while(_--)if(A=B[_],Z0.inArray(Z0.valHooks.option.get(A),$)>=0){try{A.selected=D=!0}catch(F){A.scrollHeight}}else A.selected=!1;return D||(E.selectedIndex=-1),B}}}}),Z0.each(["radio","checkbox"],function(){Z0.valHooks[this]={set:function(_,$){return Z0.isArray($)?_.checked=Z0.inArray(Z0(_).val(),$)>=0:void 0}},c0.checkOn||(Z0.valHooks[this].get=function($){return null===$.getAttribute("value")?"on":$.value})});var _0,q0,E=Z0.expr.attrHandle,T=/^(?:checked|selected)$/i,u1=c0.getSetAttribute,d1=c0.input;Z0.fn.extend({attr:function(_,$){return z(this,Z0.attr,_,$,arguments.length>1)},removeAttr:function($){return this.each(function(){Z0.removeAttr(this,$)})}}),Z0.extend({attr:function(D,B,C){var _,A,$=D.nodeType;if(D&&3!==$&&8!==$&&2!==$)return typeof D.getAttribute===t?Z0.prop(D,B,C):(1===$&&Z0.isXMLDoc(D)||(B=B.toLowerCase(),_=Z0.attrHooks[B]||(Z0.expr.match.bool.test(B)?q0:_0)),void 0===C?_&&"get"in _&&null!==(A=_.get(D,B))?A:(A=Z0.find.attr(D,B),null==A?void 0:A):null!==C?_&&"set"in _&&void 0!==(A=_.set(D,C,B))?A:(D.setAttribute(B,C+""),C):void Z0.removeAttr(D,B))},removeAttr:function(D,B){var C,_,A=0,$=B&&B.match(b);if($&&1===D.nodeType)while(C=$[A++])_=Z0.propFix[C]||C,Z0.expr.match.bool.test(C)?d1&&u1||!T.test(C)?D[_]=!1:D[Z0.camelCase("default-"+C)]=D[_]=!1:Z0.attr(D,C,""),D.removeAttribute(u1?C:_)},attrHooks:{type:{set:function(A,$){if(!c0.radioValue&&"radio"===$&&Z0.nodeName(A,"input")){var _=A.value;return A.setAttribute("type",$),_&&(A.value=_),$}}}}}),q0={set:function(A,$,_){return $===!1?Z0.removeAttr(A,_):d1&&u1||!T.test(_)?A.setAttribute(!u1&&Z0.propFix[_]||_,_):A[Z0.camelCase("default-"+_)]=A[_]=!0,_}},Z0.each(Z0.expr.match.bool.source.match(/\w+/g),function(A,$){var _=E[$]||Z0.find.attr;E[$]=d1&&u1||!T.test($)?function(D,C,A){var B,$;return A||($=E[C],E[C]=B,B=null!=_(D,C,A)?C.toLowerCase():null,E[C]=$),B}:function(A,$,_){return _?void 0:A[Z0.camelCase("default-"+$)]?$.toLowerCase():null}}),d1&&u1||(Z0.attrHooks.value={set:function(A,$,_){return Z0.nodeName(A,"input")?void(A.defaultValue=$):_0&&_0.set(A,$,_)}}),u1||(_0={set:function(B,_,A){var $=B.getAttributeNode(A);return $||B.setAttributeNode($=B.ownerDocument.createAttribute(A)),$.value=_+="","value"===A||_===B.getAttribute(A)?_:void 0}},E.id=E.name=E.coords=function(B,_,A){var $;return A?void 0:($=B.getAttributeNode(_))&&""!==$.value?$.value:null},Z0.valHooks.button={get:function(A,$){var _=A.getAttributeNode($);return _&&_.specified?_.value:void 0},set:_0.set},Z0.attrHooks.contenteditable={set:function(A,$,_){_0.set(A,""===$?!1:$,_)}},Z0.each(["width","height"],function(_,$){Z0.attrHooks[$]={set:function(A,_){return""===_?(A.setAttribute($,"auto"),_):void 0}}})),c0.style||(Z0.attrHooks.style={get:function($){return $.style.cssText||void 0},set:function(_,$){return _.style.cssText=$+""}});var Q1=/^(?:input|select|textarea|button|object)$/i,E1=/^(?:a|area)$/i;Z0.fn.extend({prop:function(_,$){return z(this,Z0.prop,_,$,arguments.length>1)},removeProp:function($){return $=Z0.propFix[$]||$,this.each(function(){try{this[$]=void 0,delete this[$]}catch(_){}})}}),Z0.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(E,C,D){var A,B,$,_=E.nodeType;if(E&&3!==_&&8!==_&&2!==_)return $=1!==_||!Z0.isXMLDoc(E),$&&(C=Z0.propFix[C]||C,B=Z0.propHooks[C]),void 0!==D?B&&"set"in B&&void 0!==(A=B.set(E,D,C))?A:E[C]=D:B&&"get"in B&&null!==(A=B.get(E,C))?A:E[C]},propHooks:{tabIndex:{get:function(_){var $=Z0.find.attr(_,"tabindex");return $?parseInt($,10):Q1.test(_.nodeName)||E1.test(_.nodeName)&&_.href?0:-1}}}}),c0.hrefNormalized||Z0.each(["href","src"],function(_,$){Z0.propHooks[$]={get:function(_){return _.getAttribute($,4)}}}),c0.optSelected||(Z0.propHooks.selected={get:function(_){var $=_.parentNode;return $&&($.selectedIndex,$.parentNode&&$.parentNode.selectedIndex),null}}),Z0.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Z0.propFix[this.toLowerCase()]=this}),c0.enctype||(Z0.propFix.enctype="encoding");var v0=/[\t\r\n\f]/g;Z0.fn.extend({addClass:function(E){var C,D,A,B,$,_,G=0,H=this.length,F="string"==typeof E&&E;if(Z0.isFunction(E))return this.each(function($){Z0(this).addClass(E.call(this,$,this.className))});if(F)for(C=(E||"").match(b)||[];H>G;G++)if(D=this[G],A=1===D.nodeType&&(D.className?(" "+D.className+" ").replace(v0," "):" ")){$=0;while(B=C[$++])A.indexOf(" "+B+" ")<0&&(A+=B+" ");_=Z0.trim(A),D.className!==_&&(D.className=_)}return this},removeClass:function(E){var C,D,A,B,$,_,G=0,H=this.length,F=0===arguments.length||"string"==typeof E&&E;if(Z0.isFunction(E))return this.each(function($){Z0(this).removeClass(E.call(this,$,this.className))});if(F)for(C=(E||"").match(b)||[];H>G;G++)if(D=this[G],A=1===D.nodeType&&(D.className?(" "+D.className+" ").replace(v0," "):"")){$=0;while(B=C[$++])while(A.indexOf(" "+B+" ")>=0)A=A.replace(" "+B+" "," ");_=E?Z0.trim(A):"",D.className!==_&&(D.className=_)}return this},toggleClass:function(A,$){var _=typeof A;return"boolean"==typeof $&&"string"===_?$?this.addClass(A):this.removeClass(A):this.each(Z0.isFunction(A)?function(_){Z0(this).toggleClass(A.call(this,_,this.className,$),$)}:function(){if("string"===_){var D,B=0,C=Z0(this),$=A.match(b)||[];while(D=$[B++])C.hasClass(D)?C.removeClass(D):C.addClass(D)}else(_===t||"boolean"===_)&&(this.className&&Z0._data(this,"__className__",this.className),this.className=this.className||A===!1?"":Z0._data(this,"__className__")||"")})},hasClass:function(B){for(var _=" "+B+" ",A=0,$=this.length;$>A;A++)if(1===this[A].nodeType&&(" "+this[A].className+" ").replace(v0," ").indexOf(_)>=0)return!0;return!1}}),Z0.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(_,$){Z0.fn[$]=function(A,_){return arguments.length>0?this.on($,null,A,_):this.trigger($)}}),Z0.fn.extend({hover:function(_,$){return this.mouseenter(_).mouseleave($||_)},bind:function(A,$,_){return this.on(A,null,$,_)},unbind:function(_,$){return this.off(_,null,$)},delegate:function(B,_,A,$){return this.on(_,B,A,$)},undelegate:function(A,$,_){return 1===arguments.length?this.off(A,"**"):this.off($,A||"**",_)}});var H0=Z0.now(),W=/\?/,G=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;Z0.parseJSON=function(A){if(V0.JSON&&V0.JSON.parse)return V0.JSON.parse(A+"");var B,$=null,_=Z0.trim(A+"");return _&&!Z0.trim(_.replace(G,function(D,C,A,_){return B&&C&&($=0),0===$?D:(B=A||C,$+=!_-!A,"")}))?Function("return "+_)():Z0.error("Invalid JSON: "+A)},Z0.parseXML=function(A){var B,$;if(!A||"string"!=typeof A)return null;try{V0.DOMParser?($=new DOMParser,B=$.parseFromString(A,"text/xml")):(B=new ActiveXObject("Microsoft.XMLDOM"),B.async="false",B.loadXML(A))}catch(_){B=void 0}return B&&B.documentElement&&!B.getElementsByTagName("parsererror").length||Z0.error("Invalid XML: "+A),B};var o1,c1,i1=/#.*$/,z1=/([?&])_=[^&]*/,I=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,_=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,L=/^(?:GET|HEAD)$/,a=/^\/\//,P0=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,G1={},W1={},k1="*/".concat("*");try{c1=location.href}catch(D2){c1=x0.createElement("a"),c1.href="",c1=c1.href}o1=P0.exec(c1.toLowerCase())||[];function K($){return function(C,D){"string"!=typeof C&&(D=C,C="*");var A,B=0,_=C.toLowerCase().match(b)||[];if(Z0.isFunction(D))while(A=_[B++])"+"===A.charAt(0)?(A=A.slice(1)||"*",($[A]=$[A]||[]).unshift(D)):($[A]=$[A]||[]).push(D)}}function X(E,C,D,A){var B={},$=E===W1;function _(F){var G;return B[F]=!0,Z0.each(E[F]||[],function(E,H){var F=H(C,D,A);return"string"!=typeof F||$||B[F]?$?!(G=F):void 0:(C.dataTypes.unshift(F),_(F),!1)}),G}return _(C.dataTypes[0])||!B["*"]&&_("*")}function I0(C,A){var B,$,_=Z0.ajaxSettings.flatOptions||{};for($ in A)void 0!==A[$]&&((_[$]?C:B||(B={}))[$]=A[$]);return B&&Z0.extend(!0,C,B),C}function t0(E,C,D){var A,B,$,_,F=E.contents,G=E.dataTypes;while("*"===G[0])G.shift(),void 0===B&&(B=E.mimeType||C.getResponseHeader("Content-Type"));if(B)for(_ in F)if(F[_]&&F[_].test(B)){G.unshift(_);break}if(G[0]in D)$=G[0];else{for(_ in D){if(!G[0]||E.converters[_+" "+G[0]]){$=_;break}A||(A=_)}$=$||A}return $?($!==G[0]&&G.unshift($),D[$]):void 0}function O1(E,C,D,A){var B,$,_,I,J,G={},H=E.dataTypes.slice();if(H[1])for(_ in E.converters)G[_.toLowerCase()]=E.converters[_];$=H.shift();while($)if(E.responseFields[$]&&(D[E.responseFields[$]]=C),!J&&A&&E.dataFilter&&(C=E.dataFilter(C,E.dataType)),J=$,$=H.shift())if("*"===$)$=J;else if("*"!==J&&J!==$){if(_=G[J+" "+$]||G["* "+$],!_)for(B in G)if(I=B.split(" "),I[1]===$&&(_=G[J+" "+I[0]]||G["* "+I[0]])){_===!0?_=G[B]:G[B]!==!0&&($=I[0],H.unshift(I[1]));break}if(_!==!0)if(_&&E["throws"])C=_(C);else{try{C=_(C)}catch(F){return{state:"parsererror",error:_?F:"No conversion from "+J+" to "+$}}}}return{state:"success",data:C}}Z0.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c1,type:"GET",isLocal:_.test(o1[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":k1,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Z0.parseJSON,"text xml":Z0.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(_,$){return $?I0(I0(_,Z0.ajaxSettings),$):I0(Z0.ajaxSettings,_)},ajaxPrefilter:K(G1),ajaxTransport:K(W1),ajax:function(E,C){"object"==typeof E&&(C=E,E=void 0),C=C||{};var D,A,B,$,_,M,N,J,K=Z0.ajaxSetup({},C),H=K.context||K,F=K.context&&(H.nodeType||H.jquery)?Z0(H):Z0.event,G=Z0.Deferred(),V=Z0.Callbacks("once memory"),U=K.statusCode||{},T={},S={},R=0,Q="canceled",P={readyState:0,getResponseHeader:function(A){var _;if(2===R){if(!J){J={};while(_=I.exec($))J[_[1].toLowerCase()]=_[2]}_=J[A.toLowerCase()]}return null==_?null:_},getAllResponseHeaders:function(){return 2===R?$:null},setRequestHeader:function(A,$){var _=A.toLowerCase();return R||(A=S[_]=S[_]||A,T[A]=$),this},overrideMimeType:function($){return R||(K.mimeType=$),this},statusCode:function(_){var $;if(_)if(2>R){for($ in _)U[$]=[U[$],_[$]]}else P.always(_[P.status]);return this},abort:function(_){var $=_||Q;return N&&N.abort($),Y(0,$),this}};if(G.promise(P).complete=V.add,P.success=P.done,P.error=P.fail,K.url=((E||K.url||c1)+"").replace(i1,"").replace(a,o1[1]+"//"),K.type=C.method||C.type||K.method||K.type,K.dataTypes=Z0.trim(K.dataType||"*").toLowerCase().match(b)||[""],null==K.crossDomain&&(D=P0.exec(K.url.toLowerCase()),K.crossDomain=!(!D||D[1]===o1[1]&&D[2]===o1[2]&&(D[3]||("http:"===D[1]?"80":"443"))===(o1[3]||("http:"===o1[1]?"80":"443")))),K.data&&K.processData&&"string"!=typeof K.data&&(K.data=Z0.param(K.data,K.traditional)),X(G1,K,C,P),2===R)return P;M=K.global,M&&0===Z0.active++&&Z0.event.trigger("ajaxStart"),K.type=K.type.toUpperCase(),K.hasContent=!L.test(K.type),B=K.url,K.hasContent||(K.data&&(B=K.url+=(W.test(B)?"&":"?")+K.data,delete K.data),K.cache===!1&&(K.url=z1.test(B)?B.replace(z1,"$1_="+H0++):B+(W.test(B)?"&":"?")+"_="+H0++)),K.ifModified&&(Z0.lastModified[B]&&P.setRequestHeader("If-Modified-Since",Z0.lastModified[B]),Z0.etag[B]&&P.setRequestHeader("If-None-Match",Z0.etag[B])),(K.data&&K.hasContent&&K.contentType!==!1||C.contentType)&&P.setRequestHeader("Content-Type",K.contentType),P.setRequestHeader("Accept",K.dataTypes[0]&&K.accepts[K.dataTypes[0]]?K.accepts[K.dataTypes[0]]+("*"!==K.dataTypes[0]?", "+k1+"; q=0.01":""):K.accepts["*"]);for(A in K.headers)P.setRequestHeader(A,K.headers[A]);if(K.beforeSend&&(K.beforeSend.call(H,P,K)===!1||2===R))return P.abort();Q="abort";for(A in{success:1,error:1,complete:1})P[A](K[A]);if(N=X(W1,K,C,P)){P.readyState=1,M&&F.trigger("ajaxSend",[P,K]),K.async&&K.timeout>0&&(_=setTimeout(function(){P.abort("timeout")},K.timeout));try{R=1,N.send(T,Y)}catch(O){if(!(2>R))throw O;Y(-1,O)}}else Y(-1,"No Transport");function Y(O,I,L,D){var Q,J,E,C,A,S=I;2!==R&&(R=2,_&&clearTimeout(_),N=void 0,$=D||"",P.readyState=O>0?4:0,Q=O>=200&&300>O||304===O,L&&(C=t0(K,P,L)),C=O1(K,C,P,Q),Q?(K.ifModified&&(A=P.getResponseHeader("Last-Modified"),A&&(Z0.lastModified[B]=A),A=P.getResponseHeader("etag"),A&&(Z0.etag[B]=A)),204===O||"HEAD"===K.type?S="nocontent":304===O?S="notmodified":(S=C.state,J=C.data,E=C.error,Q=!E)):(E=S,(O||!S)&&(S="error",0>O&&(O=0))),P.status=O,P.statusText=(I||S)+"",Q?G.resolveWith(H,[J,S,P]):G.rejectWith(H,[P,S,E]),P.statusCode(U),U=void 0,M&&F.trigger(Q?"ajaxSuccess":"ajaxError",[P,K,Q?J:E]),V.fireWith(H,[P,S]),M&&(F.trigger("ajaxComplete",[P,K]),--Z0.active||Z0.event.trigger("ajaxStop")))}return P},getJSON:function(A,$,_){return Z0.get(A,$,_,"json")},getScript:function(_,$){return Z0.get(_,void 0,$,"script")}}),Z0.each(["get","post"],function(_,$){Z0[$]=function(C,B,_,A){return Z0.isFunction(B)&&(A=A||_,_=B,B=void 0),Z0.ajax({url:C,type:$,dataType:A,data:B,success:_})}}),Z0.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(_,$){Z0.fn[$]=function(_){return this.on($,_)}}),Z0._evalUrl=function($){return Z0.ajax({url:$,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Z0.fn.extend({wrapAll:function(_){if(Z0.isFunction(_))return this.each(function($){Z0(this).wrapAll(_.call(this,$))});if(this[0]){var $=Z0(_,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&$.insertBefore(this[0]),$.map(function(){var $=this;while($.firstChild&&1===$.firstChild.nodeType)$=$.firstChild;return $}).append(this)}return this},wrapInner:function($){return this.each(Z0.isFunction($)?function(_){Z0(this).wrapInner($.call(this,_))}:function(){var _=Z0(this),A=_.contents();A.length?A.wrapAll($):_.append($)})},wrap:function(_){var $=Z0.isFunction(_);return this.each(function(A){Z0(this).wrapAll($?_.call(this,A):_)})},unwrap:function(){return this.parent().each(function(){Z0.nodeName(this,"body")||Z0(this).replaceWith(this.childNodes)}).end()}}),Z0.expr.filters.hidden=function($){return $.offsetWidth<=0&&$.offsetHeight<=0||!c0.reliableHiddenOffsets()&&"none"===($.style&&$.style.display||Z0.css($,"display"))},Z0.expr.filters.visible=function($){return!Z0.expr.filters.hidden($)};var _1=/%20/g,m1=/\[\]$/,a1=/\r?\n/g,Q=/^(?:submit|button|image|reset|file)$/i,C=/^(?:input|select|textarea|keygen)/i;function l0(C,A,B,$){var _;if(Z0.isArray(A))Z0.each(A,function(A,_){B||m1.test(C)?$(C,_):l0(C+"["+("object"==typeof _?A:"")+"]",_,B,$)});else if(B||"object"!==Z0.type(A))$(C,A);else for(_ in A)l0(C+"["+_+"]",A[_],B,$)}Z0.param=function(C,A){var B,$=[],_=function(A,_){_=Z0.isFunction(_)?_():null==_?"":_,$[$.length]=encodeURIComponent(A)+"="+encodeURIComponent(_)};if(void 0===A&&(A=Z0.ajaxSettings&&Z0.ajaxSettings.traditional),Z0.isArray(C)||C.jquery&&!Z0.isPlainObject(C))Z0.each(C,function(){_(this.name,this.value)});else for(B in C)l0(B,C[B],A,_);return $.join("&").replace(_1,"+")},Z0.fn.extend({serialize:function(){return Z0.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var $=Z0.prop(this,"elements");return $?Z0.makeArray($):this}).filter(function(){var $=this.type;return this.name&&!Z0(this).is(":disabled")&&C.test(this.nodeName)&&!Q.test($)&&(this.checked||!y.test($))}).map(function(A,$){var _=Z0(this).val();return null==_?null:Z0.isArray(_)?Z0.map(_,function(_){return{name:$.name,value:_.replace(a1,"\r\n")}}):{name:$.name,value:_.replace(a1,"\r\n")}}).get()}}),Z0.ajaxSettings.xhr=void 0!==V0.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&s1()||C2()}:s1;var D0=0,S1={},C1=Z0.ajaxSettings.xhr();V0.ActiveXObject&&Z0(V0).on("unload",function(){for(var $ in S1)S1[$](void 0,!0)}),c0.cors=!!C1&&"withCredentials"in C1,C1=c0.ajax=!!C1,C1&&Z0.ajaxTransport(function(_){if(!_.crossDomain||c0.cors){var $;return{send:function(E,C){var D,A=_.xhr(),B=++D0;if(A.open(_.type,_.url,_.async,_.username,_.password),_.xhrFields)for(D in _.xhrFields)A[D]=_.xhrFields[D];_.mimeType&&A.overrideMimeType&&A.overrideMimeType(_.mimeType),_.crossDomain||E["X-Requested-With"]||(E["X-Requested-With"]="XMLHttpRequest");for(D in E)void 0!==E[D]&&A.setRequestHeader(D,E[D]+"");A.send(_.hasContent&&_.data||null),$=function(E,D){var H,I,F;if($&&(D||4===A.readyState))if(delete S1[B],$=void 0,A.onreadystatechange=Z0.noop,D)4!==A.readyState&&A.abort();else{F={},H=A.status,"string"==typeof A.responseText&&(F.text=A.responseText);try{I=A.statusText}catch(G){I=""}H||!_.isLocal||_.crossDomain?1223===H&&(H=204):H=F.text?200:404}F&&C(H,I,F,A.getAllResponseHeaders())},_.async?4===A.readyState?setTimeout($):A.onreadystatechange=S1[B]=$:$()},abort:function(){$&&$(void 0,!0)}}}});function s1(){try{return new V0.XMLHttpRequest}catch($){}}function C2(){try{return new V0.ActiveXObject("Microsoft.XMLHTTP")}catch($){}}Z0.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function($){return Z0.globalEval($),$}}}),Z0.ajaxPrefilter("script",function($){void 0===$.cache&&($.cache=!1),$.crossDomain&&($.type="GET",$.global=!1)}),Z0.ajaxTransport("script",function(A){if(A.crossDomain){var $,_=x0.head||Z0("head")[0]||x0.documentElement;return{send:function(B,C){$=x0.createElement("script"),$.async=!0,A.scriptCharset&&($.charset=A.scriptCharset),$.src=A.url,$.onload=$.onreadystatechange=function(A,_){(_||!$.readyState||/loaded|complete/.test($.readyState))&&($.onload=$.onreadystatechange=null,$.parentNode&&$.parentNode.removeChild($),$=null,_||C(200,"success"))},_.insertBefore($,_.firstChild)},abort:function(){$&&$.onload(void 0,!0)}}}});var o=[],_2=/(=)\?(?=&|$)|\?\?/;Z0.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var $=o.pop()||Z0.expando+"_"+H0++;return this[$]=!0,$}}),Z0.ajaxPrefilter("json jsonp",function(C,D,A){var B,$,_,E=C.jsonp!==!1&&(_2.test(C.url)?"url":"string"==typeof C.data&&!(C.contentType||"").indexOf("application/x-www-form-urlencoded")&&_2.test(C.data)&&"data");return E||"jsonp"===C.dataTypes[0]?(B=C.jsonpCallback=Z0.isFunction(C.jsonpCallback)?C.jsonpCallback():C.jsonpCallback,E?C[E]=C[E].replace(_2,"$1"+B):C.jsonp!==!1&&(C.url+=(W.test(C.url)?"&":"?")+C.jsonp+"="+B),C.converters["script json"]=function(){return _||Z0.error(B+" was not called"),_[0]},C.dataTypes[0]="json",$=V0[B],V0[B]=function(){_=arguments},A.always(function(){V0[B]=$,C[B]&&(C.jsonpCallback=D.jsonpCallback,o.push(B)),_&&Z0.isFunction($)&&$(_[0]),_=$=void 0}),"script"):void 0}),Z0.parseHTML=function(C,A,B){if(!C||"string"!=typeof C)return null;"boolean"==typeof A&&(B=A,A=!1),A=A||x0;var $=j0.exec(C),_=!B&&[];return $?[A.createElement($[1])]:($=Z0.buildFragment([C],A,_),_&&_.length&&Z0(_).remove(),Z0.merge([],$.childNodes))};var L1=Z0.fn.load;Z0.fn.load=function(E,C,D){if("string"!=typeof E&&L1)return L1.apply(this,arguments);var A,B,$,_=this,F=E.indexOf(" ");return F>=0&&(A=Z0.trim(E.slice(F,E.length)),E=E.slice(0,F)),Z0.isFunction(C)?(D=C,C=void 0):C&&"object"==typeof C&&($="POST"),_.length>0&&Z0.ajax({url:E,type:$,dataType:"html",data:C}).done(function($){B=arguments,_.html(A?Z0("<div>").append(Z0.parseHTML($)).find(A):$)}).complete(D&&function(A,$){_.each(D,B||[A.responseText,$,A])}),this},Z0.expr.filters.animated=function($){return Z0.grep(Z0.timers,function(_){return $===_.elem}).length};var Z1=V0.document.documentElement;function w($){return Z0.isWindow($)?$:9===$.nodeType?$.defaultView||$.parentWindow:!1}Z0.offset={setOffset:function(E,C,D){var A,B,$,_,J,K,H,I=Z0.css(E,"position"),G=Z0(E),F={};"static"===I&&(E.style.position="relative"),J=G.offset(),$=Z0.css(E,"top"),K=Z0.css(E,"left"),H=("absolute"===I||"fixed"===I)&&Z0.inArray("auto",[$,K])>-1,H?(A=G.position(),_=A.top,B=A.left):(_=parseFloat($)||0,B=parseFloat(K)||0),Z0.isFunction(C)&&(C=C.call(E,D,J)),null!=C.top&&(F.top=C.top-J.top+_),null!=C.left&&(F.left=C.left-J.left+B),"using"in C?C.using.call(E,F):G.css(F)}},Z0.fn.extend({offset:function(D){if(arguments.length)return void 0===D?this:this.each(function($){Z0.offset.setOffset(this,D,$)});var B,C,_={top:0,left:0},A=this[0],$=A&&A.ownerDocument;if($)return B=$.documentElement,Z0.contains(B,A)?(typeof A.getBoundingClientRect!==t&&(_=A.getBoundingClientRect()),C=w($),{top:_.top+(C.pageYOffset||B.scrollTop)-(B.clientTop||0),left:_.left+(C.pageXOffset||B.scrollLeft)-(B.clientLeft||0)}):_},position:function(){if(this[0]){var B,_,A={top:0,left:0},$=this[0];return"fixed"===Z0.css($,"position")?_=$.getBoundingClientRect():(B=this.offsetParent(),_=this.offset(),Z0.nodeName(B[0],"html")||(A=B.offset()),A.top+=Z0.css(B[0],"borderTopWidth",!0),A.left+=Z0.css(B[0],"borderLeftWidth",!0)),{top:_.top-A.top-Z0.css($,"marginTop",!0),left:_.left-A.left-Z0.css($,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var $=this.offsetParent||Z1;while($&&!Z0.nodeName($,"html")&&"static"===Z0.css($,"position"))$=$.offsetParent;return $||Z1})}}),Z0.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(A,$){var _=/Y/.test($);Z0.fn[A]=function(B){return z(this,function(D,B,C){var A=w(D);return void 0===C?A?$ in A?A[$]:A.document.documentElement[B]:D[B]:void(A?A.scrollTo(_?Z0(A).scrollLeft():C,_?C:Z0(A).scrollTop()):D[B]=C)},A,B,arguments.length,null)}}),Z0.each(["top","left"],function(_,$){Z0.cssHooks[$]=J(c0.pixelPosition,function(A,_){return _?(_=l1(A,$),I1.test(_)?Z0(A).position()[$]+"px":_):void 0})}),Z0.each({Height:"height",Width:"width"},function(_,$){Z0.each({padding:"inner"+_,content:$,"":"outer"+_},function(B,A){Z0.fn[A]=function(D,E){var A=arguments.length&&(B||"boolean"!=typeof D),C=B||(D===!0||E===!0?"margin":"border");return z(this,function(B,D,$){var A;return Z0.isWindow(B)?B.document.documentElement["client"+_]:9===B.nodeType?(A=B.documentElement,Math.max(B.body["scroll"+_],A["scroll"+_],B.body["offset"+_],A["offset"+_],A["client"+_])):void 0===$?Z0.css(B,D,C):Z0.style(B,D,$,C)},$,A?D:void 0,A,null)}})}),Z0.fn.size=function(){return this.length},Z0.fn.andSelf=Z0.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Z0});var s=V0.jQuery,a0=V0.$;return Z0.noConflict=function($){return V0.$===Z0&&(V0.$=a0),$&&V0.jQuery===Z0&&(V0.jQuery=s),Z0},typeof S0===t&&(V0.jQuery=V0.$=Z0),Z0});(function(B,A){var D=0,C=/^ui-id-\d+$/;B.ui=B.ui||{};if(B.ui.version)return;B.extend(B.ui,{version:"1.9.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});B.fn.extend({_focus:B.fn.focus,focus:function($,_){return typeof $==="number"?this.each(function(){var A=this;setTimeout(function(){B(A).focus();if(_)_.call(A)},$)}):this._focus.apply(this,arguments)},scrollParent:function(){var $;if((B.ui.ie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position")))$=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(B.css(this,"position"))&&(/(auto|scroll)/).test(B.css(this,"overflow")+B.css(this,"overflow-y")+B.css(this,"overflow-x"))}).eq(0);else $=this.parents().filter(function(){return(/(auto|scroll)/).test(B.css(this,"overflow")+B.css(this,"overflow-y")+B.css(this,"overflow-x"))}).eq(0);return(/fixed/).test(this.css("position"))||!$.length?B(document):$},zIndex:function(C){if(C!==A)return this.css("zIndex",C);if(this.length){var _=B(this[0]),$,D;while(_.length&&_[0]!==document){$=_.css("position");if($==="absolute"||$==="relative"||$==="fixed"){D=parseInt(_.css("zIndex"),10);if(!isNaN(D)&&D!==0)return D}_=_.parent()}}return 0},uniqueId:function(){return this.each(function(){if(!this.id)this.id="ui-id-"+(++D)})},removeUniqueId:function(){return this.each(function(){if(C.test(this.id))B(this).removeAttr("id")})}});if(!B("<a>").outerWidth(1).jquery)B.each(["Width","Height"],function(F,_){var $=_==="Width"?["Left","Right"]:["Top","Bottom"],D=_.toLowerCase(),C={innerWidth:B.fn.innerWidth,innerHeight:B.fn.innerHeight,outerWidth:B.fn.outerWidth,outerHeight:B.fn.outerHeight};function E(_,D,C,A){B.each($,function(){D-=parseFloat(B.css(_,"padding"+this))||0;if(C)D-=parseFloat(B.css(_,"border"+this+"Width"))||0;if(A)D-=parseFloat(B.css(_,"margin"+this))||0});return D}B.fn["inner"+_]=function($){if($===A)return C["inner"+_].call(this);return this.each(function(){B(this).css(D,E(this,$)+"px")})};B.fn["outer"+_]=function(A,$){if(typeof A!=="number")return C["outer"+_].call(this,A);return this.each(function(){B(this).css(D,E(this,A,true,$)+"px")})}});function $($,E){var D,F,C,A=$.nodeName.toLowerCase();if("area"===A){D=$.parentNode;F=D.name;if(!$.href||!F||D.nodeName.toLowerCase()!=="map")return false;C=B("img[usemap=#"+F+"]")[0];return!!C&&_(C)}return(/input|select|textarea|button|object/.test(A)?!$.disabled:"a"===A?$.href||E:E)&&_($)}function _($){return B.expr.filters.visible($)&&!B($).parents().andSelf().filter(function(){return B.css(this,"visibility")==="hidden"}).length}B.extend(B.expr[":"],{data:B.expr.createPseudo?B.expr.createPseudo(function($){return function(_){return!!B.data(_,$)}}):function($,A,_){return!!B.data($,_[3])},focusable:function(_){return $(_,!isNaN(B.attr(_,"tabindex")))},tabbable:function(_){var A=B.attr(_,"tabindex"),C=isNaN(A);return(C||A>=0)&&$(_,!C)}});B(function(){var $=document.body,_=$.appendChild(_=document.createElement("div"));_.offsetHeight;B.extend(_.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});B.support.minHeight=_.offsetHeight===100;B.support.selectstart="onselectstart"in _;$.removeChild(_).style.display="none"});(function(){var $=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];B.ui.ie=$.length?true:false;B.ui.ie6=parseFloat($[1],10)===6})();B.fn.extend({disableSelection:function(){return this.bind((B.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function($){$.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});B.extend(B.ui,{plugin:{add:function($,C,_){var D,A=B.ui[$].prototype;for(D in _){A.plugins[D]=A.plugins[D]||[];A.plugins[D].push([C,_[D]])}},call:function(B,A,_){var C,$=B.plugins[A];if(!$||!B.element[0].parentNode||B.element[0].parentNode.nodeType===11)return;for(C=0;C<$.length;C++)if(B.options[$[C][0]])$[C][1].apply(B.element,_)}},contains:B.contains,hasScroll:function($,A){if(B($).css("overflow")==="hidden")return false;var _=(A&&A==="left")?"scrollLeft":"scrollTop",C=false;if($[_]>0)return true;$[_]=1;C=($[_]>0);$[_]=0;return C},isOverAxis:function(A,$,_){return(A>$)&&(A<($+_))},isOver:function(C,E,D,A,$,_){return B.ui.isOverAxis(C,D,$)&&B.ui.isOverAxis(E,A,_)}})})(jQuery);(function(A,_){var C=0,B=Array.prototype.slice,$=A.cleanData;A.cleanData=function(C){for(var D=0,_;(_=C[D])!=null;D++){try{A(_).triggerHandler("remove")}catch(B){}}$(C)};A.widget=function(_,B,E){var D,$,G,C,F=_.split(".")[0];_=_.split(".")[1];D=F+"-"+_;if(!E){E=B;B=A.Widget}A.expr[":"][D.toLowerCase()]=function($){return!!A.data($,D)};A[F]=A[F]||{};$=A[F][_];G=A[F][_]=function(_,$){if(!this._createWidget)return new G(_,$);if(arguments.length)this._createWidget(_,$)};A.extend(G,$,{version:E.version,_proto:A.extend({},E),_childConstructors:[]});C=new B();C.options=A.widget.extend({},C.options);A.each(E,function(_,$){if(A.isFunction($))E[_]=(function(){var A=function(){return B.prototype[_].apply(this,arguments)},C=function($){return B.prototype[_].apply(this,$)};return function(){var _=this._super,D=this._superApply,B;this._super=A;this._superApply=C;B=$.apply(this,arguments);this._super=_;this._superApply=D;return B}})()});G.prototype=A.widget.extend(C,{widgetEventPrefix:C.widgetEventPrefix||_},E,{constructor:G,namespace:F,widgetName:_,widgetBaseClass:D,widgetFullName:D});if($){A.each($._childConstructors,function(B,$){var _=$.prototype;A.widget(_.namespace+"."+_.widgetName,G,$._proto)});delete $._childConstructors}else B._childConstructors.push(G);A.widget.bridge(_,G)};A.widget.extend=function(F){var $=B.call(arguments,1),E=0,C=$.length,G,D;for(;E<C;E++)for(G in $[E]){D=$[E][G];if($[E].hasOwnProperty(G)&&D!==_)if(A.isPlainObject(D))F[G]=A.isPlainObject(F[G])?A.widget.extend({},F[G],D):A.widget.extend({},D);else F[G]=D}return F};A.widget.bridge=function($,D){var C=D.prototype.widgetFullName;A.fn[$]=function(H){var G=typeof H==="string",E=B.call(arguments,1),F=this;H=!G&&E.length?A.widget.extend.apply(null,[H].concat(E)):H;if(G)this.each(function(){var B,D=A.data(this,C);if(!D)return A.error("cannot call methods on "+$+" prior to initialization; "+"attempted to call method '"+H+"'");if(!A.isFunction(D[H])||H.charAt(0)==="_")return A.error("no such method '"+H+"' for "+$+" widget instance");B=D[H].apply(D,E);if(B!==D&&B!==_){F=B&&B.jquery?F.pushStack(B.get()):B;return false}});else this.each(function(){var $=A.data(this,C);if($)$.option(H||{})._init();else new D(H,this)});return F}};A.Widget=function(){};A.Widget._childConstructors=[];A.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(_,$){$=A($||this.defaultElement||this)[0];this.element=A($);this.uuid=C++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=A.widget.extend({},this.options,this._getCreateOptions(),_);this.bindings=A();this.hoverable=A();this.focusable=A();if($!==this){A.data($,this.widgetName,this);A.data($,this.widgetFullName,this);this._on(this.element,{remove:function(_){if(_.target===$)this.destroy()}});this.document=A($.style?$.ownerDocument:$.document||$);this.window=A(this.document[0].defaultView||this.document[0].parentWindow)}this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:A.noop,_getCreateEventData:A.noop,_create:A.noop,_init:A.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(A.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:A.noop,widget:function(){return this.element},option:function(D,B){var F=D,C,$,E;if(arguments.length===0)return A.widget.extend({},this.options);if(typeof D==="string"){F={};C=D.split(".");D=C.shift();if(C.length){$=F[D]=A.widget.extend({},this.options[D]);for(E=0;E<C.length-1;E++){$[C[E]]=$[C[E]]||{};$=$[C[E]]}D=C.pop();if(B===_)return $[D]===_?null:$[D];$[D]=B}else{if(B===_)return this.options[D]===_?null:this.options[D];F[D]=B}}this._setOptions(F);return this},_setOptions:function(_){var $;for($ in _)this._setOption($,_[$]);return this},_setOption:function(_,$){this.options[_]=$;if(_==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!$).attr("aria-disabled",$);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_on:function($,C){var _,B=this;if(!C){C=$;$=this.element;_=this.widget()}else{$=_=A($);this.bindings=this.bindings.add($)}A.each(C,function(E,H){function D(){if(B.options.disabled===true||A(this).hasClass("ui-state-disabled"))return;return(typeof H==="string"?B[H]:H).apply(B,arguments)}if(typeof H!=="string")D.guid=H.guid=H.guid||D.guid||A.guid++;var G=E.match(/^(\w+)\s*(.*)$/),F=G[1]+B.eventNamespace,C=G[2];if(C)_.delegate(C,F,D);else $.bind(F,D)})},_off:function($,_){_=(_||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;$.unbind(_).undelegate(_)},_delay:function(B,_){function $(){return(typeof B==="string"?A[B]:B).apply(A,arguments)}var A=this;return setTimeout($,_||0)},_hoverable:function($){this.hoverable=this.hoverable.add($);this._on($,{mouseenter:function($){A($.currentTarget).addClass("ui-state-hover")},mouseleave:function($){A($.currentTarget).removeClass("ui-state-hover")}})},_focusable:function($){this.focusable=this.focusable.add($);this._on($,{focusin:function($){A($.currentTarget).addClass("ui-state-focus")},focusout:function($){A($.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(E,$,C){var B,D,_=this.options[E];C=C||{};$=A.Event($);$.type=(E===this.widgetEventPrefix?E:this.widgetEventPrefix+E).toLowerCase();$.target=this.element[0];D=$.originalEvent;if(D)for(B in D)if(!(B in $))$[B]=D[B];this.element.trigger($,C);return!(A.isFunction(_)&&_.apply(this.element[0],[$].concat(C))===false||$.isDefaultPrevented())}};A.each({show:"fadeIn",hide:"fadeOut"},function(_,$){A.Widget.prototype["_"+_]=function(C,F,D){if(typeof F==="string")F={effect:F};var B,E=!F?_:F===true||typeof F==="number"?$:F.effect||$;F=F||{};if(typeof F==="number")F={duration:F};B=!A.isEmptyObject(F);F.complete=D;if(F.delay)C.delay(F.delay);if(B&&A.effects&&(A.effects.effect[E]||A.uiBackCompat!==false&&A.effects[E]))C[_](F);else if(E!==_&&C[E])C[E](F.duration,F.easing,D);else C.queue(function($){A(this)[_]();if(D)D.call(C[0]);$()})}});if(A.uiBackCompat!==false)A.Widget.prototype._getCreateOptions=function(){return A.metadata&&A.metadata.get(this.element[0])[this.widgetName]}})(jQuery);(function(A,_){var $=false;A(document).mouseup(function(_){$=false});A.widget("ui.mouse",{version:"1.9.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var $=this;this.element.bind("mousedown."+this.widgetName,function(_){return $._mouseDown(_)}).bind("click."+this.widgetName,function(_){if(true===A.data(_.target,$.widgetName+".preventClickEvent")){A.removeData(_.target,$.widgetName+".preventClickEvent");_.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);if(this._mouseMoveDelegate)A(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(C){if($)return;(this._mouseStarted&&this._mouseUp(C));this._mouseDownEvent=C;var _=this,D=(C.which===1),B=(typeof this.options.cancel==="string"&&C.target.nodeName?A(C.target).closest(this.options.cancel).length:false);if(!D||B||!this._mouseCapture(C))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){_.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(C)&&this._mouseDelayMet(C)){this._mouseStarted=(this._mouseStart(C)!==false);if(!this._mouseStarted){C.preventDefault();return true}}if(true===A.data(C.target,this.widgetName+".preventClickEvent"))A.removeData(C.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function($){return _._mouseMove($)};this._mouseUpDelegate=function($){return _._mouseUp($)};A(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);C.preventDefault();$=true;return true},_mouseMove:function($){if(A.ui.ie&&!(document.documentMode>=9)&&!$.button)return this._mouseUp($);if(this._mouseStarted){this._mouseDrag($);return $.preventDefault()}if(this._mouseDistanceMet($)&&this._mouseDelayMet($)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,$)!==false);(this._mouseStarted?this._mouseDrag($):this._mouseUp($))}return!this._mouseStarted},_mouseUp:function($){A(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if($.target===this._mouseDownEvent.target)A.data($.target,this.widgetName+".preventClickEvent",true);this._mouseStop($)}return false},_mouseDistanceMet:function($){return(Math.max(Math.abs(this._mouseDownEvent.pageX-$.pageX),Math.abs(this._mouseDownEvent.pageY-$.pageY))>=this.options.distance)},_mouseDelayMet:function($){return this.mouseDelayMet},_mouseStart:function($){},_mouseDrag:function($){},_mouseStop:function($){},_mouseCapture:function($){return true}})})(jQuery);(function(_,$){_.widget("ui.draggable",_.ui.mouse,{version:"1.9.1",widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position")))this.element[0].style.position="relative";(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function($){var A=this.options;if(this.helper||A.disabled||_($.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle($);if(!this.handle)return false;_(A.iframeFix===true?"iframe":A.iframeFix).each(function(){_("<div class=\"ui-draggable-iframeFix\" style=\"background: #fff;\"></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(_(this).offset()).appendTo("body")});return true},_mouseStart:function($){var A=this.options;this.helper=this._createHelper($);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();if(_.ui.ddmanager)_.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};_.extend(this.offset,{click:{left:$.pageX-this.offset.left,top:$.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition($);this.originalPageX=$.pageX;this.originalPageY=$.pageY;(A.cursorAt&&this._adjustOffsetFromHelper(A.cursorAt));if(A.containment)this._setContainment();if(this._trigger("start",$)===false){this._clear();return false}this._cacheHelperProportions();if(_.ui.ddmanager&&!A.dropBehaviour)_.ui.ddmanager.prepareOffsets(this,$);this._mouseDrag($,true);if(_.ui.ddmanager)_.ui.ddmanager.dragStart(this,$);return true},_mouseDrag:function(B,A){this.position=this._generatePosition(B);this.positionAbs=this._convertPositionTo("absolute");if(!A){var $=this._uiHash();if(this._trigger("drag",B,$)===false){this._mouseUp({});return false}this.position=$.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";if(_.ui.ddmanager)_.ui.ddmanager.drag(this,B);return false},_mouseStop:function(C){var B=false;if(_.ui.ddmanager&&!this.options.dropBehaviour)B=_.ui.ddmanager.drop(this,C);if(this.dropped){B=this.dropped;this.dropped=false}var A=this.element[0],D=false;while(A&&(A=A.parentNode))if(A==document)D=true;if(!D&&this.options.helper==="original")return false;if((this.options.revert=="invalid"&&!B)||(this.options.revert=="valid"&&B)||this.options.revert===true||(_.isFunction(this.options.revert)&&this.options.revert.call(this.element,B))){var $=this;_(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if($._trigger("stop",C)!==false)$._clear()})}else if(this._trigger("stop",C)!==false)this._clear();return false},_mouseUp:function($){_("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});if(_.ui.ddmanager)_.ui.ddmanager.dragStop(this,$);return _.ui.mouse.prototype._mouseUp.call(this,$)},cancel:function(){if(this.helper.is(".ui-draggable-dragging"))this._mouseUp({});else this._clear();return this},_getHandle:function(A){var $=!this.options.handle||!_(this.options.handle,this.element).length?true:false;_(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==A.target)$=true});return $},_createHelper:function(A){var B=this.options,$=_.isFunction(B.helper)?_(B.helper.apply(this.element[0],[A])):(B.helper=="clone"?this.element.clone().removeAttr("id"):this.element);if(!$.parents("body").length)$.appendTo((B.appendTo=="parent"?this.element[0].parentNode:B.appendTo));if($[0]!=this.element[0]&&!(/(fixed|absolute)/).test($.css("position")))$.css("position","absolute");return $},_adjustOffsetFromHelper:function($){if(typeof $=="string")$=$.split(" ");if(_.isArray($))$={left:+$[0],top:+$[1]||0};if("left"in $)this.offset.click.left=$.left+this.margins.left;if("right"in $)this.offset.click.left=this.helperProportions.width-$.right+this.margins.left;if("top"in $)this.offset.click.top=$.top+this.margins.top;if("bottom"in $)this.offset.click.top=this.helperProportions.height-$.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var $=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&_.contains(this.scrollParent[0],this.offsetParent[0])){$.left+=this.scrollParent.scrollLeft();$.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&_.ui.ie))$={top:0,left:0};return{top:$.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:$.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var $=this.element.position();return{top:$.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:$.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0),right:(parseInt(this.element.css("marginRight"),10)||0),bottom:(parseInt(this.element.css("marginBottom"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var C=this.options;if(C.containment=="parent")C.containment=this.helper[0].parentNode;if(C.containment=="document"||C.containment=="window")this.containment=[C.containment=="document"?0:_(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,C.containment=="document"?0:_(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(C.containment=="document"?0:_(window).scrollLeft())+_(C.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(C.containment=="document"?0:_(window).scrollTop())+(_(C.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!(/^(document|window|parent)$/).test(C.containment)&&C.containment.constructor!=Array){var B=_(C.containment),D=B[0];if(!D)return;var A=B.offset(),$=(_(D).css("overflow")!="hidden");this.containment=[(parseInt(_(D).css("borderLeftWidth"),10)||0)+(parseInt(_(D).css("paddingLeft"),10)||0),(parseInt(_(D).css("borderTopWidth"),10)||0)+(parseInt(_(D).css("paddingTop"),10)||0),($?Math.max(D.scrollWidth,D.offsetWidth):D.offsetWidth)-(parseInt(_(D).css("borderLeftWidth"),10)||0)-(parseInt(_(D).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,($?Math.max(D.scrollHeight,D.offsetHeight):D.offsetHeight)-(parseInt(_(D).css("borderTopWidth"),10)||0)-(parseInt(_(D).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=B}else if(C.containment.constructor==Array)this.containment=C.containment},_convertPositionTo:function($,E){if(!E)E=this.position;var C=$=="absolute"?1:-1,D=this.options,A=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&_.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,B=(/(html|body)/i).test(A[0].tagName);return{top:(E.top+this.offset.relative.top*C+this.offset.parent.top*C-((this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(B?0:A.scrollTop()))*C)),left:(E.left+this.offset.relative.left*C+this.offset.parent.left*C-((this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():B?0:A.scrollLeft())*C))}},_generatePosition:function(C){var D=this.options,A=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&_.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,B=(/(html|body)/i).test(A[0].tagName),F=C.pageX,I=C.pageY;if(this.originalPosition){var G;if(this.containment){if(this.relative_container){var $=this.relative_container.offset();G=[this.containment[0]+$.left,this.containment[1]+$.top,this.containment[2]+$.left,this.containment[3]+$.top]}else G=this.containment;if(C.pageX-this.offset.click.left<G[0])F=G[0]+this.offset.click.left;if(C.pageY-this.offset.click.top<G[1])I=G[1]+this.offset.click.top;if(C.pageX-this.offset.click.left>G[2])F=G[2]+this.offset.click.left;if(C.pageY-this.offset.click.top>G[3])I=G[3]+this.offset.click.top}if(D.grid){var H=D.grid[1]?this.originalPageY+Math.round((I-this.originalPageY)/D.grid[1])*D.grid[1]:this.originalPageY;I=G?(!(H-this.offset.click.top<G[1]||H-this.offset.click.top>G[3])?H:(!(H-this.offset.click.top<G[1])?H-D.grid[1]:H+D.grid[1])):H;var E=D.grid[0]?this.originalPageX+Math.round((F-this.originalPageX)/D.grid[0])*D.grid[0]:this.originalPageX;F=G?(!(E-this.offset.click.left<G[0]||E-this.offset.click.left>G[2])?E:(!(E-this.offset.click.left<G[0])?E-D.grid[0]:E+D.grid[0])):E}}return{top:(I-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+((this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(B?0:A.scrollTop())))),left:(F-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+((this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():B?0:A.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval)this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(B,A,$){$=$||this._uiHash();_.ui.plugin.call(this,B,[A,$]);if(B=="drag")this.positionAbs=this._convertPositionTo("absolute");return _.Widget.prototype._trigger.call(this,B,A,$)},plugins:{},_uiHash:function($){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});_.ui.plugin.add("draggable","connectToSortable",{start:function(A,$){var C=_(this).data("draggable"),B=C.options,D=_.extend({},$,{item:C.element});C.sortables=[];_(B.connectToSortable).each(function(){var $=_.data(this,"sortable");if($&&!$.options.disabled){C.sortables.push({instance:$,shouldRevert:$.options.revert});$.refreshPositions();$._trigger("activate",A,D)}})},stop:function(A,$){var B=_(this).data("draggable"),C=_.extend({},$,{item:B.element});_.each(B.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;B.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(A);this.instance.options.helper=this.instance.options._helper;if(B.options.helper=="original")this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",A,C)}})},drag:function(C,$){var D=_(this).data("draggable"),A=this,B=function(C){var $=this.offset.click.top,E=this.offset.click.left,F=this.positionAbs.top,H=this.positionAbs.left,G=C.height,D=C.width,B=C.top,A=C.left;return _.ui.isOver(F+$,H+E,B,A,G,D)};_.each(D.sortables,function(F){var B=false,E=this;this.instance.positionAbs=D.positionAbs;this.instance.helperProportions=D.helperProportions;this.instance.offset.click=D.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){B=true;_.each(D.sortables,function(){this.instance.positionAbs=D.positionAbs;this.instance.helperProportions=D.helperProportions;this.instance.offset.click=D.offset.click;if(this!=E&&this.instance._intersectsWith(this.instance.containerCache)&&_.ui.contains(E.instance.element[0],this.instance.element[0]))B=false;return B})}if(B){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=_(A).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return $.helper[0]};C.target=this.instance.currentItem[0];this.instance._mouseCapture(C,true);this.instance._mouseStart(C,true,true);this.instance.offset.click.top=D.offset.click.top;this.instance.offset.click.left=D.offset.click.left;this.instance.offset.parent.left-=D.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=D.offset.parent.top-this.instance.offset.parent.top;D._trigger("toSortable",C);D.dropped=this.instance.element;D.currentItem=D.element;this.instance.fromOutside=D}if(this.instance.currentItem)this.instance._mouseDrag(C)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",C,this.instance._uiHash(this.instance));this.instance._mouseStop(C,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder)this.instance.placeholder.remove();D._trigger("fromSortable",C);D.dropped=false}})}});_.ui.plugin.add("draggable","cursor",{start:function(B,$){var A=_("body"),C=_(this).data("draggable").options;if(A.css("cursor"))C._cursor=A.css("cursor");A.css("cursor",C.cursor)},stop:function(A,$){var B=_(this).data("draggable").options;if(B._cursor)_("body").css("cursor",B._cursor)}});_.ui.plugin.add("draggable","opacity",{start:function(B,$){var A=_($.helper),C=_(this).data("draggable").options;if(A.css("opacity"))C._opacity=A.css("opacity");A.css("opacity",C.opacity)},stop:function(A,$){var B=_(this).data("draggable").options;if(B._opacity)_($.helper).css("opacity",B._opacity)}});_.ui.plugin.add("draggable","scroll",{start:function(A,$){var B=_(this).data("draggable");if(B.scrollParent[0]!=document&&B.scrollParent[0].tagName!="HTML")B.overflowOffset=B.scrollParent.offset()},drag:function(B,$){var D=_(this).data("draggable"),C=D.options,A=false;if(D.scrollParent[0]!=document&&D.scrollParent[0].tagName!="HTML"){if(!C.axis||C.axis!="x")if((D.overflowOffset.top+D.scrollParent[0].offsetHeight)-B.pageY<C.scrollSensitivity)D.scrollParent[0].scrollTop=A=D.scrollParent[0].scrollTop+C.scrollSpeed;else if(B.pageY-D.overflowOffset.top<C.scrollSensitivity)D.scrollParent[0].scrollTop=A=D.scrollParent[0].scrollTop-C.scrollSpeed;if(!C.axis||C.axis!="y")if((D.overflowOffset.left+D.scrollParent[0].offsetWidth)-B.pageX<C.scrollSensitivity)D.scrollParent[0].scrollLeft=A=D.scrollParent[0].scrollLeft+C.scrollSpeed;else if(B.pageX-D.overflowOffset.left<C.scrollSensitivity)D.scrollParent[0].scrollLeft=A=D.scrollParent[0].scrollLeft-C.scrollSpeed}else{if(!C.axis||C.axis!="x")if(B.pageY-_(document).scrollTop()<C.scrollSensitivity)A=_(document).scrollTop(_(document).scrollTop()-C.scrollSpeed);else if(_(window).height()-(B.pageY-_(document).scrollTop())<C.scrollSensitivity)A=_(document).scrollTop(_(document).scrollTop()+C.scrollSpeed);if(!C.axis||C.axis!="y")if(B.pageX-_(document).scrollLeft()<C.scrollSensitivity)A=_(document).scrollLeft(_(document).scrollLeft()-C.scrollSpeed);else if(_(window).width()-(B.pageX-_(document).scrollLeft())<C.scrollSensitivity)A=_(document).scrollLeft(_(document).scrollLeft()+C.scrollSpeed)}if(A!==false&&_.ui.ddmanager&&!C.dropBehaviour)_.ui.ddmanager.prepareOffsets(D,B)}});_.ui.plugin.add("draggable","snap",{start:function(A,$){var C=_(this).data("draggable"),B=C.options;C.snapElements=[];_(B.snap.constructor!=String?(B.snap.items||":data(draggable)"):B.snap).each(function(){var $=_(this),A=$.offset();if(this!=C.element[0])C.snapElements.push({item:this,width:$.outerWidth(),height:$.outerHeight(),top:A.top,left:A.left})})},drag:function(P,$){var J=_(this).data("draggable"),F=J.options,A=F.snapTolerance,L=$.offset.left,K=L+J.helperProportions.width,E=$.offset.top,G=E+J.helperProportions.height;for(var M=J.snapElements.length-1;M>=0;M--){var H=J.snapElements[M].left,O=H+J.snapElements[M].width,N=J.snapElements[M].top,D=N+J.snapElements[M].height;if(!((H-A<L&&L<O+A&&N-A<E&&E<D+A)||(H-A<L&&L<O+A&&N-A<G&&G<D+A)||(H-A<K&&K<O+A&&N-A<E&&E<D+A)||(H-A<K&&K<O+A&&N-A<G&&G<D+A))){if(J.snapElements[M].snapping)(J.options.snap.release&&J.options.snap.release.call(J.element,P,_.extend(J._uiHash(),{snapItem:J.snapElements[M].item})));J.snapElements[M].snapping=false;continue}if(F.snapMode!="inner"){var C=Math.abs(N-G)<=A,I=Math.abs(D-E)<=A,B=Math.abs(H-K)<=A,Q=Math.abs(O-L)<=A;if(C)$.position.top=J._convertPositionTo("relative",{top:N-J.helperProportions.height,left:0}).top-J.margins.top;if(I)$.position.top=J._convertPositionTo("relative",{top:D,left:0}).top-J.margins.top;if(B)$.position.left=J._convertPositionTo("relative",{top:0,left:H-J.helperProportions.width}).left-J.margins.left;if(Q)$.position.left=J._convertPositionTo("relative",{top:0,left:O}).left-J.margins.left}var R=(C||I||B||Q);if(F.snapMode!="outer"){C=Math.abs(N-E)<=A,I=Math.abs(D-G)<=A,B=Math.abs(H-L)<=A,Q=Math.abs(O-K)<=A;if(C)$.position.top=J._convertPositionTo("relative",{top:N,left:0}).top-J.margins.top;if(I)$.position.top=J._convertPositionTo("relative",{top:D-J.helperProportions.height,left:0}).top-J.margins.top;if(B)$.position.left=J._convertPositionTo("relative",{top:0,left:H}).left-J.margins.left;if(Q)$.position.left=J._convertPositionTo("relative",{top:0,left:O-J.helperProportions.width}).left-J.margins.left}if(!J.snapElements[M].snapping&&(C||I||B||Q||R))(J.options.snap.snap&&J.options.snap.snap.call(J.element,P,_.extend(J._uiHash(),{snapItem:J.snapElements[M].item})));J.snapElements[M].snapping=(C||I||B||Q||R)}}});_.ui.plugin.add("draggable","stack",{start:function(B,A){var C=_(this).data("draggable").options,D=_.makeArray(_(C.stack)).sort(function(A,$){return(parseInt(_(A).css("zIndex"),10)||0)-(parseInt(_($).css("zIndex"),10)||0)});if(!D.length)return;var $=parseInt(D[0].style.zIndex)||0;_(D).each(function(_){this.style.zIndex=$+_});this[0].style.zIndex=$+D.length}});_.ui.plugin.add("draggable","zIndex",{start:function(B,$){var A=_($.helper),C=_(this).data("draggable").options;if(A.css("zIndex"))C._zIndex=A.css("zIndex");A.css("zIndex",C.zIndex)},stop:function(A,$){var B=_(this).data("draggable").options;if(B._zIndex)_($.helper).css("zIndex",B._zIndex)}})})(jQuery);var DESKTOP="desktop";E_topWindow=true;E_clientModel=null;E_sizeChange=new E_Map();E_winObjs=new E_Map();E_tempObject=new E_Map();E_dataChange=new E_Map();var E_htmldisplayChange=new E_Map(),E_emrshowChange=new E_Map(),E_emrdataelement=new E_Map(),E_watwebformCache=new E_Map(),E_watwebformScriptCache=new E_Map(),E_popgridtextCache=new E_Map(),E_watwebformCacheList=[];function removePopgridtextCache(D){try{var _=JSON.parse(D.textContent)["release"];for(var F=0;F<_.length;F++){var C=E_popgridtextCache.E_get(_[F]);if(!C)return;var B=C.E_keys.E_list.E_contents.length;for(var E=B-1;E>=0;E--){var A=C.E_keys.E_list.E_contents[E];C.E_remove(A)}E_popgridtextCache.E_remove(_[F])}}catch($){}}function putPopgridtextCache(D,E,C,$){var B=E_popgridtextCache.E_get(D);if(!B){B=new E_Map();E_popgridtextCache.E_put(D,B)}if(B.E_size()>=$){var A=B.E_keys.E_list.E_contents.length;for(var F=A-1;F>=0;F--){var _=B.E_keys.E_list.E_contents[F];B.E_remove(_);break}}B.E_put(E,C);return true}function getPopgridtextCache(_,A){var $=E_popgridtextCache.E_get(_);if(!$)return null;if($.E_contains(A))return $.E_get(A);else return null}function popgridtextCacheContains(_,A){if(E_popgridtextCache.E_contains(_)){var $=E_popgridtextCache.E_get(_);if($.E_contains(A))return $.E_get(A);else return false}else return false}function E_initClientModel(){E_clientModel=new E_ClientModel();E_clientModel.E_addWindow(DESKTOP,E_clientModel.E_desktop)}function E_ClientModel_E_getDesktop(){return this.E_desktop}function E_ClientModel_E_getController(){return this.E_controller}function E_ClientModel_E_addWindow(_,$){this.E_windows.E_put(_,$)}function E_getTempObject($){return E_tempObject.E_get($)}function E_putTempObject(_,$){E_tempObject.E_put(_,$)}function E_getObject(C,$,A){var _,B=E_winObjs.E_get(C);if(B==null){B=new E_Map();E_winObjs.E_put(C,B);_=A.getElementById($);B.E_put($,_)}else{_=B.E_get($);if(_==null){_=A.getElementById($);B.E_put($,_)}}return _}function E_removeObject(C){var A=E_winObjs.E_get(C);if(A!=null){var $=A.E_keys.E_list.E_contents.length;for(var B=$-1;B>=0;B--){var _=A.E_keys.E_list.E_contents[B];A.E_remove(_)}E_winObjs.E_remove(C)}}function E_removeTheObject(A,$){var _=E_winObjs.E_get(A);if(_!=null)_.E_remove($)}function E_ClientModel_E_getWindow($){return this.E_windows.E_get($)}function E_ClientModel_E_getWindowID(B){var C=this.E_getWindowIds(),D=0,_="";for(D=0;D<C.E_size();D++){var A=C.E_get(D),$=E_clientModel.E_getWindow(A);if((A!=DESKTOP&&B==$.contentWindow)||((A==DESKTOP&&B==$))){_=A;break}}return _}function E_ClientModel_E_getWindowCount(){return this.E_windows.E_size()}function E_ClientModel_E_getWindowIds(){return this.E_windows.E_keySet()}function E_ClientModel_E_removeWindow($){this.E_windows.E_remove($)}function E_ClientModel_E_inClientModel($){var A=this.E_getWindowIds(),B=false,C=0;for(C=0;C<A.E_size();C++){var _=A.E_get(C);if(_==$){B=true;break}}return B}function E_ClientModel_E_verify($){var A=this.E_windows.E_keySet(),B=A.E_size(),_,C,D=false;for(C=0;C<B;++C){_=this.E_windows.E_get(A.E_get(C));if(_){if(_.closed||!_.E_getClientModel)D=true;else if(_.E_getClientModel()!=this){D=true;if($)_.E_setClientModel(this)}}else D=true}return D}function E_getContentPane(_){var $=(_.strWrapper!=DESKTOP)?_.contentWindow.document:_.document,A=$.getElementById(WIN_CONTENTPANE);return A}function E_ClientModel(){this.E_activingWinID="";this.E_focusedWinID="";this.E_windows=new E_Map();this.E_desktop=window;this.E_desktop.nMinWinCount=0;this.E_desktop.nMaxZIndex=20;this.E_desktop.id=DESKTOP;this.E_getDesktop=E_ClientModel_E_getDesktop;this.E_addWindow=E_ClientModel_E_addWindow;this.E_getWindow=E_ClientModel_E_getWindow;this.E_getWindowID=E_ClientModel_E_getWindowID;this.E_getWindowCount=E_ClientModel_E_getWindowCount;this.E_inClientModel=E_ClientModel_E_inClientModel;this.E_getWindowIds=E_ClientModel_E_getWindowIds;this.E_removeWindow=E_ClientModel_E_removeWindow;this.E_verify=E_ClientModel_E_verify;this.E_openWin=E_openWindow;this.E_openModalWin=E_openModalWindow;this.E_minWin=E_minWindow;this.E_normalWin=E_normalWindow;this.E_cascadeWin=E_cascadeWindow;this.E_maxWin=E_maxWindow;this.E_closeWin=E_clsWindow;this.activeWin=E_activeWindow;this.E_getWinStates=E_getWindowStatus}function E_List_E_add($){this.E_contents[this.E_contents.length]=$}function E_List_E_contains($){return this.E_indexOf($)!=-1}function E_List_E_indexOf($){var _;for(_=0;_<this.E_contents.length;++_)if(this.E_contents[_]==$)return _;return-1}function E_List_E_get($){return this.E_contents[$]}function E_List_E_remove($){var _;for(_=$;_<this.E_contents.length-1;++_)this.E_contents[_]=this.E_contents[_+1];this.E_contents.length=this.E_contents.length-1}function E_List_E_size(){return this.E_contents.length}function E_List(){this.E_contents=new Array(0);this.E_add=E_List_E_add;this.E_contains=E_List_E_contains;this.E_get=E_List_E_get;this.E_indexOf=E_List_E_indexOf;this.E_remove=E_List_E_remove;this.E_size=E_List_E_size}function E_Set_E_add($){if(!this.E_list.E_contains($))this.E_list.E_add($)}function E_Set_E_contains($){return this.E_list.E_contains($)}function E_Set_E_get($){return this.E_list.E_get($)}function E_Set_E_indexOf($){return this.E_list.E_indexOf($)}function E_Set_E_remove($){var _=this.E_list.E_indexOf($);if(_!=-1)this.E_list.E_remove(_)}function E_Set_E_size(){return this.E_list.E_size()}function E_Set(){this.E_list=new E_List();this.E_add=E_Set_E_add;this.E_contains=E_Set_E_contains;this.E_get=E_Set_E_get;this.E_indexOf=E_Set_E_indexOf;this.E_remove=E_Set_E_remove;this.E_size=E_Set_E_size}function E_Map_E_get($){if(this.E_keys.E_contains($))return this.E_values[$];else return null}function E_Map_E_contains($){if(this.E_keys.E_contains($))return true;else return false}function E_Map_E_keySet(){return this.E_keys}function E_Map_E_put(_,$){this.E_keys.E_add(_);this.E_values[_]=$}function E_Map_E_remove($){if(this.E_keys.E_contains($)){this.E_keys.E_remove($);this.E_values[$]=null}}function E_Map_E_size(){return this.E_keys.E_size()}function E_Map(){this.E_keys=new E_Set();this.E_values=new Array();this.E_get=E_Map_E_get;this.E_keySet=E_Map_E_keySet;this.E_put=E_Map_E_put;this.E_remove=E_Map_E_remove;this.E_size=E_Map_E_size;this.E_contains=E_Map_E_contains};if(!window.createPopup){var __createPopup=function(){var A=function(_,B){var A=_.style;for(var $ in B)A[$]=B[$]},D=document.getElementById("windowPopup");if(D==undefined){D=document.createElement("div");D.id="windowPopup"}A(D,{"position":"absolute","top":0+"px","left":0+"px","width":0+"px","height":0+"px","zIndex":1000,"display":"none","overflow":"hidden"});D.body=D;var C=false,B=function($){C=$},_=function(){return C},$=function($){var _={x:0,y:0};while($){_.x+=$.offsetLeft;_.y+=$.offsetTop;$=$.offsetParent}return _};return{htmlTxt:"",document:D,isOpen:_(),isShow:false,hide:function(){A(D,{"top":0+"px","left":0+"px","width":0+"px","height":0+"px","display":"none"});D.innerHTML="";this.isShow=false},show:function(A,F,G,E,C){if(!_()){document.body.appendChild(D);B(true)}this.htmlTxt=D.innerHTML;if(this.isShow)this.hide();D.innerHTML=this.htmlTxt;var H=$(C);D.style.left=(A+H.x)+"px";D.style.top=(F+H.y)+"px";D.style.width=G+"px";D.style.height=E+"px";D.style.display="block";this.isShow=true}}};window.createPopup=function(){return __createPopup()}}var has_showModalDialog=!!window.showModalDialog;if(window.showModalDialog==undefined)window.showModalDialog=function(B,$,_){if(window.hasOpenWindow&&window.myNewWindow){window.myNewWindow.focus();return}window.hasOpenWindow=true;if($)var $=$;if(_)var _=_.replace(/(dialog)|(px)/ig,"").replace(/;/g,",").replace(/\:/g,"=");var A=(window.screen.width-parseInt(_.match(/width[\s]*=[\s]*([\d]+)/i)[1]))/2,C=(window.screen.height-parseInt(_.match(/height[\s]*=[\s]*([\d]+)/i)[1]))/2;B=B+"&temp="+Math.random();window.myNewWindow=window.open(B,"_blank",_)};function _doChromeWindowShowModalDialog(_){window.hasOpenWindow=false;try{doChromeWindowShowModalDialog(_)}catch($){}}if(typeof ActiveXObject===""&&document.implementation.hasFeature("XPath","3.0")){Document.prototype.readyState=0;Document.prototype.onreadystatechange=null;Document.prototype.__changeReadyState__=function($){this.readyState=$;if(typeof this.onreadystatechange=="function")this.onreadystatechange()};Document.prototype.__initError__=function(){this.parseError.errorCode=0;this.parseError.filepos=-1;this.parseError.line=-1;this.parseError.linepos=-1;this.parseError.reason=null;this.parseError.srcText=null;this.parseError.url=null};Document.prototype.__checkForErrors__=function(){if(this.documentElement.tagName=="parsererror"){var $=/>([\s\S]*?)Location:([\s\S]*?)Line Number (\d+), Column (\d+):<sourcetext>([\s\S]*?)(?:\-*\^)/;$.test(this.xml);this.parseError.errorCode=-999999;this.parseError.reason=RegExp.$1;this.parseError.url=RegExp.$2;this.parseError.line=parseInt(RegExp.$3);this.parseError.linepos=parseInt(RegExp.$4);this.parseError.srcText=RegExp.$5}};Document.prototype.loadXML=function(B){this.__initError__();this.__changeReadyState__(1);var _=new DOMParser(),$=_.parseFromString(B,"text/xml");while(this.firstChild)this.removeChild(this.firstChild);for(var C=0;C<$.childNodes.length;C++){var A=this.importNode($.childNodes[C],true);this.appendChild(A)}this.__checkForErrors__();this.__changeReadyState__(4)};Document.prototype.load=function($){this.__initError__();this.__changeReadyState__(1);this.__load__($)};Document.prototype.__load__=Document.prototype.load;Document.prototype.__defineGetter__("xml",function(){return(new XMLSerializer()).serializeToString(this,"text/xml")});Node.prototype.__defineGetter__("text",function(){var $="";for(var _=0;_<this.childNodes.length;_++)if(this.childNodes[_].hasChildNodes())$+=this.childNodes[_].text;else $+=this.childNodes[_].nodeValue;return $});Node.prototype.__defineSetter__("text",function($){this.textContent=$});Node.prototype.__defineGetter__("xml",function(){return(new XMLSerializer()).serializeToString(this,"text/xml")});Document.prototype.selectSingleNode=Element.prototype.selectSingleNode=function(_){var $=this.selectNodes(_);if(!$||$.length<1)return null;return $[0]};Document.prototype.selectNodes=Element.prototype.selectNodes=function(D){var B=new XPathEvaluator(),A=B.createNSResolver(this.ownerDocument==null?this.documentElement:this.ownerDocument.documentElement),_=B.evaluate(D,this,A,0,null),C=[],$;while($=_.iterateNext())C.push($);return C};HTMLElement.prototype.__defineGetter__("innerText",function(){var $="",_=this.childNodes;for(var A=0;A<_.length;A++)if(_[A].nodeType==1)$+=_[A].tagName=="BR"?"\n":_[A].innerText;else if(_[A].nodeType==3)$+=_[A].nodeValue;return $});HTMLElement.prototype.__defineSetter__("innerText",function($){this.textContent=$})}if(document.implementation.hasFeature("XPath","3.0")){XMLDocument.prototype.selectNodes=function(A,C){if(!C)C=this;var $=this.createNSResolver(this.documentElement),_=this.evaluate(A,C,$,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),B=[];for(var D=0;D<_.snapshotLength;D++)B[D]=_.snapshotItem(D);return B};Element.prototype.selectNodes=function($){if(this.ownerDocument.selectNodes)return this.ownerDocument.selectNodes($,this);else throw"For XML Elements Only"};XMLDocument.prototype.selectSingleNode=function($,A){if(!A)A=this;var _=this.selectNodes($,A);if(_.length>0)return _[0];else return null};Element.prototype.selectSingleNode=function($){if(this.ownerDocument.selectSingleNode)return this.ownerDocument.selectSingleNode($,this);else throw"For XML Elements Only"}}if(!document.all&&typeof(HTMLElement)!="undefined")HTMLElement.prototype.__defineGetter__("children",function(){var $=new Object(),_=0;for(var A=0;A<this.childNodes.length;A++)if(this.childNodes[A].nodeType==1){$[_]=this.childNodes[A];_++}$.length=_;return $});if(!document.all&&typeof(HTMLElement)!="undefined"&&!window.opera){var pro=window.HTMLElement.prototype;pro.__defineGetter__("innerText",function(){var $="",_=this.childNodes;for(var A=0;A<_.length;A++)if(_[A].nodeType==1)$+=_[A].tagName=="BR"?"\n":_[A].innerText;else if(_[A].nodeType==3)$+=_[A].nodeValue;return $});pro.__defineSetter__("innerText",function($){this.textContent=$})}if(!document.all&&typeof(HTMLElement)!="undefined"&&!window.opera){pro=window.HTMLElement.prototype;pro.__defineGetter__("outerHTML",function(){var $="<"+this.tagName,_=this.attributes;for(var B=0,A=_.length;B<A;B++)if(_[B].specified)$+=" "+_[B].name+"=\""+_[B].value+"\"";if(!this.canHaveChildren)return $+" />";return $+">"+this.innerHTML+"</"+this.tagName+">"});pro.__defineSetter__("outerHTML",function(_){var A=this.ownerDocument.createRange();A.setStartBefore(this);var $=A.createContextualFragment(_);this.parentNode.replaceChild($,this);return _})}if(!document.all&&typeof(HTMLElement)!="undefined"){HTMLElement.prototype.insertAdjacentElement=function(_,$){switch(_){case"beforeBegin":this.parentNode.insertBefore($,this);break;case"afterBegin":this.insertBefore($,this.firstChild);break;case"beforeEnd":this.appendChild($);break;case"afterEnd":if(this.nextSibling)this.parentNode.insertBefore($,this.nextSibling);else this.parentNode.appendChild($);break}};HTMLElement.prototype.insertAdjacentHTML=function(B,$){var _=this.ownerDocument.createRange();_.setStartBefore(this);var A=_.createContextualFragment($);this.insertAdjacentElement(B,A)};HTMLElement.prototype.insertAdjacentText=function(_,$){var A=document.createTextNode($);this.insertAdjacentElement(_,A)}}if(!document.all){function __firefox(){HTMLElement.prototype.__defineGetter__("runtimeStyle",__element_style);window.constructor.prototype.__defineGetter__("event",__window_event);Event.prototype.__defineGetter__("srcElement",__event_srcElement)}function __element_style(){return this.style}function __window_event(){return __window_event_constructor()}function __event_srcElement(){return this.target}function __window_event_constructor(){if(document.all)return window.event;var _=__window_event_constructor.caller;while(_!=null){var A=_.arguments[0];if(A){var $=A.constructor;if($.toString().indexOf("Event")!=-1)return A}_=_.caller}return null}if(window.addEventListener)__firefox()}(function(A,G,I){"$:nomunge";var F=A.resize=A.extend(A.resize,{}),_,B="setTimeout",D="setInterval",J="resize",H=J+"-special-event",C="delay",$="throttleWindow";F[C]=350;F[$]=true;A.event.special[J]={setup:function(){if(!F[$]&&this[D])return false;var C=arguments[0];if(C==null)return;var G=top.E_sizeChange.E_get(C);if(G==null){G=A([]);top.E_sizeChange.E_put(C,G)}var B=A(this);G=G.add(B);top.E_sizeChange.E_put(C,G);A.data(this,H,{w:B.width(),h:B.height()});if(_==I)E()},teardown:function(){if(!F[$]&&this[D])return false;if(true)return false;var B=arguments[0];if(B==null)return;var _=A(this),C=top.E_sizeChange.E_get(B);if(C!=null){C=C.not(_);top.E_sizeChange.E_put(B,C);_.removeData(H);if(!C.length)if(!C.length)top.E_sizeChange.E_remove(B)}},add:function(B){if(!F[$]&&this[D])return false;var C;function _(B,_,E){var $=A(this),D=A.data(this,H);D.w=_!==I?_:$.width();D.h=E!==I?E:$.height();C.apply(this,arguments)}if(A.isFunction(B)){C=B;return _}else{C=B.handler;B.handler=_}}};function E(){_=G[D](function(){var _=top.E_sizeChange.E_keys.E_list.E_contents.length;for(var D=_-1;D>=0;D--){try{var B=top.E_sizeChange.E_keys.E_list.E_contents[D],C=top.E_sizeChange.E_get(B);if(C!=null)C.each(function(){var $=A(this),C=$.width(),B=$.height(),D=A.data(this,H);if(D!=null&&(C!==D.w||B!==D.h)){try{$.trigger(J,[D.w=C,D.h=B])}catch(_){}}})}catch($){}}},F[C])}})(jQuery,this);(function(_){var $="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",B=function(_){_=_.replace(/\x0d\x0a/g,"\n");var B="";for(var A=0;A<_.length;A++){var $=_.charCodeAt(A);if($<128)B+=String.fromCharCode($);else if(($>127)&&($<2048)){B+=String.fromCharCode(($>>6)|192);B+=String.fromCharCode(($&63)|128)}else{B+=String.fromCharCode(($>>12)|224);B+=String.fromCharCode((($>>6)&63)|128);B+=String.fromCharCode(($&63)|128)}}return B},A=function($){var A="",B=0,_=c1=c2=0;while(B<$.length){_=$.charCodeAt(B);if(_<128){A+=String.fromCharCode(_);B++}else if((_>191)&&(_<224)){c2=$.charCodeAt(B+1);A+=String.fromCharCode(((_&31)<<6)|(c2&63));B+=2}else{c2=$.charCodeAt(B+1);c3=$.charCodeAt(B+2);A+=String.fromCharCode(((_&15)<<12)|((c2&63)<<6)|(c3&63));B+=3}}return A};_.extend({base64Encode:function(_){var G="",F,H,I,E,C,A,D,J=0;_=B(_);while(J<_.length){F=_.charCodeAt(J++);H=_.charCodeAt(J++);I=_.charCodeAt(J++);E=F>>2;C=((F&3)<<4)|(H>>4);A=((H&15)<<2)|(I>>6);D=I&63;if(isNaN(H))A=D=64;else if(isNaN(I))D=64;G=G+$.charAt(E)+$.charAt(C)+$.charAt(A)+$.charAt(D)}return G},base64Decode:function(_){var G="",F,H,I,E,C,B,D,J=0;_=_.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(J<_.length){E=$.indexOf(_.charAt(J++));C=$.indexOf(_.charAt(J++));B=$.indexOf(_.charAt(J++));D=$.indexOf(_.charAt(J++));F=(E<<2)|(C>>4);H=((C&15)<<4)|(B>>2);I=((B&3)<<6)|D;G=G+String.fromCharCode(F);if(B!=64)G=G+String.fromCharCode(H);if(D!=64)G=G+String.fromCharCode(I)}G=A(G);return G}})})(jQuery);function $$(_,D,A){if(typeof _=="object")return $(_);var C;if(A!=null)C=top.E_getObject(D,_,A);else{var B=top.E_clientModel.E_getWindow(D);if(B!=null){var A=WatCore.getWindowDoc(D,B);C=top.E_getObject(D,_,A)}else C=document.getElementById(_)}return $(C)}function getJQueryDocument(A,F){if(typeof A=="object")return $(A);var E=null;if(E==null){var D=top.E_clientModel.E_getWindow(F),B=WatCore.getWindowDoc(F,D);if(B!=null)E=top.E_getObject(F,A,B);else{E=document.getElementById(A);if(E==null){var _=$getFrames(top.document);for(var G=0,C=_.length;G<C;++G){E=_[G].document.getElementById(A);if(E!=null)break}}}}return $(E)}function getDocument(_,E){var D=null,C=top.E_clientModel.E_getWindow(E),A=WatCore.getWindowDoc(E,C);if(A!=null)D=top.E_getObject(E,_,A);else{D=document.getElementById(_);if(D==null){var $=$getFrames(top.document);for(var F=0,B=$.length;F<B;++F){D=$[F].document.getElementById(_);if(D!=null)break}}}return D}function $getFrames(B){var A=[],$=B.frames;for(var C=0,_=$.length;C<_;++C){A.push($[C]);A=A.concat($getFrames($[C].document))}return A}function getAbsoluteLeft($){if(!$)return null;var _=$,A=_.offsetLeft;while(_!=null&&_.offsetParent!=null&&_.offsetParent.tagName!="BODY"){A+=_.offsetParent.offsetLeft;_=_.offsetParent}return A}function getAbsoluteTop($){if(!$)return null;var A=$,_=A.offsetTop;while(A!=null&&A.offsetParent!=null&&A.offsetParent.tagName!="BODY"){_+=A.offsetParent.offsetTop;A=A.offsetParent}return _}function stopEvent($){if(!$)$=window.event;if(!$)return;EventUtil.stopPropagation($)}var StringUtil={trim:function(_){$.trim(_)},format:function(_){if(arguments.length==0)return"";if(arguments.length==1)return arguments[0];var B=/{(\d+)?}/g,A=arguments,$=arguments[0].replace(B,function(B,_){var $=A[parseInt(_)+1];return $==null?"":$});return $}};String.prototype.replaceAll=function(_,$){return this.replace(new RegExp(_,"gm"),$)};function BrowserType(){var B=navigator.userAgent,D=B.indexOf("Opera")>-1,F=B.indexOf("compatible")>-1&&B.indexOf("MSIE")>-1&&!D,A=B.indexOf("Edge")>-1,E=B.indexOf("Firefox")>-1,_=B.indexOf("Safari")>-1&&B.indexOf("Chrome")==-1,$=B.indexOf("Chrome")>-1&&B.indexOf("Safari")>-1;if(F){var G=new RegExp("MSIE (\\d+\\.\\d+);");G.test(B);var C=parseFloat(RegExp["$1"]);if(C==7)return"IE7";else if(C==8)return"IE8";else if(C==9)return"IE9";else if(C==10)return"IE10";else if(C==11)return"IE11";else return"0"}if(D)return"Opera";if(A)return"Edge";if(E)return"FF";if(_)return"Safari";if($)return"Chrome"}function getBrowserVersion(){var $=navigator.userAgent.toLowerCase();if($.match(/msie ([\d.]+)/)!=null){uaMatch=$.match(/msie ([\d.]+)/);switch(uaMatch[1]){case"4.0":return"IE8";break;case"5.0":return"IE9";break;case"6.0":return"IE10";break;case"7.0":return"IE11";break;default:return"IE"+uaMatch[1]}}else if($.match(/(trident)\/([\w.]+)/)){uaMatch=$.match(/trident\/([\w.]+)/);switch(uaMatch[1]){case"4.0":return"IE8";break;case"5.0":return"IE9";break;case"6.0":return"IE10";break;case"7.0":return"IE11";break;default:return undefined}}return undefined}function detectOS(){var _=navigator.userAgent,$=(navigator.platform=="Win32")||(navigator.platform=="Windows"),J=(navigator.platform=="Mac68K")||(navigator.platform=="MacPPC")||(navigator.platform=="Macintosh")||(navigator.platform=="MacIntel");if(J)return"Mac";var F=(navigator.platform=="X11")&&!$&&!J;if(F)return"Unix";var I=(String(navigator.platform).indexOf("Linux")>-1),E=_.toLowerCase().match(/android/i)=="android";if(I)if(E)return"Android";else return"Linux";if($){var A=_.indexOf("Windows NT 5.0")>-1||_.indexOf("Windows 2000")>-1;if(A)return"Win2000";var B=_.indexOf("Windows NT 5.1")>-1||_.indexOf("Windows XP")>-1;_.indexOf("Windows XP")>-1;if(B)return"WinXP";var C=_.indexOf("Windows NT 5.2")>-1||_.indexOf("Windows 2003")>-1;if(C)return"Win2003";var H=_.indexOf("Windows NT 6.0")>-1||_.indexOf("Windows Vista")>-1;if(H)return"WinVista";var G=_.indexOf("Windows NT 6.1")>-1||_.indexOf("Windows 7")>-1;if(G)return"Win7";var K=_.indexOf("Windows NT 6.2")>-1||_.indexOf("Windows 8")>-1;if(K)return"Win8";var D=_.indexOf("Windows NT 10")>-1||_.indexOf("Windows 10")>-1;if(D)return"Win10"}return"\u5176\u4ed6"}function digits(){var $=navigator.userAgent.toLowerCase(),_=$.indexOf("win64")>-1||$.indexOf("wow64")>-1;if(_)return"64\u4f4d";else return"32\u4f4d"}function getInnerText($){return(typeof $.textContent=="string")?$.textContent:$.innerText}function setInnerText($,_){if(typeof $.textContent=="string")$.textContent=_;else $.innerText=_}function insertHTML(A,C,B){if(!A)return false;C=C.toLowerCase();if(top.isIE)A.insertAdjacentHTML(C,B);else{var _=A.ownerDocument.createRange(),$=null;switch(C){case"beforebegin":_.setStartBefore(A);$=_.createContextualFragment(B);A.parentNode.insertBefore($,A);return A.previousSibling;case"afterbegin":if(A.firstChild){_.setStartBefore(A.firstChild);$=_.createContextualFragment(B);A.insertBefore($,A.firstChild)}else A.innerHTML=B;return A.firstChild;case"beforeend":if(A.lastChild){_.setStartAfter(A.lastChild);$=_.createContextualFragment(B);A.appendChild($)}else A.innerHTML=B;return A.lastChild;case"afterend":_.setStartAfter(A);$=_.createContextualFragment(B);A.parentNode.insertBefore($,A.nextSibling);return A.nextSibling}}}function addEventHandler(F,E,G,$,_,A,B,C,D){var H=G;if($)H=function(E){G.call(this,$,_,A,B,C,D)};if(F.attachEvent)F.attachEvent("on"+E,H);else if(F.addEventListener)F.addEventListener(E,H,false);else F["on"+E]=H}function removeEventHandler(_,$,A){if(_.removeEventListener)_.removeEventListener($,A,false);else if(_.detachEvent)_.detachEvent("on"+$,A);else delete _["on"+$]}function detectZoom(){var _=0,$=window.screen,A=navigator.userAgent.toLowerCase();if(window.devicePixelRatio!==undefined)_=window.devicePixelRatio;else if(A.indexOf("msie")){if($.deviceXDPI&&$.logicalXDPI)_=$.deviceXDPI/$.logicalXDPI}else if(window.outerWidth!==undefined&&window.innerWidth!==undefined)_=window.outerWidth/window.innerWidth;if(_)_=Math.round(_*100);return _}function htmlEncode($){if(true)return $;if($==null||$==undefined)return $;$=$.replace(new RegExp(/(<)/g),"&lt;");$=$.replace(new RegExp(/([\\'])/g),"&#39");return $}function createRandom(){var $=new Date(),_=""+$.getYear()+$.getMonth()+$.getDate(),A=""+Math.random();A=A.substring(2,A.length);return _+A}function createGuid(){var $="";for(var A=1;A<=32;A++){var _=Math.floor(Math.random()*16).toString(16);$+=_;if((A==8)||(A==12)||(A==16)||(A==20))$+="-"}return $}function changeResizeCursortoemr(D,B){try{var C=(!isIE)?B.layerX:B.offsetX,_=(!isIE)?B.layerY:B.offsetY,$="default";D.nBorderType=getBorderTypeToEmr(D,C,_);switch(D.nBorderType){case 1:$="w-resize";break;case 2:$="e-resize";break;case 4:$="n-resize";break;case 5:$="nw-resize";break;case 6:$="ne-resize";break;case 8:$="s-resize";break;case 9:$="sw-resize";break;case 10:$="se-resize";break}D.style.cursor=$}catch(A){}}function getBorderTypeToEmr(F,E,A){var D=0;try{var _=F.offsetWidth,$=F.offsetHeight,C=8;if(A<C)D+=4;else if(A>$-C)D+=8;else D=0}catch(B){}return D}function watMessage($){top.DxLabel.showLabel_($)}function drag(C,E,A,B,D,_){A.onmousedown=function(G){var F=B;G=G||D.event;var I=G.layerX||G.offsetX,H=G.layerY||G.offsetY;if(A.setCapture)A.setCapture();else if(D.captureEvents)D.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);A.draging="true";F.onmousemove=function(E){E=E||D.event;if(!E.pageX)E.pageX=E.clientX;if(!E.pageY)E.pageY=E.clientY;var C=E.pageX-I,B=E.pageY-H+parseInt(A.parentElement.scrollTop)-$(A.parentElement).offset().top;if(A.nBorderType!=8&&A.nBorderType!=4){if(parseInt(B)+$(A).height()>$(_).height()+A.topnumber)A.style.top=$(_).height()+A.topnumber-$(A).height();else if(A.topnumber<parseInt(B))A.style.top=B;else A.style.top=A.topnumber}else if(A.nBorderType==8){try{if(parseInt(B)+$(A).height()>$(_).height()+A.topnumber)A.style.height=$(_).height()+A.topnumber-parseInt(A.style.top);else A.style.height=parseInt(E.pageY+parseInt(A.parentElement.scrollTop))-parseInt(A.style.top)-$(A.parentElement).offset().top}catch(E){}}else if(A.nBorderType==4){try{var F=B;if(F<A.topnumber)F=A.topnumber;var G=F-parseInt(A.style.top);A.style.top=F;A.style.height=parseInt(A.style.height)-G}catch(E){}}};F.onmouseup=function(){if(A.releaseCapture)A.releaseCapture();else if(D.captureEvents)D.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);F.onmousemove=null;F.onmouseup=null;A.draging="false";var B=parseInt(A.style.top)-A.topnumber,_=$(A).height();top.WatCore.setParameter(C,E,top.DC.EMRXUDA_MASK_VALUE,B+","+_)}}}function hashCode($){var _=$.replaceAll("\\|",""),_=_.replaceAll("\\(",""),_=_.replaceAll("\\)",""),A=hashCode_(_);return A}function hashCode_(_){var C=0,A=0,B=_.length;for(var D=0;D<B;D++)C=31*C+_.charCodeAt(A++);var $=-2147483648*2;while(C>2147483647)C+=$;return C}function watEval(_){var $=Function;return new $(_)()}(function($){$.fn.Tips=function(A){var _={html:"",times:3000};_this_=$("#tips");_this_.html(A.html);_this_.show();setTimeout(function(){_this_.hide()},A.times)}})(jQuery);var EventUtil={addHandler:function($,_,A){if($.addEventListener)$.addEventListener(_,A,false);else if($.attachEvent)$.attachEvent("on"+_,A);else $["on"+_]=A},removeHandler:function($,_,A){if($.removeEventListener)$.removeEventListener(_,A,false);else if($.detachEvent)$.detachEvent("on"+_,A);else $["on"+_]=null},getEvent:function($){return $?$:window.event},getTarget:function($){return $.target||$.srcElement},preventDefault:function(_){try{if(_.preventDefault)_.preventDefault();else _.returnValue=false}catch($){}},stopPropagation:function(_){try{if(_.stopPropagation)_.stopPropagation();else _.cancelBubble=true}catch($){}},getRelatedTarget:function($){if($.relatedTarget)return $.relatedTarget;else if($.toElement)return $.toElement;else if($.formElement)return $.formElement;else return null},getButton:function($){if(document.implementation.hasFeature("MouseEvents","2.0"))return $.button;else switch($.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}},getWheelDelta:function($){if($.wheelDelta)return $.wheelDelta;else return-$.detail*40},getCharCode:function($){if(typeof $.charCode=="number")return $.charCode;else return $.keyCode},mousePosition:function(_,A){var $=EventUtil.getEvent(_);if($.pageX||$.pageY)return{x:$.pageX,y:$.pageY};return{x:$.clientX+A.body.scrollLeft-A.body.clientLeft,y:$.clientY+A.body.scrollTop-A.body.clientTop}}};if(jQuery)(function($){$.extend($.fn,{uploadify:function(_){$(this).each(function(){settings=$.extend({id:$(this).attr("id"),uploader:"uploadify.swf",script:"uploadify.php",expressInstall:null,folder:"/uploadify",height:30,width:110,cancelImg:"cancel.png",wmode:"opaque",scriptAccess:"sameDomain",fileDataName:"Filedata",method:"POST",queueSizeLimit:999,simUploadLimit:1,queueID:false,displayData:"percentage",onInit:function(){},onSelect:function(){},onQueueFull:function(){},onCheck:function(){},onCancel:function(){},onError:function(){},onProgress:function(){},onComplete:function(){},onAllComplete:function(){},oDoc:document,oWin:window,hideButton:false,wid:""},_);var D=location.pathname;D=D.split("/");D.pop();D=D.join("/")+"/";var C={};C.uploadifyID=settings.id;C.pagepath=D;if(settings.buttonImg)C.buttonImg=escape(settings.buttonImg);if(settings.buttonText)C.buttonText=encodeURI(settings.buttonText);if(settings.rollover)C.rollover=true;C.script=settings.script;C.folder=escape(settings.folder);if(settings.scriptData){var A="";for(var B in settings.scriptData)A+="&"+B+"="+settings.scriptData[B];C.scriptData=escape(A.substr(1))}C.width=settings.width;C.height=settings.height;C.wmode=settings.wmode;C.method=settings.method;C.queueSizeLimit=settings.queueSizeLimit;C.simUploadLimit=settings.simUploadLimit;if(settings.hideButton)C.hideButton=true;if(settings.fileDesc)C.fileDesc=settings.fileDesc;if(settings.fileExt)C.fileExt=settings.fileExt;if(settings.multi)C.multi=true;if(settings.auto)C.auto=true;if(settings.sizeLimit)C.sizeLimit=settings.sizeLimit;if(settings.checkScript)C.checkScript=settings.checkScript;if(settings.fileDataName)C.fileDataName=settings.fileDataName;if(settings.queueID)C.queueID=settings.queueID;if(settings.wid)C.wid=settings.wid;if(settings.displayData)$(this).attr("displayData",settings.displayData);if(settings.onInit()!==false){$(this).css("display","none");$(this).after("<div id=\""+$(this).attr("id")+"Uploader\"></div>");swfobject.embedSWF(settings.oDoc,settings.oWin,settings.uploader,settings.id+"Uploader",settings.width,settings.height,"9.0.24",settings.expressInstall,C,{"quality":"high","wmode":settings.wmode,"allowScriptAccess":settings.scriptAccess});if(settings.queueID==false)$("#"+$(this).attr("id")+"Uploader").after("<div id=\""+$(this).attr("id")+"Queue\" class=\"uploadifyQueue\"></div>")}$(this).bind("uploadifySelect",{"action":settings.onSelect,"queueID":settings.queueID},function(C,D,B){if(C.data.action(C,D,B)!==false){var A=Math.round(B.size/1024*100)*0.01,E="KB";if(A>1000){A=Math.round(A*0.001*100)*0.01;E="MB"}var _=A.toString().split(".");if(_.length>1)A=_[0]+"."+_[1].substr(0,2);else A=_[0];if(B.name.length>20)fileName=B.name.substr(0,20)+"...";else fileName=B.name;queue=$(this).attr("id")+"Queue";if(C.data.queueID)queue=C.data.queueID;$$(queue,$(this).attr("wid"),null).append("<div id=\""+$(this).attr("id")+D+"\" class=\"uploadifyQueueItem\">\t\t\t\t\t\t\t\t<div class=\"cancel\">\t\t\t\t\t\t\t\t\t<a href=\"javascript:top.getJQueryDocument('"+$(this).attr("id")+"','"+$(this).attr("wid")+"').uploadifyCancel('"+D+"')\"><img src=\""+settings.cancelImg+"\" border=\"0\" /></a>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<span id=\""+$(this).attr("id")+D+"percentage\" class=\"fileName\" value="+fileName+" ("+A+E+")>"+fileName+" ("+A+E+")</span><span class=\"percentage\"></span>\t\t\t\t\t\t\t\t<div class=\"uploadifyProgress\">\t\t\t\t\t\t\t\t\t<div id=\""+$(this).attr("id")+D+"ProgressBar\" class=\"uploadifyProgressBar\"><!--Progress Bar--></div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>")}});if(typeof(settings.onSelectOnce)=="function")$(this).bind("uploadifySelectOnce",settings.onSelectOnce);$(this).bind("uploadifyQueueFull",{"action":settings.onQueueFull},function(_,$){if(_.data.action(_,$)!==false)alert("The queue is full. The max size is "+$+".")});$(this).bind("uploadifyCheckExist",{"action":settings.onCheck},function(E,G,H,_,B){var A=new Object();A=H;A.folder=D+_;if(B)for(var F in H)var C=F;$.post(G,A,function(D){for(var F in D)if(E.data.action(E,G,H,_,B)!==false){var A=confirm("Do you want to replace the file "+D[F]+"?");if(!A)top.getDocument($(this).attr("id")+"Uploader",$(this).attr("wid")).cancelFileUpload(F,true,true)}if(B)top.getDocument($(this).attr("id")+"Uploader",$(this).attr("wid")).startFileUpload(C,true);else top.getDocument($(this).attr("id")+"Uploader",$(this).attr("wid")).startFileUpload(null,true)},"json")});$(this).bind("uploadifyCancel",{"action":settings.onCancel},function(B,D,A,C,E){if(B.data.action(B,D,$(this).attr("sid"),$(this).attr("wid"),A,C,E)!==false){var _=(E==true)?0:250;$$($(this).attr("id")+D,$(this).attr("wid"),null).fadeOut(_,function(){$(this).remove()})}});if(typeof(settings.onClearQueue)=="function")$(this).bind("uploadifyClearQueue",settings.onClearQueue);var E=[];$(this).bind("uploadifyError",{"action":settings.onError},function(A,D,_,F){if(A.data.action(A,D,$(this).attr("sid"),$(this).attr("wid"),_,F)!==false){var C=new Array(D,_,F);E.push(C);var B=$$($(this).attr("id")+D+"percentage",$(this).attr("wid"),null);B.text(B.attr("value")+" - "+F.type+" Error");$$($(this).attr("id")+D,$(this).attr("wid"),null).addClass("uploadifyError")}});$(this).bind("uploadifyProgress",{"action":settings.onProgress,"toDisplay":settings.displayData},function(A,D,_,C){if(A.data.action(A,D,_,C)!==false){$$($(this).attr("id")+D+"ProgressBar",$(this).attr("wid"),null).css("width",C.percentage+"%");if($(this).attr("displayData")=="percentage")displayData=" - "+C.percentage+"%";if($(this).attr("displayData")=="speed")displayData=" - "+C.speed+"KB/s";if($(this).attr("displayData")==null)displayData=" ";var B=$$($(this).attr("id")+D+"percentage",$(this).attr("wid"),null);B.text(B.attr("value")+displayData)}});$(this).bind("uploadifyComplete",{"action":settings.onComplete},function(B,E,A,_,D){if(B.data.action(B,E,$(this).attr("sid"),$(this).attr("wid"),A,unescape(_),D)!==false){var C=$$($(this).attr("id")+E+"percentage",$(this).attr("wid"),null);C.text(C.attr("value")+" - Completed");$$($(this).attr("id")+E,$(this).attr("wid"),null).fadeOut(250,function(){$(this).remove()})}});if(typeof(settings.onAllComplete)=="function")$(this).bind("uploadifyAllComplete",{"action":settings.onAllComplete},function(A,_){if(A.data.action(A,$(this).attr("sid"),$(this).attr("wid"),_)!==false)E=[]})})},uploadifySettings:function(A,E,F){var B=false;$(this).each(function(){if(A=="scriptData"&&E!=null){if(F)var D=E;else D=$.extend(settings.scriptData,E);var _="";for(var C in D)_+="&"+C+"="+escape(D[C]);E=_.substr(1)}B=top.getDocument($(this).attr("id")+"Uploader",$(this).attr("wid")).updateSettings(A,E)});if(E==null){if(A=="scriptData"){var D=unescape(B).split("&"),_=new Object();for(var G=0;G<D.length;G++){var C=D[G].split("=");_[C[0]]=C[1]}B=_}return B}},uploadifyUpload:function(_){$(this).each(function(){top.getDocument($(this).attr("id")+"Uploader",$(this).attr("wid")).startFileUpload(_,false)})},uploadifyCancel:function(_){$(this).each(function(){top.getDocument($(this).attr("id")+"Uploader",$(this).attr("wid")).cancelFileUpload(_,true,false)})},uploadifyClearQueue:function(){$(this).each(function(){top.getDocument($(this).attr("id")+"Uploader",$(this).attr("wid")).clearFileUploadQueue(false)})}})})(jQuery);var DxPrintConfig=function(){};DxPrintConfig.printConfig=function(C){var B=document.createElement("<div id=\"d_printdlg\" style=\"z-index:10000;width:400px;position:absolute;left:320px;top:120px;\"></div>"),F=new ActiveXObject("Microsoft.XMLHTTP");F.open("GET","./printdlg.html",false);F.send(null);B.innerHTML=(F.responseText);document.body.appendChild(B);$$("btn_config").click(function(){DxPrintConfig.config(C);$$("d_printdlg").remove()});var G=$$(C).find("td[headcol]"),A=$$("p_hidCol")[0],D=$$("p_visiCol")[0];for(var H=0;H<G.length;++H){var _=document.createElement("OPTION"),E=$(G[H]);_.text=E.text();_.value=E.attr("headcol");if(E.css("display")=="none")A.add(_);else D.add(_)}F=null};DxPrintConfig.selectCol=function(){var _=$$("p_hidCol")[0].options;for(var $=0;$<_.length;++$)if(_[$].selected){_[$].selected=false;$$("p_visiCol")[0].appendChild(_[$--])}};DxPrintConfig.selectAll=function(){var _=$$("p_hidCol")[0].options;for(var $=0;$<_.length;++$){_[$].selected=false;$$("p_visiCol")[0].appendChild(_[$--])}};DxPrintConfig.unselectCol=function(){var _=$$("p_visiCol")[0].options;for(var $=0;$<_.length;++$)if(_[$].selected){_[$].selected=false;$$("p_hidCol")[0].appendChild(_[$--])}};DxPrintConfig.unselectAll=function(){var _=$$("p_visiCol")[0].options;for(var $=0;$<_.length;++$){_[$].selected=false;$$("p_hidCol")[0].appendChild(_[$--])}};DxPrintConfig.config=function($){var A=$$("p_visiCol")[0].options;for(var _=0;_<A.length;++_){$$($).find("td[headcol="+A[_].value+"]").show();$$($).find("td[datacol="+A[_].value+"]").show();$$($).find("td[tailcol="+A[_].value+"]").show()}A=$$("p_hidCol")[0].options;for(_=0;_<A.length;++_){$$($).find("td[headcol="+A[_].value+"]").hide();$$($).find("td[datacol="+A[_].value+"]").hide();$$($).find("td[tailcol="+A[_].value+"]").hide()}};var oDraggingMenubylistview=new Object();oDraggingMenubylistview.drag=false;oDraggingMenubylistview.targetCtrid="";oDraggingMenubylistview.targetID="";oDraggingMenubylistview.targetIcon="";oDraggingMenubylistview.functionId="";oDraggingMenubylistview.functionName="";oDraggingMenubylistview.targetysIcon="";oDraggingMenubylistview.isparent="";oDraggingMenubylistview.num=0;oDraggingMenubylistview.orgX=0;oDraggingMenubylistview.orgY=0;function DxListView(){}DxListView.LISTVIEW_ITEM="DblClickItem";DxListView.LISTVIEW_DBLITEM="DblDblClickItem";DxListView.LISTVIEW_HEADER="DetailHead";DxListView.LISTVIEW_SELECT="SelectItem";DxListView.LISTVIEW_CHECK="checkItem";DxListView.LISTVIEW_BACKGROUND_COLOR="background";DxListView.LISTVIEW_FOREGROUND_COLOR="foreground";DxListView.DBLCLICK="d_";DxListView.CHECK="c_";DxListView.SELECT="s_";DxListView.TOP="top";DxListView.LEFT="left";DxListView.WIDTH="width";DxListView.HEIGHT="height";DxListView.ROW_HEIGHT=16;DxListView.COLUMNS_SIZE="columns_size";DxListView.NAVIGATOR="navigator";DxListView.CUR_SELECTED_RECORDNO="cur_selected_recordno";DxListView.CUR_EDIT_RECORDNO="cur_edit_recordno";DxListView.HSCROLLBAR_POSITION="hscrollbar_position";DxListView.MOVETOLEFT=1;DxListView.MOVETORIGHT=2;DxListView.OUTER_BORDER_WIDTH=1;DxListView.STRRESIZINGCOLUMNID="STRRESIZINGCOLUMNID";DxListView.STRSRCCOLUMNID="STRSRCCOLUMNID";DxListView.STRTARGETCOLUMNID="STRTARGETCOLUMNID";DxListView.STRCURRENTCTRLID="STRCURRENTCTRLID";DxListView.STRCURRENTWINID="STRCURRENTWINID";DxListView.BDRAGGING="BDRAGGING";DxListView.BRESIZING="BRESIZING";DxListView.NOFFSETLEFTOFCOLUMN="NOFFSETLEFTOFCOLUMN";DxListView.NPRECLIENTX="NPRECLIENTX";DxListView.SELECTEDITEM="SELECTEDITEM";DxListView.SELECTEDITEMID="SELECTEDITEMID";DxListView.PARAMETER="PARAMETER";DxListView.getItemObj=function(_){var $=_;while($.tagName.toLowerCase()!="table"&&$.tagName.toLowerCase()!="body")$=$.parentNode;return($.tagName.toLowerCase()=="body")?null:$};DxListView.E_listItemCheckClick=function(E,M,S,_,Q){var R=top.E_clientModel.E_getWindow(E),D=WatCore.getWindowDoc(E,R),I=D.getElementById("E_SW_"+M),N=I.ownerDocument.getElementById(M),B=null;if(top.isIE)B=S.srcElement;else B=S.target;var O=DxListView.getItemObj(B),$;$=_;var L=N.parameter,A=L.split("&"),K=A[1],H=$+";",U="-1",C=K.split(";");for(var F=0;F<C.length;F++)if(C[F]!=""&&C[F]==$){U=F;break}var J="",T=N.getAttribute("checkmutexes");if(T!="true"){if(U==-1){K+=$+";";A[1]=K;L=A.join("&");N.parameter=L;WatCore.setParameter(E,M,top.DC.PARAMETER_VALUE,L);J="c"}else{C.splice(U,1);K=C.join(";");A[1]=K;L=A.join("&");N.parameter=L;WatCore.setParameter(E,M,top.DC.PARAMETER_VALUE,L);J="u"}}else{var G=N.getAttribute("itemsize");for(F=0;F<G;F++){if(F==$)continue;var P=N.ownerDocument.getElementById(M+"_checkbox_"+F);if(P!=null)P.checked=false}if(U==-1){K=$+";";A[1]=K;L=A.join("&");N.parameter=L;WatCore.setParameter(E,M,top.DC.PARAMETER_VALUE,L);J="c"}else{K="";A[1]=K;L=A.join("&");N.parameter=L;WatCore.setParameter(E,M,top.DC.PARAMETER_VALUE,L);J="u"}}if(Q=="true")WatCore.call(E,M,DxListView.LISTVIEW_CHECK+"&"+J+"&"+$,event)};DxListView.E_listItemClick=function(E,L,Q,S){var A=null,_,O=top.E_clientModel.E_getWindow(E),D=WatCore.getWindowDoc(E,O),M=D.getElementById(L);if(S==null)if(top.isIE)A=Q.srcElement;else A=Q.target;if(S==null){A=DxListView.getItemObj(A);_=A.getAttribute("idx")}else _=S;var K=M.parameter,B=K.split("&"),N=B[2],H=(B[0].indexOf("m")!=-1),J=A.getAttribute("asyn"),I=_+";",R="-1",C=N.split(";");for(var G=0;G<C.length;G++)if(C[G]!=""&&C[G]==_){R=G;break}if(R==-1){if(H)N+=I;else{var C=N.split(";"),F=C.length,$=null;if(M.getAttribute("viewstyle")=="0"){for(G=0;G<F;G++){$=D.getElementById(L+C[G]);if($!=null)DxListView.setItemObjUnselected(E,L,$)}}else for(G=0;G<F;G++){$=D.getElementById(L+"_text_"+C[G]);if($!=null)DxListView.setItemUnselected(E,L,$)}N=I}if(S==null)if(M.getAttribute("viewstyle")=="0")DxListView.setItemObjSelected(E,L,DxListView.getSelectObjItem(E,L,A));else DxListView.setItemSelected(E,L,DxListView.getSelectTextItem(E,L,A))}else{B[2]+=";";if(H){C.splice(R,1);N=C.join(";");if(M.getAttribute("viewstyle")=="0")DxListView.setItemObjUnselected(E,L,DxListView.getSelectObjItem(E,L,A));else DxListView.setItemUnselected(E,L,DxListView.getSelectTextItem(E,L,A))}}B[2]=N;if((B[0].indexOf("l")!=-1))B[3]=_;if(S==null)if(B[5]!=null){var P=D.getElementById(L);B[5]="";if(P!=null){B[5]+=parseInt(P.scrollLeft);B[5]+=";";B[5]+=parseInt(P.scrollTop)}}K=B.join("&");M.parameter=K;WatCore.setParameter(E,L,top.DC.PARAMETER_VALUE,K);if((B[0].indexOf("c")!=-1)){if(J!=null){if(J.getAttribute("asyn")=="true")WatCore.sendACallToChartNotifyDataChange(E,L,DxListView.LISTVIEW_ITEM,event);else WatCore.call(E,L,DxListView.LISTVIEW_ITEM,event)}else if(M.getAttribute("asyn")=="true")WatCore.sendACallToChartNotifyDataChange(E,L,DxListView.LISTVIEW_ITEM,event);else WatCore.call(E,L,DxListView.LISTVIEW_ITEM,event)}else if((B[0].indexOf("l")!=-1))WatCore.call(E,L,DxListView.LISTVIEW_SELECT,event)};DxListView.E_listItemDblClick=function(E,K,P,R){var A=null,_,N=top.E_clientModel.E_getWindow(E),D=WatCore.getWindowDoc(E,N),L=D.getElementById(K);if(R==null)if(top.isIE)A=P.srcElement;else A=P.target;if(R==null){A=DxListView.getItemObj(A);_=A.getAttribute("idx")}else _=R;var J=L.parameter,B=J.split("&"),M=B[2],H=(B[0].indexOf("m")!=-1),I=_+";",Q="-1",C=M.split(";");for(var G=0;G<C.length;G++)if(C[G]!=""&&C[G]==_){Q=G;break}if(Q==-1){if(H)M+=I;else{var C=M.split(";"),F=C.length,$=null;if(L.getAttribute("viewstyle")=="0"){for(G=0;G<F;G++){$=D.getElementById(K+C[G]);if($!=null)DxListView.setItemObjUnselected(E,K,$)}}else for(G=0;G<F;G++){$=D.getElementById(K+"_text_"+C[G]);if($!=null)DxListView.setItemUnselected(E,K,$)}M=I}if(R==null)if(L.getAttribute("viewstyle")=="0")DxListView.setItemObjSelected(E,K,DxListView.getSelectObjItem(E,K,A));else DxListView.setItemSelected(E,K,DxListView.getSelectTextItem(E,K,A))}B[2]=M;if((B[0].indexOf("l")!=-1))B[3]=_;if(R==null)if(B[5]!=null){var O=D.getElementById(K);B[5]="";if(O!=null){B[5]+=parseInt(O.scrollLeft);B[5]+=";";B[5]+=parseInt(O.scrollTop)}}J=B.join("&");L.parameter=J;WatCore.setParameter(E,K,top.DC.PARAMETER_VALUE,J);if((B[0].indexOf("d")!=-1))WatCore.call(E,K,DxListView.LISTVIEW_DBLITEM,event)};DxListView.getSelectTextItem=function(D,_,C){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),$=C.getAttribute("idx");return A.getElementById(_+"_text_"+$)};DxListView.getSelectObjItem=function(D,_,C){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),$=C.getAttribute("idx");return A.getElementById(_+$)};DxListView.setItemSelected=function($,A,_){if(_!=null){_.style.backgroundColor="#3399FF";_.style.color="white";_.focus()}top.DxCache.setAttribute($,A,DxListView.SELECTEDITEMID,_.id)};DxListView.setItemObjSelected=function(_,B,A){if(A!=null){var $=top.watLocation2+"/resources/component/dtbbj.png";A.style.backgroundImage="url('"+$+"')";A.style.backgroundRepeat="no-repeat";A.focus()}top.DxCache.setAttribute(_,B,DxListView.SELECTEDITEMID,A.id)};DxListView.setItemUnselected=function($,A,_){if(_!=null){_.style.backgroundColor="transparent";_.style.color="#000"}top.DxCache.setAttribute($,A,DxListView.SELECTEDITEMID,null)};DxListView.setItemObjUnselected=function($,A,_){if(_!=null&&_.id!=A)_.style.backgroundImage="";top.DxCache.setAttribute($,A,DxListView.SELECTEDITEMID,null)};DxListView.E_setListViewInitPara=function(A,_,$){DxListView.setInitState(A,_,$)};DxListView.setInitState=function(E,K,J){var N=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,N),L=C.getElementById(K),B=J.split("&"),M=B[2],G=(B[0]=="m")||(B[0]=="ml");L.parameter=J;var D=M.split(";"),_=null;if(L.getAttribute("viewstyle")=="0"){for(var H=0;H<D.length;H++)if(D[H]!=""){_=L.ownerDocument.getElementById(K+D[H]);if(_!=null)DxListView.setItemObjSelected(E,K,_);_=L.ownerDocument.getElementById(K+"_column_Item_"+D[H]);if(_!=null){_.style.color="highlighttext";_.style.backgroundColor="highlight";L.cur_select=parseInt(D[H])+1}}}else for(H=0;H<D.length;H++)if(D[H]!=""){_=L.ownerDocument.getElementById(K+"_text_"+D[H]);if(_!=null)DxListView.setItemSelected(E,K,_);_=L.ownerDocument.getElementById(K+"_column_Item_"+D[H]);if(_!=null){_.style.color="highlighttext";_.style.backgroundColor="highlight";L.cur_select=parseInt(D[H])+1}}var F=B[6];for(H=0;H<F;H++){_=L.ownerDocument.getElementById(K+"_checkbox_"+H);if(_!=null)_.checked=false}var I=B[1];D=I.split(";");if(D.length>0)for(H=0;H<D.length;H++){_=L.ownerDocument.getElementById(K+"_checkbox_"+D[H]);if(_!=null)_.checked=true}var A=B[5];D=A.split(";");$(L).unbind("resize");$(L).bind("resize",E,function($){top.DxListView.changeSize(E,K)});$(L.ownerDocument).ready(function(){top.DxListView.changeSize(E,K)});window.setTimeout("top.DxListView.setListViewScrollPos('"+K+"',"+D[0]+","+D[2]+")",100)};DxListView.setListViewScrollPos=function($,B,A){var _=document.getElementById($);if(_!=null){_.scrollLeft=B;_.scrollTop=A}};DxListView.keyDown=function(B,F,K){var J=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,J),H=C.getElementById(F),_=0,A=top.DxCache.getAttribute(B,F,DxListView.SELECTEDITEMID);if(A!=null)_=A.toString().substr(A.toString().lastIndexOf("_")+1);try{switch(K.keyCode){case top.KeyCode.UP:var G=_;if(G==null)G=-1;var D=parseInt(H.getAttribute("columns")),E=H.ownerDocument.getElementById(F+"_text_"+(parseInt(G)-D));if(E)E.click();K.cancelBubble=true;return false;break;case top.KeyCode.LEFT:G=_;if(G==null)G=-1;E=H.ownerDocument.getElementById(F+"_text_"+(parseInt(G)-1));if(E)E.click();K.cancelBubble=true;return false;break;case top.KeyCode.DOWN:G=_;if(G==null)G=-1;D=parseInt(H.getAttribute("columns")),E=H.ownerDocument.getElementById(F+"_text_"+(parseInt(G)+D));if(E)E.click();K.cancelBubble=true;return false;break;case top.KeyCode.RIGHT:G=_;if(G==null)G=-1;E=H.ownerDocument.getElementById(F+"_text_"+(parseInt(G)+1));if(E)E.click();K.cancelBubble=true;return false;break;case top.KeyCode.SPACE:K.cancelBubble=true;G=_;if(G==null)G=-1;var E=H.ownerDocument.getElementById(F+"_checkbox_"+parseInt(G)),I=H.getAttribute("checkenabled");if(I=="true"){var L=H.getAttribute("checkedaction");if(E){if(E.checked)E.checked=false;else E.checked=true;DxListView.E_listItemCheckClick(B,F,K,_,L)}}return false;break;default:break}return true}catch($){}};DxListView.agentForBeginDragTitle=function(C,G,_,F,B,D,$,E){try{DxListView.beginDragTitle(C,G,window,_,F,B,D,$,E)}catch(A){}};DxListView.beginDragTitle=function(C,G,F,$,J,B,E,H,K){var I=top.E_clientModel.E_getWindow(C),D=WatCore.getWindowDoc(C,I),_=document.getElementById("dummyListViewDrag");try{if(_.setCapture)_.setCapture();else if(window.captureEvents)window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);if(window.attachEvent){_.attachEvent("onmousemove",DxListView.agentForDraggingTitleInIE);_.attachEvent("onmouseup",DxListView.agentForEndDraggingTitleInIE)}else{_.addEventListener("mousemove",DxListView.agentForDraggingTitleInIE,false);_.addEventListener("mouseup",DxListView.agentForEndDraggingTitleInIE,false)}oDraggingMenubylistview.targetID=C;oDraggingMenubylistview.targetIcon=$;oDraggingMenubylistview.functionId=B;oDraggingMenubylistview.functionName=E;oDraggingMenubylistview.targetCtrid=G;oDraggingMenubylistview.targetysIcon=J;oDraggingMenubylistview.isparent=H;oDraggingMenubylistview.num=0;DxListView.dragWindow(K,D)}catch(A){window.status="beginDragTitle:"+A.description}};DxListView.endDraggingTitleInIE=function(C,H){var A=oDraggingMenubylistview.targetID;if(A=="")return;var G=top.E_clientModel.E_getWindow(A),B=WatCore.getWindowDoc(A,G),$=document.getElementById("dummyListViewDrag");try{$.detachEvent("onmousemove",DxListView.agentForDraggingTitleInIE);$.detachEvent("onmouseup",DxListView.agentForEndDraggingTitleInIE);$.releaseCapture();var I=oDraggingMenubylistview.functionId,J=oDraggingMenubylistview.functionName,F=oDraggingMenubylistview.targetysIcon,D=oDraggingMenubylistview.targetCtrid,E=oDraggingMenubylistview.isparent;oDraggingMenubylistview.targetID="";oDraggingMenubylistview.targetIcon="";oDraggingMenubylistview.functionId="";oDraggingMenubylistview.functionName="";oDraggingMenubylistview.targetCtrid="";oDraggingMenubylistview.targetysIcon="";oDraggingMenubylistview.isparent="";oDraggingMenubylistview.num=0;$.style.visibility="hidden";if(oDraggingMenubylistview.drag){oDraggingMenubylistview.drag=false;WatCore.setParameter(A,D,"4005",J);WatCore.setParameter(A,D,"4006",F);top.WatCore.call(A,D,"drag&"+I+"&"+E,H)}}catch(_){}};DxListView.agentForEndDraggingTitleInIE=function(){try{DxListView.endDraggingTitleInIE(window,event)}catch($){MsgConsole.displayErr("agentForEndDraggingTitleInIE:"+$.description)}};DxListView.agentForDraggingTitleInIE=function(){try{DxListView.dragWindow(event,document)}catch($){MsgConsole.displayErr("agentForDraggingTitleInIE:"+$.description)}};DxListView.getMouseCoords=function(B,_){var A=new Object();try{A.x=(!isIE)?B.pageX:B.clientX+_.body.scrollLeft;A.y=(!isIE)?B.pageY:B.clientY+_.body.scrollTop}catch($){}return A};DxListView.dragWindow=function(J,B){var $=document.getElementById("dummyListViewDrag"),I=DxListView.getMouseCoords(J,B).x,F=DxListView.getMouseCoords(J,B).y;try{if(J==null)return;switch(J.type){case"mousedown":if(J.button%2==EVT_LEFT_BUTTON){$.style.zIndex="10000";$.style.top=F;$.style.left=I;oDraggingMenubylistview.orgX=I;oDraggingMenubylistview.orgY=F}break;case"mouseup":var C=parseInt($.style.left)-parseInt(oWrapper.style.left),A=parseInt($.style.top)-parseInt(oWrapper.style.top);if(Math.abs(C)>VALID_RESIZE_OFFSET||Math.abs(A)>VALID_RESIZE_OFFSET);$.style.visibility="hidden";break;case"mousemove":if(J.button%2==EVT_LEFT_BUTTON){if($.style.visibility=="hidden"){var G=parseInt(oDraggingMenubylistview.num);G++;oDraggingMenubylistview.num=G;if(G>=10){oDraggingMenubylistview.drag=true;$.style.visibility="visible";var H=$.ownerDocument.getElementById("dummyListViewDragImg");if(H!=null)if(oDraggingMenubylistview.targetIcon=="")H.src=top.watLocation2+"/resources/component/chuangti.png";else H.src=oDraggingMenubylistview.targetIcon}}var E=parseInt(I)-22;if(E<0)E=0;var D=parseInt(F)-17;if(D<0)D=0;$.style.left=E+"px";$.style.top=D+"px"}break;case"mouseout":alert(J.toElement.tagName);break;default:break}J.cancelBubble=true}catch(_){window.status="dragWindow:"+_.description}};DxListView.changeSize=function(C,G){var L=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,L),H=_.getElementById(G),J=$(H).width(),K=$(H).height();if(J<=0||K<=0)return;var B=H.getAttribute("viewstyle");if(B=="2"){var I=H.getAttribute("itemsize");if(I!=null){var M=0,E=0;for(var D=0;D<I;D++){var F=$("#"+G+D,H),A=F.width();if(M+A+(D*1)>J){M=0;E++}F.css({"left":M+"px","top":(E*(16+1))+"px"});M+=A}}}};DxListView.render=function($,J,H){var B=H.getAttribute("cid"),_=H.selectNodes("*");for(var E=0;E<_.length;E++){var C=_[E].nodeName;C=C.substring(1,C.length);var K=top.isIE?_[E].text:_[E].textContent;switch(C){case top.DC.VISIBLE:top.E_getObject($,B,J).style.visibility=K;break;case top.DC.PARAMETER_VALUE:DxListView.E_setListViewInitPara($,B,K);break;case top.DC.BORDERSTYLE:top.E_getObject($,B,J).style.borderStyle=K;break;case top.DC.BORDERWIDTH:top.E_getObject($,B,J).style.borderWidth=K;break;case top.DC.BORDERCOLOR:top.E_getObject($,B,J).style.borderColor=K;break;case top.DC.X:top.E_getObject($,"E_SW_"+B,J).style.left=K;break;case top.DC.Y:top.E_getObject($,"E_SW_"+B,J).style.top=K;break;case top.DC.CHECK_MUTEXES:var F=top.E_getObject($,"E_SW_"+B,J);F.checkmutexes=K;break;case top.DC.ITEMVISIBLE:var F=top.E_getObject($,B,J),G=K.split("&");for(E=0;E<G.length;E++){var D=G[E].split("|"),I=F.ownerDocument.getElementById(B+D[0]);I.style.display=D[1]}break;case top.DC.UPDATE:F=top.E_getObject($,B,J);F.innerHTML="";F.parentElement.removeChild(F);top.E_removeTheObject($,B);top.E_removeTheObject($,"E_SW_"+B);var A=top.E_getObject($,"E_SW_"+B,J);insertHTML(A,"BeforeEnd",K);F=top.E_getObject($,B,J);top.E_removeTheObject($,B);top.E_removeTheObject($,"E_SW_"+B);break;case top.DC.FOCUS:F=top.E_getObject($,B,J);WatCore.setFocus(F);break;default:break}}};WindowEvent={WINDOW_ACTIVE:"onWindowActive",WINDOW_DEACTIVE:"onWindowDeactive",WINDOW_LOSTFOCUS:"onWindowLostFocus",WINDOW_GETFOCUS:"onWindowGetFocus",WINDOW_CLICKOUTER:"onWindowClickOuter",WINDOW_CLOSED:"onWindowClosed",WINDOW_RESIZED:"onWindowResized",arrListeners:new Array()};WindowEvent.attachWindowEvent=function(E,_,D,B){var C,A;try{C=WindowEvent.arrListeners[E];if(!C)C=WindowEvent.arrListeners[E]=new Array();A=C[_];if(!A)A=C[_]=new Array();A[A.length]=D}catch($){MsgConsole.displayErr("attachWindowEvent:"+$.description)}};WindowEvent.detachWindowEvent=function(E,_,D,B){var C,A;try{C=WindowEvent.arrListeners[E];if(!C)return;A=C[_];if(!A)return;var F=-1;for(var G in A)if(A[G]==D){F=G;break}if(F!=-1)A.splice(F,1)}catch($){MsgConsole.displayErr("detachWindowEvent:"+$.description)}};WindowEvent.fireWindowEvent=function(_,$){};KeyCode={TAB:9,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,UP:38,DOWN:40,LEFT:37,RIGHT:39,PLUS:(top.isIE?187:61),SUB:(top.isIE?189:109),STAR:56,SPACE:32,ENTER:13};function DxCache(){}DxCache.setAttribute=function(A,E,C,$){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),D=top.E_getObject(A,E,_);if(D!="undefined"&&D!=null)D.setAttribute(C,$)};DxCache.getAttribute=function(_,E,C){var A=top.E_clientModel.E_getWindow(_),$=WatCore.getWindowDoc(_,A),D=top.E_getObject(_,E,$),B="";if(D!="undefined"&&D!=null)B=D.getAttribute(C);return B};DxCache.getAttributeAsInt=function(_,C,B){var A=DxCache.getAttribute(_,C,B),$=0;if(A!=null&&A!="")$=parseInt(A);return $};DxCache.getAttributeAsBoolean=function($,C,A){var _=DxCache.getAttribute($,C,A),B=false;if(_==true||_=="true"||_=="1")B=true;else B=false;return B};DxCache.getAttributeAsFloat=function(_,C,B){var A=DxCache.getAttribute(_,C,B),$=0;if(A!="")$=parseFloat(A);return $};DxCache.getAttributeAsArray=function(C,G,E,$){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),F=top.E_getObject(C,G,B),_=new Array();if(F!="undefined"&&F!=null){var A=F.getAttribute(E);if(A!="undefined"&&A!=null&&A!="")_=A.split($)}return _};DxCache.removeAttribute=function(_,E,B){var A=top.E_clientModel.E_getWindow(_),$=WatCore.getWindowDoc(_,A),C=top.E_getObject(_,E,$),D=true;if(C!="undefined"&&C!=null)D=C.removeAttribute(B);return D};DxCache.setWidth=function(_,$){_.style.width=$};DxCache.getWidth=function(_){var $=0;$=_.offsetWidth;return $};DC={VISIBLE:"1004",BORDERSTYLE:"1010",BORDERWIDTH:"1011",BORDERCOLOR:"1012",X:"1002",Y:"1003",UPDATE:"1274",WIDTH:"1000",HEIGHT:"1001",ENABLED:"1005",BACKGROUND:"1008",FOREGROUND:"1007",fontFamily:"1267",fontSize:"1268",fontWeight:"1269",fontStyle:"1270",textDecoration:"1271",TEXT:"1023",ICON:"1042",TOOLTIPTEXT:"1066",IMAGE:"1062",FIRST:"1202",PREVIOUS:"1200",NEXT:"1201",LAST:"1203",CURSOR:"1262",FLAT:"1260",TRANSPARENT:"1021",TRANSPARENTF:"1273",LISTSELECTION:"1075",LISTADD:"1088",LISTREMOVE:"1089",LISTREMOVEALL:"1090",horizontalScrollbar:"1083",HORIZONTALALIGNMENT:"1014",MENUTEXT:"1054",SELECTED:"1059",MENUICON:"1057",SCROLLABLE:"1070",CHILD_BACKGROUND:"1112",CHILD_FOREGROUND:"1113",EDITABLE:"1068",WRAP:"1069",DISABLEDICON:"1043",PASSWORD:"1027",READONLY:"1026",SHOWSCROLLBAR:"1050",ADDNODE:"ADDNODE",EXPAND:"1172",TITLE:"1040",PAGENO:"1304",ROWTOTAL:"1305",PAGESIZE:"1234",ROWSELECTED:"1309",PAGECOUNT:"1215",CURR_PAGE:"1316",SELECTEDINDEX:"1108",POSITION:"1188",UPDATE_FLAG:"1110",CHANGE_FLAG:"1111",COLUMN_TEXT:"1331",FORMAT_STYLE:"1311",FORMAT_COMMA:"1312",FORMAT_DIGIT:"1313",FORMAT_CURRENCY_SIGN:"1314",FORMAT_CUSTOM:"1315",FORMAT_ERROR:"1330",VALUE:"1024",UPDATE_DATA:"1335",CHANGE_DATA:"1336",DDW_CHANGE:"1334",FOCUS:"1317",OUTLOOKBAR_SHOW:"1339",ALERT:"1342",CONFIRM:"1343",BK_IMG:"1319",LASTCLICKINDEX:"1086",DATA:"1344",TIME_VALUE:"1350",PARAMETER_VALUE:"1351",REPORT_PRINT:"1361",INDENT:"1156",EXPAND:"1172",TITLE_BK_ICON:"1369",URL:"1373",CSSNAME:"1374",FILENAME:"1375",REMOVE_TO:"1379",ITEMVISIBLE:"1381",FILEPATH:"1401",TRUE_FILENAME:"1402",INTERVAL:"1376",POPGRID_SHOW:"1410",POPGRID_HIDDEN:"1411",PAGEINFO:"1412",PATH:"1419",HIS_SAVE:"1421",DATAGRID_FOOT_TEXT:"1417",PORTRAIT:"1446",PRINT:"1460",PRINT_VIEW:"1461",DISPLAY:"1465",FILE_TYPE:"1394",FOCUSNODE:"1475",SYSCONFIRM:"1496",SYSALERT:"1497",PAGECONF:"1508",ROW_TOOLTIP_TEXT:"1392",MAXLENGTH:"1025",TARGET:"1514",POP:"1516",PUSH:"1517",COLUMN_VISIBLE:"1521",EXCEL:"1433",WEBTAB_Add_FORM:"1525",WEBTAB_Add_FRAMESET:"1527",SEND:"1538",IMAGE_STREAM:"1539",TAKEPHOTO:"1544",SUBMITPHOTO:"1545",SHOW_POPMENU:"1548",CHECK_MUTEXES:"1549",CARD_INIT:"1540",WEBTAB_SELECT_FORM:"1557",CLIENT_IMAGE:"1569",MOVE_TO_CENTER:"1573",CANCEL_TIMER:"1578",BEGIN_TIMER:"1579",SELECTTEXT:"1586",UPDATE_GET_COMMAND:"1587",UPDATE_GET_CONTENT:"1588",COLUMNWIDTH:"1192",NULLTIP:"1589",TARGET_CONTROL:"1590",EMR_STYLE:"1591",EMR_PAGE_WIDTH:"1592",EMR_PAGE_HEIGHT:"1593",EMR_PAGE_LINEHEIGHT:"1594",EMR_CONTENT:"1595",EMR_TEXT:"1596",EMR_DESIGN_CONTENT:"1597",EMR_DESIGN_CANCEL:"1598",EMR_DESIGN_TYPE:"1599",EMR_DESIGN_SUNTYPE:"1600",EMR_DESIGN_VALUE:"1601",EMR_DESIGN_ID:"1602",EMR_DESIGN_PROPERTY:"1603",EMR_DESIGN_ZSKID:"1604",EMR_LEFT:"1605",EMR_TOP:"1606",EMR_EDITORSELECTVALUE:"1607",EMR_EDITORSELECTVALUECANVALUE:"1608",PADDING:"1283",EMR_DESIGN_ZSDID:"1609",USERNAME:"1531",EMR_LETTER_SPACING:"1610",UPDATE_DATA_SHOW:"1611",EMR_XDTEXT:"1612",KEY:"1513",DICM_OPENLOCALIMAGE:"1613",DICM_OPENREMOTEIMAGE:"1614",DICM_DISPLAYFORMAT:"1615",DICM_IMAGEVIEWERINIT:"1616",DICM_NETWORKSETSCU:"1617",DICM_NETWORKSENDSTORAGEREQUEST:"1618",DICM_STRINGADD:"1619",DICM_READDCMFILEINFO:"1620",CA_TEXTCERT:"1621",CA_TEXTSIGNDATA:"1622",EXCELMHT:"1623",GET_ALL_PRINTERNAME:"1624",EMR_FYF:"1626",EMR_SPC:"1627",EMR_DESIGN_HONGEDIT:"1628",EMR_DESIGN_ENCRYPT:"1629",EMR_HEADER_TEXT:"1630",EMR_FOOTER_TEXT:"1631",EMR_IMG_WIDTH:"1632",EMR_IMG_HEIGHT:"1633",EMR_YJS_CONTENT:"1634",EMR_YJS_EDITOR_CONTENT:"1635",EMR_INPUT_TEXT:"1636",EMR_INPUT_IMG:"1637",EMR_INPUT_BOX:"1638",EMR_INPUT_UNDERLINE:"1639",FILE_SERVER:"1640",EMR_SECTION_END:"1641",EMR_DESIGN_PROPERTY_RELEATION:"1642",EMR_DESIGN_SECTION:"1643",EMR_VISIBLE_TYPE:"1645",EMR_ACTION_ID:"1646",SET_EMR_HDY_VALUE:"1647",SET_EMR_IMAGE_VALUE:"1648",SET_EMR_SECTION_VALUE:"1649",FOCUSNODENOFOCUS:"1650",SET_EMR_HDY_VALUEBYHTML:"1651",EMR_FILESERVER:"1652",DUOLIECOLUMN_TEXT:"1653",EMR_CHECKBOX:"1654",EMR_QCGS_EDITOR_CONTENT:"1655",EMR_QCGS_CONTENT:"1656",FOCUSLASTTEXT:"1657",PARAMS:"1418",CLEAR_EMR_SECTION_VALUE:"1659",EMR_WAT_LEFT:"1660",EMR_WAT_TOP:"1661",EMR_DESIGN_CONTENT_LOCATION:"1662",EMR_PAGENUMBER_TYPE:"1663",EMR_PAGENUMBER_ALIGN:"1664",EMR_DESIGN_CONTENT_PAGENUMBER:"1665",EMR_EDITOR_TYPE:"1666",COOKIE_VALUE:"1667",WEBTAB_DELAY_SHOW_FORM:"1668",POP_LOCATION:"1518",CLOSEWINDOW:"1554",CLOSEALLWINDOW:"1671",JGHEIGHT:"1672",EMR_TOOLBAR_UI:"1673",TASKBARTITLE:"1676",BYPAGESIZE:"1680",EMR_DESIGN_DATATABLE:"1681",COLUMN_CHECKED:"1683",EMR_STYLE_LINE:"1684",EMR_IMAGE_EDIT_CHANGE:"1685",CREATE_SCD_HTML:"1686",CREATE_EMRSHOW_CONTENT:"1687",CREATE_EMRXUDA_MASK:"1688",EMRXUDA_MASK_VALUE:"1689",EMR_TABLE_DATA:"1690",EMR_DATA_ELEMENT:"1691",EMR_SET_DATA:"1692",EXPANDED:"1119",FOOTPAGEBUTTON_VISIBLE:"1695",ROWHEIGHT:"1157",HEADPAGEBUTTON_VISIBLE:"1698",HEADPAGEBUTTON_LEFT:"1699",BUTTON_VISIBLE:"1700",SENSITIVE:"1701",CLOSEALLWINDOWNOENABLED:"1703",HEADERTEXT:"1240",UPDATE_MENU_DATA:"1704",JSFUNCTION_KEYCODE:"1450",JSFUNCTION_NAME:"1448",JSFUNCTION_TARGET:"1707",JSFUNCTION_KCOLIST:"1708",HEADPAGEBUTTON_TEXT:"1709",MINALLWINDOW:"1710",SHOWNEW:"1711",COLUMNWIDTHUNITS:"1675",CUSTOMER_REPORT_TEMPLATE:"1408",POPGRIDTEXT_FRONT_CACHE:"1714",POPGRIDTEXT_FRONT_SQLHASHCODE:"1715",POPGRIDTEXT_FRONT_MAXCACHENUM:"1716",POPGRIDTEXT_FRONT_NOQUERYKEY:"1717",POPGRIDTEXT_FRONT_QUERYSTR:"1718",POPGRIDTEXT_FRONT_META:"1719",POPGRIDTEXT_FRONT_VALUE:"1721",HEADPAGEBUTTON_WIDTH:"1728"};Format.TRUEVALUE="TVALUE";Format.SHOWVALUE="SVALUE";Format.OB="OB";Format.BS="BS";function Format(){}Format.blurFunction=function(_){var $=false,A=_.getAttribute("eStyle");switch(A){case"2":$=Format.blurNumber(_);break;case"3":case"4":$=Format.blurMoney(_);break;case"7":$=Format.blurPercentage(_);break;case"8":$=Format.blurCustom(_);break;default:$=Format.blurNormal(_);break}return $};Format.blurNormal=function($){$.setAttribute("tValue",$.value);return true};Format.blurNumber=function(C){var A=false,B=C.value,D="",$=C.getAttribute("eDigit"),_=C.getAttribute("eComma");if(B!=null&&B!=""){A=Format.isNumber(B);if(A){C.setAttribute("tValue",C.value);D=Format.processNumber(C,B,$,_);C.setAttribute("sValue",D);A=true}}return A};Format.blurMoney=function(D){var A=false,C=D.value,E="",$=D.getAttribute("eDigit"),_=D.getAttribute("eComma"),B=D.getAttribute("eCurrsign");if(C!=null&&C!=""){A=Format.isNumber(C);if(A){D.setAttribute("tValue",D.value);E=Format.processNumber(D,C,$,_);E=B+" "+E;D.setAttribute("sValue",E);A=true}}return A};Format.blurPercentage=function(C){var A=false,B=C.value,D="",$=C.getAttribute("eDigit"),_=C.getAttribute("eComma");if(B!=null&&B!=""){A=Format.isNumber(B);if(A){C.setAttribute("tValue",C.value);D=Format.processPercentage(C,B,$,_);D=D+"%";C.setAttribute("sValue",D);A=true}}return A};Format.blurCustom=function(A){var $=false,_=A.value,B="",C=A.getAttribute("eCustomer");if((_!=null&&_!="")||A.getAttribute("nullflag")=="true"){$=Format.isCustom(_,C);if($){A.setAttribute("tValue",A.value);B=Format.processCustom(A,_);if(B==null||B==undefined)B="";A.setAttribute("sValue",B);$=true}}return $};Format.showFunction=function(_,$){var A=_.getAttribute("eStyle");switch(A){case"2":Format.showNumber(_,$);break;case"3":case"4":Format.showMoney(_,$);break;case"7":Format.showPercentage(_,$);break;default:Format.showNormal(_,$);break}};Format.showNumber=function(_,$){var A="";if($!=null&&$!=""){A=Format.processShowNumber(_,$);_.value=A;_.setAttribute("sValue",A)}else _.value="";_.setAttribute("tValue",$)};Format.showMoney=function(_,$){var A="";if($!=null&&$!=""){A=Format.processShowNumber(_,$);_.value=A;_.setAttribute("sValue",A)}else _.value="";_.setAttribute("tValue",$)};Format.showPercentage=function(B,A){var C="";if(A!=null&&A!=""){var $=B.getAttribute("eDigit"),_=B.getAttribute("eComma");C=Format.processShowPercentage(B,A,$,_);B.value=C;B.setAttribute("sValue",C)}else B.value="";B.setAttribute("tValue",A)};Format.showNormal=function(_,$){_.value=$;_.setAttribute("tValue",$);_.setAttribute("sValue",$)};Format.processPercentage=function(B,A,$,_){B.setAttribute("tValue",A);A=Format.processNumber(B,A,$,_);return A};Format.processShowPercentage=function(D,C,$,A){var B=/^[1-9]\d*[.]\d+$|^\d[.]\d+$|^[1-9]\d*$|^\d$/,_=B.test(C);if(_==false)return C;else return Format.processNumber(D,C,$,A)+"%"};Format.isCustom=function(A,B){if(A==null)A="";var _=new RegExp(B),$=_.test(A);return $};Format.processCustom=function(_,$){_.setAttribute("tValue",$);return $};Format.processShowNumber=function(G,D){var C=/^[-]?[1-9]\d*[.]\d+$|^[-]?\d[.]\d+$|^[-]?[1-9]\d*$|^[-]?\d$/,_=C.test(D);if(_==false)return D;else{var $=G.getAttribute("eDigit"),E=G.getAttribute("eComma"),B=G.getAttribute("eCurrsign"),A=D.indexOf("-"),F=false;if(A>-1){F=true;D=D.substring(A+1,D.length)}if(parseInt($)>-1)D=Format.processDigit(D,$);if(E=="true")D=Format.processComma(D.toString());if(F==true)D="-"+D;if(B!=null&&B!="")D=B+" "+D}return D};Format.isNumber=function(A){var _=/^[-]?[1-9]\d*[.]\d+$|^[-]?\d[.]\d+$|^[-]?[1-9]\d*$|^[-]?\d$/,$=_.test(A);return $};Format.processNumber=function(D,A,$,B){D.setAttribute("tValue",A);var _=A.indexOf("-"),C=false;if(_>-1){C=true;A=A.substring(_+1,A.length)}if(parseInt($)>-1)A=Format.processDigit(A,$);if(B=="true")A=Format.processComma(A.toString());if(C==true)A="-"+A;return A};Format.processDigit=function(_,A){var B,$=_.indexOf(".");$=_.length-$-1;B=_*Math.pow(10,A);B=Math.round(B);B=B/Math.pow(10,A);$=B.toString().indexOf(".");if($>-1){$=B.toString().length-$-1;if($<A)for(i=0;i<(A-$);i++)B+="0"}else{if(A>0)B=B+".";for(i=0;i<A;i++)B+="0"}return B};Format.processComma=function(_){var B="";index=_.indexOf(".");var C="";if(index>-1){C=_.substring(index,_.length);_=_.substring(0,index)}var A=_.length,$=A%3;for(i=A-1;i>$;i-=3)if(i==A-1)B=_.substring(i-2,i+1);else B=_.substring(i-2,i+1)+","+B;if($>0)if(B=="")B=_.substring(0,$);else B=_.substring(0,$)+","+B;if(C!="")B+=C;return B};Format.storeValue=function(_,$,A,B){WatCore.setParameter(_,$,top.DC.TEXT,A)};function BitSet(){}BitSet.get=function(_,$){if(_==null)return false;else return _.charAt($)=="T"};BitSet.set=function(_,$){if(_==null){_=BitSet.__extend($);_+="T"}else if(_.length<=$){_+=BitSet.__extend($-_.length);_+="T"}else{var A=_.substring(0,$);A+="T";_=A+_.substring($+1,_.length)}return _};BitSet.clear=function(_,$){if(_=="undefined"||_==null){_=BitSet.__extend($);_+="F"}else if(_.length<=$){_+=BitSet.__extend($-_.length);_+="F"}else{var A=_.substring(0,$);A+="F";_=A+_.substring($+1,_.length)}_=BitSet.__shorten(_);return _};BitSet.cardinality=function(_){var $=0,A=0;for(;(A=_.indexOf("T",A))>=0;){$++;A++}return $};BitSet.isEmpty=function($){return($.indexOf("T",0)<0)};BitSet.len=function($){return $.lastIndexOf("T")+1};BitSet.size=function($){return $.length};BitSet.__extend=function(_){var $="";for(var A=0;A<_;A++)$+="F";return $};BitSet.__shorten=function($){return $.substring(0,$.lastIndexOf("T")+1)};var MIN_WIDTH=180,MIN_HEIGHT=26,TITLE_HEIGHT=29,LOADING_WIN_WIDTH=250,LOADING_WIN_HEIGHT=150,PADDING=1,TITLE_PADDING=0,BORDER_WIDTH=1,WIN_STATE_MIN=0,WIN_STATE_NOR=1,WIN_STATE_MAX=2,WIN_STATE_MAX2=22,WIN_STATE_CLS=3,WIN_STATE_RES=4,MIN_NORMAL_HEIGHT=60,WIN_MENU="winMenu",WIN_TLT_TXT="titleText_",WIN_STATUSBAR="winStatus",WIN_CONTENTPANE="content",WIN_CANANS="canvas",MDI_CTR="mdiCtr",WIN_MODAL_LAYER="winModalLayer",DOCK_PADDING="dockPadding",FRAME_BORDER="frameBorder",FRAME_BACKGRDCOLOR="frameBackgroundColor",ALLOW_RESIZE="allowResize",WINDOW_RECT="windowRect",HAS_MENUBAR="hasMenubar",HAS_TOOLBAR="hasToolbar",HAS_STATUSBAR="hasStatusbar",NOTIFY_SERVER_ON_CLOSED="bNotifyServerOnClosed",NOTIFY_SERVER_ON_ACTIVED="bNotifyServerOnActived",BORDERSTYLE_NONE=0,BORDERSTYLE_FIXED_SINGLE=1,BORDERSTYLE_FIXED_3D=2,BORDERSTYLE_FIXED_DIALOG=3,isIE=(top.getBrowserVersion()==undefined)?false:true,isEdge=(top.BrowserType()=="Edge")?true:false,isSafari=(top.BrowserType()=="Safari")?true:false,isChrome=(top.BrowserType()=="Chrome")?true:false,IEVersion=top.getBrowserVersion(),browsertype=BrowserType(),tablestyle=top.isIE?"inline":"inline-table",EVT_LEFT_BUTTON=(isIE)?1:0,oDraggingTitle=new Object();oDraggingTitle.drag=false;oDraggingTitle.targetID="";oDraggingTitle.orgX=0;oDraggingTitle.orgY=0;var oResizeWin=new Object();oResizeWin.resize=false;oResizeWin.targetWindow="";var PRE_TD_WIN_BT1="bt0_",PRE_TD_WIN_BT2="bt1_",PRE_TD_WIN_BT3="bt2_",PRE_TD_WIN_BT4="bt3_",PRE_WIN_NOR="Nor_Button_",PRE_WIN_MIN="Min_Button_",PRE_WIN_MAX="Max_Button_",PRE_WIN_CLS="Cls_Button_",MDI_MIN_BUT_ON_MENU="mdi_min",MDI_DIS_MIN_BUT_ON_MENU="mdi_disable_min",MDI_NOR_BUT_ON_MENU="mdi_nor",MDI_CLS_BUT_ON_MENU="mdi_cls",MDI_DIS_CLS_BUT_ON_MENU="mdi_disable_cls",PRE_WIN_TITLE="winTitle_",PRE_WIN_TLT_CAPTION_CONTAINER="win_tlt_cp_ctr",PRE_WIN_TLT_BG="win_title_bg_",PRE_WIN_STATUS="status_",PRE_INNER_WAP="innerwrapper_",PRE_MASK_LYR="mask_",PRE_MODAL_MASKER="modalMasker_",PRE_LOADING_RECT="loadingRectangle_",RES_IMG_URL="",MSK_IMG_URL="",MIN_IMG_URL="",MIN_IMG_URL_IN="",NOR_IMG_URL="",NOR_IMG_URL_IN="",MAX_IMG_URL="",MAX_IMG_URL_IN="",CLS_IMG_URL="",CLS_IMG_URL_IN="",TITLE_BKIMG_URL="",LOADING_IMG_URL="",arrWinModalLayersIndex=new Array(),DIS_MAX_URL="",DIS_MIN_URL="",DIS_CLS_URL="",DUMMY_BORDER="dummyBorder",LEFT_TOP="LEFT_TOP",LEFT_TOP_PUSH="LEFT_TOP_PUSH",LEFT_BOTTOM="LEFT_BOTTOM",LEFT_BOTTOM_PUSH="LEFT_BOTTOM_PUSH",RIGHT_TOP="RIGHT_TOP",RIGHT_TOP_PUSH="RIGHT_TOP_PUSH",RIGHT_BOTTOM="RIGHT_BOTTOM",RIGHT_BOTTOM_PUSH="RIGHT_BOTTOM_PUSH",VALID_RESIZE_OFFSET=5,TITLE_NULL=0,TITLE_ONLY_HAS_CLS=1,TITLE_ONLY_HAS_MAX=3,TITLE_ONLY_HAS_MIN=5,TITLE_NORMAL=7,TITLE_NO_BUTS=8,TITLE_DIS_CLSBUT=100,INIT_ZINDEX=4,DISABLE_TITLE_BKIMG_URL="";function Window(){}function E_getClientModel(){return E_clientModel}function E_minWindow(E,$,_){try{var N=E_clientModel.E_getWindow(E),O=E_clientModel.E_getWindow(N.strParentID),G=getWrapper(N),K=getInnerWrapper(N),F=WatCore.getWindowDoc(N.strParentID,O),H=getClientAreaRect(N.strParentID),L=H.width,I=H.height,P=parseInt(L/(MIN_WIDTH+2)),D=parseInt(O.nMinWinCount/P),C=parseInt(O.nMinWinCount%P),J=F.getElementById(PRE_WIN_TITLE+E),B=N.strParentID;if(N.nState==WIN_STATE_MIN)return;if(!N.bIsModal&&WatCore.taskbar!=null){J.style.display="none";if(_!=null&&_!=WIN_STATE_MIN)DxTaskBar.notifywindowstate(E,WIN_STATE_MIN,_);else DxTaskBar.notifywindowstate(E,WIN_STATE_MIN,N.nState)}else J.style.display="inline";showControlBoxButtons(E,WIN_STATE_MIN);G.style.top=(I+100-(MIN_HEIGHT+2)*(D+1))+"px";G.style.left=((MIN_WIDTH+2)*C)+"px";if(!N.bIsModal&&WatCore.taskbar!=null)if(top.isIE)G.style.visibility="hidden";else G.style.visibility="hidden";if($){N.style.left=PADDING+"px";K.style.top=0+"px";K.style.left=0+"px";if(N.nState==WIN_STATE_MAX){hiddenMDIButtons(N.strParentID);G.style.borderStyle="solid";K.style.borderStyle="solid"}}N.nState=WIN_STATE_MIN;var M=getPendingActiveWindow2(B,E);if(M!="")E_activeWindow(M);if($)fitContentPaneSize(N);O.nMinWinCount++}catch(A){window.status="E_minWindow:"+A.description}}function resetMinChildWindow(_){var B=E_clientModel.E_getWindow(_),D=E_clientModel.E_getWindowIds(),E=0;try{B.nMinWinCount=0;for(E=0;E<D.E_size();E++){var C=D.E_get(E),B=E_clientModel.E_getWindow(C);if(B.strParentID==_&&B.nState==WIN_STATE_MIN){var A=B.nState;E_minWindow(C,false,A)}}}catch($){}}function E_normalWindow(B,_){try{var K=E_clientModel.E_getWindow(B),F=getWrapper(K),H=getInnerWrapper(K),L=E_clientModel.E_getWindow(K.strParentID),J=K.isiframe,C=WatCore.getWindowDoc(K.strParentID,L),M=K.nState,I=C.getElementById(PRE_WIN_TITLE+B);if(K.nState==WIN_STATE_MIN)K.style.visibility="visible";showControlBoxButtons(B,WIN_STATE_NOR);F.style.top=K.nNormalTop+"px";F.style.left=K.nNormalLeft+"px";F.style.width=(K.nNormalWidth)+"px";F.style.height=(K.nNormalHeight)+"px";if(!K.bIsModal&&WatCore.taskbar!=null)F.style.visibility="visible";F.style.top=K.nNormalTop+"px";F.style.left=K.nNormalLeft+"px";var E=(K.nTitleState>=TITLE_DIS_CLSBUT?K.nTitleState-TITLE_DIS_CLSBUT:K.nTitleState);if(E==TITLE_NULL)I.style.display="none";else I.style.display="inline";var G=(K.frameBorderStyle==BORDERSTYLE_NONE?0:PADDING);K.style.top=(K.bHasTitle?parseInt(I.style.top)+parseInt(I.style.height)+1:G)+"px";if(_){K.style.left=PADDING+"px";if(K.nState==WIN_STATE_MAX)hiddenMDIButtons(K.strParentID)}H.style.background="transparent";if(!K.bIsMDI){var D=J=="true"?K.contentWindow.document.getElementById("content"):$("#content",K).get(0);D.style.borderStyle=K.borderStyle}if(!K.bIsModal&&WatCore.taskbar!=null)DxTaskBar.notifywindowstate(B,WIN_STATE_NOR,K.nState);K.nState=WIN_STATE_NOR;if($(F).css("display")=="none")if(!top.isIE)$(F).fadeIn("slow");else $(F).css("display","block");fitContentPaneSize(K);E_activeWindow(B);if(J!="true")window.setTimeout(new function(){F.focusinput.focus()},1);if(M==WIN_STATE_MIN)L.nMinWinCount--}catch(A){}}function E_maxWindow(B,_,M){try{var N=top.getBrowserVersion(),P=E_clientModel.E_getWindow(B),F=getWrapper(P),K=getInnerWrapper(P),R=P.nState,Q=E_clientModel.E_getWindow(P.strParentID),C=WatCore.getWindowDoc(P.strParentID,Q),I=getClientAreaRect(P.strParentID),L=C.getElementById(PRE_WIN_TITLE+B),H=(P.frameBorderStyle!=BORDERSTYLE_NONE?PADDING:0),O,J;P.style.top=(P.bHasTitle?parseInt(L.style.top)+parseInt(L.style.height)+1:H)+"px";if(P.nState==WIN_STATE_MIN)P.style.visibility="visible";var D=(P.nTitleState>=TITLE_DIS_CLSBUT?P.nTitleState-TITLE_DIS_CLSBUT:P.nTitleState);if(D==TITLE_NULL)L.style.display="none";else L.style.display="inline";K.style.borderStyle=(P.frameBorderStyle==BORDERSTYLE_NONE?"none":"solid");if(P.strParentID!=DESKTOP){L.style.display="none";operateMdiChildWhenMax(B,P.strParentID);maxMDIChildWindow(B)}$canvas=$("#canvas");var G=parseInt($canvas.css("left")),E=parseInt($canvas.css("top"));G=0;E=0;if(B!="desktopFrame"){if(top.isIE){if(IEVersion=="IE10"||IEVersion=="IE11"){O=I.width/fzoom;if(!P.bIsModal)O-=G}else{O=I.width;if(!P.bIsModal)O-=G}}else{O=I.width-2*BORDER_WIDTH;if(!P.bIsModal)O-=G}if(WatCore.taskbar!=null){if(splitscreen!="true"){if(top.isIE){if(IEVersion=="IE10"||IEVersion=="IE11")J=I.height/fzoom-28;else J=I.height-28;if(!P.bIsModal)J-=E}else{J=I.height-2*BORDER_WIDTH-28;if(!P.bIsModal)J-=E}}else{J=(isIE)?(I.height-28):I.height-2*BORDER_WIDTH-28;if(!P.bIsModal)J-=E}}else if(splitscreen!="true"){if(top.isIE){if(IEVersion=="IE10"||IEVersion=="IE11")J=I.height/fzoom;else J=I.height;if(!P.bIsModal)J-=E}else{J=I.height-2*BORDER_WIDTH;if(!P.bIsModal)J-=E}}else if(fzoom>1)J=(isIE)?splitscreenheight:I.height-2*BORDER_WIDTH;else J=(isIE)?I.height:I.height-2*BORDER_WIDTH}else if(top.isIE){if(IEVersion=="IE10"||IEVersion=="IE11"){O=I.width/fzoom;J=I.height/fzoom}else{O=I.width;J=I.height}}else{O=I.width;J=I.height}showControlBoxButtons(B,WIN_STATE_MAX);if(B!="desktopFrame"){F.style.width=O+"px";F.style.height=J+"px";if(!P.bIsModal){F.style.top=E+"px";F.style.left=G+"px"}else{F.style.top="0px";F.style.left="0px"}if(!P.bIsModal&&WatCore.taskbar!=null)F.style.visibility="visible"}else{F.style.width=(O+4)+"px";F.style.height=(J+4)+"px";F.style.top=-2+"px";F.style.left=-2+"px";F.style.borderWidth=0+"px";K.style.borderWidth=0+"px";if(!P.bIsModal&&WatCore.taskbar!=null)visibility="visible"}if(!P.bIsModal&&WatCore.taskbar!=null)if(_!=null)DxTaskBar.notifywindowstate(B,WIN_STATE_MAX,_);else DxTaskBar.notifywindowstate(B,WIN_STATE_MAX,P.nState);if($(F).css("display")=="none")if(!top.isIE)$(F).fadeIn("slow");else $(F).css("display","block");P.nState=WIN_STATE_MAX;fitContentPaneSize(P);if(R==WIN_STATE_MIN){Q.nMinWinCount--;resetMinChildWindow(P.strParentID)}if(M!="sub")E_activeWindow(B,null,M)}catch(A){}}function maxMDIChildWindow(B){try{var M=E_clientModel.E_getWindow(B),G=getWrapper(M),J=getInnerWrapper(M),O=M.nState,N=E_clientModel.E_getWindow(M.strParentID),C=N.contentWindow.document,D=M.contentWindow.document.getElementById(WIN_CONTENTPANE),H=getClientAreaRect(M.strParentID),L,I;G.style.top=0;G.style.left=0;G.style.width="100%";G.style.height="100%";J.style.width="100%";J.style.height="100%";G.style.borderStyle="none";J.style.borderStyle="none";M.style.top=0;M.style.left=0;M.style.width="100%";M.style.height="100%";var E=0;if(M.bHasToolbar)E=M.nToolbarHeight;if(M.bHasMenubar)E+=M.nMenuBarHeight;D.style.top=E;D.style.left=0;D.style.width="100%";D.style.height=H.height-E;D.style.borderStyle="none";M.nState=WIN_STATE_MAX;var R=C.getElementById(MDI_MIN_BUT_ON_MENU),A=C.getElementById(MDI_DIS_MIN_BUT_ON_MENU),Q=C.getElementById(MDI_NOR_BUT_ON_MENU),_=C.getElementById(MDI_CLS_BUT_ON_MENU),P=C.getElementById(MDI_DIS_CLS_BUT_ON_MENU),K=C.getElementById(MDI_CTR),L=0,F=(M.nTitleState>=TITLE_DIS_CLSBUT?M.nTitleState-TITLE_DIS_CLSBUT:M.nTitleState);if(F==TITLE_ONLY_HAS_MIN||F==TITLE_NORMAL){R.style.display="inline";try{A.style.display="none"}catch($){}L+=R.offsetWidth}else{A.style.display="inline";try{R.style.display="none"}catch($){}L+=A.offsetWidth}Q.style.display="inline";L+=Q.offsetWidth;if(F==TITLE_NULL||F==TITLE_NO_BUTS||M.nTitleState>=TITLE_DIS_CLSBUT){P.style.display="inline";try{_.style.display="none"}catch($){}L+=P.offsetWidth}else{_.style.display="inline";try{P.style.display="none"}catch($){}L+=_.offsetWidth}K.width=L;K.style.visibility="visible";K.style.borderTop="buttonhighlight 0px solid";K.style.borderBottom="buttonhighlight 0px solid";setTitleText(M.strParentID,M.strTitleText,true);if(O==WIN_STATE_MIN){N.nMinWinCount--;resetMinChildWindow(M.strParentID)}E_refreshMenu(B)}catch($){}}function maxMdiChildWindow2(_,$){var A=E_clientModel.E_getWindow(_),B=getWrapper(A);B.style.top=0;B.style.left=0;B.style.width="100%";B.style.height="100%"}function showControlBoxButtons(B,G){var C=E_clientModel.E_getWindow(B),D=E_clientModel.E_getWindow(C.strParentID),A=WatCore.getWindowDoc(C.strParentID,D),F=new Array(),_=new Array(),$=0;F[0]=A.getElementById(PRE_TD_WIN_BT1+B);F[1]=A.getElementById(PRE_TD_WIN_BT2+B);F[2]=A.getElementById(PRE_TD_WIN_BT3+B);F[3]=A.getElementById(PRE_TD_WIN_BT4+B);_[0]=A.getElementById(PRE_WIN_MIN+B);_[1]=A.getElementById(PRE_WIN_NOR+B);_[2]=A.getElementById(PRE_WIN_MAX+B);_[3]=A.getElementById(PRE_WIN_CLS+B);for(var H=0;H<4;H++)F[H].removeChild(F[H].childNodes[0]);if(G==WIN_STATE_MIN)$=0;else if(G==WIN_STATE_NOR)$=1;else $=2;var E=1;F[0].appendChild(_[$]);for(H=0;H<4;H++)if($!=H)F[E++].appendChild(_[H])}function E_cascadeWindow(_){var I=E_clientModel.E_getWindow(_),A=WatCore.getWindowDoc(_,I),H=A.body.clientWidth,G=A.body.clientHeight,E=10,J=E_clientModel.E_getWindowIds(),F=0,B=0;try{for(F=0;F<J.E_size();F++){var C=J.E_get(F),I=E_clientModel.E_getWindow(C);if(I.strParentID==_){var D=getWrapper(I);if(B==E)B=0;E_normalWindow(C);D.style.top=B*25;D.style.left=B*20;B++}}}catch($){}}function E_clsWindow(J){var O=E_clientModel.E_getWindow(J);if(O==null)return;var R=O.isiframe,L=WatCore.getWindow(J,O),N=getWrapper(O),_=O.strParentID,D=E_clientModel.E_getWindow(_),H=D.isiframe,M=WatCore.getWindow(_,D),I=WatCore.getWindowDoc(O.strParentID,D),V=O.nState,S="",P=I.getElementById(PRE_WIN_TITLE+J),W=isActiving(J),C=R=="true"?(O.strParentID==DESKTOP?I.body:I.getElementById(WIN_CONTENTPANE)):I.body,T=O.bIsModal;try{var U=R=="true"?O.contentWindow.document:document,A=R=="true"?U.getElementById(WIN_CONTENTPANE):$("#"+WIN_CONTENTPANE,O).get(0);top.Desktop.clear(J,A,U);if(R=="true"){if(N.removeEventListener){N.removeEventListener("mousemove",M.EventRouter.agentForCaptureResizingHandler,false);N.removeEventListener("mousedown",M.EventRouter.agentForBeginResize,false);L.removeEventListener("resize",L.EventRouter.processWindowResized,false)}else if(N.detachEvent){N.detachEvent("onmousemove",M.EventRouter.agentForCaptureResizingHandler);N.detachEvent("onmousedown",M.EventRouter.agentForBeginResize);L.detachEvent("onresize",L.EventRouter.processWindowResized)}else{N[onmousemove]=null;N[onmousedown]=null;N[onresize]=null}L.EventRouter.__closePopWin(L);L.EventRouter.clear()}else if(N.removeEventListener){N.removeEventListener("mousemove",M.EventRouter.agentForCaptureResizingHandler,false);N.removeEventListener("mousedown",M.EventRouter.agentForBeginResize,false)}else if(N.detachEvent){N.detachEvent("onmousemove",M.EventRouter.agentForCaptureResizingHandler);N.detachEvent("onmousedown",M.EventRouter.agentForBeginResize)}else{N[onmousemove]=null;N[onmousedown]=null}top.DxPopGridText.hideOnClick();L=null;removeChildren(J);fireWindowClosedEvent(J);E_clientModel.E_removeWindow(J);if(T){var K=I.getElementById(WIN_MODAL_LAYER),B;arrWinModalLayersIndex.pop();if(arrWinModalLayersIndex.length>=1)B=arrWinModalLayersIndex[arrWinModalLayersIndex.length-1];else B=0;K.style.zIndex=B;if(B==0)K.style.visibility="hidden"}top.E_removeObject(J);N.parentElement.removeChild(N);S=getPendingActiveWindow(_);if(_!=DESKTOP&&S==""){fitContentPaneSize(D);hiddenMDIButtons(_);setTitleText(_,D.strTitleText,true)}if(W){E_clientModel.E_activingWinID="";if(S!="")if(!T&&WatCore.taskbar!=null){var F=E_clientModel.E_getWindow(S);if(F.nState!=WIN_STATE_MIN)E_activeWindow(S)}else E_activeWindow(S)}if(V==WIN_STATE_MIN){D.nMinWinCount--;resetMinChildWindow(_)}if(_!=DESKTOP&&S!=""){var E=E_clientModel.E_getWindow(S);if(E!=null){var Q=E.nState;if(Q==WIN_STATE_NOR)updateWindowStateFromServer(S,WIN_STATE_MAX)}}if(!T&&WatCore.taskbar!=null)DxTaskBar.closewindow(J,S);Desktop.focusinput()}catch(G){}}function clearWindowResource(_){var $=_.children.length;for(var A=$-1;A>=0;A--){clearWindowResource(_.children[A]);_.removeChild(_.children[A]);_.children[A]=null}}function fireWindowClosedEvent(_){try{var D=E_clientModel.E_getWindow(_);if(D.bIsMDI){var C=E_clientModel.E_getWindowIds(),E=0;for(E=0;E<C.E_size();E++){var B=C.E_get(E),A=E_clientModel.E_getWindow(B);if(A.strParentID==_)A.contentWindow.fireWindowEvent(top.WindowEvent.WINDOW_CLOSED)}}D.contentWindow.fireWindowEvent(top.WindowEvent.WINDOW_CLOSED)}catch($){}}function getPendingActiveWindow(_){var D=E_clientModel.E_getWindowIds(),G=0,B=-1,E="";try{for(G=0;G<D.E_size();G++){var C=D.E_get(G),A=E_clientModel.E_getWindow(C);if(A.strParentID==_){var F=getWrapper(A);if(F.style.zIndex>B){E=C;B=F.style.zIndex}}}}catch($){}return E}function getPendingActiveWindow2(_,H){var D=E_clientModel.E_getWindowIds(),G=0,B=-1,E="";try{for(G=0;G<D.E_size();G++){var C=D.E_get(G);if(C==H)continue;var A=E_clientModel.E_getWindow(C);if(A.strParentID==_){var F=getWrapper(A);if(F.style.zIndex>B){E=C;B=F.style.zIndex}}}}catch($){}return E}function removeChildren(C){var D=E_clientModel.E_getWindowIds(),E=0,_=new Array();try{for(E=0;E<D.E_size();E++){var B=D.E_get(E),A=E_clientModel.E_getWindow(B);if(A.strParentID==C)_[_.length++]=B}for(E=0;E<_.length;E++)E_clientModel.E_removeWindow(_[E])}catch($){}}function E_openModalWindow(A,F,_,H,J,G,I){try{if(F=="")F=DESKTOP;if(E_clientModel.E_inClientModel(A))return;var C=E_clientModel.E_getWindow(F),B=WatCore.getWindowDoc(F,C),D=B.getElementById(WIN_MODAL_LAYER);if(!D){D=B.createElement("div");D.id=WIN_MODAL_LAYER;if(isIE)D.innerHTML="<img width=100% height=100% src="+MSK_IMG_URL+"></img>";if(F==DESKTOP)B.body.appendChild(D);else{var E=B.getElementById(WIN_CONTENTPANE);E.appendChild(D)}if(window.attachEvent)D.attachEvent("onclick",maskclick);else D.addEventListener("click",maskclick,false)}D.style.position="absolute";D.style.top=0+"px";D.style.left=0+"px";D.style.width="100%";D.style.height="100%";D.style.overflow="hidden";D.style.backgroundColor="#5F5F5F";D.style.border="1px none #ff0000";D.style.zIndex=getMaxZIndex(F);D.style.visibility="visible";if(J){D.style.filter="alpha(opacity:0)";D.style.opacity="0"}else{D.style.filter="alpha(opacity:30)";D.style.opacity="0.3"}if(J){D.clickid=A;D.canclick="true"}else D.canclick="false";arrWinModalLayersIndex[arrWinModalLayersIndex.length]=D.style.zIndex;var K=E_openWindow(A,F,_,false,H,"",G,I);K.bIsModal=true;K.strOpener=F}catch($){}}function E_openModalWindow2(C,H,A,$){try{if(H=="")H=DESKTOP;if(E_clientModel.E_inClientModel(C))return;var E=E_clientModel.E_getWindow(H),B=WatCore.getWindowDoc(H,E),F=B.getElementById(WIN_MODAL_LAYER);if(!F){F=B.createElement("div");F.id=WIN_MODAL_LAYER;if(isIE)F.innerHTML="<img width=100% height=100% src="+MSK_IMG_URL+"></img>";if(H==DESKTOP)B.body.appendChild(F);else{var G=B.getElementById(WIN_CONTENTPANE);G.appendChild(F)}if(top.isIE)F.attachEvent("onclick",maskclick);else F.addEventListener("click",maskclick,false)}F.style.position="absolute";F.style.top=0+"px";F.style.left=0+"px";F.style.width="100%";F.style.height="100%";F.style.overflow="hidden";F.style.backgroundColor="white";F.style.border="1px solid #ff0000";F.style.zIndex=getMaxZIndex(H);F.style.visibility="visible";if(isblclick){F.style.filter="alpha(opacity:0)";F.style.opacity="0"}else{F.style.filter="alpha(opacity:45)";F.style.opacity="0.45"}F.clickid=C;F.canclick="true";arrWinModalLayersIndex[arrWinModalLayersIndex.length]=F.style.zIndex;var D=E_openWindow(C,H,A,false,$);D.bIsModal=true;D.strOpener=H}catch(_){}}function maskclick(_){var A=_.srcElement;while(A.id!=WIN_MODAL_LAYER&&A!=null)A=A.parentElement;if(A.canclick=="true"){var $=A.clickid;if($!=""){top.notifyCloseWin($);top.E_clsWindow($)}}}function E_openWindow(P,_,N,C,V,J,U,a){try{var H=E_clientModel.E_getWindow(_);if(H==null||E_clientModel.E_inClientModel(P))return;var O=WatCore.getWindowDoc(_,H),T=O.createElement("div"),X=O.createElement("div"),b=O.createElement("div"),Y=O.createElement("div"),D;if(a=="true")D=O.createElement("iframe");else D=O.createElement("div");var M=O.createElement("div"),I=0,c=getClientAreaRect(_),Q=new Object(),L=(c.width-LOADING_WIN_WIDTH)/2,W=(c.height-LOADING_WIN_HEIGHT)/2;Q.top=(W<0?0:W);Q.left=(L<0?0:L);Q.width=LOADING_WIN_WIDTH;Q.height=LOADING_WIN_HEIGHT;var G={};G.position="absolute";G.top=Q.top+"px";G.left=Q.left+"px";G.width=Q.width+"px";G.height=Q.height+"px";G.overflow="hidden";G.backgroundColor="white";G.borderStyle="solid";G.borderWidth=PADDING+"px";G.borderColor="#007dff";G.borderTopLeftRadius="4px";G.borderTopRightRadius="4px";G.borderBottomRightRadius="4px";G.borderBottomLeftRadius="4px";if(P!="desktopFrame")G.zIndex=getMaxZIndex(_);else G.zIndex=INIT_ZINDEX-1;$(T).css(G);T.id=P;X.id=PRE_INNER_WAP+P;X.nBorderType=0;X.strWrapper=P;X.scrolling="no";X.className="window-innerwrapper";$(X).attr("windowflag","true");var S={};S.position="absolute";S.top=0+"px";S.left=0+"px";S.width=(parseInt(Q.width)-2*PADDING)+"px";S.height=(parseInt(Q.height)-2*PADDING)+"px";S.zIndex=1;S.border="1px none #007dff";S.backgroundColor="transparent";S.borderRadius="4px";$(X).css(S);D.bIsMDI=C;T.istopmost=J;D.nNormalTop=N.top;D.nNormalLeft=N.left;D.nNormalWidth=N.width;D.nNormalHeight=N.height;D.nMinWinCount=0;if(P!="desktopFrame")D.nMaxZIndex=INIT_ZINDEX;else D.nMaxZIndex=INIT_ZINDEX-1;D.frameBorder=0;D.nState=WIN_STATE_RES;D.strParentID=_;D.strWrapper=P;D.strInnerWrapper=PRE_INNER_WAP+P;if(top.browsertype=="firefox")D.src="javascript:";var E={};E.left=PADDING+"px";E.padding="0px";E.position="absolute";E.top=(TITLE_HEIGHT)+"px";E.left="0px";E.width=(parseInt(Q.width)-2*PADDING)+"px";E.height=(parseInt(Q.height)-2*PADDING-TITLE_HEIGHT)+"px";E.zIndex=2;E.display="block";$(D).css(E);b.style.position="absolute";b.style.top=(Q.height/2-TITLE_HEIGHT)+"px";b.style.left=(Q.width/2-13)+"px";b.innerHTML="<img src='"+LOADING_IMG_URL+"'/>";b.id=PRE_LOADING_RECT+P;Y.id=PRE_WIN_TITLE+P;Y.style.position="absolute";Y.style.top=0+"px";Y.style.width=Q.width+"px";Y.style.left=TITLE_PADDING+"px";Y.style.height=31+"px";Y.style.backgroundColor="transparent";Y.style.cursor="default";Y.style.display="none";M.style.position="absolute";M.style.top=TITLE_HEIGHT+"px";M.style.left=0+"px";M.style.width="100%";M.style.height="100%";M.style.zIndex=3;M.style.visibility="hidden";M.id=PRE_MASK_LYR+P;X.appendChild(Y);X.appendChild(D);T.appendChild(M);T.appendChild(X);if(_==DESKTOP)O.body.appendChild(T);else{var B=O.getElementById(WIN_CONTENTPANE);B.appendChild(T)}E_clientModel.E_addWindow(P,D);D.isiframe=a;var Z;if(a=="true"){Z=D.contentWindow.document;var F=top.isIE?V.text:V.textContent;F=Desktop.getWebFormContent(P,U,F);if(top.isIE){Z.open();Z.write(F);Z.close()}else{Z.open();Z.write("<html></html>");Z.documentElement.innerHTML=F;Z.close()}$(T).css("display","none");var A=Z.getElementsByTagName("head")[0],R=$("#focusinput",Z);if(R!=null){T.focusinput=R;R.focus();R.blur()}}else{Z=O,F=top.isIE?V.text:V.textContent;F=Desktop.getWebFormContent(P,U,F);$(T).css("display","none");$(D).html(F);WatCore.setFocus(D);R=$("#focusinput",D);if(R!=null)T.focusinput=R}}catch(K){}return D}function getChildrenCount(_){var D=E_clientModel.E_getWindowIds(),E=0,B=0;try{for(E=0;E<D.E_size();E++){var C=D.E_get(E),A=E_clientModel.E_getWindow(C);if(A.strParentID==_)B++}}catch($){}return B}function getMaxZIndex(A,_){var B=E_clientModel.E_getWindow(A);try{if(B.nMaxZIndex>Number.MAX_VALUE-2)resetMaxZIndex(A);B.nMaxZIndex++}catch($){}return B.nMaxZIndex}function resetMaxZIndex(A){var G=E_clientModel.E_getWindow(A),J=E_clientModel.E_getWindowIds(),K=new Array(),D=new Array(),B=WatCore.getWindowDoc(A,G);try{if(arrWinModalLayersIndex.length>0){for(var F=0;F<arrWinModalLayersIndex.length;F++){K[F]=new Object();K[F].strID=WIN_MODAL_LAYER;K[F].zIndex=arrWinModalLayersIndex[F]}arrWinModalLayersIndex.length=0}for(F=0;F<J.E_size();F++){var H=J.E_get(F),I=E_clientModel.E_getWindow(H);if(I.strParentID==A){var E=getWrapper(I),_=K.length;K[_]=new Object();K[_].strID=H;K[_].zIndex=E.style.zIndex}}D=K.sort(sortZIndex);G.nMaxZIndex=INIT_ZINDEX;for(F=0;F<D.length;F++){H=D[F].strID;G.nMaxZIndex++;if(H==WIN_MODAL_LAYER)arrWinModalLayersIndex[arrWinModalLayersIndex.length]=G.nMaxZIndex;else{I=E_clientModel.E_getWindow(H),E=getWrapper(I);E.style.zIndex=G.nMaxZIndex}}if(arrWinModalLayersIndex.length>0){var C=B.getElementById(WIN_MODAL_LAYER);C.style.zIndex=arrWinModalLayersIndex[arrWinModalLayersIndex.length-1]}}catch($){}}function sortZIndex(_,$){return _.zIndex-$.zIndex}function fireWindowFocusEvent(A){var B=E_clientModel.E_getWindow(A);try{if(E_clientModel.E_focusedWinID!=A){if(B!=null)B.contentWindow.fireWindowEvent(top.WindowEvent.WINDOW_GETFOCUS);if(E_clientModel.E_focusedWinID!=""){var $=E_clientModel.E_getWindow(E_clientModel.E_focusedWinID);if($!=null)$.contentWindow.fireWindowEvent(top.WindowEvent.WINDOW_LOSTFOCUS)}E_clientModel.E_focusedWinID=A}}catch(_){}}function E_activeWindow(C,J,M){var _=E_clientModel.E_getWindow(C),O=_.isiframe,N=E_clientModel.E_getWindow(E_clientModel.E_activingWinID),I=getWrapper(_),Q,D,$=_.strParentID,G=E_clientModel.E_getWindow($),F=G.isiframe,B=WatCore.getWindowDoc($,G),E=B.getElementById(WIN_MODAL_LAYER);if(E!=null&&E.style.visibility!="hidden"&&!_.bIsModal)return;fireWindowFocusEvent(C);E_refreshMenu(C);if(!_.bIsModal&&WatCore.taskbar!=null)DxTaskBar.activewindowstate(C);if(C==DESKTOP||(N!=null&&N.strParentID==C)||C==E_clientModel.E_activingWinID)return;try{if(E_clientModel.E_activingWinID!=""&&$!=E_clientModel.E_activingWinID){var U=E_clientModel.E_getWindow(E_clientModel.E_activingWinID);changeAppearanceOfInactiveWindow(U,false)}if(I.istopmost)I.style.zIndex=1000;else if(C!="desktopFrame")I.style.zIndex=getMaxZIndex($,M);else I.style.zIndex=INIT_ZINDEX-1;if($!=DESKTOP){var K=E_clientModel.E_getWindow(DESKTOP),S,T,P=getWrapper(G);P.style.zIndex=getMaxZIndex(G.strParentID,"2");T=K.document.getElementById(PRE_WIN_TLT_CAPTION_CONTAINER+$);if(T!=undefined)T.style.backgroundColor="";S=K.document.getElementById(PRE_WIN_TLT_BG+$);if(S!=undefined)S.style.visibility="visible";var H=K.document.getElementById(WIN_TLT_TXT+$);if(H!=undefined)H.style.color="white";top.fireWindowEvent(top.WindowEvent.WINDOW_ACTIVE);var R=G.contentWindow.document.getElementById("menubar"),L=_.contentWindow.document.getElementById("menubar");if(!_.bIsModal&&false)if(trim(L.innerHTML).length!=0)R.innerHTML=L.innerHTML;else R.innerHTML=G.strHTMLMenubar;G.nMenuBarHeight=R.offsetHeight;fitContentPaneSize(G)}Q=B.getElementById(PRE_WIN_TLT_CAPTION_CONTAINER+C);if(Q!=undefined)Q.style.backgroundColor="";D=B.getElementById(PRE_WIN_TLT_BG+C);if(D!=undefined);H=B.getElementById(WIN_TLT_TXT+C);if(H!=undefined)H.style.color="white";top.fireWindowEvent(top.WindowEvent.WINDOW_ACTIVE);E_clientModel.E_activingWinID=C;if(_.bNotifyServerOnActived)top.Controller.E_notifyServerWindowsActived(C);if(I.focusinput!=null){I.focusinput.focus();I.focusinput.blur()}}catch(A){}}function E_focusWindow(B,$){var _=E_clientModel.E_getWindow(B),A=E_clientModel.E_getWindow(E_clientModel.E_activingWinID),C=getWrapper(_);if($)Desktop.focusinput();else if(C.focusinput!=null){C.focusinput.focus();C.focusinput.blur()}}function changeAppearanceOfInactiveWindow(G,E){try{var D=E_clientModel.E_getWindow(G.strParentID),C=WatCore.getWindowDoc(G.strParentID,D),B,A;if(E)if(G.strParentID!=DESKTOP)changeAppearanceOfInactiveWindow(D,E);var $=getInnerWrapper(G);$.nBorderType=0;B=C.getElementById(PRE_WIN_TLT_BG+G.strWrapper);if(B!=undefined);var F=C.getElementById(WIN_TLT_TXT+G.strWrapper);if(F!=undefined)F.style.color="white";G.contentWindow.fireWindowEvent(top.WindowEvent.WINDOW_DEACTIVE)}catch(_){}}function trim(_){var A="";try{A=_.replace(/^\s+/,"");A=A.replace(/\s+$/,"")}catch($){}return A}function resizeSubMaxWindows($){var E=E_clientModel.E_getWindowIds(),F=0,C=0;try{for(F=0;F<E.E_size();F++){var D=E.E_get(F),B=E_clientModel.E_getWindow(D);if(B.strParentID==$&&B.nState==WIN_STATE_MAX){var A=B.nState;B.nState=WIN_STATE_RES;E_maxWindow(D,A,"sub")}}}catch(_){}}function hiddenMDIButtons(E){try{var A=E_clientModel.E_getWindow(E),D=A.contentWindow.document,H=D.getElementById(MDI_MIN_BUT_ON_MENU);H.style.display="none";var C=D.getElementById(MDI_DIS_MIN_BUT_ON_MENU);C.style.display="none";var G=D.getElementById(MDI_NOR_BUT_ON_MENU);G.style.display="none";var B=D.getElementById(MDI_CLS_BUT_ON_MENU);B.style.display="none";var F=D.getElementById(MDI_DIS_CLS_BUT_ON_MENU);F.style.display="none";var _=D.getElementById(MDI_CTR);_.width=1;_.style.visibility="hidden"}catch($){}}function setDockPadding(A,_,C){try{var B=E_clientModel.E_getWindow(A);B.bHasDockPadding=true;B.nPosition=_;B.nSize=C;fitContentPaneSize(B)}catch($){}}function getDockPadding(B){var C=E_clientModel.E_getWindow(B),A=C.isiframe,_=A=="true"?C.contentWindow.document.getElementById(DOCK_PADDING):$("#"+DOCK_PADDING,C).get(0);return _}function fitContentPaneSize(W){var Q=getWrapper(W),T=getInnerWrapper(W),F,S,J=E_clientModel.E_getWindow(W.strParentID),B=WatCore.getWindowDoc(W.strParentID,J),N,K=(W.frameBorderStyle!=BORDERSTYLE_NONE?BORDER_WIDTH:0),R=(W.frameBorderStyle!=BORDERSTYLE_NONE?PADDING:0),I=(W.frameBorderStyle!=BORDERSTYLE_NONE?TITLE_PADDING:0);F=(isIE?Q.clientWidth:parseInt(Q.style.width));S=(isIE?Q.clientHeight:parseInt(Q.style.height));T.style.top=0+"px";T.style.left=0+"px";T.style.width=(F)+"px";T.style.height=(S)+"px";F=(isIE?T.clientWidth:parseInt(T.style.width));S=(isIE?T.clientHeight:parseInt(T.style.height));var V=W.isiframe;try{if(W.bHasTitle){var U=B.getElementById(PRE_WIN_TITLE+W.strWrapper);U.style.top=0+"px";U.style.left=0+"px";U.style.width=F+"px";U.style.height=(TITLE_HEIGHT+3)+"px"}W.style.left="0px";W.style.width=(F-2*R)+"px";if(W.nState==WIN_STATE_MIN)W.style.visibility="hidden";else{if(S>TITLE_HEIGHT+2*R)W.style.height=(S-parseInt(W.style.top)-2*R)+"px";N=V=="true"?W.contentWindow.document:document;var H,E;F=H=parseInt(W.style.width);S=E=parseInt(W.style.height);if(V=="true")N.body.style.height=S+"px";var C=V=="true"?N.getElementById(WIN_CONTENTPANE):$("#"+WIN_CONTENTPANE,W).get(0),_=0,O=0;if(W.bHasMenubar){var D=V=="true"?N.getElementById("menubar"):$("#menubar",W).get(0),A=parseInt(D.clientHeight);D.style.top=0+"px";E-=A;_+=A}if(W.bHasToolbar){var M=V=="true"?N.getElementById("toolbar"):$("#toolbar",W).get(0);M.style.top=_+"px";E-=W.nToolbarHeight;_+=(W.nToolbarHeight)}if(W.bHasStatusBar){var P=V="true"?N.getElementById("statusbar"):$("#statusbar",W).get(0);P.style.top=(S-W.nStatusBarHeight)+"px";E-=W.nStatusBarHeight}if(W.bHasDockPadding==true){var G=getDockPadding(W.strWrapper);if(W.nPosition==0){G.style.top=_+"px";G.style.left=O+"px";G.style.width=H+"px";G.style.height=W.nSize+"px";G.style.border="1px none #000000";_+=W.nSize;E-=W.nSize}else if(W.nPosition==1){G.style.top=(_+(isIE?0:2*K))+"px";G.style.left=O+"px";G.style.width=W.nSize+"px";G.style.height=(E-K)+"px";G.style.borderRight="#404040 1px solid";O+=W.nSize;H-=W.nSize}else if(W.nPosition==2){G.style.top=(_+E-W.nSize)+"px";G.style.left=O+"px";G.style.width=H+"px";G.style.height=W.nSize+"px";G.style.border="1px none #00ff00";E-=W.nSize}else if(W.nPosition==3){G.style.top=(_+(isIE?0:2*K))+"px";G.style.left=(O+H-W.nSize-2*K)+"px";G.style.width=W.nSize+"px";G.style.height=(E-K)+"px";G.style.borderLeft="1px solid #ffffff";H-=W.nSize}}if(!top.isIE)$(C).css("overflow","");C.style.top=_+"px";C.style.left=0+"px";if(W.isiframe=="true"){C.style.width=$(W).css("width");if(E>0)C.style.height=(E-(!isIE?(W.borderStyle!="none"?2*K:0):0)+2)+"px"}else{C.style.width=$(W).css("width")-2;C.style.height=(E-(!isIE?(W.borderStyle!="none"?2*K:0):0))+"px"}}}catch(L){}}function getClientAreaRect(C){var A=new Object(),D=E_clientModel.E_getWindow(C),B;try{B=WatCore.getWindowDoc(C,D);if(C==DESKTOP){var F=B.getElementById(WIN_CANANS);A.top=0;A.left=0;if(top.browsertype=="firefox"){A.width=(!isIE)?$(B.documentElement).width()+2:$(B.documentElement).width();A.height=B.body.clientHeight}else{A.width=(!isIE)?$(B.documentElement).width()+2:$(B.documentElement).width();A.height=(!isIE)?$(B.documentElement).height()+2:$(B.documentElement).height()}}else{var E=B.getElementById(WIN_CONTENTPANE);A.top=parseInt(E.style.top);A.left=parseInt(E.style.left);A.width=(isIE?E.clientWidth:parseInt(E.style.width));A.height=(isIE?E.clientHeight:parseInt(E.style.height))}}catch(_){}return A}function getContentPane(B){var C=E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=C.isiframe,D=_=="true"?A.getElementById(WIN_CONTENTPANE):$("#"+WIN_CONTENTPANE,C).get(0);return D}function getWrapper(B){var D,_=B.strParentID;if(_==null)_=DESKTOP;var C=E_clientModel.E_getWindow(_),A=WatCore.getWindowDoc(_,C);try{D=A.getElementById(B.strWrapper)}catch($){}return D}function getInnerWrapper(B){var $=null,C=E_clientModel.E_getWindow(B.strParentID),A=WatCore.getWindowDoc(B.strParentID,C);try{$=A.getElementById(B.strInnerWrapper)}catch(_){}return $}function getMouseCoords(B,_){var A=new Object();try{A.x=(!isIE)?B.pageX:B.clientX+_.body.scrollLeft;A.y=(!isIE)?B.pageY:B.clientY+_.body.scrollTop}catch($){}return A}function getMouseOffsetCoords(A){var _=new Object();try{_.x=(!isIE)?A.layerX:A.offsetX;_.y=(!isIE)?A.layerY:A.offsetY}catch($){}return _}function showSubMaskLayersOfWindow(A){var D=E_clientModel.E_getWindowIds(),E=0;try{for(E=0;E<D.E_size();E++){var C=D.E_get(E),B=E_clientModel.E_getWindow(C);if(C!=DESKTOP&&B.strParentID==A){var _=getMaskLayer(C);_.style.visibility="visible"}}}catch($){}}function hiddenMaskLayers(){var B=E_clientModel.E_getWindowIds(),C=0;try{for(C=0;C<B.E_size();C++){var A=B.E_get(C);if(A!=DESKTOP){var _=getMaskLayer(A);_.style.visibility="hidden"}}}catch($){}}function getMaskLayer(B){var _=null;try{if(B!=DESKTOP){var C=E_clientModel.E_getWindow(B),D=E_clientModel.E_getWindow(C.strParentID),A=WatCore.getWindowDoc(C.strParentID,D);_=A.getElementById(PRE_MASK_LYR+B)}}catch($){}return _}function dragWindow(L,E,D){var J=E_clientModel.E_getWindow(E.targetID),$=D.getElementById(DUMMY_BORDER),F=getWrapper(J),I=getMouseCoords(L,D).x,H=getMouseCoords(L,D).y;try{if(L==null)return;switch(L.type){case"mousedown":$.style.zIndex=getMaxZIndex(J.strParentID);$.style.top=F.style.top;$.style.left=F.style.left;$.style.width=F.style.width;$.style.height=F.style.height;top.fireWindowEvent(top.WindowEvent.WINDOW_CLICKOUTER);E_activeWindow(E.targetID);E.drag=true;E.orgX=I;E.orgY=H;break;case"mouseup":var G=parseInt($.style.left)-parseInt(F.style.left),A=parseInt($.style.top)-parseInt(F.style.top);if(Math.abs(G)>VALID_RESIZE_OFFSET||Math.abs(A)>VALID_RESIZE_OFFSET){F.style.left=parseInt($.style.left)+"px";F.style.top=parseInt($.style.top)+"px";J.nNormalTop=parseInt($.style.top);J.nNormalLeft=parseInt($.style.left)}$.style.visibility="hidden";break;case"mousemove":if(L.button%2==EVT_LEFT_BUTTON&&E.drag){var K=getClientAreaRect(J.strParentID);if(H<=K.top)H=K.top;else if(H>=K.top+K.height)H=K.top+K.height;if(I<=K.left)I=K.left;else if(I>=K.left+K.width)I=K.left+K.width;var B=I-E.orgX,C=H-E.orgY;if($.style.visibility=="hidden")$.style.visibility="visible";$.style.left=(parseInt($.style.left)+B)+"px";if(parseInt($.style.top)+C>0)$.style.top=(parseInt($.style.top)+C)+"px";else $.style.top=0+"px";E.orgX=I;E.orgY=H}break;default:break}if(isIE)L.cancelBubble=true;else L.stopPropagation()}catch(_){window.status="dragWindow:"+_.description}}function changeResizeCursor(D,B){try{var C=(!isIE)?B.layerX:B.offsetX,_=(!isIE)?B.layerY:B.offsetY,$="default";D.nBorderType=getBorderType(D,C,_);switch(D.nBorderType){case 1:$="w-resize";break;case 2:$="e-resize";break;case 4:$="n-resize";break;case 5:$="nw-resize";break;case 6:$="ne-resize";break;case 8:$="s-resize";break;case 9:$="sw-resize";break;case 10:$="se-resize";break}D.style.cursor=$}catch(A){}}function getBorderType(F,E,A){var D=0;try{var _=F.offsetWidth,$=F.offsetHeight,C=PADDING*4;if(E<C)D+=1;else if(E>_-C)D+=2;if(A<C)D+=4;else if(A>$-C)D+=8}catch(B){}return D}function resizingWindow(D,K){try{var J=E_clientModel.E_getWindow(D.targetWindow),L=E_clientModel.E_getWindow(J.strParentID),C=WatCore.getWindowDoc(J.strParentID,L),G=getInnerWrapper(J),_=C.getElementById(DUMMY_BORDER),H=_.style,M=(!isIE)?K.pageX:K.clientX+C.body.scrollLeft,$=(!isIE)?K.pageY:K.clientY+C.body.scrollTop,B=parseInt(H.left),F=parseInt(H.top),I=parseInt(H.width),E=parseInt(H.height),O=M-D.nPreClientX,N=$-D.nPreClientY;if((G.nBorderType&1)==1){I-=O;if(I<MIN_WIDTH)I=MIN_WIDTH;B=parseInt(H.left)+parseInt(H.width)-I}if((G.nBorderType&2)==2){I+=O;if(I<MIN_WIDTH)I=MIN_WIDTH}if((G.nBorderType&4)==4){E-=N;if(E<MIN_NORMAL_HEIGHT)E=MIN_NORMAL_HEIGHT;F=parseInt(H.top)+parseInt(H.height)-E}if((G.nBorderType&8)==8){E+=N;if(E<MIN_NORMAL_HEIGHT)E=MIN_NORMAL_HEIGHT}D.nPreClientX=M;D.nPreClientY=$;H.left=B+"px";H.width=I+"px";H.top=F+"px";H.height=E+"px";if(isIE)K.cancelBubble=true;else K.stopPropagation()}catch(A){}}function endResizingWindow(E,J){try{var B=E.targetWindow,H=E_clientModel.E_getWindow(E.targetWindow),D=E_clientModel.E_getWindow(H.strParentID),C=WatCore.getWindowDoc(H.strParentID,D),_=C.getElementById(DUMMY_BORDER),G=_.style,F=getWrapper(H),I=getClientAreaRect(H.strParentID);if(parseInt(G.top)<=0)G.top=0;else if(parseInt(G.top)>=I.height-I.top)G.top=I.height-I.top;H.nState=WIN_STATE_NOR;H.nNormalTop=parseInt(G.top);H.nNormalLeft=parseInt(G.left);H.nNormalWidth=parseInt(G.width);H.nNormalHeight=parseInt(G.height);F.style.top=G.top;F.style.left=G.left;F.style.width=G.width;F.style.height=G.height;fitContentPaneSize(H);E.resize=false;E.targetWindow="";_.style.visibility="hidden";H.contentWindow.fireWindowEvent(top.WindowEvent.WINDOW_RESIZED);if(isIE)J.cancelBubble=true;else J.stopPropagation();var $=top.DxCache.getAttributeAsBoolean(B,"content","windowResize");if($==true)notifyResizeWin(B)}catch(A){}}function isActiving(_){var A=E_clientModel.E_getWindow(E_clientModel.E_activingWinID),B=false;try{if(_==E_clientModel.E_activingWinID||(A!=null&&_==A.strParentID))B=true}catch($){}return B}function setTitleText(B,$,F){var C=E_clientModel.E_getWindow(B),D=E_clientModel.E_getWindow(C.strParentID),A=WatCore.getWindowDoc(C.strParentID,D),E;try{E=A.getElementById(WIN_TLT_TXT+B);E.innerHTML=$;if(!F)C.strTitleText=$}catch(_){}}function getTitleText(A){var B=E_clientModel.E_getWindow(A),C=E_clientModel.E_getWindow(B.strParentID),_=WatCore.getWindowDoc(B.strParentID,C),D=null;try{D=_.getElementById(WIN_TLT_TXT+A)}catch($){}return D.innerHTML}function E_setTitle(E,A,P,J,$,F,H,M,C,G){try{var O=E_clientModel.E_getWindow(E),N=O.isiframe,I=E_clientModel.E_getWindow(O.strParentID),D=WatCore.getWindowDoc(O.strParentID,I),L=D.getElementById(PRE_WIN_TITLE+E),K="";O.nTitleState=J+($==TITLE_DIS_CLSBUT?$:0);O.bHasTitle=(J==TITLE_NULL)?false:true;K+="<div class='window-title' id='"+PRE_WIN_TLT_BG+E+"' style='-moz-user-select:none;position:absolute;visibility:visible;width:100%; height:100%;cursor:move; z-index:1;' unselectable='on' onselectstart='return false;'></div>";K+="<div id='"+PRE_WIN_TLT_CAPTION_CONTAINER+E+"' style='background-color:"+(isActiving(E)?"":"")+"; position:absolute; width:100%; cursor:move; z-index:2;' >";K+="<table onmousedown=\"try{top.activeMe('"+E+"', true)}catch(e){};\" style='height:34px;width:100%;TABLE-LAYOUT:fixed;' border=0 cellSpacing=0 cellPadding=0 >";K+="<tr>";if(J!=TITLE_NO_BUTS&&J!=TITLE_NULL){K+="<td width='4px'></td><td width='25px' height='100%' align='right' vAlign ='middle' style='vertical-align:middle;'>";K+="<img width=20px height=20px src='"+P+"'></img>"}else K+="<td width='1' align='right' valign='bottom'>";K+="</td>";K+="<td id='titleText_"+E+"' ondblclick=\"top.dbClickTitle('"+E+"')\" onmousedown=\"if(event.button==2) {window.cancelBubble =true; return false};window.EventRouter.agentForBeginDragTitle('"+E+"', event);return false;\" nowrap style='font-family:\u9ed1\u4f53;color:white;font-size: 14px;;font-weight:normal;vertical-align:middle;;-moz-user-select:none;' valign='middle' unselectable='on' onselectstart='return false;' >";if(J!=TITLE_NULL)K+="&nbsp;&nbsp;"+A;K+="</td>";K+="<td id='bt0_"+E+"' width='20px' valign='top' align='right' style='display:none;'>";K+="<img id='Nor_Button_"+E+"' WIDTH='14px' HEIGHT='14px' BORDER='0' onmouseover=top.normIn(this) onmouseout=top.normOut(this) src='"+NOR_IMG_URL+"' onmousedown=\"top.updateWindowState('"+E+"',"+WIN_STATE_NOR+",this)\"></img>";K+="</td>";K+="<td id='bt1_"+E+"' style='display:"+((J==TITLE_ONLY_HAS_MAX||J==TITLE_ONLY_HAS_MIN||J==TITLE_NORMAL)?"":"none")+";' width='20px' valign='middle' align='right'>";K+="<img id='Min_Button_"+E+"' WIDTH='14px' HEIGHT='14px' BORDER='0' src='"+((J!=TITLE_ONLY_HAS_MAX&&!C)?MIN_IMG_URL:DIS_MIN_URL)+"' "+((J!=TITLE_ONLY_HAS_MAX&&!C)?"onmouseover=top.minIn(this) onmouseout=top.minOut(this) onmousedown=\"top.updateWindowState('"+E+"',"+WIN_STATE_MIN+",this)\" >":"")+"</img>";K+="</td>";K+="<td id='bt2_"+E+"' style='display:"+((J==TITLE_ONLY_HAS_MAX||J==TITLE_ONLY_HAS_MIN||J==TITLE_NORMAL)?"":"none")+";' width='20px' valign='middle' align='right'>";K+="<img id='Max_Button_"+E+"' WIDTH='14px' HEIGHT='14px' BORDER='0' src='"+(J!=TITLE_ONLY_HAS_MIN?MAX_IMG_URL:DIS_MAX_URL)+"' "+(J!=TITLE_ONLY_HAS_MIN?" onmouseover=top.maxIn(this) onmouseout=top.maxOut(this) onmousedown=\"top.updateWindowState('"+E+"',"+WIN_STATE_MAX+",this)\" >":"")+"</img>";K+="</td>";K+="<td id='bt3_"+E+"' style='display:"+((J!=TITLE_NO_BUTS&&J!=TITLE_NULL)?"":"none")+";' width='30px' valign='middle' align='center'>";if($==TITLE_DIS_CLSBUT)K+="<img id='Cls_Button_"+E+"' WIDTH='14px' HEIGHT='14px' BORDER='0' src='"+DIS_CLS_URL+"'></img>";else K+="<img style='cursor:pointer' id='Cls_Button_"+E+"' WIDTH='14px' HEIGHT='14px' BORDER='0' src='"+CLS_IMG_URL+"' onmouseover=top.closeIn(this) onmouseout=top.closeOut(this) onclick=\"top.updateWindowState('"+E+"',"+WIN_STATE_CLS+")\"></img>";K+="</td>";K+=" </tr>";K+="</table>";K+="</div>";var B=getMaskLayer(E);B.style.top=(J==TITLE_NULL?0:TITLE_HEIGHT)+"px";L.innerHTML=K;O.strTitleText=getTitleText(E);if(O.bInited)L.style.display=(J==TITLE_NULL?"none":"inline");if(N!="true")E=DESKTOP;if(F==true)top.DxCache.setAttribute(E,"content","windowState",true);else top.DxCache.setAttribute(E,"content","windowState",false);if(H==true)top.DxCache.setAttribute(E,"content","windowResize",true);else top.DxCache.setAttribute(E,"content","windowResize",false);if(M==true)top.DxCache.setAttribute(E,"content","windowClose",true);else top.DxCache.setAttribute(E,"content","windowClose",false);if(G==true)top.DxCache.setAttribute(E,"content","windowtaskactivenotify",true);else top.DxCache.setAttribute(E,"content","windowtaskactivenotify",false)}catch(_){}}function closeIn($){$.src=CLS_IMG_URL_IN;$.style.cursor="pointer"}function closeOut($){$.src=CLS_IMG_URL;$.style.cursor="pointer"}function maxIn($){$.src=MAX_IMG_URL_IN;$.style.cursor="pointer"}function maxOut($){$.src=MAX_IMG_URL;$.style.cursor="pointer"}function minIn($){$.src=MIN_IMG_URL_IN;$.style.cursor="pointer"}function minOut($){$.src=MIN_IMG_URL;$.style.cursor="pointer"}function normIn($){$.style.cursor="pointer";$.src=NOR_IMG_URL_IN}function normOut($){$.style.cursor="pointer";$.src=NOR_IMG_URL}function E_getWindowStatus(){try{var C="",B=E_clientModel.E_getWindowIds(),E=0;for(E=0;E<B.E_size();E++){var A=B.E_get(E);if(A!="desktop"){var _=E_clientModel.E_getWindow(A),D=getWrapper(_);C+="id="+A+";";C+="state="+_.nState+";";C+="top="+parseInt(_.nNormalTop)+";";C+="left="+parseInt(_.nNormalLeft)+";";C+="width="+parseInt(_.nNormalWidth)+";";C+="height="+parseInt(_.nNormalHeight)+";";C+="isactive="+(isActiving(A)?"true":"false")+";";C+="&"}}}catch($){}return C}function updateWindowState(A,_,G){try{var C=E_clientModel.E_getWindow(A),F=E_clientModel.E_getWindow(C.strParentID),B=(F.bIsMDI==true)?true:false,E=(_==undefined?C.nState:_);C.oldState=C.nState;switch(E){case WIN_STATE_MIN:E_minWindow(A,B);if(G)G.src=MIN_IMG_URL;break;case WIN_STATE_NOR:E_normalWindow(A,B);var D=top.DxCache.getAttributeAsBoolean(A,"content","windowState");if(D==true)notifyNormalWin(A);if(G)normOut(G);break;case WIN_STATE_MAX:E_maxWindow(A);D=top.DxCache.getAttributeAsBoolean(A,"content","windowState");if(D==true)notifyMaxWin(A);if(G)G.src=MAX_IMG_URL;break;case WIN_STATE_CLS:notifyCloseWin(A);E_clsWindow(A);break;default:break}}catch($){window.status="updateWindowState: "+$.description}}function closeWindow($){if($==DESKTOP)return;notifyCloseWin($);E_clsWindow($)}function updateWindowStateFromServer(C,A){try{var E=E_clientModel.E_getWindow(C),H=E_clientModel.E_getWindow(E.strParentID),D=(H.bIsMDI==true)?true:false,G=(A==undefined?E.nState:A),B=E.isiframe,F=WatCore.getWindow(C,E);E.oldState=E.nState;switch(G){case WIN_STATE_MIN:E_minWindow(C,D);break;case WIN_STATE_NOR:E_normalWindow(C,D);break;case WIN_STATE_MAX2:E_normalWindow(C,D);$(E.ownerDocument).ready(function(){top.E_maxWindow(C)});break;case WIN_STATE_MAX:E_maxWindow(C);break;case WIN_STATE_CLS:notifyCloseWin(C);break;default:break}}catch(_){window.status="updateWindowState: "+_.description}}function CheckState(A,$){var _=A.document.readyState;if(_=="complete")top.E_maxWindow($)}function isAllWindowsAreReady(){var B=E_clientModel.E_getWindowIds(),C=true,E=0;try{for(E=0;E<B.E_size();E++){var A=B.E_get(E),_=E_clientModel.E_getWindow(A),D=WatCore.getWindow(A,_);if(D.E_winReady!=true){C=false;break}}}catch($){}return C}function centerWindow(B){var F=parseInt(window.document.body.clientWidth||window.document.documentElement.clientWidth),H=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight),C=E_clientModel.E_getWindow(B);if(C==null)return;if(C.nState==WIN_STATE_MAX)return;var E=getWrapper(C),A=parseInt(C.nNormalWidth),_=parseInt(C.nNormalHeight),D,G;if(F<=A)D=0;else D=(F-A)/2;if(H<=_)G=0;else G=(H-_)/2;var $=C.strParentID;if($!=DESKTOP)G=0;C.nNormalTop=G;C.nNormalLeft=D;E.style.top=G+"px";E.style.left=D+"px"}function topMostWindow($){var _=E_clientModel.E_getWindow($);if(_==null)return;var A=getWrapper(_);A.style.zIndex=10000}function emrLocationWindow(B){var F=parseInt(window.document.body.clientWidth||window.document.documentElement.clientWidth),H=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight),C=E_clientModel.E_getWindow(B);if(C==null)return;var E=getWrapper(C),A=parseInt(C.nNormalWidth),_=parseInt(C.nNormalHeight),D=parseInt(C.nNormalLeft),G=parseInt(C.nNormalTop);if(F<=(A+D))D=F-A;if(H<=(_+G+30))G=G-_+10;else G=G+30;var $=C.strParentID;if($!=DESKTOP)G=0;C.nNormalTop=G;C.nNormalLeft=D;E.style.top=G+"px";E.style.left=D+"px"}function leftTopWindow(A){var E=parseInt(window.document.body.clientWidth||window.document.documentElement.clientWidth),G=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight),B=E_clientModel.E_getWindow(A),D=getWrapper(B),_=parseInt(B.nNormalWidth),$=parseInt(B.nNormalHeight),C,F;C=0;F=0;B.watLocation=LEFT_TOP;B.nNormalTop=F;B.nNormalLeft=C;D.style.top=F+"px";D.style.left=C+"px"}function leftTopPushWindow(A){var E=parseInt(window.document.body.clientWidth||window.document.documentElement.clientWidth),G=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight),B=E_clientModel.E_getWindow(A),D=getWrapper(B),_=parseInt(B.nNormalWidth),$=parseInt(B.nNormalHeight),C,F;C=0;F=-$;B.watLocation=LEFT_TOP_PUSH;B.nNormalTop=F;B.nNormalLeft=C;D.style.top=F+"px";D.style.left=C+"px";D.style.display="none"}function leftBottomWindow(A){var E=parseInt(window.document.body.clientWidth||window.document.documentElement.clientWidth),G=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight),B=E_clientModel.E_getWindow(A),D=getWrapper(B),_=parseInt(B.nNormalWidth),$=parseInt(B.nNormalHeight),C,F;C=0;if(WatCore.taskbar!=null)F=G-$-28;else F=G-$;B.watLocation=LEFT_BOTTOM;B.nNormalTop=F;B.nNormalLeft=C;D.style.top=F+"px";D.style.left=C+"px"}function leftBottomPushWindow(A){var E=parseInt(window.document.body.clientWidth||window.document.documentElement.clientWidth),G=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight),B=E_clientModel.E_getWindow(A),D=getWrapper(B),_=parseInt(B.nNormalWidth),$=parseInt(B.nNormalHeight),C,F;C=0;F=G;B.watLocation=LEFT_BOTTOM_PUSH;B.nNormalTop=F;B.nNormalLeft=C;D.style.top=F+"px";D.style.left=C+"px"}function rightTopWindow(A){var E=parseInt(window.document.body.clientWidth||window.document.documentElement.clientWidth),G=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight),B=E_clientModel.E_getWindow(A),D=getWrapper(B),_=parseInt(B.nNormalWidth),$=parseInt(B.nNormalHeight),C,F;C=E-_;F=0;B.watLocation=RIGHT_TOP;B.nNormalTop=F;B.nNormalLeft=C;D.style.top=F+"px";D.style.left=C+"px"}function rightTopPushWindow(A){var E=parseInt(window.document.body.clientWidth||window.document.documentElement.clientWidth),G=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight),B=E_clientModel.E_getWindow(A),D=getWrapper(B),_=parseInt(B.nNormalWidth),$=parseInt(B.nNormalHeight),C,F;C=E-_;F=-$;B.watLocation=RIGHT_TOP_PUSH;B.nNormalTop=F;B.nNormalLeft=C;D.style.top=F+"px";D.style.left=C+"px"}function rightBottomWindow(A){var E=parseInt(window.document.body.clientWidth||window.document.documentElement.clientWidth),G=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight),B=E_clientModel.E_getWindow(A),D=getWrapper(B),_=parseInt(B.nNormalWidth),$=parseInt(B.nNormalHeight),C,F;C=E-_;if(WatCore.taskbar!=null)F=G-$-28;else F=G-$;B.watLocation=RIGHT_BOTTOM;B.nNormalTop=F;B.nNormalLeft=C;D.style.top=F+"px";D.style.left=C+"px"}function rightBottomPushWindow(A){var E=parseInt(window.document.body.clientWidth||window.document.documentElement.clientWidth),G=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight),B=E_clientModel.E_getWindow(A),D=getWrapper(B),_=parseInt(B.nNormalWidth),$=parseInt(B.nNormalHeight),C,F;C=E-_;F=G;B.watLocation=RIGHT_BOTTOM_PUSH;B.nNormalTop=F;B.nNormalLeft=C;D.style.top=F+"px";D.style.left=C+"px"}function pushWindow(_){var A=E_clientModel.E_getWindow(_);if(A==null)return;var $=A.watLocation;if($==RIGHT_BOTTOM)top.pushRightBottomWindow(_);else if($==RIGHT_TOP)top.pushRightTopWindow(_);else if($==LEFT_TOP)top.pushLeftTopWindow(_);else if($==LEFT_BOTTOM)top.pushLeftBottomWindow(_)}function pushRightTopWindow(_){var A=E_clientModel.E_getWindow(_),B=getWrapper(A),$=parseInt(A.nNormalHeight),C=parseInt(A.nNormalTop);if(C<=-$){C=-$;A.watLocation=RIGHT_TOP_PUSH;A.nNormalTop=C;B.style.top=C+"px"}else{C-=10;A.nNormalTop=C;B.style.top=C+"px";setTimeout("top.pushRightTopWindow('"+_+"')",50)}}function pushRightBottomWindow(_){var D=parseInt(window.document.body.clientHeight),A=E_clientModel.E_getWindow(_),B=getWrapper(A),$=parseInt(A.nNormalHeight),C=parseInt(A.nNormalTop);if(C>=D){C=D;A.watLocation=RIGHT_BOTTOM_PUSH;A.nNormalTop=C;B.style.top=C+"px";B.style.display="none"}else{C+=10;A.nNormalTop=C;B.style.top=C+"px";setTimeout("top.pushRightBottomWindow('"+_+"')",50)}}function pushLeftTopWindow(_){var A=E_clientModel.E_getWindow(_),B=getWrapper(A),$=parseInt(A.nNormalHeight),C=parseInt(A.nNormalTop);if(C<=-$){C=-$;A.watLocation=LEFT_TOP_PUSH;A.nNormalTop=C;B.style.top=C+"px"}else{C-=10;A.nNormalTop=C;B.style.top=C+"px";setTimeout("top.pushLeftTopWindow('"+_+"')",50)}}function pushLeftBottomWindow(_){var D=parseInt(window.document.body.clientHeight),A=E_clientModel.E_getWindow(_),B=getWrapper(A),$=parseInt(A.nNormalHeight),C=parseInt(A.nNormalTop);if(C>=D){C=D;A.watLocation=LEFT_BOTTOM_PUSH;A.nNormalTop=C;B.style.top=C+"px"}else{C+=10;A.nNormalTop=C;B.style.top=C+"px";setTimeout("top.pushLeftBottomWindow('"+_+"')",50)}}function popWindow(_){var A=E_clientModel.E_getWindow(_);if(A==null)return;var $=A.watLocation;if($==RIGHT_BOTTOM_PUSH)top.popRightBottomWindow(_);else if($==RIGHT_TOP_PUSH)top.popRightTopWindow(_);else if($==LEFT_TOP_PUSH)top.popLeftTopWindow(_);else if($==LEFT_BOTTOM_PUSH)top.popLeftBottomWindow(_)}function popRightTopWindow(_){var A=E_clientModel.E_getWindow(_),B=getWrapper(A),$=parseInt(A.nNormalHeight),C=parseInt(A.nNormalTop);if(C>=0){C=0;A.watLocation=RIGHT_TOP;A.nNormalTop=C;B.style.top=C+"px"}else{C+=10;A.nNormalTop=C;B.style.top=C+"px";setTimeout("top.popRightTopWindow('"+_+"')",50)}}function popRightBottomWindow(_){var D=parseInt(window.document.body.clientHeight),A=E_clientModel.E_getWindow(_),B=getWrapper(A);B.style.display="block";var $=parseInt(A.nNormalHeight),C=parseInt(A.nNormalTop);if(C<=D-$){C=D-$;A.watLocation=RIGHT_BOTTOM;A.nNormalTop=C;B.style.top=C+"px"}else{C-=10;A.nNormalTop=C;B.style.top=C+"px";setTimeout("top.popRightBottomWindow('"+_+"')",50)}}function popLeftTopWindow(_){var A=E_clientModel.E_getWindow(_),B=getWrapper(A),$=parseInt(A.nNormalHeight),C=parseInt(A.nNormalTop);if(C>=0){C=0;A.watLocation=LEFT_TOP;A.nNormalTop=C;B.style.top=C+"px"}else{C+=10;A.nNormalTop=C;B.style.top=C+"px";setTimeout("top.popLeftTopWindow('"+_+"')",50)}}function popLeftBottomWindow(_){var D=parseInt(window.document.body.clientHeight),A=E_clientModel.E_getWindow(_),B=getWrapper(A),$=parseInt(A.nNormalHeight),C=parseInt(A.nNormalTop);if(C<=D-$){C=D-$;A.watLocation=LEFT_BOTTOM;A.nNormalTop=C;B.style.top=C+"px"}else{C-=10;A.nNormalTop=C;B.style.top=C+"px";setTimeout("top.popLeftBottomWindow('"+_+"')",50)}}function setProperty(D,_,H){try{var E=E_clientModel.E_getWindow(D),B=E.isiframe,C=B=="true"?E.contentWindow.document:document,G=getWrapper(E),$=getInnerWrapper(E),F=C.getElementById(WIN_CONTENTPANE);switch(_){case HAS_MENUBAR:E.bHasMenubar=H;break;case HAS_TOOLBAR:E.bHasToolbar=H;break;case HAS_STATUSBAR:E.bHasStatusBar=H;break;case WINDOW_RECT:E.nNormalTop=H.top;E.nNormalLeft=H.left;E.nNormalWidth=(H.width<MIN_WIDTH?MIN_WIDTH+2*PADDING:H.width);E.nNormalHeight=(H.height<MIN_NORMAL_HEIGHT?MIN_NORMAL_HEIGHT+2*PADDING:H.height);if(E.bInited&&E.nState==WIN_STATE_NOR)E_normalWindow(D,H.bIsMdiChild);break;case ALLOW_RESIZE:E.bAllowResize=H;break;case FRAME_BORDER:if(!E.bIsMDI){if(H==BORDERSTYLE_NONE||H==BORDERSTYLE_FIXED_SINGLE||H==BORDERSTYLE_FIXED_DIALOG)E.borderStyle="none";else E.borderStyle="solid";if(E.nState==WIN_STATE_NOR||E.nState==WIN_STATE_MAX){F.style.borderStyle=E.borderStyle;G.style.borderStyle=(H==BORDERSTYLE_NONE?"none":"solid");G.style.backgroundColor=(H==BORDERSTYLE_NONE?"transparent":"threedface");$.style.borderStyle=(H==BORDERSTYLE_NONE?"none":"solid");$.style.backgroundColor=(H==BORDERSTYLE_NONE?"transparent":"threedface");fitContentPaneSize(E)}E.frameBorderStyle=H}break;case FRAME_BACKGRDCOLOR:C.body.style.backgroundColor=H;F.style.backgroundColor=H;break;case NOTIFY_SERVER_ON_CLOSED:E.bNotifyServer=H;break;case NOTIFY_SERVER_ON_ACTIVED:E.bNotifyServerOnActived=H;break;default:break}}catch(A){}}function destroyLoadingDialog(D){try{var E=E_clientModel.E_getWindow(D),H=getWrapper(E),_=getInnerWrapper(E),G=E_clientModel.E_getWindow(E.strParentID),C=WatCore.getWindowDoc(E.strParentID,G),$=C.getElementById(PRE_WIN_TITLE+D),B=C.getElementById(PRE_LOADING_RECT+D),F=(E.nTitleState>=TITLE_DIS_CLSBUT?E.nTitleState-TITLE_DIS_CLSBUT:E.nTitleState);if(F!=TITLE_NULL)$.style.display="inline"}catch(A){}}function E_getController(){return top.frames.E_cf}function E_shutdown($){window.cancelBubble=true;if(top.isIE)window.document.body.innerHTML="";else window.document.write("Exit System.");window.location=$}function E_DebugPage($){top.window.document.write($)}function initWindow(E,I){var F,_,D;try{_=E_clientModel.E_getWindow(E);var C=_.isiframe,F=WatCore.getWindow(E,_);_.bInited=true;if(E!=DESKTOP){_.style.display="inline";if(C=="true")D=F.document;else D=document;if(_.bHasMenubar)_.nMenuBarHeight=24;if(_.bHasStatusBar)_.nStatusBarHeight=24;if(_.bHasToolbar)if(C=="true")_.nToolbarHeight=D.getElementById("toolbar").offsetHeight;else _.nToolbarHeight=$("#toolbar",_).get(0).offsetHeight;if(_.bIsMDI)if(C=="true")_.strHTMLMenubar=D.getElementById("menubar").innerHTML;else _.strHTMLMenubar=$("#menubar",_).get(0).innerHTML;_.borderStyle=D.getElementById("content").style.borderLeftStyle;if(I)E_activeWindow(E,null,"4444");var J;J=getWrapper(_);var B=_.strParentID,G=E_clientModel.E_getWindow(B),H=(B!=DESKTOP?G.contentWindow:G),H=WatCore.getWindow(B,G);if(window.attachEvent){J.attachEvent("onmousemove",H.EventRouter.agentForCaptureResizingHandler);J.attachEvent("onmousedown",H.EventRouter.agentForBeginResize)}else{J.addEventListener("mousemove",H.EventRouter.agentForCaptureResizingHandler,false);J.addEventListener("mousedown",H.EventRouter.agentForBeginResize,false)}}if(window.attachEvent);}catch(A){}}function beginResizeWindow(G,F){var B=(isIE?F.srcElement:F.target),I=B.id.indexOf(PRE_INNER_WAP);try{if(I==0){var E=B.id.substring(PRE_INNER_WAP.length),A=E_clientModel.E_getWindow(E);if(A.nState!=WIN_STATE_NOR||A.bAllowResize==false)return;var H=E_clientModel.E_getWindow(A.strParentID),D=WatCore.getWindowDoc(A.strParentID,H),_=D.getElementById(DUMMY_BORDER),J=getWrapper(A);oResizeWin.resize=true;oResizeWin.targetWindow=E;_.style.zIndex=getMaxZIndex(A.strParentID);_.style.visibility="visible";_.style.top=J.style.top;_.style.left=J.style.left;_.style.width=J.style.width;_.style.height=J.style.height;$("body").attr("onselectstart","return false");if(window.attachEvent){oResizeWin.nPreClientX=F.clientX+D.body.scrollLeft;oResizeWin.nPreClientY=F.clientY+D.body.scrollTop;_.setCapture();_.attachEvent("onmousemove",G.EventRouter.agentForResizeWinInIE);_.attachEvent("onmouseup",G.EventRouter.agentForEndResizeWinInIE)}else{oResizeWin.nPreClientX=F.pageX;oResizeWin.nPreClientY=F.pageY;G.document.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);G.document.addEventListener("mousemove",G.EventRouter.agentForDispatchDocumentEvent,false);G.document.addEventListener("mouseup",G.EventRouter.agentForDispatchDocumentEvent,false);showSubMaskLayersOfWindow(A.strParentID)}}}catch(C){}}function dispatchDocumentEvent(D,C){var _=C.target,B=D.document;try{switch(C.type){case"mousedown":break;case"mouseup":if(oDraggingTitle.drag||oResizeWin.resize){B.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);B.removeEventListener("mousemove",D.agentForDspatchDocumentEvent,false);B.removeEventListener("mouseup",D.agentForDispatchDocumentEvent,false);hiddenMaskLayers();if(oDraggingTitle.drag){dragWindow(C,oDraggingTitle,B);oDraggingTitle.drag=false}else if(oResizeWin.resize){endResizingWindow(oResizeWin,C);oResizeWin.resize=false;oResizeWin.targetWindow="";$("body").attr("onselectstart","return true")}}break;case"mousemove":if(oDraggingTitle.drag)dragWindow(C,oDraggingTitle,B);else if(oResizeWin.resize)resizingWindow(oResizeWin,C);break;default:break}}catch(A){}}function beginDragTitle(C,E,D){var _=E_clientModel.E_getWindow(C),F=E_clientModel.E_getWindow(_.strParentID),B=WatCore.getWindowDoc(_.strParentID,F),$=B.getElementById(DUMMY_BORDER);if(_.nState==WIN_STATE_MAX)return;try{if(window.attachEvent){$.setCapture();$.attachEvent("onmousemove",E.EventRouter.agentForDraggingTitleInIE);$.attachEvent("onmouseup",E.EventRouter.agentForEndDraggingTitleInIE)}else{E.document.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);E.document.addEventListener("mousemove",E.EventRouter.agentForDispatchDocumentEvent,false);E.document.addEventListener("mouseup",E.EventRouter.agentForDispatchDocumentEvent,false);showSubMaskLayersOfWindow(_.strParentID)}oDraggingTitle.targetID=C;dragWindow(D,oDraggingTitle,E.document)}catch(A){window.status="beginDragTitle:"+A.description}}function endDraggingTitleInIE(D,C){var _=E_clientModel.E_getWindow(oDraggingTitle.targetID),E=E_clientModel.E_getWindow(_.strParentID),B=WatCore.getWindowDoc(_.strParentID,E),$=B.getElementById(DUMMY_BORDER);try{dragWindow(C,oDraggingTitle,D.document);oDraggingTitle.drag=false;if(top.isIE){$.detachEvent("onmousemove",D.EventRouter.agentForDraggingTitleInIE);$.detachEvent("onmouseup",D.EventRouter.agentForEndDraggingTitleInIE);$.releaseCapture()}}catch(A){}}function dbClickTitle(A){var $=E_clientModel.E_getWindow(A);try{if($.nState!=WIN_STATE_MAX&&$.nTitleState!=TITLE_ONLY_HAS_MIN&&$.nTitleState!=TITLE_ONLY_HAS_CLS){if($.nState==WIN_STATE_MIN)updateWindowState(A,$.oldState);else updateWindowState(A,WIN_STATE_MAX)}else updateWindowState(A,WIN_STATE_NOR)}catch(_){}}function activeMe(A,B){try{if(B==true){var $=E_clientModel.E_getWindow(A);$.contentWindow.fireWindowEvent(top.WindowEvent.WINDOW_CLICKOUTER)}E_activeWindow(A,null,"2")}catch(_){}}function operateMdiChildWhenMax(B,F){var D=E_clientModel.E_getWindowIds(),$=E_clientModel.E_getWindow(B),E=0;try{for(E=0;E<D.E_size();E++){var _=D.E_get(E),C=E_clientModel.E_getWindow(_);if(C.strParentID==F&&_!=B&&C.nState==WIN_STATE_MAX)E_normalWindow(_,true)}}catch(A){}}function operateMdiChild(C,B){var E=E_clientModel.E_getWindowIds(),$=E_clientModel.E_getWindow(C),F=0;try{for(F=0;F<E.E_size();F++){var _=E.E_get(F),D=E_clientModel.E_getWindow(_);if(D.strParentID==C&&D.nState==WIN_STATE_MAX)updateWindowState(_,B)}}catch(A){}}function captureResizingHandler(D,C){try{var _=(!isIE?C.target:C.srcElement),E=_.id.indexOf(PRE_INNER_WAP);if(E==0){var B=_.id.substring(PRE_INNER_WAP.length),$=E_clientModel.E_getWindow(B);if($.nState!=WIN_STATE_NOR||!isActiving(B)||$.bAllowResize==false){_.style.cursor="default";return}changeResizeCursor(_,C)}}catch(A){}}function endResizeWinInIE(E,D){try{var A=E_clientModel.E_getWindow(oResizeWin.targetWindow),F=E_clientModel.E_getWindow(A.strParentID),C=WatCore.getWindowDoc(A.strParentID,F),_=C.getElementById(DUMMY_BORDER);$("body").attr("onselectstart","return true");endResizingWindow(oResizeWin,D);_.detachEvent("onmousemove",E.EventRouter.agentForResizeWinInIE);_.detachEvent("onmouseup",E.EventRouter.agentForEndResizeWinInIE);_.releaseCapture()}catch(B){}}function getCavansRect(B){var _,D,C=new Object();C.width=-1;C.height=-1;try{if(typeof(B)=="string"){_=E_clientModel.E_getWindow(B);D=WatCore.getWindowDoc(B,_)}else D=B.document;var E=D.getElementById(WIN_CANANS);C.width=(!isIE)?$(E).width():$(D.documentElement).width()-2;C.height=(!isIE)?$(E).height():$(D.documentElement).height()-2}catch(A){}return C}function getMainWindow(A){var $,B,C=null;try{if(A!=DESKTOP){$=E_clientModel.E_getWindow(A);B=E_clientModel.E_getWindow($.strParentID);C=(B.bIsMDI==true?B.contentWindow:$.contentWindow)}}catch(_){}return C}function scrollPos(C,F,E){try{var $=E_clientModel.E_getWindow(C),A=$.isiframe,B=WatCore.getWindowDoc(C,$),D=WatCore.getWindowContent($,B);D.scrollTop=E;D.scrollLeft=F}catch(_){}}function notifyCloseWin(_){try{WatCore.notifyCloseWindow(_)}catch($){}}function notifyActiveWin(_){try{WatCore.notifyActiveWindow(_)}catch($){}}function notifyNormalWin(_){try{WatCore.notifyNormalWindow(_)}catch($){}}function notifyMaxWin(_){try{WatCore.notifyMaxWindow(_)}catch($){}}function notifyResizeWin(_){try{WatCore.notifyResizeWindow(_)}catch($){}}function E_refreshMenu(C){var A=E_clientModel.E_getWindow(C),$=A.strParentID;if(A.bIsModal)return;try{if($!=DESKTOP&&false){var E=E_clientModel.E_getWindow($),D=E.contentWindow.document.getElementById("menubar"),_=A.contentWindow.document.getElementById("menubar");if(!_.refreshed){_.refreshed="yes";if(!A.bIsModal)if(trim(_.innerHTML).length!=0){if(D.innerHTML!=_.innerHTML)D.innerHTML=_.innerHTML}else if(D.innerHTML!=E.strHTMLMenubar)D.innerHTML=E.strHTMLMenubar;E.nMenuBarHeight=24;D.offsetHeight=24}}}catch(B){}}function fireWindowEvent(_){try{top.WindowEvent.fireWindowEvent(_)}catch($){MsgConsole.displayErr("fireWindowEvent:"+$.description)}}function E_windowShowToFront(C){var _=E_clientModel.E_getWindow(C),K=E_clientModel.E_getWindow(E_clientModel.E_activingWinID),H=getWrapper(_),M,D,$=_.strParentID,G=E_clientModel.E_getWindow($),E=WatCore.getWindowDoc($,G);fireWindowFocusEvent(C);E_refreshMenu(C);try{if(E_clientModel.E_activingWinID!=""){var P=E_clientModel.E_getWindow(E_clientModel.E_activingWinID);changeAppearanceOfInactiveWindow(P,true)}H.style.zIndex=getMaxZIndex($);if($!=DESKTOP){var I=E_clientModel.E_getWindow(DESKTOP),Q,O,L=getWrapper(G);L.style.zIndex=getMaxZIndex(G.strParentID);Q=I.document.getElementById(PRE_WIN_TLT_CAPTION_CONTAINER+$);if(Q!=undefined)Q.style.backgroundColor="";O=I.document.getElementById(PRE_WIN_TLT_BG+$);if(O!=undefined)O.style.visibility="visible";var B=WatCore.getWindow($,G);B.fireWindowEvent(top.WindowEvent.WINDOW_ACTIVE);var N=E.getElementById("menubar"),F=WatCore.getWindowDoc(C,_),J=F.getElementById("menubar");if(!_.bIsModal&&false)if(trim(J.innerHTML).length!=0)N.innerHTML=J.innerHTML;else N.innerHTML=G.strHTMLMenubar;G.nMenuBarHeight=N.offsetHeight;fitContentPaneSize(G)}M=E.getElementById(PRE_WIN_TLT_CAPTION_CONTAINER+C);if(M!=undefined)M.style.backgroundColor="";D=E.getElementById(PRE_WIN_TLT_BG+C);if(D!=undefined)D.style.visibility="visible";top.fireWindowEvent(top.WindowEvent.WINDOW_ACTIVE);E_clientModel.E_activingWinID=C;if(_.bNotifyServerOnActived)top.frames.E_cf.Controller.E_notifyServerWindowsActived(C)}catch(A){}}function __p(_,C,D,B){var A=E_clientModel.E_getWindow(_),$=WatCore.getWindowDoc(_,A);switch(D){case top.DC.BACKGROUND:$.getElementById(C).style.backgroundColor=B;break;case top.DC.FOREGROUND:$.getElementById(C).style.color=B;break;case top.DC.SHOWSCROLLBAR:$.getElementById(C).style.color=B;break;$:break}}function render($,E,A){var D=E_clientModel.E_getWindow($),B=WatCore.getWindowDoc($,D),F=A.getAttribute("cid"),_=A.selectNodes("*");for(var H=0;H<_.length;H++){var G=_[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?_[H].text:_[H].textContent;switch(G){case top.DC.BK_IMG:B.getElementById(F).style.backgroundImage="url('"+C+"')";break;case top.DC.BACKGROUND:B.getElementById(F).style.backgroundColor=C;break;case top.DC.FOREGROUND:B.getElementById(F).style.color=C;break;case top.DC.SHOWSCROLLBAR:B.getElementById(F).style.overflow=C;break;$:break}}}function addComponent(B,_,$){var D=E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,D),A;if(_==0)A=WatCore.getWindowContent(D,C);else A=C.getElementById(_);if(A!=null)A.insertAdjacentHTML("BeforeEnd",$)}function removeComponent(_,C){var B=E_clientModel.E_getWindow(_),A=WatCore.getWindowDoc(_,B),$=A.getElementById(C);if($!=null){$.innerHTML="";$.parentElement.removeChild($)}};function WebForm(){}WebForm.render=function(D,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=top.isIE?_[G].text:_[G].textContent;switch(F){case top.DC.WIDTH:top.E_getObject(D,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject(D,E,C).style.height=B;break;case top.DC.TRANSPARENT:if(B=="true"){var $=top.E_getObject(D,E,C);$.oldColor=$.style.backgroundColor;$.style.backgroundColor="transparent"}else{$=top.E_getObject(D,E,C);if($.oldColor==null)$.style.backgroundColor="#ffffff";else $.style.backgroundColor=$.oldColor}break;case top.DC.BK_IMG:top.E_getObject(D,E,C).style.backgroundImage="url('"+B+"')";break;case top.DC.VISIBLE:top.E_getObject(D,E,C).style.visibility=B;break;case top.DC.BORDERSTYLE:top.E_getObject(D,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject(D,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject(D,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject(D,E,C).style.left=B;break;case top.DC.Y:top.E_getObject(D,E,C).style.top=B;break;case top.DC.BACKGROUND:top.E_getObject(D,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject(D,E,C).style.color=B;break;default:break}}};function MsgConsole(){}MsgConsole.displayMsg=function($){window.status=$+"message object in Queue"};MsgConsole.displayErr=function($){};MsgConsole.displayNormal=function($){};var READY_STATE_UNINITIALIZED=0,READY_STATE_LOADING=1,READY_STATE_LOADED=2,READY_STATE_INTERACTIVE=3,READY_STATE_COMPLETE=4,wRequest=null,wARequest=null,msgQueue=new Array(),activeState=true,activeValueSendState=true,postDom=null,asynpostDom=null,sequence=null,watLocation=null,fpwatLocation=null,watLocation2=null,isDebugger,EVENTROUTER="EventRouter",sequenceid=0,eventStr=null,stateIsReady=true,LOADING_ID="w_loading",MASK_ID="w_maskID",LOADING_LEFT_IMAGE="/resources/component/loading_left.gif",LOADING_MID_IMAGE="/resources/component/loading_mid.gif",LOADING_RIGHT_IMAGE="/resources/component/loading_right.gif",LOADING_IMAGE="/resources/component/loading.gif",msgContent,amsgContent,showflag=0,taskbar,piaofouleftbar,piaofoutopbar,piaofourightbar,StyleMenuHeader,msginfo,lodingobjmask=null,lodingobj=null,maskloadingobj=null,browsertype,browserversion,quickcallnum=0,browserVersion=window.navigator.userAgent.toUpperCase(),popqvalue,ostype,osdigits;function WatCore(){}WatCore.init=function(B){postDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>"+sequence+"</sequenceid></client>");asynpostDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>"+sequence+"</sequenceid></client>");watLocation=window.location.href;fpwatLocation=window.location.href;var $=watLocation.lastIndexOf("/");watLocation2=watLocation.substring(0,$);StyleMenuHeader="<head>"+"<link href='"+watLocation2+"/emr/menuarea.css' type='text/css' rel='stylesheet'>"+"</head>"+"<body scroll='no' onConTextMenu='event.returnValue=false;'>";var _=watLocation.indexOf("?");if(_>0){watLocation+="&WAT=CONTROLLER";fpwatLocation+="&WAT=FPCONTROLLER"}else{watLocation+="?WAT=CONTROLLER";fpwatLocation+="?WAT=FPCONTROLLER"}var A=getBrowserInfo();browsertype=A[0];browserversion=(A[1]+"").replace(/[^0-9.]/ig,"");ostype=detectOS();osdigits=digits();isDebugger=B;top.EventRouter.init();E_initClientModel()};var domParser;WatCore.stringtoxml=function(_,A){var $=_;if(typeof ActiveXObject!="undefined"||top.isIE){if(A==null){A=new ActiveXObject("Microsoft.XMLDOM");A.async=false}A.loadXML($)}else{if(!domParser)domParser=new DOMParser();A=null;A=domParser.parseFromString($,"text/xml")}return A};WatCore.xmltostring=function(_){var $=null;if(typeof ActiveXObject!="undefined"||top.isIE)$=_.xml;else $=(new XMLSerializer()).serializeToString(_);return $};function getBrowserInfo(){var D=navigator.userAgent.toLowerCase(),A=/msie [\d.]+;/gi,_=/firefox\/[\d.]+/gi,B=/chrome\/[\d.]+/gi,C=/safari\/[\d.]+/gi,$=new Array();if(D.indexOf("msie")>0){$[0]="msie";$[1]=D.match(A)}if(D.indexOf("firefox")>0){$[0]="firefox";$[1]=D.match(_)}if(D.indexOf("chrome")>0){$[0]="chrome";$[1]=D.match(B)}if(D.indexOf("safari")>0&&D.indexOf("chrome")<0){$[0]="safari";$[1]=D.match(C)}return $}WatCore.incrementSequenceId=function(){sequenceid++;return sequenceid};WatCore.timerAsynCall=function(_){var $=(_.length>1877)?"POST":"GET";wARequest=WatCore.getXMLHttp();wARequest.onreadystatechange=WatCore.timerCoreProcess;wARequest.open($,watLocation,true);wARequest.setRequestHeader("Content-Type","text/plain UTF-8");wARequest.send(_)};WatCore.sendAsynCall=function(_,$){var A=new AsynCallObj();A.sendAsynCall(_,$)};WatCore.sendAsynCallhidden=function($){var _=new AsynCallObjHidden();_.sendAsynCall($)};WatCore.checkContextMenu=function(D,A){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),$=A.srcElement.tagName;if($=="INPUT")return true;else if($=="TEXTAREA")return true;else if(top.isIE){if(B.selection.type!="Control"){var _=B.selection.createRange().text;if(_.length>0)return true}else return false}else return false;return false};WatCore.setLodingInfo=function(A){if(!document.getElementById("w_loading")){var C=watLocation,D=watLocation.lastIndexOf("/");C=watLocation.substring(0,D);var J=document.createElement("div"),G=$(J);G.click(top.WatCore.setActiveState2);G.html("<img width=100% height=100% src="+MSK_IMG_URL+"></img>");G.attr("id","w_loading");G.css({position:"absolute",width:"180px",height:"40px",background:"transparent",overflow:"hidden",visibility:"visible"});G.width("180px");G.height("40px");G.css("left","0px");G.css("top","0px");$(document.body).append(G);var _=document.createElement("div"),B=$(_);G.append(B);B.css({position:"absolute",background:"lightyellow",border:"1px solid #b8ced7"});B.width("180px");B.height("40px");B.css("left","0px");B.css("top","0px");var H=document.createElement("table");H.border="0";H.style.width="100%";H.style.height="100%";var I=H.insertRow(),F=I.insertCell(),E=document.createElement("img");E.src=C+LOADING_IMAGE;E.width=39;E.height=39;F.appendChild(E);F=I.insertCell();F.innerText="\u7f51\u7edc\u901a\u4fe1\u4e2d......";F.id=LOADING_ID+"_text";F.style.textAlign="left";F.style.verticalAlign="middle";F.style.color="#646464";F.style.fontSize=14;_.appendChild(H);lodingobj=J}F=maskdiv.ownerDocument.getElementById(LOADING_ID+"_text");if(F!=null)F.innerText=top.isIE?A.text:A.textContent};WatCore.loadingmaskclick=function(){event.cancelBubble=true;return false};WatCore.showLoadingDialog=function(){var N=lodingobj,H=maskloadingobj,I,J;if(N==null){var C=watLocation,E=watLocation.lastIndexOf("/");C=watLocation.substring(0,E);N=document.createElement("div");H=document.createElement("div");I=$(N);J=$(H);I.click(function(){top.WatCore.setActiveState2()});I.html("<img width=100% height=100% src="+MSK_IMG_URL+"></img>");J.html("<img width=100% height=100% src="+MSK_IMG_URL+"></img>");J.css({"position":"absolute","top":"0px","left":"0px","width":"150%","height":"150%","overflow":"hidden","background-color":"red","border":"1px solid #ff0000","visibility":"visible","filter":"alpha(opacity:0)","opacity":"0"});I.attr("id","w_loading");I.css({position:"absolute",background:"transparent",overflow:"hidden",visibility:"visible"});I.width("180px");I.height("42px");I.css("left","0px");I.css("top","0px");document.body.appendChild(N);document.body.appendChild(H);var B=document.createElement("div");N.appendChild(B);var D=$(B);D.css({"position":"absolute","background":"lightyellow","border":"1px solid #b8ced7"});D.width("178px");if(top.isIE)D.height("38px");else D.height("38px");D.css("left","0px");D.css("top","0px");D.attr("onselectstart","return false;");var P=document.createElement("table"),F=$(P);F.css({border:"0px"});F.width("100%");F.height("100%");F.attr("id","w_loading_table");var M=P.insertRow(-1),G=M.insertCell(-1),O=document.createElement("img"),A=$(O);A.attr("src",C+LOADING_IMAGE);A.width("34px");A.height("34px");A.attr({"width":"34px","height":"34px"});G.appendChild(O);G=M.insertCell(-1);var _=$(G);G.innerText="\u7f51\u7edc\u901a\u4fe1\u4e2d......";_.attr("id",LOADING_ID+"_text");_.css({"textAlign":"left","verticalAlign":"middle","color":"#646464","fontSize":"14px"});B.appendChild(P);lodingobj=N;maskloadingobj=H}else{I=$(N);J=$(H)}var L=parseInt(document.body.clientWidth||document.documentElement.clientWidth)-122,K=2;J.css("zIndex","9990");J.show();I.css("zIndex","10000");I.focus();I.show();L=(parseInt(document.body.clientWidth||document.documentElement.clientWidth)-parseInt(N.style.width))/2,K=(parseInt(document.body.clientHeight||document.documentElement.clientHeight)-parseInt(N.style.height))/2;I.css({"top":K+"px","left":L+"px"})};WatCore.hiddenLoadingDialog=function(){var _=maskloadingobj;if(_!=null)$(_).hide();var A=lodingobj;if(A!=null)$(A).hide()};WatCore.doend=function($){var _=$.readyState;if(_==4){activeState=true;activeValueSendState=true}};WatCore.sendSynCallByFp=function(){var $=new SynCallObj();$.sendSynCall(msgContent,fpwatLocation)};WatCore.sendSynCall=function(){var $=new SynCallObj();$.sendSynCall(msgContent,watLocation);msgContent=null};WatCore.setActiveState=function(){if(showflag==0||showflag<0){WatCore.hiddenLoadingDialog();activeState=true;activeValueSendState=true;msginfo="";showflag=0}else if(showflag>0)showflag=showflag-1};WatCore.increaseShowflag=function(){showflag=showflag+1};WatCore.setActiveState2=function(){WatCore.hiddenLoadingDialog();activeState=true;activeValueSendState=true;msginfo="";showflag=0};WatCore.errorProcess=function(A){var C=A.selectNodes("response/content")[0];if(C==null){WatCore.hiddenLoadingDialog();return}var _=C.getAttribute("id");if(_=="1"){stateIsReady=false;alert("\u5e94\u7528\u4f1a\u8bdd\u8d85\u65f6\uff01");WatCore.hiddenLoadingDialog();window.document.location=window.location.href}else if(_=="2"){var B=top.isIE?C.text:C.textContent;WatCore.hiddenLoadingDialog();if(B==""){window.opener=null;window.close()}else{WatCore.openNewWindow(B);window.opener=null;window.close()}}else if(_=="3"){var $=top.isIE?C.text:C.textContent;WatCore.hiddenLoadingDialog();alert($);if($=="\u5f53\u524d\u5e10\u53f7\u5df2\u7ecf\u5728\u5176\u4ed6\u5730\u65b9\u767b\u5f55\uff0c\u60a8\u5c06\u88ab\u8feb\u4e0b\u7ebf")window.document.location=window.location.href}else if(_=="4")WatCore.hiddenLoadingDialog();else{stateIsReady=false;alert("\u672a\u77e5\u5f02\u5e38\uff0c\u8bf7\u91cd\u542f\u5e94\u7528\uff01");WatCore.hiddenLoadingDialog();window.document.location=watLocation2+"/start"}};WatCore.closeBrowser=function(_,A){if(A==""){var $=confirm("\u662f\u5426\u9000\u51fa\u7cfb\u7edf");if($){WatCore.notifyCloseAppByCloseBrowser(_,A);window.opener=null;window.close()}}else{$=confirm("\u662f\u5426\u6ce8\u9500\u7528\u6237");if($){WatCore.openWindow(A);window.opener=null;window.close()}}};WatCore.openNewWindow=function(_){var $=_.split("?");if($.length==1)WatCore.openWindow($[0]);else if($.length==2)WatCore.openPostWindow($[0],$[1]);else alert("url is error")};WatCore.openPostWindow=function(D,_){var $=document.createElement("form");$.id="tempForm1";$.method="post";$.action=D;$.target="_blank";var B=_.split("&");for(var E=0;E<B.length;E++){var A=B[E].split("=");if(A.length==2){var C=document.createElement("input");C.type="hidden";C.name=A[0];C.value=A[1];$.appendChild(C)}}if(window.attachEvent)$.attachEvent("onsubmit",function(){WatCore.openWindow2()});else $.addEventListener("submit",function(){WatCore.openWindow2()},false);document.body.appendChild($);$.fireEvent("onsubmit");$.submit();document.body.removeChild($)};WatCore.openWindow2=function(){var $=screen.availWidth,B=screen.availHeight,C=1,_=0;if($>1024){$=1024;B=768;C=Math.floor((screen.availHeight-B)/2);_=Math.floor((screen.availWidth-$)/2)}var A=window.open("about:blank","_self","width="+$+",height="+B+",toolbar=yes,location=yes,directories=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes,top=0,left=0")};WatCore.openWindow=function(C){var $=screen.availWidth,B=screen.availHeight,D=1,_=0;if($>1024){$=1024;B=768;D=Math.floor((screen.availHeight-B)/2);_=Math.floor((screen.availWidth-$)/2)}var A=window.open(C,"_blank","width="+$+",height="+B+",toolbar=yes,location=yes,directories=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes,top=0,left=0")};WatCore.getXMLHttp=function(){var $=null;if(typeof ActiveXObject!="undefined")$=new ActiveXObject("Microsoft.XMLHTTP");else if(window.XMLHttpRequest)$=new XMLHttpRequest();return $};WatCore.coreProcess=function(){var _=wRequest.readyState,$=null;activeState=true;activeValueSendState=true;msginfo="";if(_==READY_STATE_COMPLETE)WatCore.process(wRequest.responseXML)};WatCore.timerCoreProcess=function(){var _=wARequest.readyState,$=null;msginfo="";if(_==READY_STATE_COMPLETE)WatCore.asynprocess(wARequest.responseXML)};WatCore.process=function($){if(WatCore.parseXML($))WatCore.setActiveState();else{activeState=true;activeValueSendState=true}initflag=true;$=null};WatCore.asynprocess_=function($){WatCore.parseXML($);initflag=true};WatCore.asynprocess=function($){WatCore.parseXML($);WatCore.setActiveState();initflag=true;$=null};WatCore.parseXML=function(_){try{if(_.documentElement==null)return;var B=new Date();popqvalue="@wat@";var A=_.documentElement.selectNodes("commands/*");if(A.length>0)WatCore.execCommand(A,_);WatCore.render(_)}catch($){}return true};WatCore.jsFunctionCall=function(A,H,E,G,D){var C=E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,C);if(G=="setFocus"){var B=top.E_getObject(A,E,_),F=B.getAttribute("jsn"),$=window[F];if($&&$.setFocus)$.setFocus(A,E,_,D)}};WatCore.render=function(K){var H=new Date();try{var A=null,E=null,C=K.documentElement.selectNodes("changes/*"),F=C.length,B=null,N=null,I=null,H=new Date();for(var J=0;J<F;J++){try{E=C[J];B=E.getAttribute("wid");var L=E_clientModel.E_getWindow(B);if(L!=null){var D=WatCore.getWindowDoc(B,L);N=E.selectNodes("control");var $=N.length;for(var G=0;G<$;G++){I=N[G];strConType=I.getAttribute("type");if(strConType=="")continue;A=window[strConType];try{if(A&&A.render){if(strConType=="WatWebContainerTab")A.render(B,D,I,K);else if(strConType=="DxQQOutlookBar")A.render(B,D,I,K);else if(strConType=="WatWebContainerPage")A.render(B,D,I,K);else if(strConType=="DxTaskBar")A.render(B,D,I,K);else{H=new Date();A.render(B,D,I);end=new Date()}}else if(strConType=="Window")window.render(B,D,I)}catch(_){}}var M=E.selectNodes("scriptcommand");if(M[0]!=null)top.WatCore.execInitScript(B,top.isIE?M[0].text:M[0].textContent)}}catch(_){}}end=new Date()}catch(_){}};WatCore.execCommand=function(B,I){var K=B.length,L=null,F=null;for(var G=0;G<K;G++){L=B[G];var E=L.getAttribute("ctype");if(E=="OPEN"){try{var A=L.getAttribute("wid"),$=I.selectSingleNode("server/templates/template[@tid='"+A+"']");WatCore.execOpenWindowCommand(L,$)}catch(_){}}else if(E=="CLOSE"){A=L.getAttribute("wid");try{WatCore.execCloseWindowCommand(A)}catch(_){}}else if(E=="PAGE_SHOW"){A=L.getAttribute("wid");try{Desktop.ShowPage(A,I.selectSingleNode("server/templates/template[@tid='"+top.DESKTOP+"']"),top.DESKTOP)}catch(_){}}else if(E=="DESKTOPTASKBAR"){A=L.getAttribute("wid");try{Desktop.ShowDesktopTaskbar(A,I.selectSingleNode("server/templates/template[@tid='"+L.getAttribute("cid")+"']"),L.getAttribute("cid"))}catch(_){}}else if(E=="DESKTOPTOPTASKBAR"){A=L.getAttribute("wid");try{Desktop.ShowDesktopTopTaskbar(A,I.selectSingleNode("server/templates/template[@tid='"+L.getAttribute("cid")+"']"),L.getAttribute("cid"))}catch(_){}}else if(E=="DESKTOPTOPPOPTASKBAR"){A=L.getAttribute("wid");try{Desktop.ShowDesktopTopPopTaskbar(A,I.selectSingleNode("server/templates/template[@tid='"+L.getAttribute("cid")+"']"),L.getAttribute("cid"))}catch(_){}}else if(E=="DESKTOPLEFTTASKBAR"){A=L.getAttribute("wid");try{Desktop.ShowDesktopLeftTaskbar(A,I.selectSingleNode("server/templates/template[@tid='"+L.getAttribute("cid")+"']"),L.getAttribute("cid"))}catch(_){}}else if(E=="FORM_REMOVE"){try{Desktop.forRemove(L.getAttribute("wid"),L.getAttribute("parentId"),L.getAttribute("cid"))}catch(_){}}else if(E=="FORM_SET"){var A=L.getAttribute("wid"),M=L.getAttribute("scroll");try{Desktop.formSet(A,L.getAttribute("parentId"),M,I.selectSingleNode("server/templates/template[@tid='"+L.getAttribute("cid")+"']"),L.getAttribute("cid"))}catch(_){}}else if(E=="FRAMESET_SET"){A=L.getAttribute("wid");try{Desktop.webFrameSet(A,L.getAttribute("parentId"),L.getAttribute("cid"),I.selectSingleNode("server/templates/template[@tid='"+L.getAttribute("cid")+"']"))}catch(_){}}else if(E=="CENTER"){try{top.centerWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="EMR_LOCATION_WINDOW"){try{top.emrLocationWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="PAGE_FOCUS"){try{Desktop.focusit()}catch(_){}}else if(E=="INIT_PAGE"){try{Desktop.initPage()}catch(_){}}else if(E=="LEFT_TOP"){try{top.leftTopWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="LEFT_TOP_PUSH"){try{top.leftTopPushWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="LEFT_BOTTOM"){try{top.leftBottomWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="LEFT_BOTTOM_PUSH"){try{top.leftBottomPushWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="RIGHT_TOP"){try{top.rightTopWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="RIGHT_TOP_PUSH"){try{top.rightTopPushWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="RIGHT_BOTTOM"){try{top.rightBottomWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="RIGHT_BOTTOM_PUSH"){try{top.rightBottomPushWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="PUSH"){try{top.pushWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="POP"){try{top.popWindow(L.getAttribute("wid"))}catch(_){}}else if(E=="BS_BKIMG"){try{Desktop.setBKIMG(L.selectNodes("content")[0])}catch(_){}}else if(E=="BS_BKCOLOR"){try{Desktop.setBKCOLOR(L.selectNodes("content")[0])}catch(_){}}else if(E=="BS_CSS"){try{WatCore.setCSSStyle(L.selectNodes("content")[0])}catch(_){}}else if(E=="LODING_INFO"){try{WatCore.setLodingInfo(L.selectNodes("content")[0])}catch(_){}}else if(E=="WINDOWTITLE"){try{WatCore.execUpdateTitleCommand(L)}catch(_){}}else if(E=="ADD");else if(E=="REMOVE");else if(E=="ACTIVEWINDOW");else if(E=="WINDOWSTATE"){try{WatCore.execWindowStateCommand(L)}catch(_){}}else if(E=="WINDOWBORDERSTYLE"){try{WatCore.execWBorderStyleCommand(L)}catch(_){}}else if(E=="WRAISE"){try{A=L.getAttribute("wid");top.E_windowShowToFront(A)}catch(_){}}else if(E=="WRESIZE"){try{WatCore.execWindowResizeCommand(L)}catch(_){}}else if(E=="APP_NORMAL"){try{Desktop.setAPPNormal(L.selectNodes("content")[0])}catch(_){}}else if(E=="APP_WINDOW"){try{Desktop.setAPPWindow(L.selectNodes("content")[0])}catch(_){}}else if(E=="SEQUENCEID")sequence=top.isIE?L.selectNodes("content")[0].text:L.selectNodes("content")[0].textContent;else if(E=="PIAOFOULEFTBAR"){A=L.getAttribute("wid");try{Desktop.ShowPiaofouLeftbar(A,I.selectSingleNode("server/templates/template[@tid='"+L.getAttribute("cid")+"']"),L.getAttribute("cid"))}catch(_){}}else if(E=="PIAOFOULEFTPARAMS"){try{if(piaofouleftbar==null){var N=top.E_clientModel.E_getWindow(top.DESKTOP),D=N.document,H=D.getElementById("piaofouleftbar");piaofouleftbar=H}var J=top.isIE?L.selectNodes("content")[0].text:L.selectNodes("content")[0].textContent,C=J.split(",");for(var O=0;O<C.length;O++)if(O==0)piaofouleftbar.owidth=C[O];else if(O==1)piaofouleftbar.owidthunit=C[O];else if(O==2)piaofouleftbar.oheight=C[O];else if(O==3)piaofouleftbar.oheightunit=C[O];else if(O==4)piaofouleftbar.olocation=C[O];WatCore.piaofouleftbarinit()}catch(_){}}else if(E=="PIAOFOURIGHTWIDTH"){try{if(piaofourightbar==null){N=top.E_clientModel.E_getWindow(top.DESKTOP),D=N.document,H=D.getElementById("piaofourightbar");piaofourightbar=H}piaofourightbar.owidth=top.isIE?L.selectNodes("content")[0].text:L.selectNodes("content")[0].textContent}catch(_){}}else if(E=="PIAOFOUTOPWIDTH"){try{if(piaofoutopbar==null){N=top.E_clientModel.E_getWindow(top.DESKTOP),D=N.document,H=D.getElementById("piaofoutopbar");piaofoutopbar=H}piaofoutopbar.owidth=top.isIE?L.selectNodes("content")[0].text:L.selectNodes("content")[0].textContent}catch(_){}}else if(E=="PIAOFOUTOPHEIGHT"){try{if(piaofoutopbar==null){N=top.E_clientModel.E_getWindow(top.DESKTOP),D=N.document,H=D.getElementById("piaofoutopbar");piaofoutopbar=H}piaofoutopbar.oheight=top.isIE?L.selectNodes("content")[0].text:L.selectNodes("content")[0].textContent}catch(_){}}else if(E=="PIAOFOURIGHTBAR"){A=L.getAttribute("wid");try{Desktop.ShowPiaofouRightbar(A,I.selectSingleNode("server/templates/template[@tid='"+L.getAttribute("cid")+"']"),L.getAttribute("cid"))}catch(_){}}else if(E=="PIAOFOURIGHTPARAMS"){try{if(piaofourightbar==null){N=top.E_clientModel.E_getWindow(top.DESKTOP),D=N.document,H=D.getElementById("piaofourightbar");piaofourightbar=H}J=top.isIE?L.selectNodes("content")[0].text:L.selectNodes("content")[0].textContent,C=J.split(",");for(O=0;O<C.length;O++)if(O==0)piaofourightbar.owidth=C[O];else if(O==1)piaofourightbar.owidthunit=C[O];else if(O==2)piaofourightbar.oheight=C[O];else if(O==3)piaofourightbar.oheightunit=C[O];else if(O==4)piaofourightbar.olocation=C[O];WatCore.piaofourightbarinit()}catch(_){}}else if(E=="PIAOFOUTOPBAR"){A=L.getAttribute("wid");try{Desktop.ShowPiaofouTopbar(A,I.selectSingleNode("server/templates/template[@tid='"+L.getAttribute("cid")+"']"),L.getAttribute("cid"))}catch(_){}}else if(E=="PIAOFOUTOPPARAMS"){try{if(piaofoutopbar==null){N=top.E_clientModel.E_getWindow(top.DESKTOP),D=N.document,H=D.getElementById("piaofoutopbar");piaofoutopbar=H}J=top.isIE?L.selectNodes("content")[0].text:L.selectNodes("content")[0].textContent,C=J.split(",");for(O=0;O<C.length;O++)if(O==0)piaofoutopbar.owidth=C[O];else if(O==1)piaofoutopbar.owidthunit=C[O];else if(O==2)piaofoutopbar.oheight=C[O];else if(O==3)piaofoutopbar.oheightunit=C[O];else if(O==4)piaofoutopbar.olocation=C[O];WatCore.piaofoutopbarinit()}catch(_){}}else if(E=="POPCACHERELEASE"){try{removePopgridtextCache(L.selectNodes("content")[0])}catch(_){}}}};WatCore.execWindowStateCommand=function(A){var $=A.getAttribute("wid"),_=new Object();_.width=parseInt(top.isIE?A.selectNodes("width")[0].text:A.selectNodes("width")[0].textContent);_.height=parseInt(top.isIE?A.selectNodes("height")[0].text:A.selectNodes("height")[0].textContent);_.top=parseInt(top.isIE?A.selectNodes("top")[0].text:A.selectNodes("top")[0].textContent);_.left=parseInt(top.isIE?A.selectNodes("left")[0].text:A.selectNodes("left")[0].textContent);_.bIsMdiChild=top.isIE?(A.selectNodes("mdichild")[0].text=="true"?true:false):(A.selectNodes("mdichild")[0].textContent=="true"?true:false);top.setProperty($,"windowRect",_);top.setProperty($,"bNotifyServerOnActived",top.isIE?(A.selectNodes("hasListener")[0].text=="true"?true:false):(A.selectNodes("hasListener")[0].textContent=="true"?true:false));top.setProperty($,"bNotifyServerOnClosed",true);top.updateWindowStateFromServer($,parseInt(top.isIE?A.selectNodes("windowState")[0].text:A.selectNodes("windowState")[0].textContent))};WatCore.execWindowResizeCommand=function(_){var $=_.getAttribute("wid");top.setProperty($,"allowResize",top.isIE?(_.selectNodes("allowResize")[0].text=="true"?true:false):(_.selectNodes("allowResize")[0].textContent=="true"?true:false))};WatCore.execWBorderStyleCommand=function(_){var $=_.getAttribute("wid");top.setProperty($,"frameBorder",top.isIE?_.selectNodes("windowBorder")[0].text:_.selectNodes("windowBorder")[0].textContent)};WatCore.execUpdateTitleCommand=function(H){var D=H.getAttribute("wid"),B=top.isIE?H.selectNodes("title")[0].text:H.selectNodes("title")[0].textContent,_=top.isIE?H.selectNodes("icon")[0].text:H.selectNodes("icon")[0].textContent,F=parseInt(top.isIE?H.selectNodes("titleState")[0].text:H.selectNodes("titleState")[0].textContent),$=parseInt(top.isIE?H.selectNodes("closeButtonState")[0].text:H.selectNodes("closeButtonState")[0].textContent),C=top.isIE?(H.selectNodes("windowStateListener")[0].text=="true"?true:false):(H.selectNodes("windowStateListener")[0].textContent=="true"?true:false),A=top.isIE?(H.selectNodes("windowResizeListener")[0].text=="true"?true:false):(H.selectNodes("windowResizeListener")[0].textContent=="true"?true:false),I=top.isIE?(H.selectNodes("windowCloseListener")[0].text=="true"?true:false):(H.selectNodes("windowCloseListener")[0].textContent=="true"?true:false),G=top.isIE?(H.selectNodes("windowtaskactivenotify")[0].text=="true"?true:false):(H.selectNodes("windowtaskactivenotify")[0].textContent=="true"?true:false),E=top.isIE?(H.selectNodes("isModal")[0].text=="true"?true:false):(H.selectNodes("isModal")[0].textContent=="true"?true:false);top.E_setTitle(D,B,_,F,$,C,A,I,E,G)};WatCore.execOpenWindowCommand=function(V,I){var N=V.getAttribute("wid"),S=V.getAttribute("cid"),U=V.getAttribute("isiframe"),F=top.isIE?V.selectNodes("parentwindow")[0].text:V.selectNodes("parentwindow")[0].textContent,C=top.isIE?(V.selectNodes("mdiwindow")[0].text=="true"?true:false):(V.selectNodes("mdiwindow")[0].textContent=="true"?true:false),P=new Object();P.width=0;P.height=0;P.top=0;P.left=0;var O=top.isIE?(V.selectNodes("isModal")[0].text=="true"?true:false):(V.selectNodes("isModal")[0].textContent=="true"?true:false),W=top.isIE?(V.selectNodes("isModal2")[0].text=="true"?true:false):(V.selectNodes("isModal2")[0].textContent=="true"?true:false),E=top.isIE?V.selectNodes("title")[0].text:V.selectNodes("title")[0].textContent,J=top.isIE?V.selectNodes("icon")[0].text:V.selectNodes("icon")[0].textContent,K=top.isIE?(V.selectNodes("TOPMOST")[0].text=="true"?true:false):(V.selectNodes("TOPMOST")[0].textContent=="true"?true:false),X=true;try{X=top.isIE?(V.selectNodes("STAYTASKBAR")[0].text=="true"?true:false):(V.selectNodes("STAYTASKBAR")[0].textContent=="true"?true:false)}catch(L){}if(O)top.E_openModalWindow(N,F,P,I.selectNodes("content")[0],W,S,U);else top.E_openWindow(N,F,P,C,I.selectNodes("content")[0],K,S,U);top.destroyLoadingDialog(N);P.top=parseInt(top.isIE?V.selectNodes("top")[0].text:V.selectNodes("top")[0].textContent);P.left=parseInt(top.isIE?V.selectNodes("left")[0].text:V.selectNodes("left")[0].textContent);P.width=parseInt(top.isIE?V.selectNodes("width")[0].text:V.selectNodes("width")[0].textContent);P.height=parseInt(top.isIE?V.selectNodes("height")[0].text:V.selectNodes("height")[0].textContent);var Q=parseInt(top.isIE?V.selectNodes("titleState")[0].text:V.selectNodes("titleState")[0].textContent),D=parseInt(top.isIE?V.selectNodes("closeButtonState")[0].text:V.selectNodes("closeButtonState")[0].textContent),M=top.isIE?(V.selectNodes("windowStateListener")[0].text=="true"?true:false):(V.selectNodes("windowStateListener")[0].textContent=="true"?true:false),$=top.isIE?(V.selectNodes("windowResizeListener")[0].text=="true"?true:false):(V.selectNodes("windowResizeListener")[0].textContent=="true"?true:false),A=top.isIE?(V.selectNodes("windowtaskactivenotify")[0].text=="true"?true:false):(V.selectNodes("windowtaskactivenotify")[0].textContent=="true"?true:false),B=parseInt(top.isIE?V.selectNodes("windowState")[0].text:V.selectNodes("windowState")[0].textContent);top.E_setTitle(N,E,J,Q,D,B,M,$,O,A);top.setProperty(N,"allowResize",top.isIE?(V.selectNodes("allowResize")[0].text=="true"?true:false):(V.selectNodes("allowResize")[0].textContent=="true"?true:false));top.setProperty(N,"hasMenubar",top.isIE?(V.selectNodes("hasMenuBar")[0].text=="true"?true:false):(V.selectNodes("hasMenuBar")[0].textContent=="true"?true:false));top.setProperty(N,"hasToolbar",top.isIE?(V.selectNodes("hasToolBar")[0].text=="true"?true:false):(V.selectNodes("hasToolBar")[0].textContent=="true"?true:false));top.setProperty(N,"hasStatusbar",top.isIE?(V.selectNodes("hasStatusBar")[0].text=="true"?true:false):(V.selectNodes("hasStatusBar")[0].textContent=="true"?true:false));P.bIsMdiChild=top.isIE?(V.selectNodes("mdichild")[0].text=="true"?true:false):(V.selectNodes("mdichild")[0].textContent=="true"?true:false);top.setProperty(N,"windowRect",P);top.setProperty(N,"bNotifyServerOnActived",top.isIE?(V.selectNodes("hasListener")[0].text=="true"?true:false):(V.selectNodes("hasListener")[0].textContent=="true"?true:false));top.setProperty(N,"bNotifyServerOnClosed",true);top.initWindow(N,top.isIE?V.selectNodes("initWindowState")[0].text:V.selectNodes("initWindowState")[0].textContent);top.setProperty(N,"frameBorder",top.isIE?V.selectNodes("windowBorder")[0].text:V.selectNodes("windowBorder")[0].textContent);var G=parseInt(top.isIE?V.selectNodes("scrollPosX")[0].text:V.selectNodes("scrollPosX")[0].textContent),H=parseInt(top.isIE?V.selectNodes("scrollPosY")[0].text:V.selectNodes("scrollPosY")[0].textContent);top.scrollPos(N,G,H);var T=I.selectNodes("initial");if(U=="true"){var R=(N==DESKTOP?E_clientModel.E_getWindow(N):E_clientModel.E_getWindow(N).contentWindow);R.eval(top.eventStr);R.EventRouter.init()}top.updateWindowStateFromServer(N,parseInt(top.isIE?V.selectNodes("windowState")[0].text:V.selectNodes("windowState")[0].textContent));if(T!=null&&T.length>0&&(top.isIE?T[0].text:T[0].textContent!="")){var _=top.isIE?T[0].text:T[0].textContent;_=Desktop.getWebFormScript(N,S,_);top.WatCore.execInitScript(N,_)}if(S)E_watwebformCacheList.push(S);if(!O&&WatCore.taskbar!=null)if(X)DxTaskBar.addwindow(N,E,J,Q,D,B);if(!O&&K)top.topMostWindow(N)};WatCore.execInitScript=function(A,_){if(_!=null&&_!=""){var $=E_clientModel.E_getWindow(A),B=WatCore.getWindow(A,$);if(B.execScript)B.execScript(_,"JavaScript");else watEval(_)}};WatCore.timeout=function(){};WatCore.execCloseWindowCommand=function($){top.E_clsWindow($)};WatCore.execAddComponentCommand=function(_,$){};WatCore.execRemoveComponentCommand=function($){};WatCore.notifyCloseWindow=function(_){WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();var $=WatCore.getCloseWindowMsgContent(_);WatCore.sendAsynCall($)};WatCore.notifyActiveWindow=function(_){var $=WatCore.getActiveWindowMsgContent(_);WatCore.sendAsynCall($)};WatCore.notifyNormalWindow=function($){WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();msgContent=WatCore.getNormalWindowMsgContent($);WatCore.sendCall()};WatCore.notifyMaxWindow=function($){WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();msgContent=WatCore.getMaxWindowMsgContent($);WatCore.sendCall()};WatCore.notifyCloseApp=function(_){var $=WatCore.closeApp(_);WatCore.sendAsynCall($)};WatCore.notifyCloseAppByCloseBrowser=function(C){var A=initflag;initflag=false;if(A&&isclosedwindownotify){var B=WatCore.closeAppByCloseBrowser(C);WatCore.sendAsynCall(B)}var $=new ActiveXObject("WScript.Shell");try{$.run("taskkill /f /fi \"WINDOWTITLE eq ImageViewer-DICOM3DSDK example\"",0)}catch(_){alert(_.message)}};WatCore.notifyResizeWindow=function($){WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();msgContent=WatCore.getResizeWindowMsgContent($);WatCore.sendCall()};WatCore.sendCall=function(){activeState=false;WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();WatCore.showLoadingDialog();WatCore.sendSynCall()};WatCore.sendCallByFp=function(){activeState=false;WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();WatCore.showLoadingDialog();WatCore.sendSynCallByFp()};WatCore.sendTCall=function(){window.setTimeout(WatCore.sendSynCall,15)};WatCore.sendT2Call=function(){WatCore.sendTAsynCall()};WatCore.sendTAsynCall=function(){WatCore.sendAsynCall(amsgContent)};WatCore.sendTimerAsynCall=function(D,_,$,A){if(activeState){var B=WatCore.encodeB64($);B=_+","+B;var C=WatCore.getNormalAsynMsgContent(D,_,B);WatCore.sendAsynCall(C)}else window.setTimeout("top.WatCore.sendTimerAsynCall_('"+D+"','"+_+"','"+$+"');",1000)};WatCore.sendTimerAsynCall_=function(C,_,$){if(activeState){var A=WatCore.encodeB64($);A=_+","+A;var B=WatCore.getNormalAsynMsgContent(C,_,A);WatCore.sendAsynCall(B)}};WatCore.sendTimerAsynCall2=function(D,_,$,A){if(activeState){WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();var B=WatCore.encodeB64($);B=_+","+B;var C=WatCore.getNormalMsgContent(D,_,B);WatCore.sendAsynCall(C)}else window.setTimeout("top.WatCore.sendTimerAsynCall2_('"+D+"','"+_+"','"+$+"');",1000)};WatCore.sendTimerAsynCall2_=function(C,_,$){if(activeState){WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();var A=WatCore.encodeB64($);A=_+","+A;var B=WatCore.getNormalMsgContent(C,_,A);WatCore.sendAsynCall(B)}};WatCore.sendACall=function(D,_,$,A){var B=WatCore.encodeB64($);B=_+","+B;var C=WatCore.getNormalAsynMsgContent(D,_,B);WatCore.sendAsynCall(C)};WatCore.sendACallToChart=function(D,_,$,A){var B=WatCore.encodeB64($);B=_+","+B;var C=WatCore.getNormalMsgContent(D,_,B);WatCore.sendAsynCall(C)};WatCore.sendACallToChartNotifyDataChange=function(D,_,$,A){WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();var B=WatCore.encodeB64($);B=_+","+B;var C=WatCore.getNormalMsgContent(D,_,B);WatCore.sendAsynCall(C)};WatCore.sendACallToMulInteractiveMessage=function(E,A,_,$,B){var C=WatCore.encodeB64(_);C=A+","+C;var D=WatCore.getNormalAsynMsgToMulMessageContent(E,A,$,C);WatCore.sendAsynCall(D,"false")};WatCore.sendACallToEmrTimerMessage=function(F,_,$,G,D,A,B){var C=WatCore.encodeB64($);C=_+","+C;var E=WatCore.getNormalAsynMsgToEmrContent(F,_,G,D,A,C);WatCore.sendAsynCall(E)};WatCore.sendACallToChartNotifyDataChange2=function(C,_,$,A){WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();var B=WatCore.encodeB64($);B=_+","+B;amsgContent=WatCore.getNormalMsgContent(C,_,B);WatCore.sendT2Call()};WatCore.quickcall_=function(C,A,_,$){if(quickcallnum!=$)return;var B=WatCore.encodeB64(_);B=A+","+B;WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();activeValueSendState=false;msginfo=C+","+A+","+B;msgContent=WatCore.getNormalMsgContent(C,A,B);if(piaofouleftbar!=null)piaofouleftbar.dnum=0;if(piaofourightbar!=null)piaofourightbar.dnum=0;top.DxMenu.mDocumentClick();WatCore.sendCall()};WatCore.clearQuickcall=function(){quickcallnum=0};WatCore.quickcall=function(C,A,$,B,_){quickcallnum++;if(_!=null)window.setTimeout("top.WatCore.quickcall_('"+C+"','"+A+"','"+$+"','"+quickcallnum+"')",_);else window.setTimeout("top.WatCore.quickcall_('"+C+"','"+A+"','"+$+"','"+quickcallnum+"')",200)};WatCore.call=function(C,_,$,A){if(activeState){var B=WatCore.encodeB64($);B=_+","+B;if(activeValueSendState){WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();activeValueSendState=false;msginfo=C+","+_+","+B}else if(msginfo==C+","+_+","+B)return;msgContent=WatCore.getNormalMsgContent(C,_,B);if(piaofouleftbar!=null)piaofouleftbar.dnum=0;if(piaofourightbar!=null)piaofourightbar.dnum=0;top.DxMenu.mDocumentClick();WatCore.sendCall()}};WatCore.dbgridscrollbarcall=function(C,_,$,A){var B=WatCore.encodeB64($);B=_+","+B;if(activeValueSendState){WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();activeValueSendState=false;msginfo=C+","+_+","+B}else if(msginfo==C+","+_+","+B)return;msgContent=WatCore.getNormalMsgContent(C,_,B);if(piaofouleftbar!=null)piaofouleftbar.dnum=0;if(piaofourightbar!=null)piaofourightbar.dnum=0;top.DxMenu.mDocumentClick();WatCore.sendCall()};WatCore.messageCall=function(C,_,$,A){if(activeState){showflag=showflag+1;activeState=false;WatCore.processDataGridDataChange();WatCore.processHtmldisplayDataChange();WatCore.processEmrShowDataChange();var B=WatCore.encodeB64($);B=_+","+B;msgContent=WatCore.getNormalMsgContent(C,_,B);WatCore.sendCall()}else alert("\u9875\u9762\u6b63\u5728\u88c5\u8f7d\u6570\u636e...\u8bf7\u70b9\u786e\u5b9a")};WatCore.getCloseWindowMsgContent=function(A){var _=WatCore.createBaseMsgContent(A,A,A);_.setAttribute("eventtype","c");WatCore.processFormChangeID();var $=WatCore.xmltostring(postDom);postDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>"+sequence+"</sequenceid></client>",postDom);return $};WatCore.getActiveWindowMsgContent=function(A){var _=WatCore.createBaseMsgContent(A,A,A);_.setAttribute("eventtype","t");WatCore.processFormChangeID();var $=WatCore.xmltostring(postDom);postDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>"+sequence+"</sequenceid></client>",postDom);return $};WatCore.getNormalWindowMsgContent=function(A){var _=WatCore.createBaseMsgContent(A,A,A);_.setAttribute("eventtype","normal");WatCore.processFormChangeID();var $=WatCore.xmltostring(postDom);postDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>"+sequence+"</sequenceid></client>",postDom);return $};WatCore.getMaxWindowMsgContent=function(A){var _=WatCore.createBaseMsgContent(A,A,A);_.setAttribute("eventtype","max");WatCore.processFormChangeID();var $=WatCore.xmltostring(postDom);postDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>"+sequence+"</sequenceid></client>",postDom);return $};WatCore.closeApp=function(A){var _=WatCore.createBaseMsgCloseAppContent(A,A,A);_.setAttribute("eventtype","closeappinstance");WatCore.processFormChangeID();var $=WatCore.xmltostring(postDom);postDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>null</sequenceid></client>",postDom);return $};WatCore.closeAppByCloseBrowser=function(A){var _=WatCore.createBaseMsgCloseAppContent(A,A,A);_.setAttribute("eventtype","closebrowser");WatCore.processFormChangeID();var $=WatCore.xmltostring(postDom);postDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>null</sequenceid></client>",postDom);return $};WatCore.getResizeWindowMsgContent=function(A){var _=WatCore.createBaseMsgContent(A,A,A);_.setAttribute("eventtype","resize");WatCore.processFormChangeID();var $=WatCore.xmltostring(postDom);postDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>"+sequence+"</sequenceid></client>",postDom);return $};WatCore.getNormalMsgContent=function(C,A,_){var B=WatCore.createBaseMsgContent(C,A,_);B.setAttribute("eventtype","a");WatCore.processFormChangeID();var $=WatCore.xmltostring(postDom);postDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>"+sequence+"</sequenceid></client>",postDom);return $};WatCore.createBaseMsgCloseAppContent=function(B,_,$){var A=postDom.createElement("event");postDom.documentElement.appendChild(A);A.setAttribute("Controlid",_);A.setAttribute("winid",B);A.setAttribute("parameter",$);return A};WatCore.createBaseMsgContent=function(B,_,$){WatCore.createWindowsState();var A=postDom.createElement("event");postDom.documentElement.appendChild(A);A.setAttribute("Controlid",_);A.setAttribute("winid",B);A.setAttribute("parameter",$);if(tempwidth!=""&&tempheight!=""){postDom.documentElement.setAttribute("cwidth",tempwidth);postDom.documentElement.setAttribute("cheight",tempheight);tempwidth="";tempheight=""}return A};WatCore.getNormalAsynMsgContent=function(C,A,_){var B=WatCore.createAsynBaseMsgContent(C,A,_);B.setAttribute("eventtype","a");WatCore.processAsynFormChangeID();var $=WatCore.xmltostring(asynpostDom);asynpostDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>null</sequenceid></client>",asynpostDom);return $};WatCore.getNormalAsynMsgToMulMessageContent=function(D,B,_,A){asynpostDom=WatCore.stringtoxml("<client><changes><window wid=\""+D+"\"><control cid=\""+B+"\"><_1023><![CDATA["+_+"]]></_1023></control></window></changes><sequenceid>null</sequenceid></client>",asynpostDom);var C=WatCore.createAsynBaseMsgContent(D,B,A);C.setAttribute("eventtype","a");WatCore.processAsynFormChangeID();var $=WatCore.xmltostring(asynpostDom);asynpostDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>null</sequenceid></client>",asynpostDom);return $};WatCore.getNormalAsynMsgToEmrContent=function(E,A,F,C,B,_){asynpostDom=WatCore.stringtoxml("<client><changes><window wid=\""+E+"\"><control cid=\""+A+"\"><_1596><![CDATA["+C+"]]></_1596><_1630><![CDATA["+F+"]]></_1630><_1631><![CDATA["+B+"]]></_1631></control></window></changes><sequenceid>null</sequenceid></client>",asynpostDom);var D=WatCore.createAsynBaseMsgContent(E,A,_);D.setAttribute("eventtype","a");WatCore.processAsynFormChangeID();var $=WatCore.xmltostring(asynpostDom);asynpostDom=WatCore.stringtoxml("<client><changes></changes><sequenceid>null</sequenceid></client>",asynpostDom);return $};WatCore.createAsynBaseMsgContent=function(B,_,$){var A=asynpostDom.createElement("event");asynpostDom.documentElement.appendChild(A);A.setAttribute("Controlid",_);A.setAttribute("winid",B);A.setAttribute("parameter",$);return A};WatCore.setCSSStyle=function($){var B,A;try{var E=E_clientModel.E_getWindowIds(),F=0;for(F=0;F<E.E_size();F++){var D=E.E_get(F),C=E_clientModel.E_getWindow(D);B=WatCore.getWindowDoc(D,C);A=B.getElementById("WATCSS");if(A!=null)A.href=top.isIE?$.text:$.textContent}}catch(_){MsgConsole.displayErr("changeCssFile:"+_.description)}};WatCore.createWindowsState=function(){try{var C="",B=E_clientModel.E_getWindowIds(),F=0;for(F=0;F<B.E_size();F++){var A=B.E_get(F);if(A!="desktop"){var E=postDom.documentElement.selectSingleNode("changes/window[@wid='"+A+"']");if(E==null){E=postDom.createElement("window");E.setAttribute("wid",A);postDom.selectNodes("client/changes")[0].appendChild(E)}var _=E_clientModel.E_getWindow(A),D=getWrapper(_);E.setAttribute("state",_.nState);E.setAttribute("top",parseInt(_.nNormalTop));E.setAttribute("left",parseInt(_.nNormalLeft));E.setAttribute("width",parseInt(D.style.width));E.setAttribute("height",parseInt(D.style.height));E.setAttribute("active",(isActiving(A)?"true":"false"))}}}catch($){MsgConsole.displayErr("getWindowStatus:"+$.description)}};WatCore.setParameter=function(E,A,F,C){var F="_"+F,D=WatCore.getParentRoot(E,A,true),B=D.selectSingleNode(F);if(parameterencryption=="true")C=Base64.encode(encodeURIComponent(C));var $=postDom.createCDATASection(C);if(!B){B=postDom.createElement(F);D.appendChild(B);B.appendChild($)}else{var _=B.childNodes.item(0);B.removeChild(_);B.appendChild($)}};WatCore.processDataGridDataChange=function(){var A=top.E_dataChange.E_keys.E_list.E_contents.length,B,_;for(var C=A-1;C>=0;C--){B=top.E_dataChange.E_keys.E_list.E_contents[C];var $=top.E_dataChange.E_get(B);_=DxDataGrid.createChangeDataXML($,B);if(_!=null)WatCore.setParameter($,B,top.DC.DATA,_);top.E_dataChange.E_remove(B)}};WatCore.processHtmldisplayDataChange=function(){var A=top.E_htmldisplayChange.E_keys.E_list.E_contents.length,B,$;for(var C=A-1;C>=0;C--){B=top.E_htmldisplayChange.E_keys.E_list.E_contents[C];var _=top.E_htmldisplayChange.E_get(B);$=DxHTMLDisplay.changedata(_,B);if($!=null)WatCore.setParameter(_,B,top.DC.TEXT,$)}};WatCore.processEmrShowDataChange=function(){var A=top.E_emrshowChange.E_keys.E_list.E_contents.length,B,$;for(var C=A-1;C>=0;C--){B=top.E_emrshowChange.E_keys.E_list.E_contents[C];var _=top.E_emrshowChange.E_get(B);$=DxEMRShow.changedata(_,B);if($!=null)WatCore.setParameter(_,B,top.DC.EMR_TEXT,$);$=DxEMRShow.changefooterdata(_,B);if($!=null)WatCore.setParameter(_,B,top.DC.EMR_FOOTER_TEXT,$);$=DxEMRShow.changeheaderdata(_,B);if($!=null)WatCore.setParameter(_,B,top.DC.EMR_HEADER_TEXT,$)}};WatCore.appendParameter=function(B,_,C,A){var $=WatCore.getParameter(B,_,C);if($!=null)$+=A;else $=A;WatCore.setParameter(B,_,C,$)};WatCore.getParameter=function(C,$,D){var D="_"+D,B=WatCore.getParentRoot(C,$,false),A="";if(B!=null){var _=B.selectSingleNode(D);if(_!=null)A=top.isIE?_.text:_.textContent}if(parameterencryption=="true"&&A!=null)A=decodeURIComponent(Base64.decode(A));return A};WatCore.listenKey=function(G,D,M,C){try{var J=true,B=0;if(G.keyCode!=16&&G.keyCode!=17&&G.keyCode!=18&&G.keyCode!=27){if(G.altKey)B=1;if(G.ctrlKey)B=2;if(G.shiftKey)B=4;if(G.shiftKey&&G.altKey)B=5;if(G.altKey&&G.ctrlKey)B=3;if(G.shiftKey&&G.ctrlKey)B=6;if(G.shiftKey&&G.altKey&&G.ctrlKey)B=7;if(G.keyCode==85&&G.ctrlKey)DxPrinter.printconfig();G.cancelBubble=true;var I=B*100+G.keyCode,E=C.split("|"),A=false;for(var H=0;H<E.length;H++)if(E[H]==116)if(I==117){G.keyCode=0;G.cancelBubble=true;J=false}for(H=0;H<E.length;H++)if(I==E[H]){A=true;if(B>0||I==112||I==113||I==114||I==115||I==116||I==117||I==118||I==119||I==120||I==121||I==122||I==123||I==9){G.keyCode=0;G.cancelBubble=true}break}if(A){WatCore.call(D,M,"keyEvent&"+I,G);J=false;G.returnValue=false;G.cancelBubble=true}}else if(G.keyCode==27){var L=E_clientModel.E_getWindow(D),F=E_clientModel.E_getWindow(L.strParentID),K=(F.bIsMDI==true)?true:false;if(L.nTitleState/top.TITLE_DIS_CLSBUT<1&&L.nTitleState!=top.TITLE_NULL&&top.isActiving(D)){var $=confirm("\u786e\u5b9a\u5173\u95ed\u7a97\u4f53");if($)top.updateWindowState(D,3)}else{E=C.split("|"),A=false,I=G.keyCode;for(H=0;H<E.length;H++)if(I==E[H]){A=true;break}if(A){WatCore.call(D,M,"keyEvent&"+I,G);J=false;G.returnValue=false}}G.cancelBubble=true}return J}catch(_){}};WatCore.listenWindowCloseKey=function(E,C){try{if(E.keyCode==117){E.keyCode=0;E.cancelBubble=true;return false}if(E.keyCode==116){E.keyCode=0;E.cancelBubble=true;return false}if(E.keyCode==8)return top.WatCore.forbidBackSpace(E);if(E.keyCode==85&&E.ctrlKey){DxPrinter.printconfig();stopEvent(E)}if(E.keyCode==27){var B=E_clientModel.E_getWindow(C),D=E_clientModel.E_getWindow(B.strParentID),A=(D.bIsMDI==true)?true:false;if(B.nTitleState/top.TITLE_DIS_CLSBUT<1&&B.nTitleState!=top.TITLE_NULL&&top.isActiving(C)){var $=confirm("\u786e\u5b9a\u5173\u95ed\u7a97\u4f53");if($)top.updateWindowState(C,3)}E.cancelBubble=true}E.cancelBubble=true;return true}catch(_){}};WatCore.onF5Click=function($){$.keyCode=0;$.cancelBubble=true;return false};WatCore.getJsFunctionParams=function(D,M,K,_,B){var G=M.split("|"),E=K.split("|"),C=_.split("|"),L;if(B!=null)L=B.split("|");var H=D.keyCode,A=0;if(event.altKey)A=1;if(event.ctrlKey)A=2;if(event.shiftKey)A=4;if(event.shiftKey&&event.altKey)A=5;if(event.altKey&&event.ctrlKey)A=3;if(event.shiftKey&&event.ctrlKey)A=6;if(event.shiftKey&&event.altKey&&event.ctrlKey)A=7;var J=A*100+H,$;for(var F=0;F<E.length;F++)if(J==E[F])$=F;var I=new Array();I[0]=G[$];I[1]=C[$];if(L!=null)I[2]=L[$];else I[2]=null;return I};WatCore.isKeyCode=function(D,B){var A=0,$=false;if(D==null)return $;if(D.keyCode!=16&&D.keyCode!=17&&D.keyCode!=18&&D.keyCode!=9){if(D.altKey)A=1;if(D.ctrlKey)A=2;if(D.shiftKey)A=4;if(D.shiftKey&&D.altKey)A=5;if(D.altKey&&D.ctrlKey)A=3;if(D.shiftKey&&D.ctrlKey)A=6;if(D.shiftKey&&D.altKey&&D.ctrlKey)A=7;if(A!=0){var _=A*100+D.keyCode,C=B.split("|");for(var E=0;E<C.length;E++)if(_==C[E]){$=true;D.cancelBubble=true;break}}else{_=D.keyCode,C=B.split("|");for(E=0;E<C.length;E++)if(_==C[E]){$=true;D.cancelBubble=true;break}}}return $};WatCore.processFormChangeID=function(){var _=postDom.documentElement.selectSingleNode("/client");if(_){var $=E_watwebformCacheList.join(",");E_watwebformCacheList=[];_.setAttribute("cacheid",$)}};WatCore.processAsynFormChangeID=function(){var _=asynpostDom.documentElement.selectSingleNode("/client");if(_){var $=E_watwebformCacheList.join(",");E_watwebformCacheList=[];_.setAttribute("cacheid",$)}};WatCore.getParentRoot=function(C,A,_){var B=postDom.documentElement.selectSingleNode("changes/window[@wid='"+C+"']"),$;if(_){if(B==null){B=postDom.createElement("window");B.setAttribute("wid",C);postDom.selectNodes("client/changes")[0].appendChild(B);$=postDom.createElement("control");B.appendChild($);$.setAttribute("cid",A)}else{$=B.selectSingleNode("control[@cid='"+A+"']");if($==null){$=postDom.createElement("control");B.appendChild($);$.setAttribute("cid",A)}}}else if(B==null)$=null;else $=B.selectSingleNode("control[@cid='"+A+"']");return $};WatCore.getWindow=function(){var E_childIndex,E_childCount,E_objName,E_frame,E_argIndex=0,strWindowID="";try{E_childCount=parseInt(arguments[E_argIndex++]);strWindowID=arguments[E_argIndex++];var index=strWindowID.indexOf("dx_");if(index<0&&strWindowID!="desktop")strWindowID="dx_"+strWindowID+"_";E_objName="E_clientModel.E_getWindow('"+strWindowID+"')"+((strWindowID==top.DESKTOP)?"":".contentWindow");if(E_childCount>0)for(E_childIndex=0;E_childIndex<E_childCount;++E_childIndex,++E_argIndex)E_objName+=".frames['E_C_"+arguments[E_argIndex]+"']";E_frame=eval(E_objName)}catch(e){}return E_frame};WatCore.encodeB64=function($){return Base64.encode($)};WatCore.encodeB64Helper=function(D,G,C,F,E,$){var A=0,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",B="\n\r\t";for(var H=0;H+F<=E;H++)A|=($?C.charCodeAt(H+F):C[H+F])<<(16-8*H);for(H=0;H<=E-F+1;H++)D[G++]=_.charAt(A>>>(18-H*6)&63);return G};WatCore.createXmlDom=function($){var A;if(typeof ActiveXObject!="undefined"||top.isIE){A=new ActiveXObject("Microsoft.XMLDOM");A["async"]=false;A["validateOnParse"]=false;if($!=null&&$!=""){A.loadXML($);if(A["parseError"]["errorCode"]!=0){var _=A["parseError"]["reason"];A=null}}}else A=(new DOMParser()).parseFromString($,"text/xml");return A};WatCore.setFocus=function(_){try{_.focus()}catch($){}};WatCore.controlDesign=function(A,B){var D=window.createPopup(),C=D.document.body;C.style.backgroundColor="lightyellow";C.style.border="solid black 1px";var $=__getAbsoluteCoords(B.srcElement),F=$.w,_=$.h,G=parseInt(B.offsetX)+parseInt($.x)+4-$.sl,E=parseInt(B.offsetY)+parseInt($.y)+2-$.st;if((G+parseInt(A.clientWidth))>F-10)G-=parseInt(A.clientWidth);if((E+parseInt(A.clientHeight))>_-10)E-=parseInt(A.clientHeight);D.show(G,E,25,25,A)};WatCore.SetCookie=function(_,B){var A=1000,$=new Date();$.setTime($.getTime()+A*24*60*60*1000);document.cookie=_+"="+B+";expires="+$.toGMTString()};WatCore.getCookie=function(_){var $=document.cookie.match(new RegExp("(^| )"+_+"=([^;]*)(;|$)"));if($!=null)return unescape($[2]);return null};WatCore.delCookie=function(_){var $=new Date();$.setTime($.getTime()-1);var A=getCookie(_);if(A!=null)document.cookie=_+"="+A+";expires="+$.toGMTString()};WatCore.piaofouleftbarinit=function(){if(piaofouleftbar==null){var I=top.E_clientModel.E_getWindow(top.DESKTOP),_=I.document,G=_.getElementById("piaofouleftbar");piaofouleftbar=G}if(piaofouleftbar.style.visibility=="hidden")return;var J=piaofouleftbar.owidth,C=piaofouleftbar.owidthunit,L=piaofouleftbar.oheight,D=piaofouleftbar.oheightunit,E=piaofouleftbar.olocation,A=piaofouleftbar.ownerDocument.getElementById("piaofouleftbar_c"),K=piaofouleftbar.ownerDocument.getElementById("piaofouleftbar_drag"),$=piaofouleftbar.ownerDocument.getElementById("piaofouleftbar_img"),F=document.body.clientWidth,H=document.body.clientHeight;if(C=="%")J=parseInt(F)*parseInt(J)/100;piaofouleftbar.style.width=parseInt(J)+22;A.style.width=J;if(D=="%")L=parseInt(H)*parseInt(L)/100;piaofouleftbar.style.height=parseInt(L);A.style.height=L;K.style.height=L;$.style.top=(parseInt(L)-29)/2;if(E=="top")piaofouleftbar.style.top=0;else if(E=="middle"){var B=(parseInt(H)-parseInt(L))/2;piaofouleftbar.style.top=B}else if(E=="bottom"){B=parseInt(H)-parseInt(L)-30;piaofouleftbar.style.top=B}else piaofouleftbar.style.top=0;piaofouleftbar.swidth=J;piaofouleftbar.style.left=(parseInt(J)+21)*-1};WatCore.agentForBeginDragPfleft=function(){var D=document.getElementById("winModalLayer");if(D!=null&&D.style.visibility=="visible")return;if(piaofouleftbar==null){var C=top.E_clientModel.E_getWindow(top.DESKTOP),B=C.document,A=B.getElementById("piaofouleftbar");piaofouleftbar=A}var F=piaofouleftbar.ownerDocument.getElementById("piaofouleftbar_drag");try{var E=parseInt(piaofouleftbar.owidth)+22,_=E+parseInt(piaofouleftbar.style.left);if(_>=30)piaofouleftbar.dragflag="sj";else piaofouleftbar.dragflag="lc";if(F.setCapture)F.setCapture();else if(window.captureEvents)window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);if(window.attachEvent){F.attachEvent("onmousemove",WatCore.agentForDraggingPfleftInIE);F.attachEvent("onmouseup",WatCore.agentForEndDraggingPfleftInIE)}else{F.addEventListener("mousemove",WatCore.agentForDraggingPfleftInIE,false);F.addEventListener("mouseup",WatCore.agentForEndDraggingPfleftInIE,false)}}catch($){alert($)}};WatCore.agentForEndDraggingPfleftInIE=function(){try{WatCore.endDraggingPfleftInIE(window,event)}catch($){MsgConsole.displayErr("agentForEndDraggingTitleInIE:"+$.description)}};WatCore.endDraggingPfleftInIE=function(F,E){if(piaofouleftbar==null){var D=top.E_clientModel.E_getWindow(top.DESKTOP),C=D.document,B=C.getElementById("piaofouleftbar");piaofouleftbar=B}var G=piaofouleftbar.ownerDocument.getElementById("piaofouleftbar_drag");try{var A=piaofouleftbar.owidth,_=parseInt(A)+22+parseInt(piaofouleftbar.style.left);if(piaofouleftbar.dragflag=="sj"){if(parseInt(piaofouleftbar.style.left)<-30){piaofouleftbar.style.left=parseInt(A)*-1;piaofouleftbar.dnum=0}else{piaofouleftbar.style.left=0;piaofouleftbar.dnum=2}}else if(_>=30){piaofouleftbar.style.left=0;piaofouleftbar.dnum=2}else{piaofouleftbar.style.left=parseInt(A)*-1;piaofouleftbar.dnum=0}if(isIE){G.detachEvent("onmousemove",WatCore.agentForDraggingPfleftInIE);G.detachEvent("onmouseup",WatCore.agentForEndDraggingPfleftInIE)}else{G.removeEventListener("mousemove",WatCore.agentForDraggingPfleftInIE,false);G.removeEventListener("mouseup",WatCore.agentForEndDraggingPfleftInIE,false)}if(G.releaseCapture)G.releaseCapture();else if(window.releaseEvents)window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);E.cancelBubble=true}catch($){}};WatCore.agentForDraggingPfleftInIE=function(){try{WatCore.dragWindow(event,document)}catch($){MsgConsole.displayErr("agentForDraggingTitleInIE:"+$.description)}};WatCore.getMouseCoords=function(B,_){var A=new Object();try{A.x=(!isIE)?B.pageX:B.clientX+_.body.scrollLeft;A.y=(!isIE)?B.pageY:B.clientY+_.body.scrollTop}catch($){}return A};WatCore.dragWindow=function(G,D){var C=WatCore.getMouseCoords(G,D).x,$=WatCore.getMouseCoords(G,D).y;if(piaofouleftbar==null){var E=top.E_clientModel.E_getWindow(top.DESKTOP),D=E.document,B=D.getElementById("piaofouleftbar");piaofouleftbar=B}var I=piaofouleftbar.ownerDocument.getElementById("piaofouleftbar_drag");try{if(G==null)return;switch(G.type){case"mousedown":if(G.button%2==EVT_LEFT_BUTTON);break;case"mouseup":var H=parseInt(dragbutton.style.left)-parseInt(oWrapper.style.left),A=parseInt(dragbutton.style.top)-parseInt(oWrapper.style.top);if(Math.abs(H)>VALID_RESIZE_OFFSET||Math.abs(A)>VALID_RESIZE_OFFSET);break;case"mousemove":var F=(parseInt(piaofouleftbar.swidth)+22)*-1+parseInt(C);if(F>=0)F=0;else if(F<(parseInt(piaofouleftbar.swidth)+21)*-1)F=(parseInt(piaofouleftbar.swidth)+21)*-1;piaofouleftbar.style.left=F;break;default:break}G.cancelBubble=true}catch(_){window.status="dragWindow:"+_.description}};WatCore.piaofourightbarinit=function(){if(piaofourightbar==null){var I=top.E_clientModel.E_getWindow(top.DESKTOP),_=I.document,G=_.getElementById("piaofourightbar");piaofourightbar=G}if(piaofourightbar.style.visibility=="hidden")return;var J=piaofourightbar.owidth,C=piaofourightbar.owidthunit,L=piaofourightbar.oheight,D=piaofourightbar.oheightunit,E=piaofourightbar.olocation,A=piaofourightbar.ownerDocument.getElementById("piaofourightbar_c"),K=piaofourightbar.ownerDocument.getElementById("piaofourightbar_drag"),$=piaofourightbar.ownerDocument.getElementById("piaofourightbar_img"),F=document.body.clientWidth,H=document.body.clientHeight||document.documentElement.clientHeight;if(C=="%")J=parseInt(F)*parseInt(J)/100;piaofourightbar.style.width=(parseInt(J)+22)+"px";A.style.width=J+"px";if(D=="%")L=parseInt(H)*parseInt(L)/100;piaofourightbar.style.height=parseInt(L)+"px";A.style.height=L+"px";K.style.height=L+"px";$.style.top=((parseInt(L)-29)/2)+"px";if(E=="top")piaofourightbar.style.top=0+"px";else if(E=="middle"){var B=(parseInt(H)-parseInt(L))/2;piaofourightbar.style.top=B+"px"}else if(E=="bottom"){B=parseInt(H)-parseInt(L)-30;piaofourightbar.style.top=B+"px"}else piaofourightbar.style.top=0+"px";piaofourightbar.swidth=J;piaofourightbar.style.left=(F-1)+"px"};WatCore.agentForBeginDragPfright=function(){if(piaofourightbar==null){var D=top.E_clientModel.E_getWindow(top.DESKTOP),C=D.document,B=C.getElementById("piaofourightbar");piaofourightbar=B}var E=piaofourightbar.ownerDocument.getElementById("piaofourightbar_drag");try{var $=document.body.clientWidth,A=parseInt($)-parseInt(piaofourightbar.style.left);if(A>=30)piaofourightbar.dragflag="sj";else piaofourightbar.dragflag="lc";if(E.setCapture)E.setCapture();else if(window.captureEvents)window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);if(window.attachEvent){E.attachEvent("onmousemove",WatCore.agentForDraggingPfrightInIE);E.attachEvent("onmouseup",WatCore.agentForEndDraggingPfrightInIE)}else{E.addEventListener("mousemove",WatCore.agentForDraggingPfrightInIE,false);E.addEventListener("mouseup",WatCore.agentForEndDraggingPfrightInIE,false)}}catch(_){alert(_)}};WatCore.agentForEndDraggingPfrightInIE=function(){try{WatCore.endDraggingPfrightInIE(window,event)}catch($){MsgConsole.displayErr("agentForEndDraggingTitleInIE:"+$.description)}};WatCore.endDraggingPfrightInIE=function(F,E){if(piaofourightbar==null){var D=top.E_clientModel.E_getWindow(top.DESKTOP),C=D.document,B=C.getElementById("piaofourightbar");piaofourightbar=B}var H=piaofourightbar.ownerDocument.getElementById("piaofourightbar_drag");try{var G=parseInt(piaofourightbar.swidth)+22,$=document.body.clientWidth,A=parseInt($)-parseInt(piaofourightbar.style.left);if(piaofourightbar.dragflag=="sj"){if(G-A>=30){piaofourightbar.style.left=parseInt($-1)+"px";piaofourightbar.dnum=0}else{piaofourightbar.style.left=(parseInt($)-G)+"px";piaofourightbar.dnum=2}}else if(A>=30){piaofourightbar.style.left=(parseInt($)-G)+"px";piaofourightbar.dnum=2}else{piaofourightbar.style.left=parseInt($-1)+"px";piaofourightbar.dnum=0}if(isIE){H.detachEvent("onmousemove",WatCore.agentForDraggingPfrightInIE);H.detachEvent("onmouseup",WatCore.agentForEndDraggingPfrightInIE)}else{H.removeEventListener("mousemove",WatCore.agentForDraggingPfrightInIE,false);H.removeEventListener("mouseup",WatCore.agentForEndDraggingPfrightInIE,false)}if(H.releaseCapture)H.releaseCapture();else if(window.releaseEvents)window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);E.cancelBubble=true}catch(_){}};WatCore.agentForDraggingPfrightInIE=function(){try{WatCore.dragright(event,document)}catch($){MsgConsole.displayErr("agentForDraggingTitleInIE:"+$.description)}};WatCore.dragright=function(K,A){var I=WatCore.getMouseCoords(K,A).x,E=WatCore.getMouseCoords(K,A).y;if(piaofourightbar==null){var J=top.E_clientModel.E_getWindow(top.DESKTOP),A=J.document,G=A.getElementById("piaofourightbar");piaofourightbar=G}var C=piaofourightbar.ownerDocument.getElementById("piaofourightbar_drag");try{if(K==null)return;switch(K.type){case"mousedown":if(K.button%2==EVT_LEFT_BUTTON);break;case"mouseup":var D=parseInt(dragbutton.style.left)-parseInt(oWrapper.style.left),_=parseInt(dragbutton.style.top)-parseInt(oWrapper.style.top);if(Math.abs(D)>VALID_RESIZE_OFFSET||Math.abs(_)>VALID_RESIZE_OFFSET);break;case"mousemove":var F=parseInt(document.body.clientWidth),H=parseInt(piaofourightbar.swidth),L=H+22,B=F-parseInt(I);if(B<=L)B=I;else B=F-parseInt(L);if(I>F)B=parseInt(F)-1;piaofourightbar.style.left=B+"px";break;default:break}K.cancelBubble=true}catch($){window.status="dragWindow:"+$.description}};WatCore.piaofoutopbarinit=function(){if(piaofoutopbar==null){var H=top.E_clientModel.E_getWindow(top.DESKTOP),_=H.document,F=_.getElementById("piaofoutopbar");piaofoutopbar=F}if(piaofoutopbar.style.visibility=="hidden")return;var J=piaofoutopbar.owidth,B=piaofoutopbar.owidthunit,L=piaofoutopbar.oheight,C=piaofoutopbar.oheightunit,D=piaofoutopbar.olocation,A=piaofoutopbar.ownerDocument.getElementById("piaofoutopbar_c"),K=piaofoutopbar.ownerDocument.getElementById("piaofoutopbar_drag"),$=piaofoutopbar.ownerDocument.getElementById("piaofoutopbar_img"),E=document.body.clientWidth,G=document.body.clientHeight;if(B=="%")J=parseInt(E)*parseInt(J)/100;piaofoutopbar.style.width=parseInt(J)+"px";A.style.width=J+"px";K.style.width=J+"px";$.style.left=((parseInt(J)-29)/2)+"px";if(C=="%")L=parseInt(G)*parseInt(L)/100;piaofoutopbar.style.height=(parseInt(L)+32)+"px";A.style.height=L+"px";if(D=="left")piaofoutopbar.style.left=0+"px";else if(D=="center"){var I=(parseInt(E)-parseInt(J))/2;piaofoutopbar.style.left=I+"px"}else if(D=="right"){I=parseInt(E)-parseInt(J);piaofoutopbar.style.left=I+"px"}else piaofoutopbar.style.left=0+"px";piaofoutopbar.sheight=L;piaofoutopbar.style.top=((parseInt(L)+22)*-1)+"px"};WatCore.agentForBeginDragPftop=function(){if(piaofoutopbar==null){var C=top.E_clientModel.E_getWindow(top.DESKTOP),B=C.document,A=B.getElementById("piaofoutopbar");piaofoutopbar=A}var E=piaofoutopbar.ownerDocument.getElementById("piaofoutopbar_drag");try{var D=parseInt(piaofoutopbar.oheight)+22,_=D+parseInt(piaofoutopbar.style.top);if(_>=30)piaofoutopbar.dragflag="sj";else piaofoutopbar.dragflag="lc";if(E.setCapture)E.setCapture();else if(window.captureEvents)window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);if(window.attachEvent){E.attachEvent("onmousemove",WatCore.agentForDraggingPftopInIE);E.attachEvent("onmouseup",WatCore.agentForEndDraggingPftopInIE)}else{E.addEventListener("mousemove",WatCore.agentForDraggingPftopInIE,false);E.addEventListener("mouseup",WatCore.agentForEndDraggingPftopInIE,false)}}catch($){alert($)}};WatCore.agentForEndDraggingPftopInIE=function(){try{WatCore.endDraggingPftopInIE(window,event)}catch($){MsgConsole.displayErr("agentForEndDraggingTitleInIE:"+$.description)}};WatCore.endDraggingPftopInIE=function(E,D){if(piaofoutopbar==null){var C=top.E_clientModel.E_getWindow(top.DESKTOP),B=C.document,A=B.getElementById("piaofoutopbar");piaofoutopbar=A}var G=piaofoutopbar.ownerDocument.getElementById("piaofoutopbar_drag");try{var F=piaofoutopbar.oheight,_=parseInt(F)+22+parseInt(piaofoutopbar.style.top);if(piaofoutopbar.dragflag=="sj"){if(parseInt(piaofoutopbar.style.top)<-10){piaofoutopbar.style.top=(parseInt(F)*-1)+"px";piaofoutopbar.dnum=0}else{piaofoutopbar.style.top=0+"px";piaofoutopbar.dnum=2}}else if(_>=25){piaofoutopbar.style.top=0+"px";piaofoutopbar.dnum=2}else{piaofoutopbar.style.top=(parseInt(F)*-1)+"px";piaofoutopbar.dnum=0}if(isIE){G.detachEvent("onmousemove",WatCore.agentForDraggingPftopInIE);G.detachEvent("onmouseup",WatCore.agentForEndDraggingPftopInIE)}else{G.removeEventListener("mousemove",WatCore.agentForDraggingPftopInIE,false);G.removeEventListener("mouseup",WatCore.agentForEndDraggingPftopInIE,false)}if(G.releaseCapture)G.releaseCapture();else if(window.releaseEvents)window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);D.cancelBubble=true}catch($){}};WatCore.agentForDraggingPftopInIE=function(){try{WatCore.dragtop(event,document)}catch($){MsgConsole.displayErr("agentForDraggingTitleInIE:"+$.description)}};WatCore.dragtop=function(G,D){var C=WatCore.getMouseCoords(G,D).x,$=WatCore.getMouseCoords(G,D).y;if(piaofoutopbar==null){var E=top.E_clientModel.E_getWindow(top.DESKTOP),D=E.document,B=D.getElementById("piaofoutopbar");piaofoutopbar=B}var I=piaofoutopbar.ownerDocument.getElementById("piaofoutopbar_drag");try{if(G==null)return;switch(G.type){case"mousedown":if(G.button%2==EVT_LEFT_BUTTON);break;case"mouseup":var H=parseInt(dragbutton.style.left)-parseInt(oWrapper.style.left),A=parseInt(dragbutton.style.top)-parseInt(oWrapper.style.top);if(Math.abs(H)>VALID_RESIZE_OFFSET||Math.abs(A)>VALID_RESIZE_OFFSET);break;case"mousemove":var F=(parseInt(piaofoutopbar.sheight)+22)*-1+parseInt($);if(F>=0)F=0;else if(F<(parseInt(piaofoutopbar.sheight)+21)*-1)F=(parseInt(piaofoutopbar.sheight)+21)*-1;piaofoutopbar.style.top=F+"px";break;default:break}G.cancelBubble=true}catch(_){window.status="dragWindow:"+_.description}};WatCore.forbidBackSpace=function(A){var _=A||window.event,C=_.target||_.srcElement,$=C.type||C.getAttribute("type"),D=C.readOnly,B=C.disabled;D=(D==undefined)?false:D;B=(B==undefined)?true:B;var E=_.keyCode==8&&($=="password"||$=="text"||$=="textarea")&&(D==true||B==true),F=_.keyCode==8&&$!="password"&&$!="text"&&$!="textarea";if(F||E)return false};WatCore.getClientRect=function(E){var C=E,D=new Object();if(C==null){D.w=0;D.h=0;return D}var _=C.clientHeight,B=C.clientWidth,$=C.id,A=false;if($.indexOf("E_SW_")<0){if(C.parentElement.getAttribute("wparent")=="grid")A=true}else if(C.getAttribute("wparent")=="grid")A;while(A&&C!=null&&C.tagName!="TD"&&C!=null&&C.getAttribute("watform")!="true"){C=C.parentElement;if(C!=null){_=C.clientHeight;B=C.clientWidth}}D.w=B;D.h=_;return D};WatCore.getWindowDoc=function(B,A){if(!A)return document;var $=A.isiframe,_=(B==top.DESKTOP)?document:($=="true"?A.contentWindow.document:document);return _};WatCore.getWindow=function(A,_){if(!_)return window;var $=_.isiframe,B=(A==top.DESKTOP)?window:($=="true"?_.contentWindow:window);return B};WatCore.getWindowContent=function(B,A){var _=B.isiframe,C=_=="true"?A.getElementById(WIN_CONTENTPANE):$("#"+WIN_CONTENTPANE,B).get(0);return C};var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function($){var E="",D,F,G,C,A,_,B,H=0;$=Base64._utf8_encode($);while(H<$.length){D=$.charCodeAt(H++);F=$.charCodeAt(H++);G=$.charCodeAt(H++);C=D>>2;A=((D&3)<<4)|(F>>4);_=((F&15)<<2)|(G>>6);B=G&63;if(isNaN(F))_=B=64;else if(isNaN(G))B=64;E=E+this._keyStr.charAt(C)+this._keyStr.charAt(A)+this._keyStr.charAt(_)+this._keyStr.charAt(B)}return E},decode:function($){var E="",D,F,G,C,A,_,B,H=0;$=$.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(H<$.length){C=this._keyStr.indexOf($.charAt(H++));A=this._keyStr.indexOf($.charAt(H++));_=this._keyStr.indexOf($.charAt(H++));B=this._keyStr.indexOf($.charAt(H++));D=(C<<2)|(A>>4);F=((A&15)<<4)|(_>>2);G=((_&3)<<6)|B;E=E+String.fromCharCode(D);if(_!=64)E=E+String.fromCharCode(F);if(B!=64)E=E+String.fromCharCode(G)}E=Base64._utf8_decode(E);return E},_utf8_encode:function(_){var C="",B=""+_;B=B.replace(/\r\n/g,"\n");for(var A=0;A<B.length;A++){var $=B.charCodeAt(A);if($<128)C+=String.fromCharCode($);else if(($>127)&&($<2048)){C+=String.fromCharCode(($>>6)|192);C+=String.fromCharCode(($&63)|128)}else{C+=String.fromCharCode(($>>12)|224);C+=String.fromCharCode((($>>6)&63)|128);C+=String.fromCharCode(($&63)|128)}}return C},_utf8_decode:function(D){var B="",E=0,A,$,_,C;A=$=_=0;while(E<D.length){A=D.charCodeAt(E);if(A<128){B+=String.fromCharCode(A);E++}else if((A>191)&&(A<224)){_=D.charCodeAt(E+1);B+=String.fromCharCode(((A&31)<<6)|(_&63));E+=2}else{_=D.charCodeAt(E+1);C=D.charCodeAt(E+2);B+=String.fromCharCode(((A&15)<<12)|((_&63)<<6)|(C&63));E+=3}}return B}};var months=new Array("\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"),daysInMonth=new Array(31,28,31,30,31,30,31,31,30,31,30,31),days=new Array("\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"),beginYear="1900",endYear="2050";function DxCalendarTemplate(){}DxCalendarTemplate.getTemplate=function(){var $="<table border=\"0\" cellpadding=\"0\" style='width:200px;height:194px' width='200px' height='194px' cellspacing=\"1\" class=\"Calendar\" id=Calendar><thead onclick=\"event.cancelBubble = true;\"><tr align=\"center\" valign=\"middle\"><td colspan=\"7\" class=\"Title\"><button onclick=\"top.DxCalendarTemplate.subMonth(this);\" title=\"\u4e0a\u4e00\u6708\" class=DayButton>3</button> ";$+="<select id=CalendarYear style='width:60px;' onchange=\"top.DxCalendarTemplate.changeYear(this);event.cancelBubble = true;\" onclick=\"event.cancelBubble = true;\">";for(var C=beginYear;C<=endYear;C++)$+="<option>"+C+"</option>";$+="</select>";$+="\u5e74";$+="<select id=CalendarMonth style='width:40px;' onchange=\"top.DxCalendarTemplate.changeMonth(this);event.cancelBubble = true;\" onclick=\"event.cancelBubble = true;\">";for(C=1;C<=12;C++)$+="<option>"+C+"</option>";$+="</select>";$+="\u6708 <button id=\"mousebutton\" onclick=\"top.DxCalendarTemplate.addMonth(this);event.cancelBubble = true;\" title=\"\u4e0b\u4e00\u6708\" class=DayButton>4</button></td></tr><tr align=\"center\" valign=\"middle\">";$+="<TD class=DaySunTitle id=diary >"+days[0]+"</TD>";for(var A=1;A<days.length-1;A++)$+="<TD class=DayTitle id=diary>"+days[A]+"</TD>";$+="<TD class=DaySatTitle id=diary>"+days[A]+"</TD>";$+="<TBODY border=1 cellspacing=\"0\" title=\"\u5149\u6807\u6eda\u52a8\u53ef\u9009\u62e9\u6708\u4efd\" onmousewheel=\"top.DxCalendarTemplate.mousewheel(this,event);\" cellpadding=\"0\" id=\"calendar\" ALIGN=CENTER ONCLICK=\"top.DxCalendarTemplate.getDiary(this,event);\">";for(var B=0;B<6;B++){$+="<TR style='cursor:pointer'>";for(var _=0;_<days.length;_++)$+="<TD class=CalendarTD></TD>";$+="</TR>"}$+="</TBODY><tFoot><tr align=\"center\" valign=\"middle\"><td colspan=7 class=Tail><button class=Tail-Button title='\u5f53\u524d\u65e5\u671f' style=\"width:90px\" onclick=\"top.DxCalendarTemplate.setToday(this);\">\u4eca\u5929</button><button style=\"width:90px\" class=Tail-Button title='\u6e05\u7a7a\u65e5\u671f' onclick=\"top.DxCalendarTemplate.clearDate(this);\">\u6e05\u7a7a\u65e5\u671f</button></td></tr></tFoot></TABLE>";return $};DxCalendarTemplate.init=function(D,_,I,H,$,G){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),E=WatCore.getWindow(D,B),F=top.E_getObject(D,"calendar",A);F.orange=I;var C=new DxCalendarTemplate.getNowDay(H);F.today=C;F.year=C.year;F.month=C.month;F.day=C.day;F.hour=C.hour;F.minutes=C.minutes;F.seconds=C.seconds;F.strConID=_;F.strWinID=D;F.jtype=$;DxCalendarTemplate.Calendar(_,F)};DxCalendarTemplate.getNowDay=function(_){var $;if(_=="0"||_==null||_=="")$=new Date();else $=new Date(parseInt(_));this.now=$;this.year=$.getFullYear();this.month=$.getMonth();this.day=$.getDate();this.hour=$.getHours();this.minutes=$.getMinutes();this.seconds=$.getSeconds()};DxCalendarTemplate.getToday=function(_){var $=new Date();_.now=$;_.year=$.getFullYear();_.month=$.getMonth();_.day=$.getDate()};DxCalendarTemplate.getDays=function($,_){if(1==$)return((0==_%4)&&(0!=(_%100)))||(0==_%400)?29:28;else return daysInMonth[$]};DxCalendarTemplate.Calendar=function(A,M){var J=new Date(M.year,M.month,1),L=-1,I=J.getDay(),B=DxCalendarTemplate.getDays(J.getMonth(),J.getFullYear()),F=0;if((M.today.year==J.getFullYear())&&(M.today.month==J.getMonth()))L=M.today.day;var H;if(top.isIE)H=M.tBodies.calendar;else H=M;if(H==null)return;var G=DxCalendarTemplate.getDays(J.getMonth(),J.getFullYear());for(var E=0;E<H.rows.length;E++)for(var $=0;$<H.rows[E].cells.length;$++){var D=H.rows[E].cells[$],C=(J.getMonth()+1)<10?("0"+(J.getMonth()+1)):(J.getMonth()+1);if(($==I)&&(0==F))F=1;var K=F<10?("0"+F):(F),_="<"+J.getFullYear()+"-"+C+"-"+K+">";if(L==F)D.className="DayNow";else if($==6)D.className="DaySat";else if($==0)D.className="DaySun";else D.className="Day";if((F>0)&&(F<=G)){D.innerText=F;F++}else{D.className="CalendarTD";D.innerText=""}}DxCalendarTemplate.setYear(M,M.year);DxCalendarTemplate.setMonth(M,(parseInt(M.month)+1))};DxCalendarTemplate.setYear=function(B,A){var _=B.ownerDocument.getElementById("CalendarYear");if(_==null)return;var $=parseInt(A)-parseInt(beginYear);_.options[$].selected=true};DxCalendarTemplate.setMonth=function(B,A){var _=B.ownerDocument.getElementById("CalendarMonth");if(_==null)return;var $=parseInt(A)-1;_.options[$].selected=true};DxCalendarTemplate.changeYear=function(A){var _=A.parentElement.parentElement.parentElement.parentElement;if(!top.isIE)_=$("#calendar",_).get(0);_.year=A.options[A.selectedIndex].innerText;DxCalendarTemplate.Calendar(_.strConID,_)};DxCalendarTemplate.changeMonth=function(A){var _=A.parentElement.parentElement.parentElement.parentElement;if(!top.isIE)_=$("#calendar",_).get(0);_.month=parseInt(A.options[A.selectedIndex].innerText)-1;DxCalendarTemplate.Calendar(_.strConID,_)};DxCalendarTemplate.subMonth=function(B){var A=B.parentElement.parentElement.parentElement.parentElement;if(!top.isIE)A=$("#calendar",A).get(0);var _=A.month;if((_-1)<0){A.month=11;A.year=A.year-1}else A.month=_-1;DxCalendarTemplate.Calendar(A.strConID,A)};DxCalendarTemplate.addMonth=function(B){var A=B.parentElement.parentElement.parentElement.parentElement;if(!top.isIE)A=$("#calendar",A).get(0);var _=A.month;if((_+1)>11){A.month=0;A.year=A.year+1}else A.month=_+1;DxCalendarTemplate.Calendar(A.strConID,A)};DxCalendarTemplate.mousewheel=function(C,A){var $=A.wheelDelta,B=C.parentElement,_=B.ownerDocument.getElementById("mousebutton");if($>=120)DxCalendarTemplate.subMonth(_);else if($<=-120)DxCalendarTemplate.addMonth(_)};DxCalendarTemplate.getDiary=function(D,_){var C;if(top.isIE)C=D.parentElement;else C=D;var B=$(_.srcElement).text();if(B){if(B.length>2)return;C.today.day=parseInt(B);C.today.month=C.month;C.today.year=C.year;if(C.jtype=="DxDataGrid"){var A=Number(new Date(C.today.year,C.today.month,C.today.day,C.hour,C.minutes,C.seconds));top.DxDataGrid.calendarChange(C.strWinID,C.strConID,C.orange,A,true)}else if(C.jtype=="DxCalendar"){A=Number(new Date(C.today.year,C.today.month,C.today.day));top.DxCalendar.calendarChange(C.strWinID,C.strConID,C.orange,A)}else if(C.jtype=="DxDateTimePick"){A=Number(new Date(C.today.year,C.today.month,C.today.day,C.hour,C.minutes,C.seconds));top.DxDateTimePick.calendarChangeaction(C.strWinID,C.strConID,C.orange,A)}DxCalendarTemplate.clearResource(C)}else _.cancelBubble=true};DxCalendarTemplate.setToday=function(F){var E=F.parentElement.parentElement.parentElement.parentElement;if(!top.isIE)E=$("#calendar",E).get(0);var _=new Date(),B=_.getFullYear(),A=_.getMonth(),C=_.getDate();if(E.jtype=="DxDataGrid"){var D=Number(new Date(B,A,C,E.hour,E.minutes,E.seconds));top.DxDataGrid.calendarChange(E.strWinID,E.strConID,E.orange,D)}else if(E.jtype=="DxCalendar"){D=Number(new Date(B,A,C));top.DxCalendar.calendarChange(E.strWinID,E.strConID,E.orange,D)}else if(E.jtype=="DxDateTimePick"){D=Number(new Date(B,A,C,E.hour,E.minutes,E.seconds));top.DxDateTimePick.calendarChangeaction(E.strWinID,E.strConID,E.orange,D)}DxCalendarTemplate.clearResource(E)};DxCalendarTemplate.clearDate=function(B){var A=B.parentElement.parentElement.parentElement.parentElement;if(!top.isIE)A=$("#calendar",A).get(0);var _=0;if(A.jtype=="DxDataGrid")top.DxDataGrid.calendarChange(A.strWinID,A.strConID,A.orange,_);else if(A.jtype=="DxCalendar")top.DxCalendar.calendarChange(A.strWinID,A.strConID,A.orange,_);else if(A.jtype=="DxDateTimePick")top.DxDateTimePick.calendarChangeaction(A.strWinID,A.strConID,A.orange,_);DxCalendarTemplate.clearResource(A)};DxCalendarTemplate.clearResource=function($){$.orange=null;$.today=null;$.year=null;$.month=null;$.day=null;$.strConID=null;$.strWinID=null;$.jtype=null};var SPLIT_WIDTH=8,split_left_icon="/resources/core/ArrLeft.gif",split_disleft_icon="/resources/core/ArrDisLeft.gif",split_right_icon="/resources/core/ArrRight.gif",split_disright_icon="/resources/core/ArrDisRight.gif",split_up_icon="/resources/core/ArrUp_old.gif",split_disup_icon="/resources/core/ArrDisUp.gif",split_down_icon="/resources/core/ArrDown_old.gif",split_disdown_icon="/resources/core/ArrDisDown.gif",splitscreen,isclosedwindownotify=true,splitscreentype,splitscreenwidth,splitscreenheight,focusinput,fzoom=top.detectZoom()/100,tempwidth="",tempheight="",cwidth="",cheight="",topTaskBarHeight=47,parameterencryption;function Desktop(){}Desktop.init=function(K,B,E,H,G,C,I){var F=screen.availWidth,J=screen.availHeight;try{splitscreen=E;parameterencryption=I;if(splitscreen!="true"){self.moveTo(0,0);self.resizeTo(F,J)}else{F=G;J=C;isclosedwindownotify=false;splitscreentype=H;splitscreenwidth=G;splitscreenheight=C;Desktop.initsplitscreen()}if(top.isIE){cwidth=parseInt($(document.documentElement).width()-2);cheight=parseInt($(document.documentElement).height()-2);if(IEVersion=="IE10"||IEVersion=="IE11"){cwidth=parseInt(cwidth/fzoom);cheight=parseInt(cheight/fzoom)}}else{var A=oDoc.getElementById(WIN_CANANS);cwidth=parseInt($(A).width());cheight=parseInt($(A).height())}}catch(_){}top.WatCore.init(B);top.initWindow("desktop");top.E_putTempObject("APPNAME",K);try{if(B!="true"&&splitscreen!="true"&&document.body.clientHeight<(parseInt(screen.height)-50)){var D=new ActiveXObject("WScript.Shell");D.SendKeys("{F11}")}}catch(_){}if(splitscreen!="true")Desktop.sendInitializerCall(F,J,cwidth,cheight);else Desktop.sendInitializerCallBySplitScreen(F,J,cwidth,cheight)};Desktop.initsplitscreen=function(){var B=splitscreentype.split("@");if(B.length<2){self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight)}else{var C=B[0],_=B[1],D=0;if(B.length>2)D=B[2];var A=0,$=0;if(C=="left"){A=-1*parseInt(_)-parseInt(splitscreenwidth);$=parseInt(D)}else if(C=="right"){A=parseInt(_)+parseInt(screen.availWidth);$=parseInt(D)}else if(C=="top"){A=parseInt(_);$=-1*parseInt(D)-parseInt(splitscreenheight)}else if(C=="bottom"){A=parseInt(_);$=parseInt(D)+parseInt(screen.availHeight)}self.moveTo(A,$);self.resizeTo(splitscreenwidth,splitscreenheight);self.focus()}};Desktop.minit=function(){};Desktop.resize=function(){var C,B;try{fzoom=top.detectZoom()/100;if(top.isIE){C=parseInt($(document.documentElement).width()-2);B=parseInt($(document.documentElement).height()-2);if(IEVersion=="IE10"||IEVersion=="IE11"){C=parseInt(C/fzoom);B=parseInt(B/fzoom)}}else{var _=$("#"+WIN_CANANS);C=parseInt(_.width());B=parseInt(_.height())}if(C!=cwidth||B!=cheight){tempwidth=C;tempheight=B;cwidth=C;cheight=B}}catch(A){}Desktop.adjust();WatCore.piaofouleftbarinit();WatCore.piaofourightbarinit();WatCore.piaofoutopbarinit()};Desktop.piaofouleftbarin=function(_){var $=document.getElementById("winModalLayer");if($!=null&&$.style.visibility=="visible")return;if(parseInt(_.parentNode.style.left)<0)_.parentNode.style.left=(parseInt(_.parentNode.getAttribute("swidth"))*-1)+"px"};Desktop.piaofouleftbarout=function($){if(parseInt($.parentNode.style.left)<0)$.parentNode.style.left=((parseInt($.parentNode.getAttribute("swidth"))+21)*-1)+"px"};Desktop.piaofourightbarin=function(A){try{var $=parseInt(document.body.clientWidth);if(parseInt(A.parentNode.style.left)>$-30)A.parentNode.style.left=(parseInt(document.body.clientWidth)-22)+"px"}catch(_){}};Desktop.piaofourightbarout=function(A){try{var $=parseInt(document.body.clientWidth);if(parseInt(A.parentNode.style.left)>$-30)A.parentNode.style.left=(parseInt(document.body.clientWidth)-1)+"px"}catch(_){}};Desktop.piaofoutopbarin=function(A){var _=document.getElementById("winModalLayer");if(_!=null&&_.style.visibility=="visible")return;try{if(parseInt(A.parentNode.style.top)<0)A.parentNode.style.top=(parseInt(A.parentNode.getAttribute("sheight"))*-1)+"px"}catch($){}};Desktop.piaofoutopbarout=function($){if(parseInt($.parentNode.style.top)<0)$.parentNode.style.top=((parseInt($.parentNode.getAttribute("sheight"))+22)*-1)+"px"};Desktop.sendInitializerCall=function($,C,_,A){var B=WatCore.stringtoxml("<client ostype='"+ostype+"' osdigits='"+osdigits+"' browserversion='"+IEVersion+"' browsertype='"+browsertype+"' swidth='"+$+"' sheight='"+C+"' cwidth='"+_+"' cheight='"+A+"'><sequenceid>null</sequenceid></client>");top.msgContent=WatCore.xmltostring(B);top.WatCore.sendCall()};Desktop.sendInitializerCallBySplitScreen=function($,C,_,A){var B=WatCore.stringtoxml("<client ostype='"+ostype+"' osdigits='"+osdigits+"' browserversion='"+IEVersion+"' browsertype='"+browsertype+"' swidth='"+$+"' sheight='"+C+"' cwidth='"+_+"' cheight='"+A+"'><sequenceid>null</sequenceid></client>");top.msgContent=WatCore.xmltostring(B);top.WatCore.sendCallByFp()};Desktop.focusit=function(){top.focus()};Desktop.sleep=function(B){var I,E=new Date(),H,_,J,$,F,C,A,D,G;H=E.getHours();_=E.getMinutes();J=E.getSeconds();$=E.getMilliseconds();do{I=new Date();F=I.getHours()-H;C=I.getMinutes()-_;A=I.getSeconds()-J;D=I.getMilliseconds()-$;if(F<0)F+=24;G=F*3600+C*60+A;G=G*1000+D}while(G<B)};Desktop.getCursorPsn=function($){var A=-1;if(!top.isIE)A=$.selectionStart;else{var _=document.selection.createRange();_.moveStart("character",-$.value.length);A=_.text.length}return A};Desktop.ShowPage=function(C,_,G){var F=top.E_clientModel.E_getWindow(top.DESKTOP),E=F.document,B=E.getElementById("canvas"),D=top.isIE?_.selectNodes("content")[0].text:_.selectNodes("content")[0].textContent;D=Desktop.getWebFormContent(C,G,D);$(B).html(D);top.Desktop.adjust();top.Desktop.adjustBySplit(true);var H=_.selectNodes("initial");if(H!=null&&H.length>0){var A=top.isIE?H[0].text:H[0].textContent;A=Desktop.getWebFormScript(C,G,A);top.WatCore.execInitScript(C,A)}top.E_removeObject(top.DESKTOP);focusinput=$("#focusinput",E);Desktop.focusinput()};Desktop.focusinput=function(){if(focusinput!=null){focusinput.focus();focusinput.blur()}};Desktop.ShowDesktopTaskbar=function(C,_,G){var F=top.E_clientModel.E_getWindow(top.DESKTOP),E=F.document,B=E.getElementById("desktopbar"),D=top.isIE?_.selectNodes("content")[0].text:_.selectNodes("content")[0].textContent;D=Desktop.getWebFormContent(C,G,D);$(B).html(D);top.Desktop.adjust();top.Desktop.adjustBySplit(true);var H=_.selectNodes("initial");if(H!=null&&H.length>0){var A=top.isIE?H[0].text:H[0].textContent;A=Desktop.getWebFormScript(C,G,A);top.WatCore.execInitScript(C,A)}top.E_removeObject(top.DESKTOP)};Desktop.ShowDesktopTopTaskbar=function(C,_,G){var F=top.E_clientModel.E_getWindow(top.DESKTOP),E=F.document,B=E.getElementById("topTaskBarCanvas");$("#topTaskBar").css("display","block");$("#canvas").css("top",$("#topTaskBar").height());var D=top.isIE?_.selectNodes("content")[0].text:_.selectNodes("content")[0].textContent;D=Desktop.getWebFormContent(C,G,D);$(B).html(D);top.Desktop.adjust();top.Desktop.adjustBySplit(true);var H=_.selectNodes("initial");if(H!=null&&H.length>0){var A=top.isIE?H[0].text:H[0].textContent;A=Desktop.getWebFormScript(C,G,A);top.WatCore.execInitScript(C,A)}top.E_removeObject(top.DESKTOP)};Desktop.ShowDesktopTopPopTaskbar=function(C,_,G){var F=top.E_clientModel.E_getWindow(top.DESKTOP),E=F.document,B=E.getElementById("topPopTaskBar"),D=top.isIE?_.selectNodes("content")[0].text:_.selectNodes("content")[0].textContent;D=Desktop.getWebFormContent(C,G,D);$(B).html(D);var H=_.selectNodes("initial");if(H!=null&&H.length>0){var A=top.isIE?H[0].text:H[0].textContent;A=Desktop.getWebFormScript(C,G,A);top.WatCore.execInitScript(C,A)}top.E_removeObject(top.DESKTOP)};Desktop.ShowDesktopLeftTaskbar=function(C,_,G){var F=top.E_clientModel.E_getWindow(top.DESKTOP),E=F.document,B=E.getElementById("leftTaskBar");$(B).css("display","block");$("#canvas").css("left",$(B).width());var D=top.isIE?_.selectNodes("content")[0].text:_.selectNodes("content")[0].textContent;D=Desktop.getWebFormContent(C,G,D);$(B).html(D);var H=_.selectNodes("initial");if(H!=null&&H.length>0){var A=top.isIE?H[0].text:H[0].textContent;A=Desktop.getWebFormScript(C,G,A);top.WatCore.execInitScript(C,A)}top.E_removeObject(top.DESKTOP)};Desktop.ShowPiaofouLeftbar=function(D,A,H){var G=top.E_clientModel.E_getWindow(top.DESKTOP),F=G.document,C=F.getElementById("piaofouleftbar"),_=C.ownerDocument.getElementById("piaofouleftbar_c"),E=top.isIE?A.selectNodes("content")[0].text:A.selectNodes("content")[0].textContent;E=Desktop.getWebFormContent(D,H,E);$(_).html(E);top.Desktop.adjust();top.Desktop.adjustBySplit(true);var I=A.selectNodes("initial");if(I!=null&&I.length>0){var B=top.isIE?I[0].text:I[0].textContent;B=Desktop.getWebFormScript(D,H,B);top.WatCore.execInitScript(D,B)}top.E_removeObject(top.DESKTOP);C.style.visibility="visible";WatCore.piaofouleftbarinit()};Desktop.ShowPiaofouRightbar=function(D,A,H){var G=top.E_clientModel.E_getWindow(top.DESKTOP),F=G.document,C=F.getElementById("piaofourightbar"),_=C.ownerDocument.getElementById("piaofourightbar_c"),E=top.isIE?A.selectNodes("content")[0].text:A.selectNodes("content")[0].textContent;E=Desktop.getWebFormContent(D,H,E);$(_).html(E);top.Desktop.adjust();top.Desktop.adjustBySplit(true);var I=A.selectNodes("initial");if(I!=null&&I.length>0){var B=top.isIE?I[0].text:I[0].textContent;B=Desktop.getWebFormScript(D,H,B);top.WatCore.execInitScript(D,B)}top.E_removeObject(top.DESKTOP);C.style.visibility="visible";WatCore.piaofourightbarinit()};Desktop.ShowPiaofouTopbar=function(D,A,H){var G=top.E_clientModel.E_getWindow(top.DESKTOP),F=G.document,C=F.getElementById("piaofoutopbar"),_=C.ownerDocument.getElementById("piaofoutopbar_c"),E=top.isIE?A.selectNodes("content")[0].text:A.selectNodes("content")[0].textContent;E=Desktop.getWebFormContent(D,H,E);$(_).html(E);top.Desktop.adjust();top.Desktop.adjustBySplit(true);var I=A.selectNodes("initial");if(I!=null&&I.length>0){var B=top.isIE?I[0].text:I[0].textContent;B=Desktop.getWebFormScript(D,H,B);top.WatCore.execInitScript(D,B)}top.E_removeObject(top.DESKTOP);C.style.visibility="visible";WatCore.piaofoutopbarinit()};Desktop.setBKIMG=function($){var B=top.E_clientModel.E_getWindow(top.DESKTOP),A=B.document,_=A.getElementById("watBody");_.style.backgroundImage=top.isIE?$.text:$.textContent};Desktop.setAPPNormal=function($){var B=top.E_clientModel.E_getWindow(top.DESKTOP),A=B.document,_=A.getElementById("watBody"),C=_.ownerDocument.getElementById("desktopbar");if(C!=null)C.style.zIndex="-1"};Desktop.setAPPWindow=function($){var B=top.E_clientModel.E_getWindow(top.DESKTOP),A=B.document,_=A.getElementById("watBody"),C=_.ownerDocument.getElementById("desktopbar");if(C!=null)C.style.zIndex="2"};Desktop.setBKCOLOR=function($){var B=top.E_clientModel.E_getWindow(top.DESKTOP),A=B.document,_=A.getElementById("watBody");_.style.backgroundColor=top.isIE?$.text:$.textContent};Desktop.webFrameSet=function(D,B,I,A){var G=top.E_clientModel.E_getWindow(top.DESKTOP),F=G.document,_=F.getElementById(I),H=F.getElementById(B);if(_!=null){top.Desktop.clear(D,_,F);if(_.removeNode)_.removeNode(true);else $(_).remove();_.innerHTML=null;_=null}var E=top.isIE?A.selectNodes("content")[0].text:A.selectNodes("content")[0].textContent;E=Desktop.getWebFormContent(D,I,E);$(H).html(E);top.Desktop.adjustBySplit(true);var J=A.selectNodes("initial");if(J[0]!=null){var C=top.isIE?J[0].text:J[0].textContent;C=Desktop.getWebFormScript(D,I,C);top.WatCore.execInitScript(D,C)}top.E_removeObject(top.DESKTOP);if(window.CollectGarbage){window.CollectGarbage();CollectGarbage()}};Desktop.formSet=function(D,A,C,_,I){var G=top.E_clientModel.E_getWindow(top.DESKTOP),F=G.document,H=F.getElementById(A),E=top.isIE?_.selectNodes("content")[0].text:_.selectNodes("content")[0].textContent;E=Desktop.getWebFormContent(D,I,E);$(H).html(E);if(C=="true")H.style.overflow="auto";else H.style.overflow="hidden";var J=_.selectNodes("initial");if(J[0]!=null){var B=top.isIE?J[0].text:J[0].textContent;B=Desktop.getWebFormScript(D,I,B);top.WatCore.execInitScript(D,B)}};Desktop.getWebFormContent=function(_,A,$){var B;if(A!=top.DESKTOP&&$=="#CACHE#"&&E_watwebformCache.E_contains(A)){B=E_watwebformCache.E_get(A);B=B.replaceAll("#watid#",_)}else{E_watwebformCache.E_put(A,$);B=$.replaceAll("#watid#",_)}return B};Desktop.getWebFormScript=function(_,A,$){var B;if(A!=top.DESKTOP&&$=="#CACHE#"&&E_watwebformScriptCache.E_contains(A)){B=E_watwebformScriptCache.E_get(A);B=B.replaceAll("#watid#",_)}else{E_watwebformScriptCache.E_put(A,$);B=$.replaceAll("#watid#",_)}return B};Desktop.forRemove=function(B,_,E){var D=top.E_clientModel.E_getWindow(top.DESKTOP),C=D.document,A=C.getElementById(E);if(A!=null){top.Desktop.clear(B,A,C);if(A.removeNode)A.removeNode(true);else $(A).remove();A.innerHTML=null;A=null}top.E_removeObject(top.DESKTOP);if(window.CollectGarbage){window.CollectGarbage();CollectGarbage()}};Desktop.purge=function($){var _=$.attributes;if(_){var B=_.length;for(var C=0;C<B;C+=1){var A=_[C].name;if(typeof $[A]==="function")$[A]=null}}_=$.childNodes;if(_){B=_.length;for(C=0;C<B;C+=1)top.Desktop.purge($.childNodes[C])}};Desktop.textCounter=function($){var A=0,B=0,_=$.length;for(B=0;B<_;B++)if($.charCodeAt(B)>255)A+=2;else A++;return A};Desktop.getSltext=function(_,D){var B=0,C=0,A=_.length,$;for(C=0;C<A;C++){if(_.charCodeAt(C)>255)B+=2;else B++;if(B>D)break}if(C==A)$=_;else $=_.substring(0,C)+"..";return $};Desktop.clear=function(_,J,B,D){var I=top.E_emrshowChange.E_keys.E_list.E_contents.length,E;for(var F=I-1;F>=0;F--){E=top.E_emrshowChange.E_keys.E_list.E_contents[F];var C=top.E_emrshowChange.E_get(E);if(_==C)top.E_emrshowChange.E_remove(E)}for(F=I-1;F>=0;F--){E=top.E_dataChange.E_keys.E_list.E_contents[F];C=top.E_dataChange.E_get(E);if(_==C)top.E_dataChange.E_remove(E)}I=top.E_htmldisplayChange.E_keys.E_list.E_contents.length;for(F=I-1;F>=0;F--){E=top.E_htmldisplayChange.E_keys.E_list.E_contents[F];C=top.E_htmldisplayChange.E_get(E);if(_==C)top.E_htmldisplayChange.E_remove(E)}if(D==undefined||D!="false")if(_!=top.DESKTOP){I=top.E_sizeChange.E_keys.E_list.E_contents.length;for(F=I-1;F>=0;F--){E=top.E_sizeChange.E_keys.E_list.E_contents[F];if(E==_)top.E_sizeChange.E_remove(E)}}if(J.getAttribute("son")!=null&&J.getAttribute("son")!=""){var G=J.getAttribute("son").split("&");for(F=0;F<G.length;F++){var H=B.getElementById(G[F]);if(H==null)continue;var $=H.getAttribute("jsn"),A=top.window[$];Desktop.clear(_,H,B,D);if(A&&A.clear)A.clear(_,B,H)}}};Desktop.topTaskBarClick=function(_){if($("#topPopTaskBar").css("display")=="none"){$(_).css("background","#F4F4F4");$("img",_).attr("src",watLocation2+"/resources/core/888.png");$("#topPopTaskBar").css("display","block");$("#topPopTaskBar").height($("#canvas").height())}else{$(_).css("background","transparent");$("img",_).attr("src",watLocation2+"/resources/core/001.png");$("#topPopTaskBar").css("display","none")}};Desktop.topTaskBarReturn=function(){var _=$("#topTaskBarButton");_.css("background","transparent");$("img",_.get(0)).attr("src",watLocation2+"/resources/core/001.png");$("#topPopTaskBar").css("display","none")};Desktop.initPage=function(){var _=$("#topTaskBar");_.css("display","none");var A=$("#leftTaskBar");A.css("display","none")};Desktop.initDeskTopTaskBar=function(){var C=parseInt(window.document.body.clientWidth||window.document.documentElement.clientWidth),_;if(WatCore.taskbar!=null)_=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight)-30;else _=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight);var B=$("#topTaskBar"),D=$("#leftTaskBar"),E=0,F=0;if(B.css("display")=="block"){E=parseInt(B.height());_-=E;$("#topTaskBarCanvas").width(C-parseInt(B.height()))}if(D.css("display")=="block"){F=parseInt(D.width());D.height(_)}var A=$("#canvas");A.width(C-F);A.height(_);A.css({"left":F,"top":E});top.resizeSubMaxWindows(top.E_clientModel.E_getWindowID(window))};Desktop.adjust=function(){try{if(splitscreen!="true");else Desktop.initsplitscreen()}catch(L){}Desktop.initDeskTopTaskBar();var G=$("#canvas"),A=parseInt(G.width()),K=parseInt(G.height()),b=window.document.body.oldWidth,g=window.document.body.oldHeight;if(A!=b||g!=K){window.document.body.oldWidth=A;window.document.body.oldHeight=K;var J=window.document.getElementById("watFrame");if(J==null)return;var B=$(J);B.width(A);B.height(K);var C=J.getAttribute("rc"),Y=C.split(","),U=Y[0],_=Y[1],f=0,e=0,b=0,g=0,h=0,W=0;for(var V=1;V<=U;V++){for(var S=1;S<=_;S++){var E="watFrame_"+V+"_"+S,P=J.ownerDocument.getElementById(E),D=$(P);if(J.getAttribute("split")=="true"){var X=J.getAttribute("aspect");if(X=="ROW"){var O=A*parseInt(P.ww)/100,H=0;if(V==1){if(J.getAttribute("isSplit")=="true"){H=parseInt(P.getAttribute("oh"));if(H<0)H=0;if(H>K)H=((K-SPLIT_WIDTH)<0)?0:(K-SPLIT_WIDTH);J.setAttribute("oh",H)}else H=K*parseInt(P.getAttribute("wh"))/100;D.width(O);P.setAttribute("up_oh",H);D.height(H);var Q=J.ownerDocument.getElementById(E+"_split_button"),N=(O-parseInt(Q.style.width))/2;if(N<0)N=0;Q.style.left=N;if(J.getAttribute("isSplit")!="true")if(Q.getAttribute("split_direc")=="1"){J.setAttribute("split_direc","1");H=0;P.setAttribute("oh",H);D.height(H);J.setAttribute("flag","1")}else if(Q.getAttribute("split_direc")=="2"){J.setAttribute("split_direc","2");H=((K-SPLIT_WIDTH)<0)?0:(K-SPLIT_WIDTH);P.setAttribute("oh",H);D.height(H);J.setAttribute("flag","1")}var a=$("#"+E+"_split",J.ownerDocument);a.width(O);a.css("top",H);var d=$("#"+E+"_splitshine",J.ownerDocument);d.width(O);d.css("top",H);if(S>1)f+=b;D.css("top",e);D.css("left",f);b=O;g=H}else{D.width(O);if(J.getAttribute("isSplit")=="true"){H=K-parseInt(J.getAttribute("oh"))-SPLIT_WIDTH;if(H<0)H=0;if(H>K)H=((K-SPLIT_WIDTH)<0)?0:(K-SPLIT_WIDTH)}else{H=(K*parseInt(P.getAttribute("wh"))/100)-SPLIT_WIDTH;if(H<0)H=0}D.height(H);if(J.getAttribute("isSplit")!="true")if(J.getAttribute("split_direc")=="1"){H=((K-SPLIT_WIDTH)<0)?0:(K-SPLIT_WIDTH);D.height(H);P.setAttribute("oh",H);J.setAttribute("isSplit","true")}else if(J.getAttribute("split_direc")=="2"){H=0;D.height(H);P.setAttribute("oh",H);J.setAttribute("isSplit","true")}if(S>1)f+=b;D.css("top",e+SPLIT_WIDTH);D.css("left",f);b=O;g=H}}else{O=0,H=K*parseInt(P.wh)/100;if(S==1){if(J.getAttribute("isSplit")=="true"){O=parseInt(P.getAttribute("ow"));if(O<0)O=0;if(O>A)O=((A-SPLIT_WIDTH)<0)?0:(A-SPLIT_WIDTH);J.setAttribute("ow",O)}else O=A*parseInt(P.getAttribute("ww"))/100;D.width(O);P.setAttribute("left_ow")=O;D.height(H);var Q=J.ownerDocument.getElementById(E+"_split_button"),T=$(Q),N=(H-parseInt(T.height()))/2;if(N<0)N=0;T.css("top",N);if(J.getAttribute("isSplit")!="true")if(Q.getAttribute("split_direc")=="3"){J.setAttribute("split_direc","3");O=0;D.width(O);P.setAttribute("ow",O);J.setAttribute("flag","1")}else if(Q.getAttribute("split_direc")=="4"){J.setAttribute("split_direc","4");O=((A-SPLIT_WIDTH)<0)?0:(A-SPLIT_WIDTH);D.width(O);P.setAttribute("ow",O);J.setAttribute("flag","1")}a=$("#"+E+"_split",J.ownerDocument);a.height(H);a.css("left",O);d=J.ownerDocument.getElementById(E+"_splitshine"),d=$("#"+E+"_splitshine",J.ownerDocument);d.height(H);d.css("left",O);if(S>1)f+=b;D.css("top",e);D.css("left",f);b=O;g=H}else{P.style.height=H;if(J.getAttribute("isSplit")=="true"){O=A-parseInt(J.getAttribute("ow"))-SPLIT_WIDTH;if(O<0)O=0;if(O>A)O=((A-SPLIT_WIDTH)<0)?0:(A-SPLIT_WIDTH)}else{O=(A*parseInt(P.getAttribute("ww"))/100)-SPLIT_WIDTH;if(O<0)O=0}D.width(O);if(J.getAttribute("isSplit")!="true")if(J.getAttribute("split_direc")=="3"){O=((A-SPLIT_WIDTH)<0)?0:(A-SPLIT_WIDTH);D.width(O);P.setAttribute("ow",O);J.setAttribute("isSplit","true")}else if(J.getAttribute("split_direc")=="4"){O=0;D.width(O);P.setAttribute("ow",O);J.setAttribute("isSplit","true")}if(S>1)f+=b;D.css("top",e);D.css("left",f+SPLIT_WIDTH);b=O;g=H}}}else{O=A*parseInt(P.getAttribute("ww"))/100,H=K*parseInt(P.getAttribute("wh"))/100;W=H;var M=P.getAttribute("uww"),Z=P.getAttribute("uwh");if(M!=null&&M!="")O=M;if(Z!=null&&Z!=""){if(top.isIE)H=parseInt(Z);else H=parseInt(Z)+1}else H-=(e-h);D.width(O);D.height(H);if(S>1)f+=b;D.css("top",e);D.css("left",f);b=O;g=H}var R=P.getAttribute("rc");if(R!=null){var I=P.getAttribute("rc").split(","),c=I[0],F=I[1];Desktop.adjustSon(P,E,c,F,f,e,O,H,true)}}f=0;e+=g;h+=W}}};Desktop.adjustBySplit=function(T){Desktop.initDeskTopTaskBar();var F=$("#canvas"),A=parseInt(F.width()),J=parseInt(F.height());window.document.body.oldWidth=A;window.document.body.oldHeight=J;var I=window.document.getElementById("watFrame");if(I==null)return;var B=$(I);B.width(A);B.height(J);var C=I.getAttribute("rc"),W=C.split(","),R=W[0],_=W[1],d=0,c=0,Y=0,e=0,f=0,U=0;for(var S=1;S<=R;S++){for(var Q=1;Q<=_;Q++){var D="watFrame_"+S+"_"+Q,O=I.ownerDocument.getElementById(D);$o=$(O);if(I.getAttribute("split")=="true"){var V=I.getAttribute("aspect");if(V=="ROW"){var M=A*parseInt(O.getAttribute("ww"))/100,G=0;if(S==1){if(I.getAttribute("isSplit")=="true"){G=parseInt(O.getAttribute("oh"));if(G<0)G=0;if(G>J)G=((J-SPLIT_WIDTH)<0)?0:(J-SPLIT_WIDTH);I.setAttribute("oh",G)}else G=J*parseInt(O.getAttribute("wh"))/100;$o.width(M);$o.height(G);if(T)O.setAttribute("up_oh",G);var Z=$("#"+D+"_split",I.ownerDocument);Z.width(M);Z.height(G);var b=$("#"+D+"_splitshine",I.ownerDocument);b.width(M);b.height(G);var N=$("#"+D+"_split_button",I.ownerDocument),L=(M-parseInt(N.style.width))/2;if(L<0)L=0;N.css("left",L);if(Q>1)d+=Y;$o.css("top",c);$o.css("left",d);Y=M;e=G}else{$o.width(M);if(I.getAttribute("isSplit")=="true"){G=J-parseInt(I.getAttribute("oh"))-SPLIT_WIDTH;if(G<0)G=0;if(G>J)G=((J-SPLIT_WIDTH)<0)?0:(J-SPLIT_WIDTH)}else{G=(J*parseInt(O.getAttribute("wh"))/100)-SPLIT_WIDTH;if(G<0)G=0}$o.height(G);if(Q>1)d+=Y;$o.css("top",c+SPLIT_WIDTH);$o.css("left",d);Y=M;e=G}}else{M=0,G=J*parseInt(O.getAttribute("wh"))/100;if(Q==1){if(I.getAttribute("isSplit")=="true"){M=parseInt(O.getAttribute("ow"));if(M<0)M=0;if(M>A)M=((A-SPLIT_WIDTH)<0)?0:(A-SPLIT_WIDTH);I.setAttribute("ow",M)}else M=A*parseInt(O.getAttribute("ww"))/100;$o.width(M);if(T)O.setAttribute("left_ow",M);$o.height(G);Z=$("#"+D+"_split",I.ownerDocument);Z.height(G);Z.css("left",M);b=$("#"+D+"_splitshine",I.ownerDocument);b.height(G);b.css("left",M);N=$("#"+D+"_split_button",I.ownerDocument),L=(G-parseInt(N.style.height))/2;if(L<0)L=0;N.css("top",L);if(Q>1)d+=Y;$o.css("top",c);$o.css("left",d);Y=M;e=G}else{$o.height(G);if(I.getAttribute("isSplit")=="true"){M=A-parseInt(I.getAttribute("ow"))-SPLIT_WIDTH;if(M<0)M=0;if(M>A)M=((A-SPLIT_WIDTH)<0)?0:(A-SPLIT_WIDTH)}else{M=(A*parseInt(O.getAttribute("ww"))/100)-SPLIT_WIDTH;if(M<0)M=0}$o.width(M);if(Q>1)d+=Y;$o.css("top",c);$o.css("left",d+SPLIT_WIDTH);Y=M;e=G}}}else{M=A*parseInt(O.getAttribute("ww"))/100,G=J*parseInt(O.getAttribute("wh"))/100;U=G;var K=O.getAttribute("uww"),X=O.getAttribute("uwh");if(K!=null&&K!="")M=K;if(X!=null&&X!=""){if(top.isIE)G=parseInt(X);else G=parseInt(X)+1}else G-=(c-f);$o.width(M);$o.height(G);if(Q>1)d+=Y;$o.css("top",c);$o.css("left",d);Y=M;e=G}var P=O.getAttribute("rc");if(P!=null){var H=O.getAttribute("rc").split(","),a=H[0],E=H[1];Desktop.adjustSon(O,D,a,E,d,c,M,G,T)}}d=0;c+=parseInt(e);f+=parseInt(U)}};Desktop.adjustSon=function(H,C,R,_,K,J,I,d,U){var X=0,c=0,b=0,a=0;for(var T=1;T<=R;T++){for(var Q=1;Q<=_;Q++){var A=C+"_"+T+"_"+Q,N=H.ownerDocument.getElementById(A),B=$(N);if(H.getAttribute("split")=="true"){var V=H.getAttribute("aspect");if(V=="ROW"){var L=I*parseInt(N.getAttribute("ww"))/100,E=0;if(T==1){if(H.getAttribute("isSplit")=="true"){E=parseInt(N.getAttribute("oh"));if(E<0)E=0;if(E>d)E=((d-SPLIT_WIDTH)<0)?0:(d-SPLIT_WIDTH);H.setAttribute("oh",E)}else E=d*parseInt(N.getAttribute("wh"))/100;B.width(L);B.height(E);if(U)N.setAttribute("up_oh",E);var O=H.ownerDocument.getElementById(A+"_split_button"),S=$(O),M=(L-parseInt(S.width()))/2;if(M<0)M=0;S.css("left",M);if(H.getAttribute("isSplit")!="true")if(O.getAttribute("split_direc")=="1"){H.setAttribute("split_direc","1");E=0;B.height(E);N.setAttribute("oh",E);H.setAttribute("flag","1")}else if(O.getAttribute("split_direc")=="2"){H.setAttribute("split_direc","2");E=((d-SPLIT_WIDTH)<0)?0:(d-SPLIT_WIDTH);B.height(E);N.setAttribute("oh",E);H.setAttribute("flag","1")}else N.setAttribute("oh",N.style.height);var W=$("#"+A+"_split",H.ownerDocument);W.width(L);W.css("top",E);var Z=$("#"+A+"_splitshine",H.ownerDocument);Z.width(L);Z.css("top",E);if(Q>1)b+=X;B.css("top",a);B.css("left",b);X=L;c=E}else{B.width(L);if(H.getAttribute("isSplit")=="true"){E=d-parseInt(H.getAttribute("oh"))-SPLIT_WIDTH;if(E<0)E=0;if(E>d)E=((d-SPLIT_WIDTH)<0)?0:(d-SPLIT_WIDTH)}else{E=(d*parseInt(N.getAttribute("wh"))/100)-SPLIT_WIDTH;if(E<0)E=0}B.height(E);if(H.getAttribute("isSplit")!="true")if(H.getAttribute("split_direc")=="1"){E=((d-SPLIT_WIDTH)<0)?0:(d-SPLIT_WIDTH);B.height(E);N.setAttribute("oh",E);H.setAttribute("isSplit","true")}else if(H.getAttribute("split_direc")=="2"){E=0;B.height(E);N.setAttribute("oh",E);H.setAttribute("isSplit","true")}else N.setAttribute("oh",N.style.height);if(Q>1)b+=X;B.css("top",a+SPLIT_WIDTH);B.css("left",b);X=L;c=E}}else{var F=I*parseInt(N.getAttribute("ww"))/100,L=0,E=d*parseInt(N.getAttribute("wh"))/100;if(Q==1){if(H.getAttribute("isSplit")=="true"){L=parseInt(N.getAttribute("ow"));if(L<0)L=0;if(L>I)L=((I-SPLIT_WIDTH)<0)?0:(I-SPLIT_WIDTH);H.setAttribute("ow",L)}else L=I*parseInt(N.getAttribute("ww"))/100;B.width(L);N.setAttribute("ow",L);if(U)N.setAttribute("left_ow",L);B.height(E);O=H.ownerDocument.getElementById(A+"_split_button"),S=$(O),M=(E-parseInt(S.height()))/2;if(M<0)M=0;S.css("top",M);if(H.getAttribute("isSplit")!="true")if(O.getAttribute("split_direc")=="3"){H.setAttribute("split_direc","3");L=0;B.width(L);N.setAttribute("ow",L);H.setAttribute("flag","1")}else if(O.getAttribute("split_direc")=="4"){H.setAttribute("split_direc","4");L=((I-SPLIT_WIDTH)<0)?0:(I-SPLIT_WIDTH);B.width(L);N.ow=L;H.setAttribute("flag","1")}else N.setAttribute("ow",N.style.width);W=$("#"+A+"_split",H.ownerDocument);W.height(E);W.css("left",L);Z=$("#"+A+"_splitshine",H.ownerDocument);Z.height(E);Z.css("left",L);if(Q>1)b+=X;B.css("top",a);B.css("left",b);X=L;c=E}else{B.height(E);if(H.getAttribute("isSplit")=="true"){L=I-parseInt(H.getAttribute("ow"))-SPLIT_WIDTH;if(L<0)L=0;if(L>I)L=((I-SPLIT_WIDTH)<0)?0:(I-SPLIT_WIDTH)}else{L=(I*parseInt(N.getAttribute("ww"))/100)-SPLIT_WIDTH;if(L<0)L=0}B.width(L);N.setAttribute("ow",L);if(H.getAttribute("isSplit")!="true")if(H.getAttribute("split_direc")=="3"){L=((I-SPLIT_WIDTH)<0)?0:(I-SPLIT_WIDTH);B.width(L);N.setAttribute("ow",L);H.setAttribute("isSplit","true")}else if(H.getAttribute("split_direc")=="4"){L=0;B.width(L);N.setAttribute("ow",L);H.setAttribute("isSplit","true")}else N.setAttribute("ow",N.style.width);if(Q>1)b+=X;B.css("top",a);B.css("left",b+SPLIT_WIDTH);X=L;c=E;H.setAttribute("isSplit","true")}}}else{L=I*parseInt(N.getAttribute("ww"))/100,E=d*parseInt(N.getAttribute("wh"))/100;B.width(L);N.setAttribute("ow",L);N.setAttribute("oh",E);B.height(E);if(Q>1)b+=X;B.css("top",a);B.css("left",b);X=L;c=E}var P=N.getAttribute("rc");if(P!=null){var G=N.getAttribute("rc").split(","),Y=G[0],D=G[1];Desktop.adjustSon(N,A,Y,D,b,a,L,E,U)}}b=0;a+=c}H.setAttribute("isSplit","true")};Desktop.moveFrameSetColSplit=function($){$.style.cursor="w-resize"};Desktop.mouseOutFrameSetColSplit=function($){};Desktop.moveFrameSetRowSplit=function($){$.style.cursor="n-resize"};Desktop.beginMoveRowFrameSet=function(B,A){var D=A,E=window.document.getElementById(B.getAttribute("parentId")),F=E.ownerDocument.getElementById(B.getAttribute("parentId")+"_1_1_splitshine");F.style.display="block";var _,C;_=A.offsetY+B.offsetTop;C=B.offsetParent;F.style.top=_;F.setAttribute("nPreClientY",A.clientY);if(F.setCapture)F.setCapture();else if(window.captureEvents)window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);F.onmousemove=function(_){_=_||window.event;var A=(parseInt(F.style.top)+(_.clientY-F.getAttribute("nPreClientY")));if(A>=0&&A<=(parseInt(E.style.height)-SPLIT_WIDTH))$(F).css("top",A+"px");F.setAttribute("nPreClientY",_.clientY)};F.onmouseup=function(){Desktop.moveedRowsplit(B.getAttribute("parentId"),E,F,A)}};Desktop.moveingRowsplit=function($,C,A,_){var D=_.clientY,B=(parseInt(A.style.top)+(_.clientY-A.getAttribute("nPreClientY")));if(B>=0&&B<=(parseInt(C.style.height)-SPLIT_WIDTH))A.style.top=B+"px";A.setAttribute("nPreClientY",_.clientY)};Desktop.moveedRowsplit=function($,E,C,A){var H=C.style.top;E.setAttribute("isSplit","true");var _=E.ownerDocument.getElementById($+"_1_1"),F=E.ownerDocument.getElementById($+"_2_1"),G=E.ownerDocument.getElementById($+"_1_1_split_button_up"),D=E.ownerDocument.getElementById($+"_1_1_split_button_down"),B=parseInt(E.style.height);if(H<0){H=0;G.disabled=true;G.style.cursor="default";G.src=watLocation2+split_disup_icon;D.disabled=false;D.style.cursor="hand";D.src=watLocation2+split_down_icon;E.setAttribute("flag","1")}else if(H>B){H=B-SPLIT_WIDTH;G.disabled=false;G.style.cursor="hand";G.src=watLocation2+split_up_icon;D.disabled=true;D.style.cursor="default";D.src=watLocation2+split_disdown_icon;E.setAttribute("flag","1")}else{G.disabled=false;G.style.cursor="hand";G.src=watLocation2+split_up_icon;D.disabled=false;D.style.cursor="hand";D.src=watLocation2+split_down_icon;E.setAttribute("flag","0")}_.setAttribute("oh",H);F.setAttribute("oh",B-parseInt(H)-SPLIT_WIDTH);C.onmousemove=null;C.onmouseup=null;if(C.releaseCapture)C.releaseCapture();else if(window.releaseEvents)window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);C.style.display="none";Desktop.adjustBySplit(true)};Desktop.beginMoveColFrameSet=function(A,_){_=_||window.event;var C=A.style.left,G=A.style.top||0,D=window.document.getElementById(A.getAttribute("parentId")),F=D.ownerDocument.getElementById(A.getAttribute("parentId")+"_1_1_splitshine");$(F).css({"display":"block","top":G+"px","cursor":"resize"});F.setAttribute("nPreClientX",_.clientX);var E,B;E=_.offsetX+A.offsetLeft;B=A.offsetParent;F.style.left=E;if(F.setCapture)F.setCapture();else if(window.captureEvents)window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);F.onmousemove=function(_){_=_||window.event;var B=_.clientX,A=(parseInt(F.style.left)+(_.clientX-F.getAttribute("nPreClientX")));if(A>=0&&A<=(parseInt(D.style.width)-SPLIT_WIDTH))$(F).css("left",A+"px");F.setAttribute("nPreClientX",_.clientX)};$(F).mouseup(function($){$=$||window.event;Desktop.moveedColsplit(A.getAttribute("parentId"),D,F,$)})};Desktop.moveingColsplit=function(_,D,B,A){A=A||window.event;var E=A.clientX,C=(parseInt(B.style.left)+(A.clientX-B.getAttribute("nPreClientX")));if(C>=0&&C<=(parseInt(D.style.width)-SPLIT_WIDTH))$(B).css("left",C+"px");else alert(""+C);B.setAttribute("nPreClientX",A.clientX)};Desktop.moveedColsplit=function($,F,C,A){var E=C.style.left;F.setAttribute("isSplit","true");var D=F.ownerDocument.getElementById($+"_1_1"),B=F.ownerDocument.getElementById($+"_1_2"),G=F.ownerDocument.getElementById($+"_1_1_split_button_left"),H=F.ownerDocument.getElementById($+"_1_1_split_button_right"),_=parseInt(F.style.width);if(E<0){E=0;G.disabled=true;G.style.cursor="default";G.src=watLocation2+split_disleft_icon;H.disabled=false;H.style.cursor="hand";H.src=watLocation2+split_right_icon;F.setAttribute("flag","1")}else if(E>_){E=_-SPLIT_WIDTH;G.disabled=false;G.style.cursor="hand";G.src=watLocation2+split_left_icon;H.disabled=true;H.style.cursor="default";H.src=watLocation2+split_disright_icon;F.setAttribute("flag","1")}else{G.disabled=false;G.style.cursor="hand";G.src=watLocation2+split_left_icon;H.disabled=false;H.style.cursor="hand";H.src=watLocation2+split_right_icon;F.setAttribute("flag","0")}D.setAttribute("ow",E);B.setAttribute("ow",_-parseInt(E)-SPLIT_WIDTH);if(C.releaseCapture)C.releaseCapture();else if(window.releaseEvents)window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);C.onmousemove=null;C.onmouseup=null;C.style.display="none";Desktop.adjustBySplit(true)};Desktop.moveColLeft=function(B){var D=window.document.getElementById(B.getAttribute("parentId"));D.setAttribute("isSplit","true");var $=B.getAttribute("parentId"),C=D.ownerDocument.getElementById($+"_1_1"),A=D.ownerDocument.getElementById($+"_1_2"),E=D.ownerDocument.getElementById($+"_1_1_split_button_left"),F=D.ownerDocument.getElementById($+"_1_1_split_button_right"),_=parseInt(D.style.width);if(D.getAttribute("flag")=="1"){C.setAttribute("ow",C.getAttribute("left_ow"));A.setAttribute("ow",_-parseInt(C.getAttribute("ow"))-SPLIT_WIDTH);D.setAttribute("flag","0");E.disabled=false;E.src=watLocation2+split_left_icon;E.style.cursor="pointer"}else{C.setAttribute("ow",0);A.setAttribute("ow",((_-SPLIT_WIDTH)<0)?0:(_-SPLIT_WIDTH));D.setAttribute("flag","1");E.disabled=true;E.src=watLocation2+split_disleft_icon;E.style.cursor="default"}F.disabled=false;F.src=watLocation2+split_right_icon;F.style.cursor="pointer";Desktop.adjustBySplit(false)};Desktop.moveColRight=function(B){var D=window.document.getElementById(B.getAttribute("parentId"));D.setAttribute("isSplit","true");var $=B.getAttribute("parentId"),C=D.ownerDocument.getElementById($+"_1_1"),A=D.ownerDocument.getElementById($+"_1_2"),F=D.ownerDocument.getElementById($+"_1_1_split_button_right"),E=D.ownerDocument.getElementById($+"_1_1_split_button_left"),_=parseInt(D.style.width);if(D.getAttribute("flag")=="1"){C.setAttribute("ow",C.getAttribute("left_ow"));A.setAttribute("ow",_-parseInt(C.getAttribute("ow"))-SPLIT_WIDTH);D.setAttribute("flag","0");F.disabled=false;F.src=watLocation2+split_right_icon;F.style.cursor="hand"}else{C.setAttribute("ow",((_-SPLIT_WIDTH)<0)?0:(_-SPLIT_WIDTH));A.setAttribute("ow",0);D.setAttribute("flag","1");F.disabled=true;F.src=watLocation2+split_disright_icon;F.style.cursor="default"}E.disabled=false;E.src=watLocation2+split_left_icon;E.style.cursor="pointer";Desktop.adjustBySplit(false)};Desktop.moveRowUp=function(B){var D=window.document.getElementById(B.getAttribute("parentId"));D.setAttribute("isSplit","true");var $=B.getAttribute("parentId"),_=D.ownerDocument.getElementById($+"_1_1"),E=D.ownerDocument.getElementById($+"_2_1"),F=D.ownerDocument.getElementById($+"_1_1_split_button_up"),C=D.ownerDocument.getElementById($+"_1_1_split_button_down"),A=parseInt(D.style.height);if(D.getAttribute("flag")=="1"){_.setAttribute("oh",_.getAttribute("up_oh"));E.setAttribute("oh",A-parseInt(_.getAttribute("oh"))-SPLIT_WIDTH);D.setAttribute("flag","0");F.disabled=false;F.src=watLocation2+split_up_icon;F.style.cursor="pointer"}else{_.setAttribute("oh",0);E.setAttribute("oh",((A-SPLIT_WIDTH)<0)?0:(A-SPLIT_WIDTH));D.setAttribute("flag","1");F.disabled=true;F.src=watLocation2+split_disup_icon;F.style.cursor="default"}C.disabled=false;C.src=watLocation2+split_down_icon;C.style.cursor="pointer";Desktop.adjustBySplit(false)};Desktop.moveRowDown=function(B){var D=window.document.getElementById(B.getAttribute("parentId"));D.setAttribute("isSplit","true");var $=B.getAttribute("parentId"),_=D.ownerDocument.getElementById($+"_1_1"),E=D.ownerDocument.getElementById($+"_2_1"),C=D.ownerDocument.getElementById($+"_1_1_split_button_down"),F=D.ownerDocument.getElementById($+"_1_1_split_button_up"),A=parseInt(D.style.height);if(D.getAttribute("flag")=="1"){_.setAttribute("oh",_.getAttribute("up_oh"));E.setAttribute("oh",A-parseInt(_.getAttribute("oh"))-SPLIT_WIDTH);D.setAttribute("flag","0");C.disabled=false;C.src=watLocation2+split_down_icon;C.style.cursor="pointer"}else{_.setAttribute("oh",((A-SPLIT_WIDTH)<0)?0:(A-SPLIT_WIDTH));E.setAttribute("oh",0);D.setAttribute("flag","1");C.disabled=true;C.src=watLocation2+split_disdown_icon;C.style.cursor="default"}F.disabled=false;F.src=watLocation2+split_up_icon;F.style.cursor="pointer";Desktop.adjustBySplit(false)};function DxDragUtil(){}DxDragUtil.beginDrag=function(D,_,N,J){var L=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,L),O=top.E_getObject(D,"E_SW_"+_,A),I=O,B=A.body.offsetWidth,P=A.body.offsetHeight,K=I.style.width,M=I.style.height,F=0,G=0,E=$("#"+N,A);if(E.get(0)!=undefined){F=parseInt(E.offset().left);G=parseInt(E.offset().top)}if(window.attachEvent){O.setCapture();O.attachEvent("onmousemove",H);O.attachEvent("onmouseup",C)}else{A.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);A.addEventListener("mousemove",H,false);A.addEventListener("mouseup",C,false)}J.cancelBubble=true;J.returnValue=false;function H($){if(!$)$=window.event;var _=getMouseCoords($,A).x;_-=F;if(_<0)_=0;if(parseInt(B)-parseInt(_)<parseInt(K))_=parseInt(B)-parseInt(K);O.style.left=_;var C=getMouseCoords($,A).y;C-=G;if(C<0)C=0;if(parseInt(P)-parseInt(C)<parseInt(M))C=parseInt(P)-parseInt(M);O.style.top=C;$.cancelBubble=true}function C($){if(!$)$=window.event;if(window.attachEvent){O.detachEvent("onmouseup",C);O.detachEvent("onmousemove",H);O.releaseCapture()}else{A.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);A.removeEventListener("mousemove",H,false);A.removeEventListener("mouseup",C,false)}$.cancelBubble=true}};DxDragUtil.beginDrag2=function(I,C,A){var B=C.body.offsetWidth,H=C.body.offsetHeight,_=I.style.width,E=I.style.height,F=A.clientX-parseInt(I.style.left),G=A.clientY-parseInt(I.style.top);if(window.attachEvent){I.setCapture();I.attachEvent("onmousemove",$);I.attachEvent("onmouseup",D)}else{C.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);I.addEventListener("mousemove",$,false);I.addEventListener("mouseup",D,false)}A.cancelBubble=true;A.returnValue=false;function $($){if(!$)$=window.event;var A=$.clientX-F;if(A<0)A=0;if(parseInt(B)-parseInt(A)<parseInt(_))A=parseInt(B)-parseInt(_);I.style.left=A;var C=$.clientY-G;if(C<0)C=0;if(parseInt(H)-parseInt(C)<parseInt(E))C=parseInt(H)-parseInt(E);I.style.top=C;$.cancelBubble=true}function D(_){if(!_)_=window.event;if(window.attachEvent){I.detachEvent("onmouseup",D);I.detachEvent("onmousemove",$);I.releaseCapture()}else{C.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);I.removeEventListener("mousemove",$,false);I.removeEventListener("mouseup",D,false)}_.cancelBubble=true}};DxDragUtil.fx=function(D,C,B,A){var _=new Object();if(Math.abs(D-C)<40){_.x=D-C;_.y=B-A}else{if(D>C)_.x=40;else _.x=-40;var $=Math.abs(D-C);if($>0)_.y=_.x*(B-A)/(D-C);else _.y=0}return _};DxDragUtil.fy=function(D,C,B,A){var _=new Object();if(Math.abs(B-A)<40){_.y=B-A;_.x=D-C}else{if(B>A)_.y=40;else _.y=-40;var $=Math.abs(B-A);if($>0)_.x=_.y*(D-C)/(B-A);else _.x=0}return _};DxDragUtil.ff=function(B,A,_,$){if(Math.abs(parseInt(B)-parseInt(A))>Math.abs(parseInt(_)-parseInt($)))return DxDragUtil.fx(parseInt(B),parseInt(A),parseInt(_),parseInt($));else return DxDragUtil.fy(parseInt(B),parseInt(A),parseInt(_),parseInt($))};function DxButton(){}DxButton._mouseIn=function($){$.className=$.getAttribute("cid")+"-mousein"};DxButton._mouseOut=function($){$.className=$.getAttribute("cid")};DxButton.clear=function(_,$,A){};DxButton.printpreview_v0=function(_){try{var A="<body><link href='./resources/css/report.css' media='all' rel='stylesheet' type='text/css' />"+$$(_).html()+"</body>",B=window.open("","","");B.opener=null;B.document.write(A);B.document.close();setTimeout(function(){B.close()},2000);return true}catch($){return false}};DxButton.printpreview_v1=function(_){try{var A="<body onload='WebBrowser.ExecWB(7,1);'><link href='./resources/css/report.css' media='all' rel='stylesheet' type='text/css' /><object ID='WebBrowser' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>"+$$(_).html()+"</body>",B=window.open("","","");B.opener=null;B.document.write(A);B.document.close();setTimeout(function(){B.close()},2000);return true}catch($){return false}};DxButton.print_v0=function(_){try{var A="<body onload='window.print();'><link href='./resources/css/report.css' rel='stylesheet' type='text/css' />"+$$(_).html()+"</body>",B=window.open("","","");B.opener=null;B.document.write(A);B.document.close();setTimeout(function(){B.close()},2000);return true}catch($){return false}};DxButton.print_v1=function(_){try{var A="<body onload='WebBrowser.ExecWB(6,1);'><link href='./resources/css/report.css' rel='stylesheet' type='text/css' /><object ID='WebBrowser' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>"+$$(_).html()+"</body>",B=window.open("","","");B.opener=null;B.document.write(A);B.document.close();setTimeout(function(){B.close()},2000);return true}catch($){return false}};DxButton.getPrintIframe=function(){var $=document.getElementById("dx_print_iframe");if(!$){$=document.createElement("iframe");$.id="dx_print_iframe";document.body.appendChild($);$.style.pixelWidth=1;$.style.pixelHeight=1}return $};DxButton.print_v2=function($,A){var C=DxButton.getPrintIframe(),_=C.contentWindow.document;_.open();_.write("<BODY>");_.write("<link href='./resources/css/report.css' media='all' rel='stylesheet' type='text/css' /><object id='print_factory' style='display:none' classid='clsid:1663ed61-23eb-11d2-b92f-008048fdd814' codebase='ScriptX.cab#Version=6,1,431,2'></object> ");_.write($$(A).html());_.write("</BODY>");_.close();var B=_.getElementById("print_factory");if(!B||!B.printing)return false;B.printing.header="";B.printing.footer="";B.printing.portrait=$$($).attr("isPortrait")=="true";B.printing.topMargin=0;B.printing.leftMargin=16;B.printing.rightMargin=16;B.printing.Print(false);return true};DxButton.printpreview_v2=function($,_){var A=window.open("","","");if(!A)return false;A.opener=null;A.document.write("<BODY>");A.document.write("<link href='./resources/css/report.css' media='all' rel='stylesheet' type='text/css' /><object id='print_factory' style='display:none' classid='clsid:1663ed61-23eb-11d2-b92f-008048fdd814' codebase='ScriptX.cab#Version=6,1,431,2'></object> ");A.document.write($$(_).html());A.document.write("</BODY>");A.document.close();A.self.moveTo(0,0);A.self.resizeTo(screen.availWidth,screen.availHeight);var B=A.document.getElementById("print_factory");if(!B||!B.printing)return false;B.printing.portrait=$$($).attr("isPortrait")=="true";B.printing.header="";B.printing.footer="";B.printing.leftMargin=16;B.printing.rightMargin=16;B.printing.Preview();setTimeout(function(){A.close()},2000);return true};DxButton.print=function($,B,_,A){if(A=="false")DxButton._print($);else WatCore.call(B,_,"print")};DxButton._print=function($){var _=$.printobj;if(!DxButton.print_v2($,_))if(!DxButton.print_v1(_))DxButton.print_v0(_)};DxButton.printpreview=function($,B,_,A){if(A=="false")DxButton._printpreview($);else WatCore.call(B,_,"preview")};DxButton._printpreview=function($){var _=$.printobj;if(!DxButton.printpreview_v2($,_))if(!DxButton.printpreview_v1(_))DxButton.printpreview_v0(_)};DxButton.alertText=function(B,A,_,C){if(C=="true"){var $=confirm(_);if($)WatCore.call(B,A,"design")}else alert(_)};DxButton.setFocus=function(F,_,C,E){var B=top.E_getObject(F,"E_SW_"+_,C),A=$("#"+_,B).get(0);if(B.style.visibility!="hidden"&&!A.disabled)WatCore.setFocus(A);else if(A.getAttribute("targetId")!=null)if(WatCore.isKeyCode(E,A.getAttribute("keyCode"))){stopEvent(E);var D=WatCore.getJsFunctionParams(E,A.getAttribute("targetId"),A.getAttribute("keyCode"),A.getAttribute("fname"));WatCore.jsFunctionCall(F,_,D[0],D[1],E)}};DxButton.keyFunctionCall=function(H,A,J){var F=top.E_clientModel.E_getWindow(H),C=WatCore.getWindowDoc(H,F),B=top.E_getObject(H,A,C),E=$(B),_=E.attr("kcoList");if(_=="true"){var I=E.attr("targetId"),G=E.attr("keyCode"),D=E.attr("fname");DxButton.jsFunctionCall(H,A,I,G,D,J)}else if(J.keyCode==13)if(E.attr("action")=="true"){E.trigger("click");return}};DxButton.jsFunctionCall=function(G,A,F,_,I,H){if(H.keyCode==13){var D=top.E_clientModel.E_getWindow(G),C=WatCore.getWindowDoc(G,D),B=top.E_getObject(G,A,C);if($(B).attr("action")=="true"){$(B).trigger("click");return}}if(WatCore.isKeyCode(H,_)){stopEvent(H);var E=WatCore.getJsFunctionParams(H,F,_,I);WatCore.jsFunctionCall(G,A,E[0],E[1],H)}};DxButton.call=function(J,A,$,F,D,K,I,G){if(D=="false"){if(J.select!="true")DxButton.pushbutton(J,"push");else DxButton.pushbutton(J,"pop");var C=K.split("|"),H=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,H);for(var B=0;B<C.length;B++){var E=top.E_getObject(A,C[B],_);if(E!=null)top.DxButton.pushbutton(E,"pop")}}if(G=="true")if(I=="true")top.WatCore.sendACallToChart(A,$,F,event);else top.WatCore.call(A,$,F,event)};DxButton.pushbutton=function(_,$){if($=="push"){if(_.select!="true"){_.select="true";_.oldborderstyle=_.style.borderStyle;_.oldbordercolor=_.style.borderColor;_.style.borderStyle="inset";_.style.borderColor="threedface"}}else{if(_.select=="true"){_.style.borderStyle=_.oldborderstyle;_.style.borderColor=_.oldbordercolor}_.select="false"}};DxButton.render=function(_,J,H){var B=H.getAttribute("cid"),A=H.selectNodes("*");for(var D=0;D<A.length;D++){var C=A[D].nodeName;C=C.substring(1,C.length);var K=top.isIE?A[D].text:A[D].textContent;switch(C){case top.DC.EXCEL:top.DxResourceDownLoad.DownLoadResource(_,B,J,K);break;case top.DC.CSSNAME:top.E_getObject(_,B,J).className=K;top.E_getObject(_,B,J).setAttribute("cid",K);break;case top.DC.WIDTH:top.E_getObject(_,B,J).style.width=K+"px";break;case top.DC.HEIGHT:top.E_getObject(_,B,J).style.height=K+"px";break;case top.DC.TEXT:var G=top.E_getObject(_,B,J);G.innerText=K;$(G).attr("value",K);break;case top.DC.FOCUS:DxButton.setFocus(_,B,J);break;case top.DC.PRINT_VIEW:var L=top.E_getObject(_,B,J);DxButton._printpreview(L);break;case top.DC.PRINT:L=top.E_getObject(_,B,J);DxButton._print(L);break;case top.DC.VISIBLE:top.E_getObject(_,B,J).style.visibility=K;break;case top.DC.DISPLAY:G=top.E_getObject(_,"E_SW_"+B,J);if(K=="true"){G.style.visibility="visible";G.style.display="block"}else{G.style.visibility="hidden";G.style.display="none"}break;case top.DC.ICON:var F=top.E_getObject(_,"itd_"+B,J);F.innerHTML="";if(K==""){F.insertAdjacentHTML("BeforeEnd","");G=top.E_getObject(_,"t_"+B,J);if(G!=null)G.align="center"}else{F.insertAdjacentHTML("BeforeEnd","<img src="+K+" id='img_"+B+"' border=\"0\" align=\"center\" width=16px height=16px>");G=top.E_getObject(_,"t_"+B,J);if(G!=null){G.align="left";F.align="right"}else F.align="center"}break;case top.DC.BORDERSTYLE:top.E_getObject(_,B,J).style.borderStyle=K;break;case top.DC.BORDERWIDTH:top.E_getObject(_,B,J).style.borderWidth=K;break;case top.DC.BORDERCOLOR:top.E_getObject(_,B,J).style.borderColor=K;break;case top.DC.X:top.E_getObject(_,"E_SW_"+B,J).style.left=K+"px";break;case top.DC.Y:top.E_getObject(_,"E_SW_"+B,J).style.top=K+"px";break;case top.DC.ENABLED:var L=top.E_getObject(_,B,J),E=L.ownerDocument.getElementById("img_"+B);if(K=="true"){if(L.getAttribute("wtype")!="normal")L.className=L.getAttribute("cid");else L.className=L.getAttribute("cid");if(E!=null)E.src=L.getAttribute("IMAGE");L.disabled=false;$(L).css("cursor","hand")}else{if(L.getAttribute("wtype")!="normal")L.className=L.getAttribute("cid")+"-dis";else L.className=L.getAttribute("cid")+"-dis";if(E!=null)E.src=L.getAttribute("DISIMAGE");L.disabled=true;$(L).css("cursor","not-allowed")}break;case top.DC.PORTRAIT:top.E_getObject(_,B,J).isPortrait=K;break;case top.DC.fontFamily:top.E_getObject(_,"t_"+B,J).style.fontFamily=K;break;case top.DC.fontSize:top.E_getObject(_,"t_"+B,J).style.fontSize=K;break;case top.DC.fontWeight:top.E_getObject(_,"t_"+B,J).style.fontWeight=K;break;case top.DC.fontStyle:top.E_getObject(_,"t_"+B,J).style.fontStyle=K;break;case top.DC.textDecoration:top.E_getObject(_,"t_"+B,J).style.textDecoration=K;break;case top.DC.BACKGROUND:top.E_getObject(_,"E_SW_"+B,J).style.backgroundColor=K;top.E_getObject(_,B,J).style.backgroundColor=K;top.E_getObject(_,"table_"+B,J).style.backgroundColor=K;top.E_getObject(_,"t_"+B,J).style.backgroundColor=K;break;case top.DC.FOREGROUND:top.E_getObject(_,"E_SW_"+B,J).style.color=K;top.E_getObject(_,B,J).style.color=K;top.E_getObject(_,"table_"+B,J).style.color=K;top.E_getObject(_,"t_"+B,J).style.color=K;break;case top.DC.SELECTED:G=top.E_getObject(_,B,J);if(K=="true")top.DxButton.pushbutton(G,"push");else top.DxButton.pushbutton(G,"pop");break;case top.DC.JSFUNCTION_KEYCODE:var G=top.E_getObject(_,B,J),I=$(G);I.attr("keyCode",K);break;case top.DC.JSFUNCTION_TARGET:G=top.E_getObject(_,B,J),I=$(G);I.attr("targetId",K);break;case top.DC.JSFUNCTION_NAME:G=top.E_getObject(_,B,J),I=$(G);I.attr("fname",K);break;case top.DC.JSFUNCTION_KCOLIST:G=top.E_getObject(_,B,J),I=$(G);I.attr("kcoList",K);break;default:break}}};function DxHISButton(){}DxHISButton._mouseIn=function($){$.className=$.cid+"-mousein"};DxHISButton._mouseOut=function($){$.className=$.cid};DxHISButton.clear=function(_,$,A){};DxHISButton.escapeJSONString=function($){var A=$.split("");for(var B=0;B<A.length;B++){var _=A[B];if(_=="\""||_=="\\"||_.charCodeAt(0)<32||_.charCodeAt(0)>=128)A[B]=DxHISButton.escapeJSONChar(A[B])}return"\""+A.join("")+"\""};DxHISButton.escapeJSONString=function($){var A=$.split("");for(var B=0;B<A.length;B++){var _=A[B];if(_=="\""||_=="\\"||_.charCodeAt(0)<32||_.charCodeAt(0)>=128)A[B]=DxHISButton.escapeJSONChar(A[B])}return"\""+A.join("")+"\""};DxHISButton.escapeJSONChar=function(_){if(_=="\""||_=="\\")return"\\"+_;else if(_=="\b")return"\\b";else if(_=="\f")return"\\f";else if(_=="\n")return"\\n";else if(_=="\r")return"\\r";else if(_=="\t")return"\\t";var $=_.charCodeAt(0).toString(16);if($.length==1)return"\\u000"+$;else if($.length==2)return"\\u00"+$;else if($.length==3)return"\\u0"+$;else return"\\u"+$};DxHISButton.toJSON=function(_){if(_==null)return"null";else if(_.constructor==String)return DxHISButton.escapeJSONString(_);else if(_.constructor==Number)return _.toString();else if(_.constructor==Boolean)return _.toString();else if(_.constructor==Date)return"{javaClass: \"java.util.Date\", time: "+_.valueOf()+"}";else if(_.constructor==Array){var $=[];for(var A=0;A<_.length;A++)$.push(DxHISButton.toJSON(_[A]));return"["+$.join(", ")+"]"}else{$=[];for(attr in _)if(_[attr]==null)$.push("\""+attr+"\": null");else if(typeof _[attr]=="function");else $.push(DxHISButton.escapeJSONString(attr)+": "+DxHISButton.toJSON(_[attr]));return"{"+$.join(", ")+"}"}};DxHISButton.getHIS=function(D,C){var B=top.E_clientModel.E_getWindow(D),A=(D==top.DESKTOP)?B.document:B.contentWindow.document,_=top.E_getObject(D,C,A),$=DxHISButton.getHISFromDB(_.path,_.yljg,_.zyid,_.times);if($!=null)WatCore.call(D,C,$,event)};DxHISButton.getHISFromDB=function(B,C,F,_){if(C==null||C=="null"||C==""){alert("\u8bf7\u9009\u62e9\u533b\u7597\u673a\u6784");return}if(B==null||B=="null"||B==""){alert("\u533b\u7597\u673a\u6784\u6ca1\u6709\u8bbe\u7f6e\u5bf9\u5e94\u7684HIS\u8def\u5f84");return}if(F==null||F=="null"||F==""){alert("\u8bf7\u8f93\u5165\u5355\u636e\u53f7");return}var A=[],G="SELECT f_zyid,f_id,f_hiscode,f_hisname,";G=G+"f_nhcode,f_nhname,f_lbbm,iif([f_spec] is null,' ',[f_spec]) as f_spec,iif([f_style] is null,' ',[f_style]) as f_style,iif([f_unit] is null,' ',[f_unit]) as f_unit,f_num,f_price,";G=G+"f_je,f_bcbl,f_kbc_je,f_odate FROM [tblTempHis] where f_yljgcode='"+C+"'";G=G+" and f_zyid='"+F+"' and f_times="+_;var $=new ActiveXObject("ADODB.Connection");$.Provider="Microsoft.Jet.OLEDB.4.0";$.ConnectionString="Data Source="+B;$.open;var D=new ActiveXObject("ADODB.Recordset");D.open(G,$,3,3);if(D.recordCount==0||D.recordCount==null){alert("\u6ca1\u6709\u8be5\u75c5\u4eba\u7684\u8d39\u7528\u8bb0\u5f55\u53ef\u5bfc\u5165,\u8bf7\u68c0\u67e5!!!");return null}while(!D.eof){var E={};E["f_lbbm"]=""+D.Fields("f_lbbm");E["f_nhcode"]=""+D.Fields("f_nhcode");E["f_nhname"]=""+D.Fields("f_nhname");E["f_spec"]=""+D.Fields("f_spec");E["f_unit"]=""+D.Fields("f_unit");E["f_price"]=""+D.Fields("f_price");E["f_num"]=""+D.Fields("f_num");E["f_je"]=""+D.Fields("f_je");E["f_bcbl"]=""+D.Fields("f_bcbl");E["f_kbc_je"]=""+D.Fields("f_kbc_je");E["f_hiscode"]=""+D.Fields("f_hiscode");E["f_hisname"]=""+D.Fields("f_hisname");E["f_id"]=""+D.Fields("f_id");E["f_odate"]=""+new Date(D.Fields("f_odate").value).getTime();A.push(E);D.moveNext}D.close();D=null;$.close();$=null;return DxHISButton.toJSON(A)};DxHISButton.upHis=function($){DxHISButton.upHisInfo($.path,$.yljg,$.zyid,$.times)};DxHISButton.upHisInfo=function(A,B,D,_){return;var C="update [tblTempHis] set f_outflag=1 where f_yljgcode='"+B+"'";C=C+" and f_zyid='"+D+"' and f_times="+_+" and f_outflag=0";var $=new ActiveXObject("ADODB.Connection");$.Provider="Microsoft.Jet.OLEDB.4.0";$.ConnectionString="Data Source="+A;$.open;$.execute(C);$.close;$=null};DxHISButton.setFocus=function(B,$,A){var _=top.E_getObject(B,$,A);WatCore.setFocus(_)};DxHISButton.jsFunctionCall=function(B,_,A,$,D,C){if(C.keyCode==$){stopEvent(C);WatCore.jsFunctionCall(B,_,A,D)}};DxHISButton.render=function(_,E,B){var G=B.getAttribute("cid"),A=B.selectNodes("*");for(var I=0;I<A.length;I++){var H=A[I].nodeName;H=H.substring(1,H.length);var D=top.isIE?A[I].text:A[I].textContent;switch(H){case top.DC.CSSNAME:top.E_getObject(_,G,E).className=D;top.E_getObject(_,G,E).cid=D;break;case top.DC.PATH:var F=top.E_getObject(_,G,E),C=D.split("&");F.path=C[0];F.yljg=C[1];F.zyid=C[2];F.times=C[3];break;case top.DC.HIS_SAVE:F=top.E_getObject(_,G,E);DxHISButton.upHis(F);break;case top.DC.FOCUS:DxHISButton.setFocus(_,G,E);break;case top.DC.ENABLED:var F=top.E_getObject(_,G,E),$=F.ownerDocument.getElementById("img_"+G);if(D=="true"){if(F.wtype!="normal")F.className="DxCoolButton";if($!=null)$.src=F.IMAGE;F.disabled=false}else{if(F.wtype!="normal")F.className="DxCoolButton-dis";if($!=null)$.src=F.DISIMAGE;F.disabled=true}break;default:break}}};var labelShowHtmlStr="<div class='DxLabelCashierMsg' id='#watid#' style='position:absolute;z-index:10000;line-height:32px; color: rgb(255, 255, 255); background-color: rgb(51, 153, 255); cursor: default; width: 200px; height: 32px; text-align: center; display: none; visibility: visible;border: 1px none #eae9e3;font-family: \u5fae\u8f6f\u96c5\u9ed1;font-size: 14px;vertical-align: middle;border-radius :4px;'><div id='watShowLabelSon' style='line-height:32px;;white-space:normal;word-break:break-all;word-wrap:break-word;'></div></div>",labelShowObjects=[];function DxLabel(){}DxLabel.labelcall=function(A,_,$){if($)WatCore.sendACallToChart(A,_,"enter");else WatCore.call(A,_,"enter")};DxLabel.labelDblcall=function(A,_,$){if($)WatCore.sendACallToChart(A,_,"dblenter");else WatCore.call(A,_,"dblenter")};DxLabel.timeoutAction=function(D,_){try{var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,_,B);A.style.visibility="hidden";A.style.display="none"}catch($){}};DxLabel.showLabel=function(B,$,C){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A);DxLabel.showLabel_(C)};DxLabel.showLabel_=function(I){var C=labelShowObjects.length,G,A=-1;if(C==0){G=$("#watShowLabel0");labelShowObjects[0]=G;A=0}else{for(var H=0;H<labelShowObjects.length;H++){G=labelShowObjects[H];if("hidden"==G.css("visibility")){A=H;break}}if(A==-1){A=C;if(A==2)H=0;var _=labelShowHtmlStr.replace("#watid#","watShowLabel"+A);_=_.replace("#watsonid#","watShowLabelSon");G.after(_);G=$("#watShowLabel"+A);labelShowObjects[A]=G}}$watShowLabelSon=$("#watShowLabelSon",G);var D=top.Desktop.textCounter(I),B=D*9.5,F=(parseInt(document.body.clientWidth||document.documentElement.clientWidth)-parseInt(B))/2,E=20+A*36;G.width(B);G.css({"left":F,"top":E});$watShowLabelSon.text(I);G.css({"visibility":"visible","display":"block"});window.setTimeout("top.DxLabel.timeoutShowLabelAction('"+A+"')",4000)};DxLabel.timeoutShowLabelAction=function($){try{var A=labelShowObjects[$];if(A!=null)A.css({"visibility":"hidden","display":"none"})}catch(_){}};DxLabel.visible=function(E,_,C,B){var D=top.E_getObject(E,_,C);if(B=="visible"){D.style.visibility="visible";D.style.display="block"}else{D.style.visibility="hidden";D.style.display="none"}if(B=="visible"&&$(D).attr("autohidden")=="true"){var A=parseInt($(D).attr("hiddentime"));window.setTimeout("top.DxLabel.timeoutAction('"+E+"','"+_+"')",A)}};DxLabel.createMenuItems=function(A,B,G,L){var _=$("#"+B+"_list",G),F="";if(_.get(0)==undefined){F="<div id='"+B+"_list' style='float:right;text-align:left;width:"+$(G).width()+"px;height:auto; display:none;position: absolute;z-index: 1000;top:"+$(G).height()+"px;;white-space:nowrap'></div>";insertHTML(G,"BeforeEnd",F);_=$("#"+B+"_list",G)}if(L!=""){$(G).css({"text-decoration":"underline","cursor":"hand"});$(G).unbind("mousedown");$(G).bind("mousedown",A,function($){top.DxLabel.showlist(A,B,G);$.cancelBubble=true;return false});$(G).unbind("click");$(G).bind("click",A,function($){EventUtil.stopPropagation($)})}else{$(G).css({"text-decoration":"","cursor":"default"});$(G).unbind("click");$(G).unbind("click")}F="";if(L!=""){var H=L.split(",");for(var C=0;C<H.length;C++){var I=H[C],E=I.split(":"),J,K,D;if(E.length>=1)J=E[0];if(E.length>=2)K=E[1];if(E.length>=3)D=E[2];if(C<H.length-1)F+="<div onmouseover=\"top.DxLabel._listmouseIn('"+A+"','"+B+"',this)\" onmouseout=\"top.DxLabel._listmouseOut('"+A+"','"+B+"',this)\" onmousedown=\"top.DxLabel._listclick('"+A+"','"+B+"',this,'#"+J+"',event);event.cancelBubble = true;return false;\" class=\"DxPanelBar_listdetail\" style=\"z-index:1000;;color: #000;font: 13px arial;height:38px;line-height:38px;padding-left:0px;position: relative;margin-left:0px;cursor: default;\">"+K+"</div>";else F+="<div onmouseover=\"top.DxLabel._listmouseIn('"+A+"','"+B+"',this)\" onmouseout=\"top.DxLabel._listmouseOut('"+A+"','"+B+"',this)\" onmousedown=\"top.DxLabel._listclick('"+A+"','"+B+"',this,'#"+J+"',event);event.cancelBubble = true;return false;\" class=\"DxPanelBar_lastlistdetail\" style=\"z-index:1000;;color: #000;font: 13px arial;height:38px;line-height:38px;padding-left:0px;position: relative;margin-left:0px;cursor: default;\">"+K+"</div>"}}_.html(F)};DxLabel.showlist=function(D,F,N){var B=$("#"+F+"_list",N),A=$("#DxPanelBar_list");if(A.get(0)==null)return;if(A.css("display")=="none"){var L=top.E_clientModel.E_getWindow(D),J=B.width(),E=$(N).width();if(E<J)E=J;var H=$(N).height()+4;A.html(B.html());A.attr("sourceid",F);var C=$(N).offset(),I=L.isiframe,_=0,G=0;if(D!=top.DESKTOP&&I=="true"){var M=$(L).offset();_=parseInt(M.left);G=parseInt(M.top);if(!top.isIE)G-=2}A.css({"left":(C.left+_),"top":(C.top+G+H),"width":E});A.stop(true,true).slideDown("fast");$timeimagelistobj=A}else{var K=A.attr("sourceid");A.css("display","none");$timeimagelistobj=null;A.attr("sourceid",F);if(K!=F)DxLabel.showlist(D,F,N)}};DxLabel._listclick=function(A,B,C,_,$){if($timeimagelistobj!=null){$timeimagelistobj.css("display","none");$timeimagelistobj=null;top.WatCore.call(A,B,"listitemaction&"+_)}};DxLabel._listmouseIn=function(_,A,B){$(B).css({"background":"#3399FF","color":"#FFFFFF"})};DxLabel._listmouseOut=function(_,A,B){$(B).css({"background":"#FFFFFF","color":"#000"})};DxLabel.render=function(_,J,I){var D=I.getAttribute("cid"),A=I.selectNodes("*");for(var F=0;F<A.length;F++){var E=A[F].nodeName;E=E.substring(1,E.length);var B=E.split("_"),$=0;if(B.length==2){E=B[0];$=B[1]}else{var M=E,H=M.indexOf("_");if(H>=0){E=M.substring(0,H);$=M.substring(H+1,M.length)}}var K=top.isIE?A[F].text:A[F].textContent;switch(E){case top.DC.WIDTH:top.E_getObject(_,D,J).style.width=K;break;case top.DC.HEIGHT:top.E_getObject(_,D,J).style.height=K;break;case top.DC.TEXT:var L=D+"_t";top.E_getObject(_,L,J).innerText=K;break;case top.DC.TOOLTIPTEXT:top.E_getObject(_,D,J).title=K;break;case top.DC.VISIBLE:DxLabel.visible(_,D,J,K);break;case top.DC.UPDATE:var C=top.E_getObject(_,"E_SW_"+D,J);C.innerHTML="";C.insertAdjacentHTML("BeforeEnd",K);break;case top.DC.BORDERSTYLE:top.E_getObject(_,D,J).style.borderStyle=K;break;case top.DC.BORDERWIDTH:top.E_getObject(_,D,J).style.borderWidth=K;break;case top.DC.BORDERCOLOR:top.E_getObject(_,D,J).style.borderColor=K;break;case top.DC.X:top.E_getObject(_,"E_SW_"+D,J).style.left=K;break;case top.DC.Y:top.E_getObject(_,"E_SW_"+D,J).style.top=K;break;case top.DC.ENABLED:break;case top.DC.fontFamily:top.E_getObject(_,D,J).style.fontFamily=K;break;case top.DC.fontSize:top.E_getObject(_,D,J).style.fontSize=K;break;case top.DC.fontWeight:top.E_getObject(_,D,J).style.fontWeight=K;break;case top.DC.fontStyle:top.E_getObject(_,D,J).style.fontStyle=K;break;case top.DC.textDecoration:top.E_getObject(_,D,J).style.textDecoration=K;break;case top.DC.BACKGROUND:top.E_getObject(_,D,J).style.backgroundColor=K;break;case top.DC.FOREGROUND:top.E_getObject(_,D,J).style.color=K;break;case top.DC.TRANSPARENT:top.E_getObject(_,D,J).style.background="transparent";break;case top.DC.TRANSPARENTF:top.E_getObject(_,D,J).style.background=K;break;case top.DC.UPDATE_DATA_SHOW:top.DxLabel.showLabel_(K);break;case top.DC.UPDATE_MENU_DATA:var G=top.E_getObject(_,D,J);DxLabel.createMenuItems(_,D,G,K);break;default:break}}};function DxImage(){}var imageobj;DxImage._mouseIn=function($,A){var _=A.ownerDocument.getElementById("img_"+$);if(_!=null)_.src=A.getAttribute("minsrc")};DxImage._mouseOut=function($,A){var _=A.ownerDocument.getElementById("img_"+$);if(_!=null)_.src=A.getAttribute("moutsrc")};DxImage._mouseenter=function(E,H,$){var D=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,D),A=top.E_getObject(E,H,C),_=$,B=_.split(",");for(var I=0;I<B.length;I++){var G=B[I],F=C.getElementById("E_SW_"+G);if(F!=null)if(F.style.visibility!="visible")F.style.visibility="visible";else F.style.visibility="hidden"}};DxImage.setClientImage=function(){if(imageobj!=null)imageobj.src=imageobj.getAttribute("osrc")};DxImage.render=function(A,M,L){var F=L.getAttribute("cid"),B=L.selectNodes("*");for(var H=0;H<B.length;H++){var G=B[H].nodeName;G=G.substring(1,G.length);var N=top.isIE?B[H].text:B[H].textContent;switch(G){case top.DC.UPDATEIMAGE:var K=top.E_getObject(A,"img_"+F,M);K.innerHTML="";K.parentElement.removeChild(K);top.E_removeTheObject(A,F);top.E_removeTheObject(A,"img_"+F);top.E_removeTheObject(A,"E_SW_"+F);var D=top.E_getObject(A,F,M);$(D).html(N);top.E_removeTheObject(A,F);top.E_removeTheObject(A,"img_"+F);top.E_removeTheObject(A,"E_SW_"+F);break;case top.DC.WIDTH:top.E_getObject(A,F,M).style.width=N;var E=top.E_getObject(A,"img_"+F,M);if(E!=null)E.style.width=N;break;case top.DC.HEIGHT:top.E_getObject(A,F,M).style.height=N;E=top.E_getObject(A,"img_"+F,M);if(E!=null)E.style.height=N;break;case top.DC.VISIBLE:top.E_getObject(A,"E_SW_"+F,M).style.visibility=N;break;case top.DC.BORDERSTYLE:top.E_getObject(A,F,M).style.borderStyle=N;break;case top.DC.BORDERWIDTH:top.E_getObject(A,F,M).style.borderWidth=N;break;case top.DC.BORDERCOLOR:top.E_getObject(A,F,M).style.borderColor=N;break;case top.DC.X:top.E_getObject(A,"E_SW_"+F,M).style.left=N;break;case top.DC.Y:top.E_getObject(A,"E_SW_"+F,M).style.top=N;break;case top.DC.ENABLED:if(N=="true"){var O=top.E_getObject(A,F,M);O.disabled=false;E=top.E_getObject(A,"img_"+F,M);if(E!=null){E.disabled=false;E.src=O.getAttribute("moutsrc");E.style.cursor="pointer"}}else{O=top.E_getObject(A,F,M);O.disabled=true;var P=O.getAttribute("disabledsrc"),E=top.E_getObject(A,"img_"+F,M);if(E!=null){E.disabled=true;E.style.cursor="default";if(P!=null)E.src=P}}break;case top.DC.TOOLTIPTEXT:top.E_getObject(A,"img_"+F,M).alt=N;break;case top.DC.fontFamily:top.E_getObject(A,F,M).style.fontFamily=N;break;case top.DC.fontSize:top.E_getObject(A,F,M).style.fontSize=N;break;case top.DC.fontWeight:top.E_getObject(A,F,M).style.fontWeight=N;break;case top.DC.fontStyle:top.E_getObject(A,F,M).style.fontStyle=N;break;case top.DC.textDecoration:top.E_getObject(A,F,M).style.textDecoration=N;break;case top.DC.BACKGROUND:top.E_getObject(A,F,M).style.backgroundColor=N;break;case top.DC.FOREGROUND:top.E_getObject(A,F,M).style.color=N;break;case top.DC.IMAGE:var _=N.lastIndexOf("/"),I=N.substring(_+1,N.length);if(I==null||I==""){var K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);if(C!=null)C.parentElement.removeChild(C);$(K).html("")}else{K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);if(C!=null)C.parentElement.removeChild(C);var J="<img id=img_"+F+" src="+N+" width="+K.style.width+" height="+K.style.height+">";$(K).html(J)}break;case top.DC.CLIENT_IMAGE:_=N.lastIndexOf("/"),I=N.substring(_+1,N.length);if(I==null||I==""){K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);if(C!=null)C.parentElement.removeChild(C);J="<img id=img_"+F+" width="+K.clientWidth+" height="+K.clientHeight+">";$(K).html(J)}else{K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);C.src="D:WINDOWSsystem32Camera1.jpg";C.osrc=N;imageobj=C;window.setTimeout(DxImage.setClientImage,10)}break;case top.DC.IMAGE_STREAM:_=N.lastIndexOf("/"),I=N.substring(_+1,N.length);if(I==null||I==""){K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);if(C!=null)C.parentElement.removeChild(C);J="<img id=img_"+F+" width="+K.clientWidth+" height="+K.clientHeight+">";$(K).html(J)}else{K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);if(C!=null)C.parentElement.removeChild(C);N=watLocation2+"/binarydownload?resourcekey="+N;J="<img id=img_"+F+" src="+N+" width="+K.clientWidth+" height="+K.clientHeight+">";$(K).html(J)}break;default:break}}};function DxImageMap(){}DxImageMap.init=function(D,$){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),_=top.E_getObject(D,$,A),C=top.E_getObject(D,$+"_detail",A);_.pop=C;_.popstyle=C.style;DxImageMap.resizeChange(D,$)};DxImageMap.resizeChange=function(F,A){var E=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,E),B=top.E_getObject(F,A,C),H=parseInt(B.clientWidth),J=parseInt(B.clientHeight),D=$("#"+A+"_wrap",B).get(0),G=parseInt(D.style.width),I=parseInt(D.style.height);if(H>G){var _=(H-G)/2;D.style.left=_}if(J>I){_=(J-I)/2;D.style.top=_}};DxImageMap.mOvr=function(B,_,H){var I=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,I),G=top.E_getObject(B,_,A);if(G.snow==null||G.snow==0){var C=G.params;if(C!=null){var F=C[H];if(F!=null){var E=F["title"],D=F["info"],J=" <TABLE BORDER=0 CELLPADDING=\"2\" CELLSPACING=0 BGCOLOR=\"#000066\" style=\"filter:Alpha(opacity=80)\"><TR><TD>";J+="<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#CCFFCC\" ><TR><TD align=\"center\"><FONT COLOR=\"#000000\" STYLE=\"font-size:9pt;\"> "+E+" </FONT></TD></TR></TABLE>";J+="<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 style=\"z-index:1000\"><TR><TD ALIGN=\"center\"><FONT COLOR=\"#ffffff\" STYLE=\"font-size:9pt;\">"+D+"</FONT></TD></TR></TABLE>";var $=G.pop;$.innerHTML=J;G.popstyle.left=G.x+offsetx-(width/2);G.popstyle.top=G.y+offsety+12;G.popstyle.visibility="visible";G.snow=1}}}};DxImageMap.mOut=function(A,D,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=top.E_getObject(A,D,_);$.snow=0;$.popstyle.visibility="hidden"};DxImageMap.mEvn=function(_,$){_.x=$.clientX;_.y=$.clientY;if(_.snow){_.popstyle.left=_.x+offsetx-(width/2);_.popstyle.top=_.y+offsety+12}};DxImageMap.click=function(_,$,A){WatCore.call(_,$,A)};DxImageMap.mapalt=function(H,B,G){var F=top.E_clientModel.E_getWindow(H),E=WatCore.getWindowDoc(H,F),C=top.E_getObject(H,B,E),D=G.split("$");for(var I=0;I<D.length;I++){var A=D[I].split("|"),_=$("#"+B+A[0],C).get(0);_.alt=A[1]}};DxImageMap.update=function(D,_,A,$){var J=top.E_getObject(D,_,A);if(J.dataDom==null)J.dataDom=top.WatCore.createXmlDom("<mapinfo/>");J.dataDom.loadXML($);var K=J.dataDom.documentElement.selectNodes("area"),E=new Array(K.length+1);for(var G=0;G<K.length;G++){var H=K[G],I=new Array(2);I["title"]=H.getAttribute("title");var B=H.selectNodes("info"),C="";for(var F=0;F<B.length;F++)if(F<B.length-1)C+=B[F].text+"<br>";else C+=B[F].text;I["info"]=C;E[H.getAttribute("id")]=I}J.params=E};DxImageMap.render=function($,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.SCROLLABLE:if(C=="true")top.E_getObject($,F,D).style.overflow="auto";else top.E_getObject($,F,D).style.overflow="hidden";break;case top.DC.UPDATE:var _=top.E_getObject($,F+"_wrap",D);_.src="";_.innerHTML="";_.parentElement.removeChild(_);top.E_removeTheObject($,F);top.E_removeTheObject($,F+"_wrap");var E=top.E_getObject($,F,D);E.insertAdjacentHTML("BeforeEnd",C);top.E_removeTheObject($,F);top.E_removeTheObject($,F+"_wrap");break;case top.DC.WIDTH:top.E_getObject($,F,D).style.width=C;top.E_getObject($,"E_SW_"+F,D).style.width=C;break;case top.DC.HEIGHT:top.E_getObject($,F,D).style.height=C;top.E_getObject($,"E_SW_"+F,D).style.height=C;break;case top.DC.UPDATE_DATA:top.DxImageMap.update($,F,D,C);break;case top.DC.VISIBLE:top.E_getObject($,"E_SW_"+F,D).style.visibility=C;break;case top.DC.BORDERSTYLE:top.E_getObject($,F,D).style.borderStyle=C;break;case top.DC.BORDERWIDTH:top.E_getObject($,F,D).style.borderWidth=C;break;case top.DC.BORDERCOLOR:top.E_getObject($,F,D).style.borderColor=C;break;case top.DC.X:top.E_getObject($,"E_SW_"+F,D).style.left=C;break;case top.DC.Y:top.E_getObject($,"E_SW_"+F,D).style.top=C;break;case top.DC.ENABLED:if(C=="true")top.E_getObject($,F,D).disabled=false;else top.E_getObject($,F,D).disabled=true;break;case top.DC.BACKGROUND:top.E_getObject($,F,D).style.backgroundColor=C;break;case top.DC.FOREGROUND:top.E_getObject($,F,D).style.color=C;break;default:break}}};DxDataGrid.FORMAT_NORMAL="0";DxDataGrid.FORMAT_NUMBER="2";DxDataGrid.FORMAT_MONEY="3";DxDataGrid.FORMAT_ACCOUNTANT="4";DxDataGrid.FORMAT_DATE="5";DxDataGrid.FORMAT_TIME="6";DxDataGrid.FORMAT_PERCENTAGE="7";DxDataGrid.FORMAT_CUSTOM="8";var adjustColumnMap=new E_Map();function DxDataGrid(){}DxDataGrid.render=function(T,d,c){try{var G=c.getAttribute("cid"),U=c.selectNodes("*"),b=false;for(var a=0;a<U.length;a++){var R=U[a].nodeName;propName=R.substring(1,R.length);var J=top.isIE?U[a].text:U[a].textContent,W=propName.lastIndexOf("_"),e=propName,g;if(W>-1){propName=e.substring(0,W);g=e.substring(W+1,e.length)}switch(propName){case top.DC.ROWSELECTED:var V=J.split("@");DxDataGrid.backSelectRow(T,G,V[0],V[1]);if(V.length==3)DxDataGrid._setFocus(T,G,V[0],V[2]);break;case top.DC.VISIBLE:var I=top.E_getObject(T,G,d);I.style.visibility=J;var i=top.E_getObject(T,"E_SW_"+I.getAttribute("sid"),d);if(J=="visible"){top.E_getObject(T,G,d).style.display="block";i.style.visibility="visible"}else if(J=="hidden"){top.E_getObject(T,G,d).style.display="none";i.style.visibility="hidden"}DxDataGrid.changeSize(T,G);break;case top.DC.UPDATE_DATA:DxDataGrid.updateData(T,G,J);break;case top.DC.CHANGE_DATA:DxDataGrid.changeData(T,G,J);break;case top.DC.DDW_CHANGE:I=top.E_getObject(T,G,d);DxDataGrid.initColumnObj(I,G,g,J);break;case top.DC.DATAGRID_FOOT_TEXT:var I=top.E_getObject(T,G,d),D=I.ownerDocument.getElementById(G+"_foot_"+g);if(D!=null)D.innerText=J;break;case top.DC.COLUMN_TEXT:I=top.E_getObject(T,G,d);X=g;var O=I.ownerDocument.getElementById("c_"+G+"hd_"+X);O.headtext=J;$("#htext",I.columnHeadObjects[X]).text(J);break;case top.DC.DUOLIECOLUMN_TEXT:var I=top.E_getObject(T,G,d),N=I.ownerDocument.getElementById("c_"+G+"dlhd_"+g+"_label");if(N!=null)N.innerText=J;break;case top.DC.FOOTPAGEBUTTON_VISIBLE:var I=top.E_getObject(T,G,d),E=$("#"+G+"_"+g+"_split",I),k=$("#"+G+"_"+g,I);if(J=="true"){E.css({"visibility":"visible","display":"block"});k.css({"visibility":"visible","display":"block"})}else{E.css({"visibility":"hidden","display":"none"});k.css({"visibility":"hidden","display":"none"})}break;case top.DC.COLUMN_VISIBLE:I=top.E_getObject(T,G,d);X=g;var f=$("#"+G+"_HeadContent",I).get(0);I.curResizeColumn=X;var F=I.columnHeadObjects[X].innerText;if("true"==J){O=$("#c_"+G+"hd_"+X,I).get(0);if(O.tvisible=="hidden"){var K=0;if(I.oTable.awidth==null||I.oTable.awidth=="")K=0;else K=parseInt(I.oTable.awidth);I.oTable.awidth=K+parseInt($(O).attr("truewidth"));I.oTable.style.width=I.oTable.awidth+"px"}O.tvisible="visible";O.style.width=$(O).attr("truewidth")+"px";$("span",O).css("width",$(O).attr("truewidth")-2);$("#headdiv",O).css("width",$(O).attr("truewidth"));$("#c_"+G+"sorttd_"+$(O).attr("column"),O).css("width","16");if(I.columnHead.id==O.id){top.DxDataGrid._changeSize(I,G);f.style.width=(parseInt(I.controlContainer.clientWidth))+"px";DxDataGrid.__synWidth(I,$(O).width(),"");adjustColumnMap.E_put(X,$(O).attr("truewidth"));F=O.headtext;if(F!=null&&""!=F);}else{f.style.width=(parseInt(I.oTable.clientWidth)+2)+"px";if(top.isIE)DxDataGrid.__synWidth(I,$(O).attr("truewidth"),"");else DxDataGrid.__synWidth(I,"100%","");adjustColumnMap.E_put(X,$(O).attr("truewidth"));F=O.headtext;if(F!=null&&""!=F);}}else{O=$("#c_"+G+"hd_"+X,I).get(0);if(O.tvisible!="hidden"){if(top.isIE){O.style.width="0px";$("span",O).css("width","0px");$("#headdiv",O).css("width","0px")}else O.style.width="";$("#c_"+G+"sorttd_"+$(O).attr("column"),O).css("width","16");O.tvisible="hidden";var B=f.style.width,L=parseInt(B)-parseInt($(O).attr("truewidth"));if(L<0)L=0;K=0;if(I.oTable.awidth==null||I.oTable.awidth=="")K=0;else K=parseInt(I.oTable.awidth);I.oTable.awidth=K-parseInt($(O).attr("truewidth"));if(I.oTable.awidth<0)I.oTable.awidth=0;I.oTable.style.width=I.oTable.awidth+"px";f.style.width=(parseInt(I.oTable.clientWidth)+2)+"px";DxDataGrid.__synWidth(I,0,"none");adjustColumnMap.E_put(X,0);O.headtext=F}}break;case top.DC.FORMAT_STYLE:DxDataGrid.formatSynData(T,G,d,J,top.DC.FORMAT_STYLE);break;case top.DC.FORMAT_COMMA:DxDataGrid.formatSynData(T,G,d,J,top.DC.FORMAT_COMMA);break;case top.DC.FORMAT_DIGIT:DxDataGrid.formatSynData(T,G,d,J,top.DC.FORMAT_DIGIT);break;case top.DC.FORMAT_CURRENCY_SIGN:DxDataGrid.formatSynData(T,G,d,J,top.DC.FORMAT_CURRENCY_SIGN);break;case top.DC.FORMAT_CUSTOM:DxDataGrid.formatSynData(T,G,d,J,top.DC.FORMAT_CUSTOM);break;case top.DC.FOCUS:I=top.E_getObject(T,G,d);WatCore.setFocus(I);break;case top.DC.SHOW_POPMENU:I=top.E_getObject(T,G,d);I.showpopmenu=J;break;case top.DC.FORMAT_ERROR:var Q=J.indexOf("@"),X=J.substring(0,Q),H=J.substring(Q+1,J.length),I=top.E_getObject(T,G,d);I.columnObjects[X].eerror=H;break;case top.DC.EXCEL:DxStatisticsReport.ExcelExport(J);break;case top.DC.EXCELMHT:top.DxResourceDownLoad.DownLoadResource(T,G,d,J);break;case top.DC.TOOLTIPTEXT:I=top.E_getObject(T,G,d);I.title=J;break;case top.DC.ROW_TOOLTIP_TEXT:var I=d.getElementById(G),j=I.ownerDocument.getElementById(G+"_body_row");j.title=J;var C=I.DataDom.documentElement.selectNodes("data/row"),h=C.length,A=parseInt(I.columnrow);for(var Y=0;a<h;Y++){var Z=I.oTable.rows[Y+A];Z.title=J}break;case top.DC.COLUMNWIDTH:try{I=top.E_getObject(T,G,d);X=g;var f=I.ownerDocument.getElementById(G+"_HeadContent"),O=I.ownerDocument.getElementById("c_"+G+"hd_"+X),_=$(O).attr("truewidth");O.truewidth=J;O.style.width=J;$headdiv=$("#headdiv",O);$headdiv.width(J);$headson=$("#"+G+"hd_"+X,O).width(parseInt(J)-2);B=f.style.width;f.style.width=parseInt(B)-parseInt(_)+parseInt(J)}catch(S){}break;case top.DC.COLUMN_CHECKED:I=top.E_getObject(T,G,d);X=g;var P=$("#c_"+G+"checked_"+X,I).get(0);if(P!=null)if(J=="true"){P.checked=true;$(P).attr("svalue","1")}else{P.checked=false;$(P).attr("svalue","0")}break;case top.DC.HEADPAGEBUTTON_VISIBLE:var I=top.E_getObject(T,G,d),E=$("#"+G+"_"+g+"_splitimage",I),k=$("#"+G+"_"+g,I),M=$("#"+G+"_"+g+"_image",I);if(J=="true"){E.css({"visibility":"visible","display":"block"});k.css({"visibility":"visible","display":"block"});M.css({"visibility":"visible","display":"block"})}else{E.css({"visibility":"hidden","display":"none"});k.css({"visibility":"hidden","display":"none"});M.css({"visibility":"hidden","display":"none"})}break;default:break}}}catch(S){}};DxDataGrid.columnObjDisplay=function(C,D,B,$){var A=C.ownerDocument.getElementById(D+"c"+$);if(A!=null){var _=A.length;for(var E=0;E<_;E++)if(B=="true")A[E].style.width=A[E].truewidth;else A[E].style.width="0"}};DxDataGrid.initColumnObj=function(D,H,A,F){var E=D.pageSize,B=parseInt(D.columnrow);A=parseInt(A);try{if(E<=0){var G=D.oTable.rows[B].cells[A],_=$("#"+H+"c"+(A+1)+"_selected",G);_.html("");_.html(F)}else for(var I=0;I<E;I++){G=D.oTable.rows[I+B].cells[A],_=$("#"+H+"c"+(A+1)+"_selected",G);_.html("");_.html(F)}}catch(C){}};DxDataGrid.initUI=function(O,S,P,D,C,I,F,H,J,B,Y,K,Q,X,L,a,A,W,_,V,b,T,E){var Z=top.E_clientModel.E_getWindow(O),N=WatCore.getWindowDoc(O,Z),G=top.E_getObject(O,S,N);G.pageSize=P;G.isShowFoot=B;G.isFootMenu=a;G.footnum=W;G.columnDom=C;G.oTable=G.ownerDocument.getElementById(S+"tb");G.tableContainer=G.ownerDocument.getElementById(S+"_HeadContent");G.controlContainer=G.ownerDocument.getElementById(S+"_control");G.columnObjects=[];G.columnHeadObjects=[];G.columnHeads=[];G.initFocusRow=Y;G.initFocusColumn=K;G.bottomline=V;G.targetId=Q;G.focusKeyCode=X;G.fname=L;G.autoexpand=_;G.isInitNotifyLoadData=E;for(var U=0;U<D;U++){var M=$("#"+S+"c"+(U+1),G).get(0);G.columnObjects[U+1]=M;G.columnHeadObjects[U+1]=$("#"+S+"hd_"+(U+1),G).get(0);if(U==D-1)G.columnHead=$("#c_"+S+"hd_"+(U+1),G).get(0);G.columnHeads[U+1]=$("#c_"+S+"hd_"+(U+1),G).get(0)}G.rowCount=0;G.currPage=1;G.columnSize=D;G.columnrow=A;G.DataDom=top.WatCore.createXmlDom("<data/>");G.UIDom=top.WatCore.createXmlDom("<data/>");G.changeDataMap=new E_Map();G.currSel=-1;G.realSel=-1;G.currCel=-1;G.optionRowSelect=H;G.optionCellSelect=J;G.initDom=false;G.isSelected=false;G.isClick=I;G.isDblClick=F;DxDataGrid.syncUIDom(G);G.strCtrID=S;G.haspage=b;G.hasheadpage=T;G.allcells=new E_Map();$(G).unbind("resize");$(G).bind("resize",O,function($){top.DxDataGrid._changeSize(G,S)});var R=$(G).attr("fkeys");$(G).keyup(function(){top.DxDataGrid.keyDown(O,S,R,G,event)});if(b=="true"){G.oPage=top.E_getObject(O,S+"_pagecontainer",N);$(G.oPage).css("display","block")}DxDataGrid._changeSize(G,S)};DxDataGrid.getRowIndex=function(A,C,_){var $=top.E_getObject(A,C,_),B=$.currSel;return B};DxDataGrid.popGridKeyAction=function(M,T,B,_,J){if(B.readOnly)return;var V=top.E_clientModel.E_getWindow(M),L=WatCore.getWindowDoc(M,V),N=WatCore.getWindow(M,V),K=0,U=N.event||arguments.callee.caller.arguments[0];if(U.altKey)K=1;if(U.ctrlKey)K=2;if(U.shiftKey)K=4;if(U.shiftKey&&U.altKey)K=5;if(U.altKey&&U.ctrlKey)K=3;if(U.shiftKey&&U.ctrlKey)K=6;if(U.shiftKey&&U.altKey&&U.ctrlKey)K=7;if((J!=1&&U.keyCode==32)||(J==1&&K==0&&",27,40,38,13,37,39,112,113,114,115,116,117,118,119,120,121,122,123,9,16,17,18,20,255,91".indexOf(","+N.event.keyCode)==-1)){var S=B.value;if(U.keyCode==8&&S==""){WatCore.clearQuickcall();DxDataGridPopGridTextCell.keydown(M,T,U.keyCode,B,L);stopEvent(U);return false}if(S.charAt(S.length-1)==" ")B.value=S.substring(0,S.length-1);DxDataGrid.popGridChange(M,B.getAttribute("pid"),B);var R=B.parentElement.parentElement.parentElement.parentElement,C=B.parentElement.parentElement.parentElement,W=R.rowIndex,O=C.cellIndex,G=$(B).offset(),H="DxPopGridText_panel_"+T,F=$$(H,M,L),Y=0,X=0;if(G){Y=G.left;X=(G.top+$(B).height()+7)}else{Y=getAbsoluteLeft(B)-getAbsoluteLeft(F.parent()[0]);X=getAbsoluteTop(B)+$(B).height()+7-getAbsoluteTop(F.parent()[0]);if(getAbsoluteTop(F[0])+F.height()>document.body.offsetHeight)X-=F.height()+25}var E=top.E_getObject(M,B.getAttribute("pid"),L),P=E.popgridparams[T];if(P.frontCache){var Q=P.frontSqlHashCode,D=P.frontQuery,I;if(D)I="";else I=trim(B.value);if(Q&&popgridtextCacheContains(Q,I)){var A=getPopgridtextCache(Q,I);if(D)DxDataGridPopGridTextCell.filterData(A,P.frontQueryStr,B.value);DxDataGridPopGridTextCell.createReport(T,M,A,L);DxDataGridPopGridTextCell.show(T,M,Y+","+X+","+M+","+B.getAttribute("pid")+","+E.currSel,L)}else{if(D){P.frontQueryValue=B.value;WatCore.setParameter(M,T,top.DC.TEXT,I)}else WatCore.setParameter(M,T,top.DC.TEXT,B.value);if(U.keyCode==8)WatCore.quickcall(M,T,"popgridshow#"+Y+","+X+","+M+","+B.getAttribute("pid")+","+E.currSel,N.event,500);else WatCore.quickcall(M,T,"popgridshow#"+Y+","+X+","+M+","+B.getAttribute("pid")+","+E.currSel)}}else{WatCore.setParameter(M,T,top.DC.TEXT,B.value);if(U.keyCode==8)WatCore.quickcall(M,T,"popgridshow#"+Y+","+X+","+M+","+B.getAttribute("pid")+","+E.currSel,N.event,500);else WatCore.quickcall(M,T,"popgridshow#"+Y+","+X+","+M+","+B.getAttribute("pid")+","+E.currSel)}}else DxDataGridPopGridTextCell.keydown(M,T,U.keyCode,B,L);stopEvent(U);return false};DxDataGrid.typewritingchange=function(C,B,G,D,A){var E=D.parentElement,_=$("#"+B+"c"+A,E),F=$(D).attr("typewriting");if(F=="true"){$(D).attr("typewriting","false");D.className="DxDataGrid-popgrid-typewriting-english";_.css("ime-mode","disabled");_.attr("inputmode","text")}else{$(D).attr("typewriting","true");D.className="DxDataGrid-popgrid-typewriting-chinese";_.css("ime-mode","");_.attr("inputmode","")}};DxDataGrid.popGridHandlerClickAction=function(M,L,U,F,_){var O=F.parentElement,B=$("#"+L+"c"+_,O).get(0);if(B==null||B.readOnly)return;var V=top.E_clientModel.E_getWindow(M),K=WatCore.getWindowDoc(M,V),N=WatCore.getWindow(M,V);if($$(U,K).attr("_showpanel")!="1"){DxDataGridPopGridTextCell.hideOnClick();var T=B.value;DxDataGrid.popGridChange(M,B.getAttribute("pid"),B);var S=B.parentElement.parentElement.parentElement.parentElement,C=B.parentElement.parentElement.parentElement,E=top.E_getObject(M,L,K);DxDataGrid.frontSelectRow(E,S,C);top.E_dataChange.E_put(L,M);var W=S.rowIndex,P=C.cellIndex,H=$(B).offset(),I="DxPopGridText_panel_"+U,G=$$(I),Y=0,X=0;if(H){Y=H.left;X=H.top+$(B).height()+7}else{Y=getAbsoluteLeft(B)-getAbsoluteLeft(G.parent()[0]);X=getAbsoluteTop(B)+$(B).height()+7-getAbsoluteTop(G.parent()[0]);if(getAbsoluteTop(G[0])+G.height()>document.body.offsetHeight)X-=G.height()+25}C=B.parentElement.parentElement.parentElement,P=C.cellIndex;DxDataGrid._setFocus(M,L,E.realSel,P);var Q=E.popgridparams[U];if(Q.frontCache){var R=Q.frontSqlHashCode,D=Q.frontQuery,J;if(D)J="";else J=trim(B.value);if(R&&popgridtextCacheContains(R,J)){var A=getPopgridtextCache(R,J);if(D)DxDataGridPopGridTextCell.filterData(A,Q.frontQueryStr,B.value);DxDataGridPopGridTextCell.createReport(U,M,A,K);DxDataGridPopGridTextCell.show(U,M,Y+","+X+","+M+","+B.getAttribute("pid")+","+E.currSel,K)}else{if(D){Q.frontQueryValue=B.value;WatCore.setParameter(M,U,top.DC.TEXT,J)}else WatCore.setParameter(M,U,top.DC.TEXT,B.value);WatCore.call(M,U,"popgridshow#"+Y+","+X+","+M+","+B.getAttribute("pid")+","+E.currSel)}}else{WatCore.setParameter(M,U,top.DC.TEXT,B.value);WatCore.call(M,U,"popgridshow#"+Y+","+X+","+M+","+B.getAttribute("pid")+","+E.currSel)}}else DxDataGridPopGridTextCell.hideOnClick()};DxDataGrid.popGridpop=function(A,G,C,_){var J=top.E_clientModel.E_getWindow(A),B=WatCore.getWindowDoc(A,J),D=WatCore.getWindow(A,J);DxDataGrid.popGridChange(A,C.getAttribute("pid"),C);WatCore.setParameter(A,G,top.DC.TEXT,C.value);var H=C.parentElement.parentElement.parentElement.parentElement,E=C.parentElement.parentElement.parentElement,N=H.rowIndex,F=E.cellIndex,M=$(C).offset(),L="DxPopGridText_panel_"+G,K=$$(L),P=0,O=0;if(M){P=M.left;O=M.top+$(C).height()+7}else{P=getAbsoluteLeft(C)-getAbsoluteLeft(K.parent()[0]);O=getAbsoluteTop(C)+$(C).height()+7-getAbsoluteTop(K.parent()[0]);if(getAbsoluteTop(K[0])+K.height()>document.body.offsetHeight)O-=K.height()+25}var I=top.E_getObject(A,C.getAttribute("pid"),B);WatCore.call(A,G,"popgridshow#"+P+","+O+","+A+","+C.getAttribute("pid")+","+I.currSel)};DxDataGrid.popGridBlurAction=function(A,F,C){C.style.borderStyle="none";DxDataGrid.change(A,F,C);if(DxDataGridPopGridTextCell.isShowPanel()){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=top.E_getObject(A,F,_),E=C.parentElement.parentElement.parentElement,D=E.cellIndex;DxDataGrid._setFocus(A,F,$.realSel,D)}};DxDataGrid.clear=function(A,_,C){try{C.oTable=null;for(var B=0;B<C.columnSize;B++){C.columnObjects[B+1]=null;C.columnHeadObjects[B+1]=null}C.pageSize=null;C.isShowFoot=null;C.isFootMenu=null;C.oTable=null;C.initFocusRow=null;C.initFocusColumn=null;C.targetId=null;C.focusKeyCode=null;C.fname=null;C.columnObjects=null;C.columnHeadObjects=null;C.DataDom=null;C.changeDataMap=null;C.columnDom=null}catch($){}};DxDataGrid.changeSize=function(A,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=top.E_getObject(A,C,_);DxDataGrid._changeSize($,C)};DxDataGrid.processPageMouseOver=function(_){$(_).css({"color":"white","background":"#3399FF"});$("img",_).attr("src",$("img",_).attr("wimg"))};DxDataGrid.processPageMouseOut=function(_){$(_).css({"color":"#525252","background":"white"});$("img",_).attr("src",$("img",_).attr("img"))};DxDataGrid.pageonblur=function(G,C,F){var E=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,E),A=top.E_getObject(C,F,B),_=A.pageCount,D=G.value,$=Format.isNumber(D);if(!$)alert("\u8bf7\u8f93\u5165\u6709\u6548\u9875\u7801");else{D=parseInt(D);if(D<1||D>parseInt(_)){alert("\u8bf7\u8f93\u5165\u6709\u6548\u9875\u7801");return}DxDataGrid.processpageclick(C,F,"pagecontainer&"+D)}};DxDataGrid.processpageclick=function(D,G,F){var E=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,E),B=top.E_getObject(D,G,C),_=B.currPage;if(_<1)_=1;var $=B.pageCount,A=B.wid;if(F=="pre"){if(parseInt(_)-1>0)top.WatCore.call(A,G,"pagecontainer&"+(parseInt(_)-1),event)}else if(F=="first"){if(_>1)top.WatCore.call(A,G,"pagecontainer&1",event)}else if(F=="next"){if(parseInt(_)+1<=$)top.WatCore.call(A,G,"pagecontainer&"+(parseInt(_)+1),event)}else if(F=="last"){if(_<$)top.WatCore.call(A,G,"pagecontainer&"+$,event)}else top.WatCore.call(A,G,F,event)};DxDataGrid.processpage=function(L,I){var K=parseInt(L.currPage);if(K<1)K=1;var H=L.rowCount,B=L.pageCount,G=L.pageSize;if(B==undefined)B=0;else B=parseInt(B);if(G==undefined)G=0;else G=parseInt(G);var E=L.getAttribute("wid"),N=top.E_clientModel.E_getWindow(E),F=WatCore.getWindowDoc(E,N),C=top.E_getObject(E,I+"_pagecontainer",F),A=$("#"+I+"_firstpage",C),O=$("#"+I+"_prepage",C),M=$("#"+I+"_lastpage",C),Q=$("#"+I+"_nextpage",C),P=$("#"+I+"_inputcurpage",C);if(K<=1||K==""){A.css({"background":"url("+watLocation2+"/resources/component/page-first-disabled.png) no-repeat","cursor":"default"});A.attr("disabled","true");O.css({"background":"url("+watLocation2+"/resources/component/page-prev-disabled.png) no-repeat","cursor":"default"});O.attr("disabled","true")}else{A.css({"background":"url("+watLocation2+"/resources/component/page-first.png) no-repeat","cursor":"pointer"});A.removeAttr("disabled");O.css({"background":"url("+watLocation2+"/resources/component/page-prev.png) no-repeat","cursor":"pointer"});O.removeAttr("disabled")}var D=Desktop.textCounter(""+B);if(D<2)D=2;P.val(K);P.width(D*10+"px");if(B==""||parseInt(B)<1)P.attr("disabled","true");else P.removeAttr("disabled");$("#"+I+"_totalpage",C).text(" /"+B);if(K>=B){M.css({"background":"url("+watLocation2+"/resources/component/page-last-disabled.png) no-repeat","cursor":"default"});M.attr("disabled","true");Q.css({"background":"url("+watLocation2+"/resources/component/page-next-disabled.png) no-repeat","cursor":"default"});Q.attr("disabled","true")}else{M.css({"background":"url("+watLocation2+"/resources/component/page-last.png) no-repeat","cursor":"pointer"});M.removeAttr("disabled");Q.css({"background":"url("+watLocation2+"/resources/component/page-next.png) no-repeat","cursor":"pointer"});Q.removeAttr("disabled")}var _=(K-1)*(G)+1,J=K*(G);if(J>parseInt(H))J=H;$("#"+I+"_totalpageinfo",C).text("\u663e\u793a"+_+"-"+J+"\u6761\uff0c\u5171\u8ba1"+H+"\u6761")};DxDataGrid._changeSize=function(P,Z){try{if(P.style.visibility=="hidden"||P.parentElement.style.visibility=="hidden"||P.columnObjects==null);if(P.columnObjects.length<=0)return;var c=P,V=c.style.width,T=c.style.height,Q=c.getAttribute("widthunit"),D=c.getAttribute("heightunit"),J=P.clientWidth,I=P.clientHeight;if(D!="%")I=parseInt(T);if(!top.isIE);$(P.oPage).css("display","none");if(J<=0||I<=0)return;var H=P.ownerDocument.getElementById(Z+"_control"),C=P.ownerDocument.getElementById(Z+"_HeadContent");if(H==null)return;if(P.pageCount>1)H.style.width=(J-17)+"px";else H.style.width=J+"px";H.style.top="0px";var e=I;if(e<0)e=0;if(P.hasheadpage=="true"){e=e-28;H.style.top="30px"}if(P.haspage=="true"){if(J>=315){e=e-28;P.haspagechange="true";H.style.height=e+"px";C.style.height=e+"px";$(P.oPage).css("display","block");DxDataGrid.processpage(P,Z);if(J>=400){$("#"+Z+"_refresh",P.oPage).css("display","block");$("#"+Z+"_refresh_split",P.oPage).css("display","block");$("#"+Z+"_export",P.oPage).css("display","block");$("#"+Z+"_export_split",P.oPage).css("display","block");$("#"+Z+"_lastpage_split",P.oPage).css("display","block")}else if(J<400&&J>=375){$("#"+Z+"_refresh",P.oPage).css("display","block");$("#"+Z+"_refresh_split",P.oPage).css("display","block");$("#"+Z+"_export",P.oPage).css("display","none");$("#"+Z+"_export_split",P.oPage).css("display","none");$("#"+Z+"_lastpage_split",P.oPage).css("display","block")}else if(J<375&&J>=315){$("#"+Z+"_refresh",P.oPage).css("display","none");$("#"+Z+"_refresh_split",P.oPage).css("display","none");$("#"+Z+"_export",P.oPage).css("display","none");$("#"+Z+"_export_split",P.oPage).css("display","none");$("#"+Z+"_lastpage_split",P.oPage).css("display","none")}}else{H.style.height=e+"px";C.style.height=e+"px";$(P.oPage).css("display","none")}}else{H.style.height=e+"px";C.style.height=e+"px";$(P.oPage).css("display","none")}var W=P.ownerDocument.getElementById(Z+"_mark");W.style.left=((J-17>=0)?(J-17):0)+"px";W.style.top=((I-22>=0)?(I-22):0)+"px";var g=P.ownerDocument.getElementById(P.getAttribute("sid"));g.style.left=(J-17)+"px";var _=P.autoexpand,E=c.getAttribute("rowheight"),F=c.columnSize,A=parseInt(c.columnrow),f=false,L=P.getAttribute("designrow");if(L!=null){if(f)e-=((parseInt(L)*30)+34);else e-=((parseInt(L)*30))}else if(f)e-=(24+30);else e-=30;var M=0;for(var b=0;b<F;b++)if(P.columnHeads[b+1]!=null&&P.columnHeads[b+1].tvisible!="hidden")if(P.columnObjects[b+1]!=null)M+=parseInt(P.columnObjects[b+1].getAttribute("truewidth"));if(e>0){if(P.isShowFoot=="true")e-=30;if(P.isFootMenu=="true")e-=30;if(M>J)e-=25;var Y=P.getAttribute("rowheight"),U=parseInt((e-10)/Y);if(U<=0)U=1;if(P.initDom==false){P.pageSize=U;P.pagesizeInit=true;WatCore.setParameter(P.getAttribute("wid"),Z,top.DC.PAGESIZE,U);if(P.isInitNotifyLoadData=="true");else if(P.hasdataupdate&&!P.pagesizeInit){DxDataGrid._updateData(P);P.hasdataupdate=false}P.pagesizeInit=false}else{var N=0;if(P.isShowFoot=="true")N++;if(P.isFootMenu=="true")N++;var h=P.oTable.rows.length-A-N;if(h!=U){var S=parseInt(P.currPage);if(h>U){WatCore.setParameter(P.getAttribute("wid"),Z,top.DC.PAGESIZE,U);if(h>U){var K=h-U;for(b=U;b<=h;b++)$("#"+P.id+"_body_row"+(b-1+A),P).remove();P.pageCount=parseInt(P.rowCount/U);if(P.rowCount%U>0)P.pageCount=P.pageCount+1;P.pageSize=U;var G=parseInt(P.rowCount);if(P.currSel<0){P.currPage=DxDataGrid.jisuanCurrPage(P,h,U);if(S>1){WatCore.setParameter(P.getAttribute("wid"),Z,top.DC.PAGESIZE,U);top.WatCore.sendACallToChartNotifyDataChange(P.getAttribute("wid"),Z,"pagecontainer&"+P.currPage,event)}}else{var O=h*(P.currPage-1)+P.currSel-A;if(S>1){P.currSel=-1;P.realSel=O;WatCore.setParameter(P.getAttribute("wid"),Z,top.DC.PAGESIZE,U);var a=parseInt(O/U);if(a*U<O+1)a++;top.WatCore.sendACallToChartNotifyDataChange(P.getAttribute("wid"),Z,"pagecontainer&"+a,event)}else{P.currPage=DxDataGrid.jisuanCurrPage(P,h,U);var B=P.pageSize-1;if(O<0||O>B){P.currSel=-1;P.realSel=O}}}if(P.haspage=="true")DxDataGrid.processpage(P,P.strCtrID);DxDataGridScrollBar.setPageCount(P.strWindowID,P.getAttribute("sid"),P.pageCount)}}else{P.bypageSize=U;P.pageSize=U;if(S==1){var X=P.updaterownum;P.currPage=DxDataGrid.jisuanCurrPage(P,h,U);if(X!=null){if(parseInt(X)>h){if(P.currSel>=0){O=h*(P.currPage-1)+P.currSel-A;P.realSel=O}if(S==1){P.pageSize=U;DxDataGrid._updateData(P,"true");WatCore.setParameter(P.getAttribute("wid"),Z,top.DC.PAGESIZE,U)}}else{WatCore.setParameter(P.getAttribute("wid"),Z,top.DC.PAGESIZE,U);top.WatCore.sendACallToChartNotifyDataChange(P.getAttribute("wid"),Z,"pagecontainer&"+P.currPage,event)}}else{WatCore.setParameter(P.getAttribute("wid"),Z,top.DC.PAGESIZE,U);top.WatCore.sendACallToChartNotifyDataChange(P.getAttribute("wid"),Z,"pagecontainer&"+P.currPage,event)}}else if(P.currSel>=0){O=h*(P.currPage-1)+P.currSel-A;P.currSel=-1;P.realSel=O;WatCore.setParameter(P.getAttribute("wid"),Z,top.DC.PAGESIZE,U);a=parseInt(O/U);if(a*U<O+1)a++;top.WatCore.sendACallToChartNotifyDataChange(P.getAttribute("wid"),Z,"pagecontainer&"+a,event)}else{P.currPage=DxDataGrid.jisuanCurrPage(P,h,U);WatCore.setParameter(P.getAttribute("wid"),Z,top.DC.PAGESIZE,U);top.WatCore.sendACallToChartNotifyDataChange(P.getAttribute("wid"),Z,"pagecontainer&"+P.currPage,event)}}}}}if(J>0){F=P.columnSize;if(P.pageCount>1){var d=parseInt(P.columnObjects[F].getAttribute("truewidth"));if(M<(J-17)){if(top.isIE)d+=(J-M-20);else d+=(J-M-24);if(_=="true"&&P.columnHead.tvisible!="hidden")if(top.isIE){P.columnHead.style.width=d+"px";$("span",P.columnHead).css("width",d-12);$("#headdiv",P.columnHead).css("width",d);$("#c_"+Z+"sorttd_"+$(P.columnHead).attr("column"),P.columnHead).css("width","16")}else{P.columnHead.style.width=(d-4)+"px";$("span",P.columnHead).css("width",d-2-4);$("#headdiv",P.columnHead).css("width",d-4);$("#c_"+Z+"sorttd_"+$(P.columnHead).attr("column"),P.columnHead).css("width","16")}if(top.isIE){$(P.oTable).width((M-20)+"px");P.oTable.awidth=M-20}else{$(P.oTable).width(M+"px");P.oTable.awidth=M}g.style.height=(e-16)+"px"}else{if(top.isIE){$(P.oTable).width((M)+"px");P.oTable.awidth=M}else{$(P.oTable).width(M+"px");P.oTable.awidth=M}g.style.height=(e-16)+"px";f=true}}else if(M<J){d=parseInt(P.columnObjects[F].getAttribute("truewidth"));d+=J-M-2;if(_=="true"&&P.columnHead.tvisible!="hidden")if(top.isIE){P.columnHead.style.width=d+"px";$("span",P.columnHead).css("width",d-2);$("#headdiv",P.columnHead).css("width",d);$("#c_"+Z+"sorttd_"+$(P.columnHead).attr("column"),P.columnHead).css("width","16")}else{P.columnHead.style.width=(d-8)+"px";$("span",P.columnHead).css("width",d-2-8);$("#headdiv",P.columnHead).css("width",d-8);$("#c_"+Z+"sorttd_"+$(P.columnHead).attr("column"),P.columnHead).css("width","16")}H.style.width=J+"px";P.widthflag="true";if(top.isIE){$(P.oTable).width((M-20)+"px");P.oTable.awidth=M-20}else{$(P.oTable).width(M+"px");P.oTable.awidth=M}}else{if(top.isIE){$(P.oTable).width((M)+"px");P.oTable.awidth=M}else{d=parseInt(P.columnObjects[F].getAttribute("truewidth"));$(P.oTable).width(M+"px");P.oTable.awidth=M;P.columnHead.style.width=(d-14)+"px";$("span",P.columnHead).css("width",d-2-14);$("#headdiv",P.columnHead).css("width",d-14);$("#c_"+Z+"sorttd_"+$(P.columnHead).attr("column"),P.columnHead).css("width","16")}f=true}DxDataGridScrollBar.changeSize(g,C.style.height,J)}}catch(R){}};DxDataGrid.updateData=function(B,D,$){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,D,A);_.strWindowID=B;_.strCtrID=D;if(top.isIE)_.DataDom.loadXML($);else _.DataDom=WatCore.createXmlDom($);DxDataGrid._updateData(_)};DxDataGrid.jisuanCurrPage=function(A,_,B){var C=(A.currPage-1)*_,$=parseInt(C/B);if($*B<C+1)$=$+1;return $};DxDataGrid.initNotifyTimer=function(A,D){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),C=WatCore.getWindow(A,B),$=top.E_getObject(A,D,_);$.interval=C.setInterval("top.DxDataGrid.initNotifyTimer_('"+A+"','"+D+"');",30)};DxDataGrid.initNotifyTimer_=function(B,F){var D=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,D),E=WatCore.getWindow(B,D),_=top.E_getObject(B,F,A),$=_.lspagesize,C=_.pageSize;if($!=C)_.lspagesize=C;else{if(_.lsnum==null)_.lsnum=0;else _.lsnum++;if(_.lsnum>=2){E.clearInterval(_.interval);_.interval=null;WatCore.sendACallToChartNotifyDataChange(B,F,"notifyLoadData");_.hasdataupdate=false;_.isInitNotifyLoadData="false"}}};DxDataGrid._updateData=function(J,P){var k=J.DataDom.documentElement.selectNodes("data"),I=k[0].getAttribute("currPage");J.currPage=I;var B;if(P=="true")B=J.realSel;else{B=k[0].getAttribute("realSel");J.realSel=B}var T=k[0].getAttribute("cellIndex");J.currCel=T;var F=k[0].getAttribute("rowCount");J.rowCount=F;var S=k[0].getAttribute("pageCount"),U=J.pageCount==null?0:parseInt(J.pageCount);J.pageCount=S;var O=k[0].getAttribute("focus");J.cellpaddingcolor=k[0].getAttribute("cellpaddingcolor");var H=J.ownerDocument.getElementById(J.id+"_control"),G=k[0].getAttribute("pageSize"),M=parseInt(B);if(P=="true"){J.pageCount=parseInt(F/J.pageSize);if(F%J.pageSize>0)J.pageCount=J.pageCount+1;DxDataGridScrollBar.setPageCount(J.strWindowID,J.getAttribute("sid"),J.pageCount)}else if(J.initDom==false){if(G!=null&&J.pageSize==-1)J.pageSize=G;if(J.pageSize==-1||J.isInitNotifyLoadData=="true"){if((J.pageSize==-1||J.isInitNotifyLoadData=="true")&&J.interval==null)DxDataGrid.initNotifyTimer(J.strWindowID,J.strCtrID);J.hasdataupdate=true;return}if(!top.isIE){J.pagesizeInit=true;DxDataGrid._changeSize(J,J.id)}J.pageCount=parseInt(F/J.pageSize);if(F%J.pageSize>0)J.pageCount=J.pageCount+1;J.currPage=DxDataGrid.jisuanCurrPage(J,G,J.pageSize);DxDataGridScrollBar.setPageCount(J.strWindowID,J.getAttribute("sid"),J.pageCount)}else{if(G!=null&&G!=J.pageSize){J.pageCount=parseInt(F/J.pageSize);if(F%J.pageSize>0)J.pageCount=J.pageCount+1}DxDataGridScrollBar.setPageCount(J.strWindowID,J.getAttribute("sid"),J.pageCount)}var K=parseInt(J.clientWidth);if(J.pageCount>1){if(top.isIE)H.style.width=K+"px";else H.style.width=(K-15)+"px";if(J.getAttribute("widthflag")=="true"){var l=J.columnHead.style.width;if(J.columnObjects[J.columnSize].getAttribute("sy")=="5"){var X=J.ownerDocument.getElementById(J.id+"c"+J.columnSize+"_selected");if(X!=null&&X.length>0){for(var t=0;t<X.length;t++)X[t].style.width=parseInt(l)-16}else if(X!=null)X.style.width=parseInt(l)-16}J.columnHead.style.width=parseInt(l)-16;J.widthflag="delete"}if(parseInt(J.controlContainer.style.width)<parseInt(J.oTable.style.width)+20);}else{H.style.width=K+"px";if(J.getAttribute("widthflag")=="delete"){l=J.columnHead.style.width;J.columnObjects[J.columnSize].style.width=parseInt(l)+16;J.columnHead.style.width=parseInt(l)+16;if(J.columnObjects[J.columnSize].getAttribute("sy")=="5"){X=J.ownerDocument.getElementById(J.id+"c"+J.columnSize+"_selected");if(X!=null&&X.length>0){for(t=0;t<X.length;t++)X[t].style.width=parseInt(l)+16}else if(X!=null)X.style.width=parseInt(l)+16}J.widthflag="true"}if(parseInt(J.controlContainer.style.width)<parseInt(J.oTable.style.width));}var h=J.DataDom.documentElement.selectNodes("data/row"),e=h.length;J.updaterownum=e;var g=parseInt(J.columnrow),W=parseInt(J.pageSize),m=0;if(J.isShowFoot=="true")m++;if(J.isFootMenu=="true")m++;var f=J.oTable.rows.length-g-m;if(f>W){var L=f-W,u=W;if(u<=0)u=1;for(t=u;t<=f;t++)$("#"+J.id+"_body_row"+(t),J).remove()}var E=J.oTable.rows[g];for(t=0;t<W;t++){var n=$("#"+J.id+"_body_row"+(t),J);if(n.get(0)==undefined){var _=E.cloneNode(true);_.id=J.id+"_body_row"+t;$("#"+J.id+"_body_row"+(t-1),J).after($(_));n=$("#"+J.id+"_body_row"+(t),J);if(t>=e)n.css("display","none");else n.css("display","")}else if(t>=e)n.css("display","none");else n.css("display","")}if(J.isShowFoot=="true"){var Y=J.oTable.rows[W+g];if(Y!=null)Y.style.display=""}if(J.isFootMenu=="true"){Y=J.oTable.rows[W+g+1];if(Y!=null)Y.style.display=""}if(e==0){J.syncflag=true;DxDataGrid.syncUIDom(J)}var N=null,v=J.allcells,i=J.columnSize;for(t=1;t<=i;t++){var r=J.columnObjects[t],Q=r.getAttribute("sy");for(var s=0;s<e;s++){if(s>=W)break;N=h[s].selectSingleNode("c"+t);var C=top.isIE?N.text:N.textContent,V=N.getAttribute("cellchange"),Z=J.oTable.rows[s+g],j=Z.cells[t-1],A=$("#"+J.strCtrID+"c"+t,j);if(V=="true")A.css({"background":"transparent no-repeat 0 0","background-image":"url("+watLocation2+"/resources/component/dirty.gif)"});else A.css("background-image","");switch(Q){case"1":C=""+DxDataGrid.createMaskShowText(r,C);A.val(C);break;case"2":C=""+DxDataGrid.createMaskShowText(r,C);A.get(0).innerText=C;A.get(0).title=C;break;case"7":A.html(C);break;case"12":A.html(C);break;case"14":A.html(C);break;case"13":var b=$(r).attr("value");if(b==C)$("img",A).attr("src",$(r).attr("yesimg"));else $("img",A).attr("src",$(r).attr("noimg"));A.attr("yesvalue",C);break;case"8":A.attr("src",C);break;case"9":A.attr("href",C);A.get(0).innerText=C;break;case"10":var Z=J.oTable.rows[s+g],j=Z.cells[t-1],R=$(":radio",j);for(var a=0;a<R.size();a++)if(R[a].value==C)R[a].checked=true;else R[a].checked=false;break;case"3":b=$(r).attr("value");if(b==C)A.get(0).checked=true;else A.get(0).checked=false;break;case"4":var c=C,q="";if(c==null||c=="")C=c;else{q=DxDataGrid.timeToLong(c);C=DxDataGrid.timeToStr(q)}A.val(C);if(top.isIE)N.text=q;else N.textContent=q;break;case"5":var d=J.ownerDocument.getElementById(r.id+"_selected");C=DxDataGrid.getComboBoxShowText(d,C);A.val(C);break;case"6":var o=r.getAttribute("datetimetype"),c=C;if(o=="date"){if(c==null||c=="")C=c;else{q=c;if(q.indexOf("&")>=0)q=DxDataGrid.timeToLong(c);else q=parseFloat(q);C=DxDataGrid.timeToStr(q);if(top.isIE)N["text"]=q;else N["textContent"]=q}}else if(o=="datetime"){if(c==null||c=="")C=c;else{q=c;if(q.indexOf("&")>=0)q=DxDataGrid.timeToLong(c);else q=parseFloat(q);C=DxDataGrid.datetimeToStr(q);if(top.isIE)N["text"]=q;else N["textContent"]=q}}else if(o=="datetime2"){if(c==null||c=="")C=c;else{q=c;if(q.indexOf("&")>=0)q=DxDataGrid.timeToLong(c);else q=parseFloat(q);C=DxDataGrid.datetimeToStr2(q);if(top.isIE)N["text"]=q;else N["textContent"]=q}}else if(o=="time2"){if(c==null||c=="")C=c;else{q=c;if(q.indexOf("&")>=0)q=DxDataGrid.timeToLong(c);else q=parseFloat(q);C=DxDataGrid.timeToStrToTime2(q);if(top.isIE)N["text"]=q;else N["textContent"]=q}}else if(c==null||c=="")C=c;else{q=c;if(q.indexOf("&")>=0)q=DxDataGrid.timeToLong(c);else q=parseFloat(q);C=DxDataGrid.timeToStrToTime(q);if(top.isIE)N["text"]=q;else N["textContent"]=q}A.val(C);break;default:break}}}if(J.initDom==false)J.initDom=true;DxDataGrid.processCheck(J);DxDataGrid.processRowBkAndColor(J);DxDataGrid._backSelectRow(J,B,T);if(O!=null){var D=O.split(",");if(D.length==2)DxDataGrid._setFocus(J.strWindowID,J.strCtrID,D[0],D[1])}if(J.haspage=="true")DxDataGrid.processpage(J,J.strCtrID);try{if(J.getAttribute("designrow")!=null)for(t=1;t<J.columnHeads.length;t++){J.curResizeColumn=t;DxDataGrid.__synWidth(J,parseInt(J.columnHeads[t].style.width))}}catch(p){}};DxDataGrid.getCell=function(_,C,B){var A;if(_.E_contains(C)){var $=_.E_get(C);A=$[parseInt(B)]}return A};DxDataGrid.putCell=function(_,D,B,A,C){if(_.E_contains(D)){var $=_.E_get(D);$[B]=A}else{$=new Array(parseInt(C));_.E_put(D,$);$[B]=A}};DxDataGrid.clearCell=function($){};DxDataGrid.keyDown=function(B,E,C,K,I){try{DxDataGridPopGridTextCell.hideOnClick();var J=true;if(WatCore.isKeyCode(I,K.getAttribute("focusKeyCode"))){stopEvent(I);WatCore.jsFunctionCall(B,E,K.getAttribute("targetId"),K.getAttribute("fname"));J=true}else{var G=I.keyCode;if(G!=16&&G!=17&&G!=18&&G!=27)switch(G){case 38:if(I.srcElement.tagName=="INPUT"&&$(I.srcElement).attr("sy")=="6")break;if(I.srcElement.tagName=="SELECT")break;DxDataGrid.keydown_up(B,E,K);J=false;stopEvent(I);break;case 40:if(I.srcElement.tagName=="INPUT"&&$(I.srcElement).attr("sy")=="6")break;if(I.srcElement.tagName=="SELECT")break;if(I.srcElement.tagName=="INPUT"&&$(I.srcElement).attr("sy")=="5"){DxDataGrid.comboClick(B,E,I.srcElement);J=false;stopEvent(I);break}DxDataGrid.keydown_down(B,E,K);stopEvent(I);break;case 33:DxDataGrid.keydown_pageup(B,E,K,false);J=false;break;case 34:DxDataGrid.keydown_pagedown(B,E,K,false);J=false;break;case 36:DxDataGrid.keydown_pageFirst(B,E,K);J=false;break;case 35:DxDataGrid.keydown_pageLast(B,E,K);J=false;break;case 13:DxDataGrid.keydown_enter(B,E,K);J=false;break;default:break}}if(J){var A=0;if(I.altKey)A=1;if(I.ctrlKey)A=2;if(I.shiftKey)A=4;if(I.shiftKey&&I.altKey)A=5;if(I.altKey&&I.ctrlKey)A=3;if(I.shiftKey&&I.ctrlKey)A=6;if(I.shiftKey&&I.altKey&&I.ctrlKey)A=7;var H=A*100+I.keyCode,D=C.split("|");for(var F=0;F<D.length;F++)if(H==D[F])return top.WatCore.listenKey(I,B,E,C);return J}else return J}catch(_){}};DxDataGrid.mousewheel=function(A,B,C,_){var $=_.wheelDelta;DxDataGridPopGridTextCell.hideOnClick();stopEvent(_);if($>=120)DxDataGrid.keydown_up(A,B,C);else if($<=-120)DxDataGrid.keydown_down(A,B,C);return false};DxDataGrid.getComboBoxShowText=function(B,A){var $,_;if(B.id==null)_=B[0];else _=B;for(var C=0;C<_.length;C++)if(A==_[C].value){$=_[C].innerText;break}if(C>=_.length)$=A;return $};DxDataGrid.combo=function($){stopEvent($)};DxDataGrid.comboClick=function(C,K,T){EventRouter.hiddenDateTimeDialog();DxDataGridPopGridTextCell.hideOnClick();var Q=top.E_clientModel.E_getWindow(C),D=WatCore.getWindowDoc(C,Q),P=top.E_getObject(C,K,D),J=$("#"+T.id+"_selected",T.parentElement);DxDataGrid.closeAllcombo(P);var F=T.parentElement.parentElement.parentElement,L=F.parentElement,S=L.rowIndex,G=F.cellIndex;G=DxDataGrid.getColumnObjectIndex(P,G);var A=parseInt(P.columnrow),N=P.DataDom.documentElement.selectNodes("data/row"),E=N[S-A],I=top.isIE?E.selectNodes("c"+(G+1))[0].text:E.selectNodes("c"+(G+1))[0].textContent,B=J.get(0),R;if(I==null||I=="")if(B.options.length>0){if(top.isIE)E.selectNodes("c"+(G+1))[0].text=B.options[0].value;else E.selectNodes("c"+(G+1))[0].textContent=B.options[0].value;var O=(P.currPage-1)*P.pageSize+S-A;DxDataGrid.putChangeData(C,K,O,G,B.options[0].value);var H=P.oTable.rows[S].cells[G],_=$("#"+K+"c"+(G+1),H);_.val(B.options[0].innerText);if($(P.columnHeadObjects[G+1]).attr("isChange")=="true")R="true"}for(var M=0;M<B.length;M++)if(I==B.options[M].value)B.options[M].selected="true";B.style.visibility="visible";WatCore.setFocus(B);T.style.visibility="hidden";if(R=="true"&&P.isClick!="true")top.WatCore.call(C,K,"columnChange&"+G,event)};DxDataGrid.mouseoutcombo=function(A,C,D){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=top.E_getObject(A,C,_);DxDataGrid.closeAllcombo($)};DxDataGrid.mouseincombo=function(B,I,O){var M=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,M),L=top.E_getObject(B,I,C),H=$("#"+O.id+"_selected",O.parentElement);DxDataGrid.closeAllcombo(L);var E=O.parentElement.parentElement.parentElement,J=E.parentElement,N=J.rowIndex,F=E.cellIndex;F=DxDataGrid.getColumnObjectIndex(L,F);var _=parseInt(L.columnrow),K=L.DataDom.documentElement.selectNodes("data/row"),D=K[N-_],G=top.isIE?D.selectNodes("c"+(F+1))[0].text:D.selectNodes("c"+(F+1))[0].textContent,A=H.get(0);A.style.visibility="visible";WatCore.setFocus(A)};DxDataGrid.findRowTd=function(C){var E=null,D=null,F=C,A=true,_=0;while($(F).attr("watdatagridbody")!="true"&&A&&_<100)if($(F).attr("watdatagridtd")=="true"){D=F;E=D.parentElement;A=false}else{F=F.parentElement;_++}var B=new Array();B[0]=E;B[1]=D;return B};DxDataGrid.htmlCall=function(A,D,H,_){if(_!=null&&_!=undefined){var E,C,$=DxDataGrid.findRowTd(_);E=$[0];C=$[1];if(E!=null&&C!=null){var I=top.E_clientModel.E_getWindow(A),B=WatCore.getWindowDoc(A,I),F=top.E_getObject(A,D,B),G=E.rowIndex,J=F.currSel;DxDataGrid.frontSelectRow(F,E,C);top.E_dataChange.E_put(D,A)}}top.WatCore.call(A,D,"htmlCall#"+H,null)};DxDataGrid.closeAllcombo=function(E){var C;for(var D=1;D<=E.columnSize;D++){C=E.columnObjects[D];var B=$(C).attr("sy");switch(B){case"5":var A=E.ownerDocument.getElementById(C.id+"_selected");if(A!=null&&A.id==null){for(var _=0;_<A.length;_++)A[_].style.visibility="hidden"}else A.style.visibility="hidden";break;default:break}}};DxDataGrid.timeToLong=function($){var _=$.split("&"),A;if(_.length>=6)A=new Date(_[0],_[1]-1,_[2],_[3],_[4],_[5]);else A=new Date(_[0],_[1]-1,_[2],_[3],_[4]);return Number(A)};DxDataGrid.timeToDate=function($){var _=$.split(","),A;if(_.length>=6)A=new Date(_[0],_[1]-1,_[2],_[3],_[4],_[5]);else A=new Date(_[0],_[1]-1,_[2],_[3],_[4]);return A};DxDataGrid.timeToStrToTime=function(_){var B=new Date(parseInt(_)),A=B.getHours();if(A<10)A="0"+A;var $=B.getMinutes();if($<10)$="0"+$;str=A+":"+$;return str};DxDataGrid.timeToStrToTime2=function(A){var C=new Date(parseInt(A)),B=C.getHours();if(B<10)B="0"+B;var $=C.getMinutes();if($<10)$="0"+$;var _=C.getSeconds();if(_<10)_="0"+_;str=B+":"+$+":"+_;return str};DxDataGrid.timeToStr=function($){var C=new Date(parseInt($)),A=C.getFullYear(),_=C.getMonth();if(_<9)_="0"+(_+1);else _+=1;var B=C.getDate();if(B<=9)B="0"+B;return A+"-"+_+"-"+B};DxDataGrid.datetimeToStr=function(_){var E=new Date(parseInt(_)),B=E.getFullYear(),A=E.getMonth();if(A<9)A="0"+(A+1);else A+=1;var D=E.getDate();if(D<=9)D="0"+D;var C=E.getHours();if(C<10)C="0"+C;var $=E.getMinutes();if($<10)$="0"+$;str=E.getFullYear()+"-"+A+"-"+D+" "+C+":"+$;return str};DxDataGrid.datetimeToStr2=function(A){var F=new Date(parseInt(A)),C=F.getFullYear(),B=F.getMonth();if(B<9)B="0"+(B+1);else B+=1;var E=F.getDate();if(E<=9)E="0"+E;var D=F.getHours();if(D<10)D="0"+D;var $=F.getMinutes();if($<10)$="0"+$;var _=F.getSeconds();if(_<10)_="0"+_;str=F.getFullYear()+"-"+B+"-"+E+" "+D+":"+$+":"+_;return str};DxDataGrid.CheckState=function($){var A=$.DataDom.readyState;if(A==4){var _=$.DataDom.parseError;if(_.errorCode!=0)MsgConsole.displayErr(_.errorCode);else DxDataGrid._updateData($)}};DxDataGrid.delayPrcess=function($){var _=$.oTable.readyState;if(_=="complete"){DxDataGrid.processCheck($);DxDataGrid.processRowBkAndColor($);DxDataGrid._backSelectRow($,$.realSel,$.currCel);DxDataGrid._changeSize($,$.strCtrID)}};DxDataGrid.processRowBkAndColor=function(C){var B=C.DataDom.documentElement.selectNodes("data/row"),H=B.length;if(H>parseInt(C.pageSize))H=parseInt(C.pageSize);var E,A,_,$=parseInt(C.columnrow),D=DxDataGrid.getCurrSel(C,C.realSel);C.currSel=null;for(var F=0;F<H;F++){E=B[F].getAttribute("bkcolor");A=B[F].getAttribute("color");_=B[F].getAttribute("ser");var G=C.oTable.rows[F+$];if(G!=null){if(_=="true"){if(E!=null&&E!=""){if(D!=(F+$)){G["orb"]=E;G.style.backgroundColor=E;DxDataGrid.processRowCellBkAndColor(G,E,A)}else{G["orb"]=E;DxDataGrid._backSelectRow(C,C.realSel,C.currCel);G["orb"]=E}}else{var I="transparent";if(F%2!=0)I="#FAFAFA";if(D!=(F+$)){G["orb"]=I;G.style.backgroundColor=I;DxDataGrid.processRowCellBkAndColor(G,I,"#000")}else{G["orb"]=I;DxDataGrid._backSelectRow(C,C.realSel,C.currCel);G["orb"]=I}}if(D!=(F+$)){if(A!=null){G["orc"]=A;DxDataGrid.processRowCellColor(C,G,A)}else{G["orc"]="#000";DxDataGrid.processRowCellColor(C,G,"#000")}}else if(A!=null){G["orc"]=A;DxDataGrid.processRowCellColor(C,G,A)}else{G["orc"]=C.getAttribute("rowscrollcolor");DxDataGrid.processRowCellColor(C,G,C.getAttribute("rowscrollcolor"))}}else{I="transparent";if(F%2!=0)I="#FAFAFA";if(D!=(F+$)){G["orb"]=I;G.style.backgroundColor=I;DxDataGrid.processRowCellBkAndColor(G,I,"#000")}else{G["orb"]=I;DxDataGrid._backSelectRow(C,C.realSel,C.currCel);G["orb"]=I}}}else if(_=="true"){if(G!=null){G["orc"]="#000";G["orb"]="transparent"}DxDataGrid.processRowCellColor(C,G,"#000");if(D!=(F+$)){G.style.backgroundColor="transparent";DxDataGrid.processRowCellBkAndColor(G,"transparent","#000")}}}};DxDataGrid.processRowCellBkAndColor=function(E,C,B){var _=E.children,D=E.children.length;for(var F=0;F<D;F++){var A=$(_[F]).attr("se");if(A=="1"){if(C!=null&&C!="")_[F].style.backgroundColor=C}else DxDataGrid.processRowCellBkAndColor(_[F],C,B)}};DxDataGrid.processRowCellTitle=function(A,C,_){for(var D=1;D<=A.columnSize;D++){oColumnObj=A.columnObjects[D];var B=oColumnObj.cot;switch(B){case"1":case"2":var $;$=C.cells[D-1];if($!=null)if(_!=null)$.children[0].children[0].children[0].title=_;else $.children[0].children[0].children[0].title=null;break;default:break}}};DxDataGrid.processRowCellColor=function(B,D,A){for(var E=1;E<=B.columnSize;E++){oColumnObj=B.columnObjects[E];var C=$(oColumnObj).attr("cot");switch(C){case"1":case"2":var _;_=D.cells[E-1];if(_!=null)if(A!=null)_.children[0].children[0].children[0].style.color=A;else _.children[0].children[0].children[0].style.color="#000";break;case"3":_;_=D.cells[E-1];if(_!=null)if(A!=null){if(A!="transparent")_.children[0].children[0].style.color=A}else _.children[0].children[0].style.color="#000";break;default:break}}};DxDataGrid.processCheckByChange=function(H,Z){try{var K=Z.documentElement.selectNodes("data/row"),Y=K.length;if(Y>H.pageSize)Y=H.pageSize;var G=H.currPage,X=(H.currPage-1)*H.pageSize+1,A=(H.currPage)*H.pageSize,_=parseInt(H.columnrow),Q=H.bottomline,B,U=H.cellpaddingcolor;for(var P=0;P<Y;P++){oRowNode=K[P];var C=oRowNode.getAttribute("id"),L=oRowNode.getAttribute("title");if(C<X||C>A)continue;C=C-(H.currPage-1)*H.pageSize;colNodes=oRowNode.selectNodes("c");colNum=colNodes.length;var I=H.oTable.rows[parseInt(C)-1+_];for(var N=0;N<colNum;N++){oColNode=colNodes[N];colId=parseInt(oColNode.getAttribute("id"));var O=H.columnObjects[colId],D=O.getAttribute("cot"),M=O.getAttribute("controltype"),V;switch(D){case"3":if(I!=null)V=I.cells[colId-1];if(V!=null){V.disabled=false;V.children[0].style.visibility="visible"}var R=oColNode.getAttribute("cellenabled");if(R!=null)if(R=="true")V.disabled=false;else V.disabled=true;var S=O.value;if(O.vhidden==top.isIE?oColNode["text"]:oColNode["textContent"])if(V!=null){V.disabled=true;V.children[0].style.visibility="hidden"}break;case"1":case"2":if(I!=null)V=I.cells[colId-1];var E=V.children[0].children[0].children[0];if(V!=null){var T=oColNode.getAttribute("color");if(T!=null)E.style.color=T;if(L!=null&&L=="true"){var F=oColNode.getAttribute("title");if(F!=null)E.title=F;else E.title=""}R=oColNode.getAttribute("cellenabled");if(R!=null)if(M=="calendar"||M=="combobox"||M=="datetimepick"){if(R=="true")E.disabled=false;else E.disabled=true}else{var W=oColNode.getAttribute("readonly");if(R=="true"){if(W=="true")E.readOnly=false;else E.disabled=false;if(M=="popgridtext"){$("#"+H.id+"_button_"+P,V).css("display","block");$("img",V).css("display","block")}}else{if(W=="true")E.readOnly=true;else E.disabled=true;if(M=="popgridtext"){$("#"+H.id+"_button_"+P,V).css("display","none");$("img",V).css("display","none")}}}}break;default:break}if(Q!="true"){B=oColNode.getAttribute("showbottomline");if(I!=null)V=I.cells[colId-1];if(V!=null)if(B=="true"){if(N==Y-1)V.style.borderBottom="1px solid "+U;else V.style.borderBottom="1px none "+U}else V.style.borderBottom="1px none "+U}}}}catch(J){}};DxDataGrid.processCheck=function(H){try{var B=H.DataDom.documentElement.selectNodes("data/row"),W=H.cellpaddingcolor,Z=B.length;if(Z>H.pageSize)Z=H.pageSize;var V=DxDataGrid.getCurrSel(H,H.realSel),R=H.bottomline,A,_=parseInt(H.columnrow),J=null,O;for(var N=0;N<Z;N++){var P=B[N].getAttribute("title"),C=null,I=H.oTable.rows[N+_];for(var Q=1;Q<=H.columnSize;Q++){J=B[N].selectSingleNode("c"+Q);O=H.columnObjects[Q];var D=O.getAttribute("cot"),M=O.getAttribute("controltype"),X;switch(D){case"3":var K;if(I!=null)K=$("input[type=\"checkbox\"]",I.cells[Q-1]);else continue;K.removeAttr("disabled");K.css("visibility","visible");var S=J.getAttribute("cellenabled");if(S!=null)if(S=="true")K.removeAttr("disabled");else K.attr("disabled","true");var T=O.value,E=top.isIE?J["text"]:J["textContent"];if(O.getAttribute("vhidden")==E)if(X!=null){K.attr("disabled","true");K.css("visibility","hidden")}break;case"1":case"2":if(I!=null)X=I.cells[Q-1];var F=X.children[0].children[0].children[0];if(X!=null){var U=J.getAttribute("color");if(U!=null){F.style.color=U;$(F).attr("setColor","true")}else{$(F).attr("setColor","false");F.style.color="#000"}if(P!=null&&P=="true"){var G=J.getAttribute("title");if(G!=null)F.title=G;else F.title=""}S=J.getAttribute("cellenabled");if(S!=null)if(M=="calendar"||M=="combobox"||M=="datetimepick"||M=="htmldisplay"){if(S=="true")F.disabled=false;else F.disabled=true}else{var Y=J.getAttribute("readonly");if(S=="true"){if(Y=="true")F.readOnly=false;else F.disabled=false;if(M=="popgridtext"){$("#"+H.id+"_button_"+Q,X).css("display","block");$("img",X).css("display","block")}}else{if(Y=="true")F.readOnly=true;else F.disabled=true;if(M=="popgridtext"){$("#"+H.id+"_button_"+Q,X).css("display","none");$("img",X).css("display","none")}}}}break;case"4":if(I!=null)X=I.cells[Q-1];F=X.children[0].children[0].children[0];if(X!=null){U=J.getAttribute("color");if(U!=null)$(F).attr("setColor","true");else{$(F).attr("setColor","false");F.style.color="#000"}S=J.getAttribute("cellenabled");if(S!=null)if(M=="yesnocell")if(S=="true")F.children[0].children[0].disabled=false;else F.children[0].children[0].disabled=true}break;default:break}if(R!="true"){A=J.getAttribute("showbottomline");if(I!=null)X=I.cells[Q-1];if(X!=null)if(A=="true"){if(N==Z-1)X.style.borderBottom="1px solid "+W;else X.style.borderBottom="1px none "+W}else X.style.borderBottom="1px none "+W}}}}catch(L){}};DxDataGrid.getCurrSel=function(B,$){var _=parseInt(B.columnrow),C=(B.currPage-1)*B.pageSize,A=B.currPage*B.pageSize-1;if($<C||$>A)return-1;else return $%B.pageSize+_};DxDataGrid.setFocus=function(D,$,B){var A=top.E_getObject(D,$,B),C=A.initFocusRow,E=A.initFocusColumn,_=DxDataGrid.getCurrSel(A,C);stopEvent(event);DxDataGrid._setFocus(D,$,C,E)};DxDataGrid._setFocus=function(B,F,$,A){var J=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,J),H=top.E_getObject(B,F,C);try{if($==H.realSel){var G=H.oTable.rows[H.currSel],D;if(G!=null)D=G.cells[A];if(D!=null){var K=D.children[0].children[0].children[0];WatCore.setFocus(K);K.select()}}else{var E=1,I=DxDataGrid.getCurrSel(H,$);if(I==-1)top.WatCore.call(B,F,"focusRow&"+$+"&"+A,event);else DxDataGrid.jsLocationRow(E,H,I,A)}}catch(_){}};DxDataGrid.keydown_pagedown_focus=function(C,E,F,A,B,_){var $=parseInt(F.columnrow),D=(F.currPage-1)*F.pageSize+parseInt(B)+1-$;top.WatCore.call(C,E,"focusDown&"+A+"&"+D+"&"+(parseInt(_)+1),event)};DxDataGrid.keydown_pageup_focus=function(C,E,F,A,B,_){var $=parseInt(F.columnrow),D=(F.currPage-1)*F.pageSize+parseInt(B)+1-$;top.WatCore.call(C,E,"focusUp&"+A+"&"+D+"&"+(parseInt(_)+1),event)};DxDataGrid.jsFunctionCall=function(M,C,_,D,H,Q,F,K,P){if(F.keyCode!=16&&F.keyCode!=17&&F.keyCode!=18&&F.keyCode!=9){var S=top.E_clientModel.E_getWindow(M),L=WatCore.getWindowDoc(M,S),E=top.E_getObject(M,C,L);if(E.getAttribute("focusKeyCode")!=null&&WatCore.isKeyCode(F,E.getAttribute("focusKeyCode"))){stopEvent(F);WatCore.jsFunctionCall(M,C,E.getAttribute("targetId"),E.getAttribute("fname"));try{var A=K.parentElement.parentElement.parentElement,J=A.cellIndex;if(E.currCel!=J)E.currCel=J}catch(I){}return}if(WatCore.isKeyCode(F,D)){var U=WatCore.getJsFunctionParams(F,_,D,H,Q),B=1;if(U[2]=="nextrow"){var V=E.currSel,A=K.parentElement.parentElement.parentElement,T=A.children[0].children[0].children[0];if((E.currPage-1)*E.pageSize+V==E.rowCount){DxDataGrid.jsFunctionChange(M,C,K);if(P!=null)DxDataGrid.jsFunctionChange(M,C,P);if($(T).attr("sy")=="5")DxDataGrid.changeComboBox(M,C,K);else DxDataGrid.processCellChange(M,C,V,A.cellIndex);DxDataGrid.keydown_pagedown_focus(M,C,E,U[0],V,A.cellIndex);top.E_dataChange.E_put(M,C);return}if(V==E.pageSize){DxDataGrid.jsFunctionChange(M,C,K);if(P!=null)DxDataGrid.jsFunctionChange(M,C,P);if($(T).attr("sy")=="5")DxDataGrid.changeComboBox(M,C,K);else DxDataGrid.processCellChange(M,C,V,A.cellIndex);DxDataGrid.keydown_pagedown_focus(M,C,E,U[0],V,A.cellIndex);top.E_dataChange.E_put(M,C);return}var N=E.currSel,W=parseInt(N)+1;DxDataGrid.jsLocationRow(B,E,W,U[0],M,C)}else if(U[2]=="previousrow"){V=E.currSel,A=K.parentElement.parentElement.parentElement,T=A.children[0].children[0].children[0];if((E.currPage-1)*E.pageSize+V==1)return;if(E.currCel<0)return;if(V==1){DxDataGrid.jsFunctionChange(M,C,K);if(P!=null)DxDataGrid.jsFunctionChange(M,C,P);if($(T).attr("sy")=="5")DxDataGrid.changeComboBox(M,C,K);else DxDataGrid.processCellChange(M,C,V,A.cellIndex);DxDataGrid.keydown_pageup_focus(M,C,E,U[0],V,A.cellIndex);top.E_dataChange.E_put(M,C);return}N=E.currSel,W=parseInt(N)-1;DxDataGrid.jsLocationRow(B,E,W,U[0],M,C)}else{var O=E.oTable.rows[E.currSel],A;if(O!=null)A=O.cells[U[0]];if(A!=null){T=A.children[0].children[0].children[0];if($(T).width()==0||T.disabled==true||(T.readOnly==true&&T.getAttribute("controltype")!="combobox"))DxDataGrid.jsFunctionCall(M,C,T.getAttribute("targetList"),T.getAttribute("keyCodeList"),T.getAttribute("fNameList"),T.getAttribute("operates"),F,T,K);else{var G=T.getAttribute("sy");if(G=="5")DxDataGrid.comboClick(M,C,T);else if(G=="6")WatCore.setFocus(T);else WatCore.setFocus(T);var R=O.rowIndex,J=A.cellIndex;if(E.currSel!=R)E.currSel=R;if(E.currCel!=J)E.currCel=J}}}stopEvent(F)}}};DxDataGrid.comboboxJsFunctionCall=function(E,F,A,$,G,D,C,B,_){top.DxDataGrid.changeComboBox(E,F,B);top.DxDataGrid.jsFunctionCall(E,F,A,$,G,D,C,B,_)};DxDataGrid.closeblurcombo=function(B){if(B!=null&&B.id==null){for(var A=0;A<B.length;A++)B[A].style.visibility="hidden"}else B.style.visibility="hidden";var _=B.getAttribute("inputid");$("#"+_,B.parentElement).css("visibility","visible")};DxDataGrid.comboblurchange=function(_,A,$){top.DxDataGrid.closeblurcombo($)};DxDataGrid.jsAddNewRowCall=function(){};DxDataGrid.jsLocationRow=function(C,_,E,$,A,D){var F=_.oTable.rows[E];if(F!=null){var B=F.cells[$];if(B!=null){DxDataGrid.frontSelectRow(_,F,B);top.E_dataChange.E_put(D,A);WatCore.setFocus(B.children[0].children[0].children[0])}}};DxDataGrid.formatSynData=function(D,H,P,Q,L){try{var A=Q.indexOf("@"),E=Q.substring(0,A),K=Q.substring(A+1,Q.length),O=top.E_getObject(D,H,P);switch(L){case top.DC.FORMAT_STYLE:O.columnObjects[E].estyle=K;break;case top.DC.FORMAT_COMMA:O.columnObjects[E].ecomma=K;break;case top.DC.FORMAT_DIGIT:O.columnObjects[E].edigit=K;break;case top.DC.FORMAT_CURRENCY_SIGN:O.columnObjects[E].ecurrsign=K;break;case top.DC.FORMAT_CUSTOM:O.columnObjects[E].ecustomer=K;break;default:break}var N=O.DataDom.documentElement.selectNodes("data/row/c"+E),G=O.columnObjects[E],R=$(G).attr("sy"),C=O.currPage*O.pageSize;if(C>O.rowCount)C=O.pageSize-(C-O.rowCount);else C=O.pageSize;var _=parseInt(O.columnrow);for(var J=0;J<C;J++){var I=O.oTable.rows[J+_],F=I.cells[E-1];$cell=$("#"+O.strCtrID+"c"+E,F);var Q=top.isIE?N[J]["text"]:N[J]["textContent"];switch(R){case"1":Q=""+DxDataGrid.createMaskShowText(G,Q);$cell.val(Q);break;case"2":$cell.get(0).innerText=Q;break;case"3":var M=G.value;if(M==strValue)$cell.get(0).checked=true;else $cell.get(0).checked=false;break;default:break}}}catch(B){}};DxDataGrid.changeData=function(Y,d,B){var i=top.E_clientModel.E_getWindow(Y),X=WatCore.getWindowDoc(Y,i),N=top.E_getObject(Y,d,X),o=WatCore.createXmlDom(B),K=o.documentElement.selectNodes("data"),A=K[0].getAttribute("realSel"),U=K[0].getAttribute("cellIndex");if(A!=null)N.realSel=A;if(U!=null)N.currCel=U;var W=o.documentElement.selectNodes("data/row"),m=W.length,J,O,Z,T,G,k,C=parseInt(N.columnrow),L=N.currPage,n=(N.currPage-1)*N.pageSize+1,D=(N.currPage)*N.pageSize,h=N.allcells,H=N.columnSize;for(var f=0;f<m;f++){O=W[f];G=O.getAttribute("id");if(G<n||G>D)continue;G=G-(N.currPage-1)*N.pageSize;Z=O.selectNodes("c");J=Z.length;for(var b=0;b<J;b++){T=Z[b];k=T.getAttribute("id");var E=top.isIE?T.text:T.textContent,M=N.DataDom.documentElement.selectNodes("data/row/c"+k);if(top.isIE)M[G-1]["text"]=E;else M[G-1]["textContent"]=E;var a=N.columnObjects[k],R=a.getAttribute("sy"),c=N.oTable.rows[G-1+C],I=c.cells[k-1],_=$("#"+N.strCtrID+"c"+k,I);switch(R){case"1":E=""+DxDataGrid.createMaskShowText(a,E);_.val(E);break;case"2":_.get(0).innerText=E;break;case"7":_.html(E);break;case"12":_.html(E);break;case"8":_.attr("src",E);break;case"9":_.attr("href",E);_.get(0).innerText=E;break;case"10":var c=N.oTable.rows[G-1+C],I=c.cells[k-1],Q=$(":radio",I);for(var e=0;e<Q.size();e++)if(Q[e].value==E)Q[e].checked=true;else Q[e].checked=false;break;case"3":var g=a.value;if(g==E)_.get(0).checked=true;else _.get(0).checked=false;break;case"4":var j=E,V="";if(j==null||j=="")E=j;else{V=DxDataGrid.timeToLong(j);E=DxDataGrid.timeToStr(V)}_.val(E);if(top.isIE)arrColNode.text=V;else arrColNode.textContent=V;break;case"5":var l=N.ownerDocument.getElementById(a.id+"_selected");E=DxDataGrid.getComboBoxShowText(l,E);_.val(E);break;case"6":var S=a.getAttribute("datetimetype"),j=E;if(S=="date"){if(j==null||j=="")E=j;else{V=DxDataGrid.timeToLong(j);E=DxDataGrid.timeToStr(V);if(top.isIE)arrColNode["text"]=V;else arrColNode["textContent"]=V}}else if(S=="datetime"){if(j==null||j=="")E=j;else{V=DxDataGrid.timeToLong(j);E=DxDataGrid.datetimeToStr(V);if(top.isIE)arrColNode["text"]=V;else arrColNode["textContent"]=V}}else if(S=="datetime2"){if(j==null||j=="")E=j;else{V=DxDataGrid.timeToLong(j);E=DxDataGrid.datetimeToStr2(V);if(top.isIE)arrColNode["text"]=V;else arrColNode["textContent"]=V}}else if(S=="time2"){if(j==null||j=="")E=j;else{V=DxDataGrid.timeToLong(j);E=DxDataGrid.timeToStrToTime2(V);if(top.isIE)arrColNode["text"]=V;else arrColNode["textContent"]=V}}else if(j==null||j=="")E=j;else{V=DxDataGrid.timeToLong(j);E=DxDataGrid.timeToStrToTime(V);if(top.isIE)arrColNode["text"]=V;else arrColNode["textContent"]=V}_.val(E);break;default:break}}}DxDataGrid.processCheckByChange(N,o);o=null;if(A!=null)DxDataGrid.backSelectRow(Y,d,A,U);DxDataGrid.processCheck(N);var P=K[0].getAttribute("focus");if(P!=null){var F=P.split(",");if(F.length==2)DxDataGrid._setFocus(N.strWindowID,N.strCtrID,F[0],F[1])}};DxDataGrid.createMaskShowText=function(F,B){var D=$(F).attr("estyle"),E;switch(D){case DxDataGrid.FORMAT_NUMBER:if(DxDataGrid.isNumber(B)==false)return B;var C=$(F).attr("edigit"),_=$(F).attr("ecomma");if(DxDataGrid.isNumber(B)==false)return B;E=DxDataGrid.getShowNumber(B,C,_);break;case DxDataGrid.FORMAT_MONEY:case DxDataGrid.FORMAT_ACCOUNTANT:if(DxDataGrid.isNumber(B)==false)return B;var C=$(F).attr("edigit"),_=$(F).attr("ecomma"),A=$(F).attr("ecurrsign");E=DxDataGrid.getShowMoney(B,C,_,A);break;case DxDataGrid.FORMAT_PERCENTAGE:if(DxDataGrid.isPercentage(B)==false)return B;C=$(F).attr("edigit");E=DxDataGrid.getShowPercentage(B,C);break;case DxDataGrid.FORMAT_CUSTOM:default:E=B;break}return E};DxDataGrid.createXmlDom=function($){var A=new ActiveXObject("Microsoft.XMLDOM");if(A!=null){A["async"]=false;A["validateOnParse"]=false;if($!=null&&$!=""){A.loadXML($);if(A["parseError"]["errorCode"]!=0){var _=A["parseError"]["reason"];A=null}}}return A};DxDataGrid.syncUIDom=function(A){var $=parseInt(A.columnrow),_=A.oTable.rows.length,B=null;for(var C=$;C<_;C++){B=A.oTable.rows[C];if(B!=null&&B.root==null)B.style.display="none"}};DxDataGrid._backSelectRow=function(B,$,_){var A=DxDataGrid.getCurrSel(B,$),D=B.oTable.rows[A],C;if(D!=null)C=D.cells[_];if(B.optionRowSelect=="false"){if(B.currSel==A&&B.currCel==_)return}else if(B.currSel==A)return;if(B.optionRowSelect=="false")DxDataGrid.selectCell(B,C,parseInt(_),parseInt(A));else DxDataGrid.selectRow(B,D,parseInt(_),parseInt(A))};DxDataGrid.backSelectRow=function(B,E,$,_){var D=top.E_clientModel.E_getWindow(B);if(D==null)return;var A=WatCore.getWindowDoc(B,D),C=top.E_getObject(B,E,A);DxDataGrid._backSelectRow(C,$,_)};DxDataGrid.clickprocess=function(E,H,C,B,$){var F=top.E_clientModel.E_getWindow(E),D=WatCore.getWindowDoc(E,F),G=WatCore.getWindow(E,F),A=top.E_getObject(E,H,D);if(A.isDblClick=="true"&&!top.isIE){A.oThis=C;var _=A.clickFlag;if(_==null)_=0;if(!_)G.setTimeout("top.DxDataGrid.tt2('"+E+"','"+H+"');",200);_++;A.clickFlag=_}else if($)DxDataGrid.dblClick(E,H,C,B);else DxDataGrid.click(E,H,C,B)};DxDataGrid.tt2=function(C,F){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),E=WatCore.getWindow(C,D),_=top.E_getObject(C,F,B),A=_.oThis,$=_.clickFlag;if($==1)DxDataGrid.click(C,F,A,event);else DxDataGrid.dblClick(C,F,A);_.clickFlag=0;_.oThis=null};DxDataGrid.dblClick=function(B,F,_){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=top.E_getObject(B,F,A),E=_.parentElement.parentElement.parentElement,D=_.parentElement.parentElement;DxDataGrid.frontSelectRow($,E,D);top.E_dataChange.E_put(F,B);if($.isDblClick=="true")top.WatCore.call(B,F,"dblclick",event)};DxDataGrid.mouseover=function(B,F,_){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=top.E_getObject(B,F,A),E=_.parentElement.parentElement.parentElement,D=_.parentElement.parentElement;DxDataGrid.frontOverSelectRow($,E,D)};DxDataGrid.mouseout=function(B,F,_){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=top.E_getObject(B,F,A),E=_.parentElement.parentElement.parentElement,D=_.parentElement.parentElement;DxDataGrid.frontOutSelectRow($,E,D)};DxDataGrid.keydown_pageFirst=function($,_,A){if(A.currPage==1)return;top.WatCore.call($,_,"pageFirst",event)};DxDataGrid.keydown_pageLast=function($,_,A){if(A.currPage==A.pageCount)return;top.WatCore.call($,_,"pageLast",event)};DxDataGrid.keydown_pagedown=function(_,A,B,$){if(B.currPage*B.pageSize>=B.rowCount)return;top.WatCore.call(_,A,"pageDown&"+$,event)};DxDataGrid.keydown_down=function(C,G,H){var E=H.currSel,_=parseInt(H.columnrow)-1,F=H.oTable.rows[E-_];if(!F)return;var A=H.currCel;if(A<0)A=0;var D=F.children[A];if(!top.isIE)$("input[se$='1']",D).trigger("blur");if((H.currPage-1)*H.pageSize+(E-_)==H.rowCount)return;if((E-_)==H.pageSize){DxDataGrid.keydown_pagedown(C,G,H,true);return}F=H.oTable.rows[E+1];D=F.children[A];if(top.isIE)D.setActive();var B=F.rowIndex;DxDataGrid.frontSelectRow(H,F,D);top.E_dataChange.E_put(G,C);if(H.isClick=="true")top.WatCore.quickcall(C,G,"click",event)};DxDataGrid.keydown_enter=function($,A,B){var _=B.currSel;if(_>=1&&B.isDblClick=="true")top.WatCore.call($,A,"dblclick",event)};DxDataGrid.keydown_pageup=function(_,A,B,$){if(B.currPage==1)return;top.WatCore.call(_,A,"pageUp&"+$,event)};DxDataGrid.keydown_up=function(D,H,I){try{var F=I.currSel,_=parseInt(I.columnrow)-1,G=I.oTable.rows[F-_];if(!G)return;var B=I.currCel;if(B<0)B=0;var E=G.children[B];if(!top.isIE)$("input[se$='1']",E).trigger("blur");if((I.currPage-1)*I.pageSize+(F-_)==1)return;if((F-_)==1){DxDataGrid.keydown_pageup(D,H,I,true);return}G=I.oTable.rows[F-1];E=G.children[B];if(top.isIE)E.setActive();var C=G.rowIndex;DxDataGrid.frontSelectRow(I,G,E);top.E_dataChange.E_put(H,D);if(I.isClick=="true")top.WatCore.quickcall(D,H,"click",event)}catch(A){}};DxDataGrid.click=function(E,L,D,K){var T=top.E_clientModel.E_getWindow(E),F=WatCore.getWindowDoc(E,T),R=top.E_getObject(E,L,F),M=D.parentElement.parentElement.parentElement,J=D.parentElement.parentElement,S=M.rowIndex,B=R.currCel,_=parseInt(R.columnrow),U=R.pageSize*(R.currPage-1)+R.currSel-_,Q=R.pageSize*(R.currPage-1)+S-_,A=J.cellIndex;DxDataGrid.frontSelectRow(R,M,J);top.E_dataChange.E_put(L,E);var I=$(R).attr("mousekeys");if(I!=null){if(K){var C=0;if(K.altKey)C=1;if(K.ctrlKey)C=2;if(K.shiftKey)C=4;if(K.shiftKey&&K.altKey)C=5;if(K.altKey&&K.ctrlKey)C=3;if(K.shiftKey&&K.ctrlKey)C=6;if(K.shiftKey&&K.altKey&&K.ctrlKey)C=7;var G=K.keyCode;if(!G)G=0;var P=C*100+G,H=I.split("|"),O=false;for(var N=0;N<H.length;N++)if(P==H[N]){O=true;top.WatCore.call(E,L,"mousekeys&"+C+"&"+G+"&"+U+"&"+Q+"&"+B+"&"+A+"",event);break}if(!O)if(R.isClick=="true")top.WatCore.call(E,L,"click",event)}}else if(R.isClick=="true")top.WatCore.call(E,L,"click",event)};DxDataGrid.clicknocall=function(C,H,_){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),$=top.E_getObject(C,H,B),G=_.parentElement.parentElement.parentElement,F=_.parentElement.parentElement,A=G.rowIndex,E=$.currSel;DxDataGrid.frontSelectRow($,G,F);top.E_dataChange.E_put(H,C);if($.isClick=="true")top.WatCore.quickcall(C,H,"click",event,20)};DxDataGrid.checkClick=function(B,F,_){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=top.E_getObject(B,F,A),E=_.parentElement.parentElement.parentElement.parentElement,D=_.parentElement.parentElement.parentElement;DxDataGrid.frontSelectRow($,E,D);top.E_dataChange.E_put(F,B);DxDataGrid.change(B,F,_)};DxDataGrid.frontOverSelectRow=function(A,C,B){var _=C.rowIndex,$=B.cellIndex;if(A.optionRowSelect!="false")DxDataGrid.overSelectRow(A,C,$,_)};DxDataGrid.frontOutSelectRow=function(A,C,B){var _=C.rowIndex,$=B.cellIndex;if(A.optionRowSelect!="false")DxDataGrid.outSelectRow(A,C,$,_)};DxDataGrid.frontSelectRow=function(A,C,B){var _=C.rowIndex,$=B.cellIndex;if(A.optionRowSelect=="false"){if(A.currSel==_&&A.currCel==$)return}else if(A.currSel==_){A.currCel=$;A.isSelected=true;return}A.isSelected=true;if(A.optionRowSelect=="false")DxDataGrid.selectCell(A,B,$,_);else DxDataGrid.selectRow(A,C,$,_)};DxDataGrid.selectCell=function(A,C,$,_){if(C!=null){var B=A.columnObjects[$+1].getAttribute("ctype");DxDataGrid.refreshOldChangeCell(A);DxDataGrid.changeChildCell(A,C);A.currCel=$;A.currSel=_;A.oldcurrCel=$;A.oldcurrSel=_}else{if(A.currSel==-1||A.currCel==-1)return;DxDataGrid.refreshOldChange(A);A.currSel=-1;A.currCel=-1}};DxDataGrid.overSelectRow=function(A,B,$,_){if(B!=null){B["morb"]=B.style.backgroundColor;B["morc"]=B.style.color;B.style.backgroundColor=A.rowscrollbkcolor;DxDataGrid.moveChangeChild(B,A.rowscrollbkcolor)}};DxDataGrid.moveChangeChild=function(D,B){var _=D.children,C=D.children.length;for(var E=0;E<C;E++){var A=$(_[E]).attr("se");if(A=="1"){_[E]["morb"]=_[E].style.backgroundColor;_[E]["morc"]=_[E].style.color;_[E].style.backgroundColor=B}else DxDataGrid.moveChangeChild(_[E],B)}};DxDataGrid.outSelectRow=function(A,B,$,_){if(B!=null){if(A.currSel==_)DxDataGrid.selectRow(A,B,$,_);B.style.backgroundColor=B["morb"];B.style.color=B["morc"];DxDataGrid.moveRefreshChild(A)}};DxDataGrid.moveRefreshChild=function(C){var _=C.children,B=C.children.length;for(var D=0;D<B;D++){var A=$(_[D]).attr("se");if(A=="1"){_[D].style.backgroundColor=_[D]["morb"];_[D].style.color=_[D]["morc"];_[D]["morb"]=null;_[D]["morc"]=null}else DxDataGrid.moveRefreshChild(_[D])}};DxDataGrid.selectRow=function(B,C,_,A){if(C!=null){C["orb"]=C.style.backgroundColor;C["orc"]=$(C).css("color");C.style.backgroundColor=B.getAttribute("rowscrollbkcolor");DxDataGrid.changeChild(C,B.getAttribute("rowscrollbkcolor"),B.getAttribute("rowscrollcolor"));DxDataGrid.refreshOldChange(B);B.currSel=A;B.currCel=_}else{if(B.currSel==-1)return;DxDataGrid.refreshOldChange(B);B.currSel=-1;B.currCel=-1}};DxDataGrid.changeChildCell=function(C,D){var _=D.children,B=D.children.length;for(var E=0;E<B;E++){var A=$(_[E]).attr("se");if(A=="1"){_[E]["orb"]=_[E].style.backgroundColor;_[E]["orc"]=$(_[E]).css("color");_[E].parentElement.style.backgroundColor=C.getAttribute("rowscrollbkcolor");_[E].style.backgroundColor=C.getAttribute("rowscrollbkcolor")}else DxDataGrid.changeChildCell(C,_[E])}};DxDataGrid.refreshOldChangeCell=function(A){var $=A.oldcurrSel,C=A.oldcurrCel,_=A.oTable.rows[$];if(_!=null){var B=_.cells[C];DxDataGrid.refreshChildCell(B,A)}};DxDataGrid.refreshChildCell=function(D,C){var _=D.children,B=D.children.length;for(var E=0;E<B;E++){var A=$(_[E]).attr("se");if(A=="1"){_[E].style.backgroundColor=_[E]["orb"];_[E].style.color=_[E]["orc"];_[E]["orb"]=null;_[E]["orc"]=null}else DxDataGrid.refreshChild(_[E],_[E]["orb"],_[E]["orc"],C)}};DxDataGrid.changeChild=function(E,C,A){var _=E.children,D=E.children.length;for(var F=0;F<D;F++){var B=$(_[F]).attr("se");if(B=="1"){_[F]["orb"]=_[F].style.backgroundColor;_[F]["orc"]=$(_[F]).css("color");_[F].style.backgroundColor=C;if($(_[F]).attr("setColor")!="true");}else DxDataGrid.changeChild(_[F],C,A)}};DxDataGrid.refreshOldChange=function(A){var $=A.currSel,_=A.oTable.rows[$];if(_!=null){_.style.backgroundColor=_["orb"];DxDataGrid.refreshChild(_,_["orb"],_["orc"],A)}};DxDataGrid.refreshChild=function(F,B,E,D){var _=F.children,C=F.children.length;for(var G=0;G<C;G++){var A=$(_[G]).attr("se");if(A=="1"){if(B!=null&&B!=""){_[G].style.backgroundColor=B;if(D.optionRowSelect=="false")_[G].parentElement.style.backgroundColor=B}else{_[G].style.backgroundColor="transparent";if(D.optionRowSelect=="false")_[G].parentElement.style.backgroundColor="transparent"}if(_[G]["orc"]!=null)E=_[G]["orc"];_[G]["orb"]=null;_[G]["orc"]=null}else DxDataGrid.refreshChild(_[G],B,E,D)}};DxDataGrid._mouseIn=function($){if($.isSort=="true")$.className="DxDataGrid-title-sorthead-moveover";else $.className="DxDataGrid-title-head-moveover"};DxDataGrid._mouseOut=function($){if($.isSort=="true")$.className="DxDataGrid-title-sorthead";else $.className="DxDataGrid-title-head"};DxDataGrid._sort=function(D,H,_,F){var E=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,E),A=top.E_getObject(D,H,C),J=$("#c_"+H+"sorttd_"+_,A).get(0);if(!J)return;var I=A.sortId,G;if(I==null||I!=_){if(I!=null)var B=$("#c_"+H+"sorttd_"+I,A).css("display","none");A.sortId=_;A.sort="down";J.style.display="block";$("img",J).attr("src",F.parentElement.parentElement.getAttribute("sortDown"));G="0&"+_}else if(A.sort=="down"){A.sort="up";$("img",J).attr("src",F.parentElement.parentElement.getAttribute("sortUp"));G="1&"+_}else{A.sort="down";$("img",J).attr("src",F.parentElement.parentElement.getAttribute("sortDown"));G="0&"+_}top.WatCore.call(D,H,G,event)};DxDataGrid._check=function(C,G,$,E){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),A=top.E_getObject(C,G,B),_=E.getAttribute("svalue");if(_=="0")_="1";else _="0";E.setAttribute("svalue",_);var F="check#"+_+"#"+$;top.WatCore.call(C,G,F,event)};DxDataGrid.jsFunctionChange=function($,C,_){var B=_.parentElement.parentElement.parentElement.parentElement,A=_.parentElement.parentElement.parentElement;DxDataGrid.processJsFunctionCellChange($,C,B.rowIndex,A.cellIndex,_)};DxDataGrid.textFieldchange=function($,A,_){_.style.borderStyle="none";DxDataGrid.change($,A,_)};DxDataGrid.change=function(B,G,K){var H=K.parentElement.parentElement.parentElement.parentElement,D=K.parentElement.parentElement.parentElement,_=DxDataGrid.processCellChange(B,G,H.rowIndex,D.cellIndex);if(_){$(K).css({"background":"transparent no-repeat 0 0","background-image":"url("+watLocation2+"/resources/component/dirty.gif)"});var L=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,L),J=top.E_getObject(B,G,C),I=J.optionCellSelect,E=J.columnObjects[D.cellIndex+1];if((E.getAttribute("ctype")=="1"||E.getAttribute("ctype")=="2")&&E.getAttribute("selectcell")=="1"){var A=parseInt(J.columnrow),F=(J.currPage-1)*J.pageSize+parseInt(H.rowIndex)+1-A;top.WatCore.call(B,G,"selectCell&"+(parseInt(D.cellIndex)+1)+"&"+F,event)}}};DxDataGrid.changeNoSign=function(A,F,J){var G=J.parentElement.parentElement.parentElement.parentElement,C=J.parentElement.parentElement.parentElement,$=DxDataGrid.processCellChange(A,F,G.rowIndex,C.cellIndex);if($){var K=top.E_clientModel.E_getWindow(A),B=WatCore.getWindowDoc(A,K),I=top.E_getObject(A,F,B),H=I.optionCellSelect,D=I.columnObjects[C.cellIndex+1];if((D.getAttribute("ctype")=="1"||D.getAttribute("ctype")=="2")&&D.getAttribute("selectcell")=="1"){var _=parseInt(I.columnrow),E=(I.currPage-1)*I.pageSize+parseInt(G.rowIndex)+1-_;top.WatCore.call(A,F,"selectCell&"+(parseInt(C.cellIndex)+1)+"&"+E,null)}}};DxDataGrid.yesnoAction=function(B,H,D,F){if(D.disabled)return;var G=D.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement,E=D.parentElement.parentElement.parentElement.parentElement.parentElement,C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,H,A);DxDataGrid.frontSelectRow(_,G,E);var $=DxDataGrid.processCellChange(B,H,G.rowIndex,E.cellIndex);if($&&F)top.WatCore.call(B,H,"yesno",null)};DxDataGrid.popGridChange=function(C,I,E){var H=E.parentElement.parentElement.parentElement.parentElement,G=E.parentElement.parentElement.parentElement,A=G.cellIndex,D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),_=top.E_getObject(C,I,B),F=DxDataGrid.getColumnObjectIndex(_,A),$=DxDataGrid.processPopGridChange(C,I,H.rowIndex,F,E)};DxDataGrid.calendarChange=function(B,G,M,I,K){var H=M.parentElement.parentElement.parentElement.parentElement,D=M.parentElement.parentElement.parentElement,_=DxDataGrid.processCellChange(B,G,H.rowIndex,D.cellIndex,I);if(_){if(K){var A=$("input[controltype=datetimepick]",D).get(0);top.DxDataGridDateTimePickCell.init(B,G,A,"",A.getAttribute("datetimetype"),I);DxDataGridDateTimePickCell.timeToStr(A,I)}var N=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,N),L=top.E_getObject(B,G,C),J=L.optionCellSelect,E=L.columnObjects[D.cellIndex+1];if(E.getAttribute("ctype")=="1"&&E.getAttribute("selectcell")=="1"){var F=(L.currPage-1)*L.pageSize+parseInt(H.rowIndex);top.WatCore.call(B,G,"selectCell&"+(parseInt(D.cellIndex)+1)+"&"+F,event)}}};DxDataGrid.changeRadio=function(B,H,D){var G=D.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement,F=D.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;DxDataGrid.processCellChange(B,H,G.rowIndex,F.cellIndex);var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,H,A),E=DxDataGrid.getColumnObjectIndex(_,F.cellIndex);if($(_.columnHeadObjects[E+1]).attr("isChange")=="true")top.WatCore.call(B,H,"columnChange&"+E,event)};DxDataGrid.changeComboBox=function(_,C,G){var D=G.parentElement.parentElement.parentElement.parentElement,B=G.parentElement.parentElement.parentElement,K=G.options[G.selectedIndex],H=K.value,E=K.innerText,$=B.cellIndex,I=top.E_clientModel.E_getWindow(_),A=WatCore.getWindowDoc(_,I),F=top.E_getObject(_,C,A),J=DxDataGrid.getColumnObjectIndex(F,$);DxDataGrid.processComboBoxCellChange(_,C,D.rowIndex,J,H,E);return F};DxDataGrid.processComboBoxCellChange=function(B,G,H,M,N,K){var O=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,O),L=top.E_getObject(B,G,C),E=L.columnObjects[M+1],A=parseInt(L.columnrow),F=L.oTable.rows[H].cells[M],_=$("#"+G+"c"+(M+1),F);_.val(K);var I=L.DataDom.documentElement.selectNodes("data/row"),D=I[H-A],J=(L.currPage-1)*L.pageSize+H-A;if(top.isIE)D.selectNodes("c"+(M+1))[0]["text"]=N;else D.selectNodes("c"+(M+1))[0]["textContent"]=N;DxDataGrid.putChangeData(B,G,J,M,N);if($(L.columnHeadObjects[M+1]).attr("isChange")=="true")top.WatCore.call(B,G,"columnChange&"+M,event)};DxDataGrid.mouseinpopfield=function(A,D,C){C.style.borderStyle="solid";var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=top.E_getObject(A,D,_);DxDataGrid.closeAllcombo($)};DxDataGrid.mouseinField=function(A,D,C){C.style.borderStyle="inset";var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=top.E_getObject(A,D,_);DxDataGrid.closeAllcombo($)};DxDataGrid.mouseoutField=function($,A,_){_.style.borderStyle="none"};DxDataGrid.focusFieldChange=function($,A,_){_.style.borderStyle="inset";DxDataGrid.focusChange($,A,_)};DxDataGrid.onBlurDateTimePickChange=function(B,H,I){I.style.borderStyle="none";var $=top.DxDataGridDateTimePickCell.onBlurDateTimePickChange(I);if(!$){top.DxDataGridDateTimePickCell.timeToStr(I,"0");return}var G=I.parentElement.parentElement.parentElement.parentElement,D=I.parentElement.parentElement.parentElement,C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,H,A),E=_.columnObjects[D.cellIndex+1];if(E.getAttribute("ctype")=="2"&&E.getAttribute("selectcell")=="1"){var F=(_.currPage-1)*_.pageSize+parseInt(G.rowIndex);top.WatCore.call(B,H,"selectCell&"+(parseInt(D.cellIndex)+1)+"&"+F,event)}};DxDataGrid.onfocusDateTimePickChange=function(_,A,B,$){DxDataGrid._datetimepickMousedown(_,A,B,$)};DxDataGrid.focusDateTimePickChange=function(_,A,B,$){return top.DxDataGridDateTimePickCell._onKeydown(_,A,B,$)};DxDataGrid.onKeypressdatetimepick=function(_,B,A,C,$){top.DxDataGridDateTimePickCell._onKeypress(_,B,C,$)};DxDataGrid.onKeyupdatetimepick=function(_,B,A,C,$){return top.DxDataGridDateTimePickCell._onKeyup(_,B,C,$)};DxDataGrid._datetimepickMousedown=function(_,F,M,J){var K=top.E_clientModel.E_getWindow(_),A=WatCore.getWindowDoc(_,K),I=top.E_getObject(_,F,A);M.style.borderStyle="inset";var G=M.parentElement.parentElement.parentElement.parentElement,C=M.parentElement.parentElement.parentElement,L=G.rowIndex,D=C.cellIndex,$=parseInt(I.columnrow),H=I.DataDom.documentElement.selectNodes("data/row"),B=H[L-$],E=top.isIE?B.selectNodes("c"+(D+1))[0].text:B.selectNodes("c"+(D+1))[0].textContent;top.DxDataGridDateTimePickCell.init(_,F,M,"",M.getAttribute("datetimetype"),E);if(E==""||E==null||E=="0")top.DxDataGridDateTimePickCell.timeToStr(M,E);DxDataGridDateTimePickCell._onMousedown2(_,F,M,J)};DxDataGrid.popfocusChange=function(A,D,B,_,C,$){if(!B.readOnly){B.style.borderStyle="solid";DxDataGrid.focusChange(A,D,B);if($=="true")DxDataGrid.popGridpop(A,C,B,_)}};DxDataGrid.focusChange=function(B,I,M){var J=M.parentElement.parentElement.parentElement.parentElement,E=M.parentElement.parentElement.parentElement,O=J.rowIndex,F=E.cellIndex,N=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,N),L=top.E_getObject(B,I,C),A=parseInt(L.columnrow),K=L.DataDom.documentElement.selectNodes("data/row"),D=K[O-A],H=top.isIE?D.selectNodes("c"+(F+1))[0].text:D.selectNodes("c"+(F+1))[0].textContent,G=L.oTable.rows[O].cells[F],_=$("#"+I+"c"+(F+1),G);_.val(H);M.select()};DxDataGrid.popfocusLabelChange=function(A,C,B,_,$){if(!B.readOnly){B.style.borderStyle="solid";DxDataGrid.focusLabelChange(B);if($=="true")DxDataGrid.popGridpop(A,C,B,_)}};DxDataGrid.focusLabelChange=function($){$.select()};DxDataGrid.focusTextFieldChange=function($){$.select();$.style.borderStyle="inset"};DxDataGrid.texteditlistenKey=function(H,G,_,D,B){var C=0;if(H.altKey)C=1;if(H.ctrlKey)C=2;if(H.shiftKey)C=4;if(H.shiftKey&&H.altKey)C=5;if(H.altKey&&H.ctrlKey)C=3;if(H.shiftKey&&H.ctrlKey)C=6;if(H.shiftKey&&H.altKey&&H.ctrlKey)C=7;var A=C*100+H.keyCode,E=$(B).attr("keylist"),F=E.split("|");for(var I=0;I<F.length;I++)if(A==F[I]){B.blur();DxDataGrid.change(G,D,B);B.focus();return top.WatCore.listenKey(H,G,_,E)}};DxDataGrid.focusShowPop=function(_,C,F){var G=top.E_clientModel.E_getWindow(_),E=WatCore.getWindow(_,G),I=E.event;if(I.keyCode!=32&&I.keyCode!=8)return;var D=F.parentElement.parentElement.parentElement.parentElement,A=F.parentElement.parentElement.parentElement,J=D.rowIndex,B=A.cellIndex,H=F.value;if((H!=null||H!="")&&I.keyCode==32){var $=__getAbsoluteCoords(F),L=$.x+1,K=$.y+parseInt(F.style.height)-67;F.keyshow=true;WatCore.call(_,C,"keyPop&"+H+"&"+B+"&"+L+","+K,event)}else if(F.keyshow&&I.keyCode==8){F.keyshow=false;WatCore.call(_,C,"keyHidden&"+B,event)}};DxDataGrid.focusShowTime=function(K,O,S){DxDataGridPopGridTextCell.hideOnClick();var A=document.getElementById("popDateTime");if(A!=null)if(A.style.display=="block"){A.style.display="none";A.sid=null;return}var N=S.parentElement.parentElement.parentElement.parentElement,C=S.parentElement.parentElement.parentElement,T=N.rowIndex,M=C.cellIndex,R=top.E_clientModel.E_getWindow(K),J=WatCore.getWindowDoc(K,R),L=WatCore.getWindow(K,R),F=top.E_getObject(K,O,J);DxDataGrid.closeAllcombo(F);var _=parseInt(F.columnrow),E=F.DataDom.documentElement.selectNodes("data/row"),B=E[T-_],D=top.isIE?B.selectSingleNode("c"+(M+1)).text:B.selectSingleNode("c"+(M+1)).textContent,V=L.EventRouter.showDateTimeDialog(),W,U;if(top.isIE){U=L.EventRouter.posPopwin(K,S).y+$(S).height();W=L.EventRouter.posPopwin(K,S).x}else{U=L.EventRouter.posPopwin(K,S).y+$(S).height()+2;W=L.EventRouter.posPopwin(K,S).x+2}DxCalendarTemplate.init(K,O,S,D,"DxDataGrid");var G=J.body.offsetWidth||J.documentElement.offsetWidth,P=J.body.offsetHeight||J.documentElement.offsetHeight||J.documentElement.clientHeight,I=$(V).width(),Q=$(V).height();if((W+I)>G-10){var H=F.columnObjects[M];W=W-parseInt(I)+parseInt(H.style.width);if((W+parseInt(I))>G-10)W=G-10-parseInt(I)}if((U+parseInt(Q))>P-10)U=U-parseInt(Q)-2;V.style.top=U+"px";V.style.left=W+"px";V.style.display="block";V.style.zIndex="1000"};DxDataGrid.test=function(){top.MsgConsole.displayNormal("test")};DxDataGrid.judgeValue=function(C,_){var A=$(C).attr("estyle"),B;switch(A){case DxDataGrid.FORMAT_NUMBER:case DxDataGrid.FORMAT_MONEY:case DxDataGrid.FORMAT_ACCOUNTANT:if(_==null||_=="")return true;if(DxDataGrid.isNumber(_)==false){alert($(C).attr("eerror"));return false}break;case DxDataGrid.FORMAT_PERCENTAGE:if(_==null||_=="")return true;if(DxDataGrid.isPercentage(_)==false){alert($(C).attr("eerror"));return false}break;case DxDataGrid.FORMAT_CUSTOM:if(_==null||_=="")return true;if(DxDataGrid.isCustom(_,$(C).attr("ecustomer"))==false){alert($(C).attr("eerror"));return false}break;default:B=_;break}return true};DxDataGrid.processJsFunctionCellChange=function(C,H,I,O,B){var P=top.E_clientModel.E_getWindow(C),D=WatCore.getWindowDoc(C,P),M=top.E_getObject(C,H,D),G=M.columnObjects[O+1],_=parseInt(M.columnrow),L=G.getAttribute("sy"),A=B.value;switch(L){case"1":if(DxDataGrid.judgeValue(G,A)==false){$(B).val(DxDataGrid.createMaskShowText(G,F));B.focus();return false}var N=DxDataGrid.createMaskShowText(G,A);$(B).val(N);break;case"2":$(B).text(A);break;default:break}var _=parseInt(M.columnrow),J=M.DataDom.documentElement.selectNodes("data/row"),E=J[I-1],F=E.selectNodes("c"+(O+1))[0].text,K=(M.currPage-1)*M.pageSize+I-_;if(L!="6"){if(top.isIE)E.selectNodes("c"+(O+1))[0]["text"]=A;else E.selectNodes("c"+(O+1))[0]["textContent"]=A;DxDataGrid.putChangeData(C,H,K,O,A)}};DxDataGrid.processCellChange=function(N,Q,P,V,R){var U=top.E_clientModel.E_getWindow(N),M=WatCore.getWindowDoc(N,U),J=top.E_getObject(N,Q,M),O=J.columnObjects[V+1],I=$(O).attr("sy"),C="",B=parseInt(J.columnrow),E=J.oTable.rows[P].cells[V],G=J.DataDom.documentElement.selectNodes("data/row"),D=G[P-B];if(D==null)return false;var F=top.isIE?D.selectSingleNode("c"+(V+1)).text:D.selectSingleNode("c"+(V+1)).textContent,_=$("#"+Q+"c"+(V+1),E);switch(I){case"1":C=_.val();if(DxDataGrid.judgeValue(O,C)==false){_.val(DxDataGrid.createMaskShowText(O,F));_.get(0).focus();return false}var K=DxDataGrid.createMaskShowText(O,C);_.val(K);break;case"2":C=_.text();break;case"3":var W=_.get(0).checked;if(!W)C=O.getAttribute("valueoff");else C=O.getAttribute("value");break;case"13":var W=_.attr("yesvalue"),T=$(O).attr("value"),X=$(O).attr("valueoff");if(W==T){C=X;$("img",_).attr("src",$(O).attr("noimg"))}else{C=T;$("img",_).attr("src",$(O).attr("yesimg"))}_.attr("yesvalue",C);break;case"4":C=R;if(R==0)_.val("");else _.val(DxDataGrid.timeToStr(C));break;case"5":C=R;if(R==0)_.val("");else _.val(DxDataGrid.timeToStr(C));break;case"6":if(R!=undefined&&R!="undefined")C=R;break;case"10":var L=$(":radio",E);for(var S=0;S<L.size();S++)if(L[S].checked){C=L[S].value;break}break;default:break}var A=false;if(F!=C)A=true;else A=false;var H=(J.currPage-1)*J.pageSize+P-B;if(I=="6"){if(R!=undefined&&R!="undefined"&&A){if(top.isIE)D.selectNodes("c"+(V+1))[0]["text"]=C;else D.selectNodes("c"+(V+1))[0]["textContent"]=C;DxDataGrid.putChangeData(N,Q,H,V,C)}}else if(A){if(top.isIE)D.selectNodes("c"+(V+1))[0]["text"]=C;else D.selectNodes("c"+(V+1))[0]["textContent"]=C;DxDataGrid.putChangeData(N,Q,H,V,C)}return A};DxDataGrid.getColumnObjectIndex=function(D,A){var C=0;for(var $=0;$<D.columnHeads.length;$++){var B=D.columnHeads[$+1];if(B.style.display!="none"){if(C==A){var _=$;return _}C++}}return-1};DxDataGrid.processPopGridChange=function(C,J,K,Q,F){var R=top.E_clientModel.E_getWindow(C),D=WatCore.getWindowDoc(C,R),O=top.E_getObject(C,J,D),H=O.columnObjects[Q+1],N=H.getAttribute("sy"),B=null,I=O.oTable.rows[K].cells[Q],_=$("#"+J+"c"+(Q+1),I),A=parseInt(O.columnrow);switch(N){case"1":B=_.val();if(DxDataGrid.judgeValue(H,B)==false){_.val(DxDataGrid.createMaskShowText(H,G));return false}var P=DxDataGrid.createMaskShowText(H,B);_.val(P);break;default:break}var L=O.DataDom.documentElement.selectNodes("data/row"),E=L[K-A],G=top.isIE?E.selectNodes("c"+(Q+1))[0].text:E.selectNodes("c"+(Q+1))[0].textContent,M=(O.currPage-1)*O.pageSize+K-A;if(top.isIE)E.selectNodes("c"+(Q+1))[0]["text"]=B;else E.selectNodes("c"+(Q+1))[0]["textContent"]=B;DxDataGrid.putChangeData(C,J,M,Q,B);if(G!=B)return true;else return false};DxDataGrid.createChangeDataXML=function(A,D){var K=top.E_clientModel.E_getWindow(A);if(K==null)return null;var B=WatCore.getWindowDoc(A,K),I=top.E_getObject(A,D,B);if(I==null)return null;var $=parseInt(I.columnrow),L=I.changeDataMap.E_keys.E_list.E_contents.length,G,N,F,M="<change_data>",O;if(I.isSelected==true){if(I.currSel>=0)O=I.pageSize*(I.currPage-1)+I.currSel-$;else O=I.realSel;var _=I.currCel;M+="<data realSel='"+O+"' cellIndex='"+_+"'>";I.isSelected=false}else{if(I.currSel>=0)O=I.pageSize*(I.currPage-1)+I.currSel-$;else O=I.realSel;_=I.currCel;M+="<data realSel='"+O+"' cellIndex='"+_+"'>"}var J;for(var E=L-1;E>=0;E--){N=I.changeDataMap.E_keys.E_list.E_contents[E];var H=I.changeDataMap.E_get(N);if(H!=null){M+="<row id='"+N+"'>";G=H.E_keys.E_list.E_contents.length;for(var C=G-1;C>=0;C--){F=H.E_keys.E_list.E_contents[C];J=H.E_get(F);J=""+J;if(J.indexOf("&")>=0)J=J.replace(/\&/g,"&amp;");if(J.indexOf(">")>=0)J=J.replace(/\>/g,"&gt;");if(J.indexOf("<")>=0)J=J.replace(/\</g,"&lt;");M+="<c id='"+F+"'>"+J+"</c>";H.E_remove(F)}M+="</row>";I.changeDataMap.E_remove(N)}}M+="</data>";M+="</change_data>";return M};DxDataGrid.putChangeData=function(A,G,F,D,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=top.E_getObject(A,G,_),E=$.changeDataMap.E_get(F);if(E==null){E=new E_Map();$.changeDataMap.E_put(F,E);E.E_put(D,C)}else E.E_put(D,C);top.E_dataChange.E_put(G,A)};DxDataGrid.removeChange=function(B,G,F,D){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=top.E_getObject(B,G,A),E=$.changeDataMap.E_get(F);if(E!=null){var _=E.E_get(D);if(_!=null)E.E_remove(D)}};DxDataGrid.getShowMoney=function(A,$,B,_){var C="";if(A!=null&&A!=""){C=DxDataGrid.getShowNumber(A,$,B);if(_==null||_=="")_="\xa5";C=_+" "+C}return C};DxDataGrid.isNumber=function(A){var _=/^[-]?[1-9]\d*[.]\d+$|^[-]?\d[.]\d+$|^[-]?[1-9]\d*$|^[-]?\d$/,$=_.test(A);return $};DxDataGrid.getShowNumber=function(A,$,B){var _=A.indexOf("-"),C=false;if(_>-1){C=true;A=A.substring(_+1,A.length)}if(parseInt($)>-1)A=DxDataGrid.processDigit(A,$);if(B=="true")A=DxDataGrid.processComma(A.toString());if(C==true)A="-"+A;return A};DxDataGrid.isPercentage=function(A){var _=/^[1-9]\d*[.]\d+$|^\d[.]\d+$|^[1-9]\d*$|^\d$/,$=_.test(A);return $};DxDataGrid.getShowPercentage=function($,_){$=Format.processDigit($,_);return $+"%"};DxDataGrid.processDigit=function(_,A){var B,$=_.indexOf(".");$=_.length-$-1;B=_*Math.pow(10,A);B=Math.round(B);B=B/Math.pow(10,A);$=B.toString().indexOf(".");if($>-1){$=B.toString().length-$-1;if($<A)for(i=0;i<(A-$);i++)B+="0"}else{if(A>0)B=B+".";for(i=0;i<A;i++)B+="0"}return B};DxDataGrid.processComma=function(_){var B="";index=_.indexOf(".");var C="";if(index>-1){C=_.substring(index,_.length);_=_.substring(0,index)}var A=_.length,$=A%3;for(i=A-1;i>$;i-=3)if(i==A-1)B=_.substring(i-2,i+1);else B=_.substring(i-2,i+1)+","+B;if($>0)if(B=="")B=_.substring(0,$);else B=_.substring(0,$)+","+B;if(C!="")B+=C;return B};DxDataGrid.isCustom=function($,A){var _="";if($!=null&&$!="")return DxDataGrid.processCustom($,A);return true};DxDataGrid.processCustom=function(A,B){var _=new RegExp(B),$=_.test(A);return $};DxDataGrid.onMouseMoveOnResizeHandler=function(B,E,D,_){D.style.cursor="E-resize";var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=top.E_getObject(B,E,A);$.strColumnId=D.parentElement.parentElement.id};DxDataGrid.beginResizeColumn=function(_,D,I,H){var J=top.E_clientModel.E_getWindow(_),A=WatCore.getWindowDoc(_,J),G=top.E_getObject(_,D,A),L=G.ownerDocument.getElementById(D+"_glide"),C=G.ownerDocument.getElementById(D+"_HeadContent"),E=G.ownerDocument.getElementById(D+"_control"),F=I.getAttribute("column"),$=G.ownerDocument.getElementById(G.strColumnId);G.nOffsetLeftOfColumn=$.offsetLeft;G.curResizeColumn=F;G.nPreClientX=H.clientX;var K,B;K=H.offsetX+I.offsetLeft;B=I.offsetParent;do{K+=B.offsetLeft;B=B.offsetParent}while(B!=C);L.style.display="block";L.style.left=(K-parseInt(E.scrollLeft)-50)+"px";L.style.height=C.offsetHeight+"px";if(L.setCapture)L.setCapture();else if(window.captureEvents)A.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);if(top.isIE)L.onmousemove=function(){H=H||window.event;var _=H.clientX,$=(parseInt(L.style.left)+(H.clientX-G.nPreClientX));if($>=-50)L.style.left=$+"px";G.nPreClientX=H.clientX};else L.onmousemove=function($){$=$||window.event;var A=$.clientX,_=(parseInt(L.style.left)+($.clientX-G.nPreClientX));if(_>=-50)L.style.left=_+"px";G.nPreClientX=$.clientX};L.onmouseup=function(){DxDataGrid.__endResizeColumn(D,G,H)}};DxDataGrid.__resizeingColumn=function(G,F,B){var A=F,E=A.ownerDocument.getElementById(G+"_glide"),D,_,H=$("#"+G+"_control",A).get(0);if(parseInt($(E).css("left"))>300)var C;if((parseInt(E.style.left)+parseInt(H.scrollLeft)+(B.clientX-A.nPreClientX))>A.nOffsetLeftOfColumn+2)$(E).css("left",parseInt(E.style.left)+parseInt(H.scrollLeft)+(B.clientX-A.nPreClientX)+"px");A.nPreClientX=B.clientX};DxDataGrid.__endResizeColumn=function(E,M,I){try{var H=M,N=H.ownerDocument.getElementById(E+"_glide"),J=H.ownerDocument.getElementById(E+"_HeadContent"),G=H.ownerDocument.getElementById(E+"_control"),_=H.ownerDocument.getElementById(H.strColumnId),F=H.ownerDocument.getElementById(E+"_control");H.nOffsetLeftOfColumn=_.offsetLeft;var K=_.style.width,D=parseInt(N.style.left)+parseInt(F.scrollLeft)-H.nOffsetLeftOfColumn+50;if(D>1){var L=parseInt(D)-parseInt(K),C=parseInt(H.oTable.clientWidth)+L;H.oTable.style.width=C+"px";if(H.pageCount>1){if((parseInt(C))>parseInt(G.style.width))J.style.width=(parseInt(C))+"px";else J.style.width=parseInt(G.style.width)+"px"}else if(parseInt(C)>parseInt(G.style.width))J.style.width=(parseInt(C))+"px";else J.style.width=parseInt(G.style.width)+"px";_.style.width=D+"px";var B=$(_).attr("id");B=B.replace("c_","");$("#"+B,_).width(D-2);$("#headdiv",_).width(D)}N.style.display="none";N.onmousemove=null;N.onmouseup=null;if(N.releaseCapture)N.releaseCapture();else if(window.releaseEvents)oDoc.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);if(D>0)DxDataGrid.__synWidth(H,D);var O=_.children[0];if(O.isSort=="true")O.className="DxDataGrid-title-sorthead";else O.className="DxDataGrid-title-head"}catch(A){}};DxDataGrid.footAction=function(_,B,A,$){WatCore.call(_,B,"footAction&"+A,$)};DxDataGrid.__synWidth=function(O,C,F){var _=parseInt(O.columnrow),A=O.curResizeColumn,N=O.oTable,I=N.rows,M=0;if(O.isShowFoot=="true")M++;if(O.isFootMenu=="true")M++;var K=0;if(C!="100%"){K=parseInt(C)-1;if(K<0)K=0}try{if(M>0)for(var J=I.length-M;J<I.length;J++){var H=I[J];if(H!=null){var L=H.cells[parseInt(A)-1];if(L==null)continue;if(F=="")L.style.visibility="visible";else if(F=="none")L.style.visibility="hidden"}}for(J=_;J<I.length-M;J++){H=I[J];if(H!=null){L=H.cells[parseInt(A)-1];if(L==null)continue;var E=L.firstChild.firstChild;if(E==null)continue;var G=E.getAttribute("ct"),D=E.getAttribute("controltype");if(F=="");else if(F=="none");switch(G){case"1":if(C!="100%"){E.style.width=C+"px";E.firstChild.style.width=K+"px";if(K<20){$("button",E).css("display","none");$("img",E).css("display","none")}else{$("button",E).css("display","block");$("img",E).css("display","block")}}else{E.style.width=C;E.firstChild.style.width=C;if(F=="none"){$("button",E).css("display","none");$("img",E).css("display","none")}else{$("button",E).css("display","block");$("img",E).css("display","block")}}break;case"3":if(C!="100%")E.style.width=C+"px";else E.style.width=C;break;case"4":if(C!="100%"){E.style.width=C+"px";E.children[0].style.width=K+"px";E.children[2].style.width=K+"px"}else{E.style.width=C;E.children[0].style.width=C;E.children[2].style.width=C}break;case"5":if(C!="100%")E.style.width=C+"px";else E.style.width=C;break;default:if(E.style!=null)if(C!="100%"){E.style.width=C+"px";E.firstChild.style.width=K+"px"}else{E.style.width=C;E.firstChild.style.width=C}break}}}}catch(B){}};DxDataGrid.textbuttonclick=function(C,I,E){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),_=top.E_getObject(C,I,B),H=E.parentElement.parentElement.parentElement.parentElement,G=E.parentElement.parentElement.parentElement,A=H.rowIndex,F=_.currSel;DxDataGrid.frontSelectRow(_,H,G);top.E_dataChange.E_put(I,C);WatCore.call(C,I,"textbuttonclick&"+$(E).attr("clocation"))};DxDataGrid.labelActionclick=function(B,H,D){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=top.E_getObject(B,H,A),G=D.parentElement.parentElement.parentElement.parentElement,F=D.parentElement.parentElement.parentElement,_=G.rowIndex,E=$.currSel;DxDataGrid.frontSelectRow($,G,F);top.E_dataChange.E_put(H,B);WatCore.call(B,H,"labelclick&"+D.clocation)};DxDataGrid.onpop=function(E,$,D,B,A){var F=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,F),_=top.E_getObject(E,D,C);if(_.getAttribute("showpopmenu")=="true")top.DxMenu.onpop(E,$,B,A)};DxDataGrid.inputBackspaceProcess=function(_,$){if(_.disabled==true||_.readOnly==true){if($.keyCode==27||$.keyCode==8){$.cancelBubble=true;return false}else return true}else if($.keyCode==27||$.keyCode==8){$.cancelBubble=true;return true}else return true};function DxComboBox(){}DxComboBox.comboxs=new Array();DxComboBox.BOOL_ACTION_ON_ENTER="bActionOnEnter";DxComboBox.BOOL_TEXT_MATCHING="bTextMatching";DxComboBox.BOOL_SET_WIDTH="bSetWidth";DxComboBox.ITEMS="items";DxComboBox.SELECTEDITEM="selectedItem";DxComboBox.initComboBox=function(E,C,I,H,A){DxCache.setAttribute(E,C,DxComboBox.BOOL_ACTION_ON_ENTER,I);DxCache.setAttribute(E,C,DxComboBox.BOOL_TEXT_MATCHING,H);DxCache.setAttribute(E,C,DxComboBox.BOOL_SET_WIDTH,A);DxComboBox.__storeOptions(E,C);DxComboBox.__adjustSize(E,C);DxComboBox.comboxs[C]=E;var F=top.E_clientModel.E_getWindow(E),D=WatCore.getWindowDoc(E,F),G=WatCore.getWindow(E,F),B=D.getElementById(C);if(!top.isIE)$(B).width($(B).width()-2);var _=F.isiframe;if(_=="true")if(window.attachEvent)D.attachEvent("onclick",G.EventRouter.__documentOnClickHandler);else D.addEventListener("click",G.EventRouter.__documentOnClickHandler,false)};DxComboBox.clear=function(B,A,E){try{var C=top.E_clientModel.E_getWindow(B),D=WatCore.getWindow(B,C),_=C.isiframe;if(_=="true")if(top.isIE)A.detachEvent("onclick",D.EventRouter.__documentOnClickHandler);else A.removeEventListener("click",D.EventRouter.__documentOnClickHandler,false)}catch($){}};DxComboBox.__storeOptions=function(A,_){var B=DxComboBox.__getListbox(A,_),C=B.options,$="";DxCache.setAttribute(A,_,DxComboBox.SELECTEDITEM,-1);for(var D=0;D<C.length;D++){if(D==0)$=C[D].text;else $=$+"&&"+C[D].text;if(C[D].selected)DxCache.setAttribute(A,_,DxComboBox.SELECTEDITEM,D)}DxCache.setAttribute(A,_,DxComboBox.ITEMS,$)};DxComboBox.__adjustSize=function(A,_){var C=DxCache.getAttributeAsInt(A,_,DxComboBox.BOOL_SET_WIDTH);if(C==1){var $=DxCache.getWidth(DxComboBox.__getInputField(A,_)),B=DxComboBox.__getListbox(A,_);if(DxCache.getWidth(B)<$)DxCache.setWidth(B,$)}};DxComboBox.__getInputField=function(B,_){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=A.getElementById("input_"+_);return $};DxComboBox.__getToggle=function(B,_){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=A.getElementById("btn_"+_);return $};DxComboBox.__getListbox=function(B,_){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=A.getElementById("list_"+_);return $};DxComboBox.__getCombo=function(A,$){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),C=_.getElementById($);return C};DxComboBox.__hideListBox=function(A,_){var $=DxComboBox.__getListbox(A,_);if($)$.style.display="none"};DxComboBox.__showListBox=function(_,$){DxComboBox.__getListbox(_,$).style.display="block"};DxComboBox.__setTextFieldFocus=function(A,_){var $=DxComboBox.__getInputField(A,_);WatCore.setFocus($)};DxComboBox.__setListBoxFocus=function(A,_){try{var B=top.E_clientModel.E_getWindow(A),C=WatCore.getWindow(A,B);C.EventRouter.getPopwinRef(C).childNodes[0].focus()}catch($){}};DxComboBox.__setSelection=function(A,_,$){var B=DxComboBox.__getListbox(A,_),C=B.options;for(var D=0;D<C.length;D++)if(D==$)C[D].selected=true;else C[D].selected=false};DxComboBox.__updateTextField=function(B,A,H,_){var E=DxComboBox.__getListbox(B,A),C=top.E_clientModel.E_getWindow(B),D=WatCore.getWindow(B,C);E.parentNode.innerHTML=D.EventRouter.getPopwinRef(D).innerHTML;$(E).attr("selectedIndex",H);D.EventRouter.getPopwinRef(D).childNodes[0].selectedIndex=H;var F=D.EventRouter.getPopwinRef(D).childNodes[0].options;for(var G=0;G<F.length;G++)if(G==H){DxComboBox.__setText(B,A,F[G].value);DxComboBox.__saveState(B,A,H,_);DxCache.setAttribute(B,A,DxComboBox.SELECTEDITEM,G);break}};DxComboBox.__setText=function(_,$,A){DxComboBox.__getInputField(_,$).value=A};DxComboBox.__saveState=function(A,_,D,$){var B=top.E_clientModel.E_getWindow(A),C=WatCore.getWindow(A,B);if(!$)C.EventRouter.getPopwinRef(C).childNodes[0].style.display="none";top.WatCore.setParameter(A,_,top.DC.LISTSELECTION,D)};DxComboBox.__selectText=function(A,_){var $="top.E_clientModel.E_getWindow(\""+A+"\").contentWindow.DxComboBox.DxComboBoxSelectText(\""+A+"\",\""+_+"\")";top.E_clientModel.E_getWindow(A).contentWindow.setTimeout($,10)};DxComboBox.DxComboBoxDocumentOnClickHandler=function(_,$){DxComboBox.__getInputField(_,$).select()};DxComboBox.DxComboBoxDocumentOnClickHandler=function($){};DxComboBox.toggle=function(B,A,K){var F=DxComboBox.__getListbox(B,A),H=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,H),D=WatCore.getWindow(B,H);top.DxPopGridText.hideOnClick();try{if(D.EventRouter.getPopwinRef(D).childNodes[0].id==F.id){D.EventRouter.closePopWin(K);return false}}catch(_){}DxComboBox.__rebuildOptions(B,A,true);var $=F.selectedIndex;if($<0&&$>F.options.length)$=DxComboBox.__searchMatchingText();DxComboBox.__setSelection(B,A,$);DxComboBox.__showListBox(B,A);var E,I=D.EventRouter.createPopwin(B),J=16*parseInt(F.size);if(top.isIE){var G=D.EventRouter.posPopwin(B,DxComboBox.__getInputField(B,A)).y+parseInt(DxComboBox.__getInputField(B,A).style.height);if(parseInt(G)+J+10>parseInt(C.body.offsetHeight||C.documentElement.offsetHeight))G=G-J-parseInt(DxComboBox.__getInputField(B,A).style.height)-4;else G+=0;I.style.top=G+"px";I.style.left=D.EventRouter.posPopwin(B,DxComboBox.__getInputField(B,A)).x+"px"}else{G=DxPopGridText.posPopwin(B,DxComboBox.__getInputField(B,A)).y+parseInt(DxComboBox.__getInputField(B,A).style.height);if(parseInt(G)+J+10>parseInt(C.body.offsetHeight||C.documentElement.offsetHeight||C.documentElement.clientHeight))G=G-J-parseInt(DxComboBox.__getInputField(B,A).style.height)-9;else G-=1;I.style.top=G+"px";I.style.left=(D.EventRouter.posPopwin(B,DxComboBox.__getInputField(B,A)).x-1)+"px"}I.innerHTML=F.parentNode.innerHTML.substr(F.parentNode.innerHTML.indexOf("<select"));I.childNodes[0].style.display="block";I.style.display="block";I.childNodes[0].selectedIndex=$};DxComboBox.__rebuildOptions=function(A,_,C){var I=top.E_clientModel.E_getWindow(A),B=WatCore.getWindowDoc(A,I),J=false,F=DxComboBox.__getInputField(A,_).value,D=DxCache.getAttributeAsInt(A,_,DxComboBox.BOOL_TEXT_MATCHING);if(D==0||C)F="";var H=DxCache.getAttributeAsArray(A,_,DxComboBox.ITEMS,"&&"),E=DxComboBox.__getListbox(A,_),L=E.options;L.length=0;var G=DxCache.getAttributeAsInt(A,_,DxComboBox.SELECTEDITEM);for(i=0;i<H.length;i++){var $=H[i];if($.indexOf(F)==0||F.length==0){var K=B.createElement("OPTION");K.value=H[i];K.text=H[i];L[L.length]=K;J=true}}E.selectedIndex=G;return J};DxComboBox.onChange=function(C,A,$){var D=top.E_clientModel.E_getWindow(C),E=WatCore.getWindow(C,D);E.EventRouter.getPopwinRef(E).childNodes[0].style.display="none";var F=E.EventRouter.getPopwinRef(E).childNodes[0].selectedIndex;DxComboBox.__updateTextField(C,A,F);if($){DxComboBox.__saveState(C,A,F);top.WatCore.call(C,A,"enter",event)}else DxComboBox.__updateTextField(C,A,F);E.EventRouter.closePopWin(null);var B=WatCore.getWindowDoc(C,D),_=B.getElementById("input_"+A);WatCore.setFocus(_)};DxComboBox.__incrementSelection=function(B,A,_){var E=DxComboBox.__getListbox(B,A),F=E.options,$=DxCache.getAttribute(B,A,DxComboBox.SELECTEDITEM);_=parseInt(_);if($==undefined||$==null)$=-1;$=parseInt($);if($==-1){$=DxComboBox.__searchMatchingText(B,A);if($==-1)$=0}else if(_>0)$=Math.min(F.length-1,$+_);else $=Math.max(0,$+_);var C=top.E_clientModel.E_getWindow(B),D=WatCore.getWindow(B,C);D.EventRouter.getPopwinRef(D).childNodes[0].selectedIndex=$;DxComboBox.__updateTextField(B,A,$,true)};DxComboBox.onTextKey=function(B,_,L,G){var F=DxComboBox.__getListbox(B,_),I=DxCache.getAttributeAsInt(B,_,DxComboBox.BOOL_ACTION_ON_ENTER),D=DxCache.getAttributeAsInt(B,_,DxComboBox.BOOL_TEXT_MATCHING),J=top.E_clientModel.E_getWindow(B),C=WatCore.getWindow(B,J),H=top.isIE?C.event:L,M=H.keyCode?H.keyCode:H.which,E=C.EventRouter.getPopwinRef(C);stopEvent(L);if(M==40){if((E!=null)&&(E.childNodes[0]!=null)&&E.childNodes[0].style.display=="block")DxComboBox.__incrementSelection(B,_,+1);else DxComboBox.toggle(B,_,L)}else if(M==38){if((E!=null)&&(E.childNodes[0]!=null)&&E.childNodes[0].style.display=="block")DxComboBox.__incrementSelection(B,_,-1);else DxComboBox.toggle(B,_,L)}else if(M==27){if((E!=null)&&(E.childNodes[0]!=null)&&E.childNodes[0].style.display=="block")DxComboBox.toggle(B,_,L)}else if(M==27)DxComboBox.toggle(B,_);else if(M==13){if((E!=null)&&(E.childNodes[0]!=null)&&E.childNodes[0].style.display=="block"){DxComboBox.toggle(B,_);if(G)top.WatCore.call(B,_,"enter",L)}}else stopEvent(H);var A=WatCore.getWindowDoc(B,J),$=top.E_getObject(B,_,A);if($.getAttribute("targetId")!=null)if(WatCore.isKeyCode(L,$.getAttribute("keyCode"))){stopEvent(L);var K=WatCore.getJsFunctionParams(L,$.getAttribute("targetId"),$.getAttribute("keyCode"),$.getAttribute("fname"));C.EventRouter.closePopWin(L);WatCore.jsFunctionCall(B,_,K[0],K[1],L)}};DxComboBox.onListKey=function(_,$,A){var C=A.keyCode?A.keyCode:A.which,B=DxComboBox.__getListbox(_,$);if(C==27&&B.style.display=="block"){DxComboBox.__hideListBox(_,$);DxComboBox.__setTextFieldFocus(_,$)}else if(C==13&&B.style.display=="block"){DxComboBox.__hideListBox(_,$);DxComboBox.__updateTextField(_,$);DxComboBox.__setTextFieldFocus(_,$)}};DxComboBox.__searchMatchingText=function(A,_){var $=DxComboBox.__getInputField(A,_).value,B=DxComboBox.__getListbox(A,_),C=B.options;for(i=0;i<C.length;i++)if(C[i].value.indexOf($)==0)return i;return-1};DxComboBox._mouseIn=function(_){var $=_.parentElement;_.className=$.getAttribute("classold")+"-button-mouseover"};DxComboBox._mouseOut=function(_){var $=_.parentElement;_.className=$.getAttribute("classold")+"-button"};DxComboBox.setFocus=function(F,_,C,E){var A=top.E_getObject(F,"E_SW_"+_,C),$=A.ownerDocument.getElementById("input_"+_),G=A.ownerDocument.getElementById("btn_"+_),B=A.ownerDocument.getElementById(_);if(!G.disabled&&!$.disabled){stopEvent(event);WatCore.setFocus($);DxComboBox.toggle(F,_)}else if(B.getAttribute("targetId")!=null)if(WatCore.isKeyCode(E,B.getAttribute("keyCode"))){stopEvent(E);var D=WatCore.getJsFunctionParams(E,B.getAttribute("targetId"),B.getAttribute("keyCode"),B.getAttribute("fname"));WatCore.jsFunctionCall(F,_,D[0],D[1],E)}};DxComboBox.jsFunctionCall=function(B,_,A,$,D,C){if(WatCore.isKeyCode(C,$)){stopEvent(C);WatCore.jsFunctionCall(B,_,A,D,C)}};DxComboBox.render=function(_,K,I){var D=I.getAttribute("cid"),A=I.selectNodes("*"),N=1;for(var F=0;F<A.length;F++){var E=A[F].nodeName;E=E.substring(1,E.length);var L=top.isIE?A[F].text:A[F].textContent;switch(E){case top.DC.VISIBLE:var M=top.E_getObject(_,"E_SW_"+D,K);M.style.visibility=L;break;case top.DC.FOCUS:if(A.length==1)DxComboBox.setFocus(_,D,K);else N=2;break;case top.DC.LISTSELECTION:var G=L.split("&");DxComboBox.__getInputField(_,D).value=G[1];DxCache.setAttribute(_,D,DxComboBox.SELECTEDITEM,G[0]);DxComboBox.__setSelection(_,D,G[0]);break;case top.DC.ENABLED:var M=top.E_getObject(_,D,K),C=M.ownerDocument.getElementById("input_"+D),P=M.ownerDocument.getElementById("btn_"+D),Q=M.ownerDocument.getElementById("list_"+D);if(L=="true"){C.disabled=false;P.disabled=false;C.style.backgroundColor="window";M.style.backgroundColor="window";$(C).css("cursor","default");$(P).css("cursor","default")}else{C.disabled=true;P.disabled=true;M.style.backgroundColor="#F0F0F0";C.style.backgroundColor="#F0F0F0";$(C).css("cursor","not-allowed");$(P).css("cursor","not-allowed")}break;case top.DC.UPDATE:var H=top.E_getObject(_,D,K);H.innerHTML="";H.parentElement.removeChild(H);top.E_removeTheObject(_,D);top.E_removeTheObject(_,"E_SW_"+D);var B=top.E_getObject(_,"E_SW_"+D,K);$(B).html(L);top.E_removeTheObject(_,D);top.E_removeTheObject(_,"E_SW_"+D);if(N==2){DxComboBox.initComboBox(_,D,1,1,0);DxComboBox.setFocus(_,D,K);N=1}break;case top.DC.X:top.E_getObject(_,"E_SW_"+D,K).style.left=L;break;case top.DC.Y:top.E_getObject(_,"E_SW_"+D,K).style.top=L;break;case top.DC.JSFUNCTION_KEYCODE:var H=top.E_getObject(_,D,K),J=$(H);J.attr("keyCode",L);break;case top.DC.JSFUNCTION_TARGET:H=top.E_getObject(_,D,K),J=$(H);J.attr("targetId",L);break;case top.DC.JSFUNCTION_NAME:H=top.E_getObject(_,D,K),J=$(H);J.attr("fname",L);break;case top.DC.JSFUNCTION_KCOLIST:H=top.E_getObject(_,D,K),J=$(H);J.attr("kcoList",L);break;case top.DC.BACKGROUND:var M=top.E_getObject(_,D,K),O=$("#"+"input_"+D,M);O.css("background",L);$(M).css("background",L);break;default:break}}if(N==2)DxComboBox.setFocus(_,D,K)};DxDataGridScrollBar.CAPTURE="CAPTURE";DxDataGridScrollBar.MOUSEUP="MOUSEUP";DxDataGridScrollBar.POP="POP";DxDataGridScrollBar.PAGECOUNT="PAGECOUNT";DxDataGridScrollBar.CURRPAGE="CURRPAGE";DxDataGridScrollBar.HONE="HONE";function DxDataGridScrollBar(){}DxDataGridScrollBar.init=function(E,J,_,H,I,A,G,C){var F=top.E_clientModel.E_getWindow(E),D=WatCore.getWindowDoc(E,F),B=top.E_getObject(E,J,D);B.pageCount=_;if(B.pageCount<=1)B.style.visibility="hidden";B.currPage=H;B.hone=I;B.pageFlag=A;B.mouseup=true;B.winId=E;B.pageSize=G;B.isDataGridHeadAction=C;if(C=="true")$(B).css("top","28")};DxDataGridScrollBar.clear=function(_,$,A){A.clearAttributes();A.removeNode(true);delete A};DxDataGridScrollBar.changeSize=function(I,D,F){var C=I,_=C.pageCount,G=C.ownerDocument.getElementById(C.id+"$");C.style.height=D;if(top.isIE)C.style.left=F-18;else C.style.left=F-16;D=parseInt(D);if(!top.isIE)$(C).height(D);C.parentElement.style.visibility="visible";G.style.height=D*_;C.pageFlag=D;var B=C.currPage,A=C.pageFlag,E=B;if(E>B){var H=(E-1)*A;C.scrollTop=H}else{H=(E-1)*A;C.scrollTop=H}C.currPage=E};DxDataGridScrollBar.mouseDown=function($){$.capture=true;var A=window.createPopup(),_=A.document.body;_.style.backgroundColor="lightyellow";_.style.border="solid black 1px";$.pop=A};DxDataGridScrollBar.mouseUp=function(L){var M=L.capture,_=L.mouseup;if(M==true&&_==false){L.capture=false;var F=L.pop,A=$(L).attr("gridid"),N=top.E_clientModel.E_getWindow(L.winId),D=WatCore.getWindowDoc(L.winId,N),O=top.E_getObject(L.winId,A,D),E=DxDataGridScrollBar.calcCurrPage(L),I=L.currPage,J=L.pageFlag;if(E!=I){if(E>I){var S=(E-1)*J;L.scrollTop=S}else{S=(E-1)*J;L.scrollTop=S}L.currPage=E;F.hide();L.mouseup=true;L.pop=null;try{var Q=O.currSel,B=parseInt(O.columnrow)-1,H=O.oTable.rows[Q-B];if(H){var K=O.currCel;if(K<0)K=0;var G=H.children[K];if(!top.isIE)$("input[se$='1']",G).trigger("blur")}}catch(C){}top.WatCore.dbgridscrollbarcall(L.winId,L.id,"$"+E,event)}else{var P=L.scrollTop,R=L.hone;if(P==0)L.scrollTop=0;else if(P==R)L.scrollTop=R;F.hide();L.mouseup=true;L.pop=null}}};DxDataGridScrollBar.mouseMove=function($){DxDataGridScrollBar.mouseUp($)};DxDataGridScrollBar.mouseOut=function($){DxDataGridScrollBar.mouseUp($)};DxDataGridScrollBar.onScroll=function(A){var F=A.pop,B=A.capture;if(F!=null){var E=F.document.body,C=DxDataGridScrollBar.calcCurrPage(A),$=A.pageCount,_="\u7b2c"+C+"\u9875/\u603b"+$+"\u9875"+" \u5171"+(A.rowCount)+"\u884c";E.innerHTML=_;var G=top.Desktop.textCounter(_),D=parseInt(9*G)+12;F.show(-D,0,D+10,25,A);A.mouseup=false}};DxDataGridScrollBar.mousewheel=function($){$.capture=true;var A=window.createPopup(),_=A.document.body;_.style.backgroundColor="lightyellow";_.style.border="solid black 1px";$.pop=A};DxDataGridScrollBar.calcCurrPage=function(B){var A=B.pageFlag,D=B.scrollTop,_=B.currPage,$=B.pageCount,C;if(D%A>0)C=parseInt(D/A)+2;else C=parseInt(D/A)+1;if(C==_)C-=1;if(C==0)C=1;if(C>$)C=$;return C};DxDataGridScrollBar.setPageCount=function(A,C,$){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B);DxDataGridScrollBar.setPageCount_(A,C,_,$)};DxDataGridScrollBar.setPageCount_=function(D,F,E,_){var C=top.E_getObject(D,F,E);C.pageCount=_;var $=parseInt(C.style.height)*_;if(_>1)C.style.visibility="inherit";else C.style.visibility="hidden";C.hone=$;top.E_getObject(D,F+"$",E).style.height=$+"px";var B=C.currPage,A=C.pageFlag,G=(B-1)*A;C.scrollTop=G};DxDataGridScrollBar.render=function(D,N,M){var G=M.getAttribute("cid"),C=M.selectNodes("*");for(var I=0;I<C.length;I++){var H=C[I].nodeName;H=H.substring(1,H.length);var O=top.isIE?C[I].text:C[I].textContent;switch(H){case top.DC.PAGEINFO:var E=O.split("&"),P=E[0],A=E[1],F=E[2],B=P.indexOf("$"),L=top.E_getObject(D,G,N),_=L.pageCount,$=parseInt(L.style.height)*_;L.rowCount=F;if(_>1)L.style.visibility="inherit";else L.style.visibility="hidden";L.hone=$;top.E_getObject(D,G+"$",N).style.height=$+"px";var K=L.currPage,J=L.pageFlag;if(A>K){var Q=(A-1)*J;L.scrollTop=Q}else{Q=(A-1)*J;L.scrollTop=Q}L.currPage=A;break;case top.DC.PAGECOUNT:break;case top.DC.CURR_PAGE:L=top.E_getObject(D,G,N);if(L==null)return;K=L.currPage,J=L.pageFlag;if(O>K){Q=(O-1)*J;L.scrollTop=Q}else{Q=(O-1)*J;L.scrollTop=Q}L.currPage=O;break;default:break}}};function DxFrame(){}DxFrame.init=function(D,G){var E=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,E),A=top.E_getObject(D,G,C);if(!top.isIE){var H=parseInt($(A).attr("oh")),B=$(A).attr("ohu");if(B=="px"){H-=15;$(A).height(H)}}if(!top.isIE){var F=parseInt($(A).attr("ow")),_=$(A).attr("owu");if(_=="px"){F-=20;$(A).width(F)}}};DxFrame.expand=function(C){var B=C.parentElement.parentElement,A=C.flag;if(A){$(B).height(B.oh+"px");var _=B.ownerDocument.getElementById(B.id+"content");_.style.display="block";C.src=top.watLocation2+"/resources/core/ArrRight.gif";C.flag=false}else{B.oh=$(B).height();$(B).height("30px");_=B.ownerDocument.getElementById(B.id+"content");_.style.display="none";C.src=top.watLocation2+"/resources/core/ArrDown_old.gif";C.flag=true}};DxFrame.expandServer=function(C,G,F,B){var D=top.E_clientModel.E_getWindow(C),A=top.E_getObject(C,G,B),E=A.ownerDocument.getElementById("img_"+G);if(F=="true"&&E.flag){$(A).height(A.oh+"px");var _=A.ownerDocument.getElementById(A.id+"content");_.style.display="block";E.src=top.watLocation2+"/resources/core/ArrRight.gif";E.flag=false}else if(!E.flag){A.oh=$(A).height();$(A).height("30px");_=A.ownerDocument.getElementById(A.id+"content");_.style.display="none";E.src=top.watLocation2+"/resources/core/ArrDown_old.gif";E.flag=true}};DxFrame._changeSize=function($,_){$.onpropertychange=function(){top.DxFrame.CheckState($,_)}};DxFrame.CheckState=function(_,A){var $=_.readyState;if($=="complete")DxFrame._changeSize2(_,A)};DxFrame._changeSize2=function(_,B){var $=_.ownerDocument.getElementById(B+"content");if($!=null){var A=parseInt(_.clientHeight);if(A<=0)A=0;$.style.height=A}};DxFrame.changeSize=function(A,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=top.E_getObject(A,C,_);DxFrame._changeSize($,C)};DxFrame.render=function($,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.TEXT:var _=top.E_getObject($,"leg_"+E,D);_.innerText=C;break;case top.DC.EXPAND:top.DxFrame.expandServer($,E,C,D);break;case top.DC.WIDTH:top.E_getObject($,E,D).style.width=C;top.E_getObject($,"E_SW_"+E,D).style.width=C;break;case top.DC.HEIGHT:top.E_getObject($,E,D).style.height=C;top.E_getObject($,"E_SW_"+E,D).style.height=C;break;case top.DC.VISIBLE:top.E_getObject($,"E_SW_"+E,D).style.visibility=C;break;case top.DC.DISPLAY:_=top.E_getObject($,"E_SW_"+E,D);if(C=="true"){_.style.visibility="visible";_.style.display="block"}else{_.style.visibility="hidden";_.style.display="none"}break;case top.DC.X:top.E_getObject($,"E_SW_"+E,D).style.left=C;break;case top.DC.Y:top.E_getObject($,"E_SW_"+E,D).style.top=C;break;case top.DC.ENABLED:if(C=="true")top.E_getObject($,E,D).disabled=false;else top.E_getObject($,E,D).disabled=true;break;case top.DC.BACKGROUND:top.E_getObject($,E,D).style.backgroundColor=C;break;case top.DC.FOREGROUND:top.E_getObject($,E,D).style.color=C;break;case top.DC.fontFamily:top.E_getObject($,"leg_"+E,D).style.fontFamily=C;break;case top.DC.fontSize:top.E_getObject($,"leg_"+E,D).style.fontSize=C;break;case top.DC.fontWeight:top.E_getObject($,"leg_"+E,D).style.fontWeight=C;break;case top.DC.fontStyle:top.E_getObject($,"leg_"+E,D).style.fontStyle=C;break;case top.DC.textDecoration:top.E_getObject($,"leg_"+E,D).style.textDecoration=C;break;default:break}}};function DxPanel(){}DxPanel.initUI=function(B,D){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=top.E_getObject(B,D,A),_=$.getAttribute("heightunits");if(top.isIE)$.style.position="relative";else if(_=="%")$.style.position="relative";else $.style.position="relative"};DxPanel.changeSize=function(F){var D=F.style.width,C=F.style.height,$=F.getAttribute("widthunit"),_=F.getAttribute("heightunit"),B=F.clientWidth,A=F.clientHeight;if($=="%"||_=="%"){var E=top.WatCore.getClientRect(F);if($=="%"){B=E.w;F.style.width=B+"px"}if(_=="%"){A=E.h;F.style.height=A+"px"}}};DxPanel.pop=function(D,_,A,J){var M=top.E_getObject(D,"E_SW_"+_,A),H=M.ownerDocument.getElementById(_);if(H.popstate=="true")return;var K=top.E_clientModel.E_getWindow(D);if(H!=null&&H.style.visibility!="visible"){var B=J.split(",");parentId=B[0];var L="";if(B.length==2)L=B[1];var F,C;if(L!="-1")if(D==top.DESKTOP){var N=WatCore.getWindow(D,K);F=$(N).width();C=$(N).height()}else{var E=WatCore.getWindow(D,K);F=$(K).width();C=$(K).height()}if(L=="1"){H.sx=parseInt(F)-parseInt(H.getAttribute("swidth"))-2;H.sy=parseInt(C)-parseInt(H.getAttribute("sheight"))-2}else if(L=="2"){H.sx=parseInt(F)-parseInt(H.getAttribute("swidth"))-2;H.sy=2}else if(L=="3"){H.sx=2;H.sy=parseInt(C)-parseInt(H.getAttribute("sheight"))-2}else if(L=="4"){H.sx=2;H.sy=2}var G=H.getAttribute("popdirect"),I=H.getAttribute("bl");H.style.width="0px";H.style.height="0px";M.style.width="0px";M.style.height="0px";H.style.visibility="visible";H.style.display="block";H.focus();if(G=="1"){M.style.left=H.sx+"px";M.style.top=H.sy+"px"}else if(G=="2"){M.style.left=parseInt(H.sx)+"px";M.style.top=(parseInt(H.sy)+parseInt(H.getAttribute("sheight")))+"px"}else if(G=="3"){M.style.left=(parseInt(H.sx)+parseInt(H.getAttribute("swidth")))+"px";M.style.top=H.sy+"px"}else if(G=="4"){M.style.top=(parseInt(H.sy)+parseInt(H.getAttribute("sheight")))+"px";M.style.left=(parseInt(H.sx)+parseInt(H.getAttribute("swidth")))+"px"}else if(G=="5")M.style.top=(parseInt(H.sy)+parseInt(H.getAttribute("sheight")))+"px";else if(G=="6")M.style.top=(parseInt(H.sy)+parseInt(H.getAttribute("sheight")))+"px";DxPanel.pop_(D,_,G)}};DxPanel.pop_=function(E,A,H){try{var L=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,L),F=WatCore.getWindow(E,L),M=top.E_getObject(E,"E_SW_"+A,B),J=$("#"+A,M).get(0),C=parseInt(J.style.width),I=parseInt(J.style.height),K=parseInt(J.getAttribute("swidth")),G=parseInt(J.getAttribute("sheight"));if(C>=K||(parseInt(C)+parseInt(J.getAttribute("wext")))>=K){if(H=="2")M.style.top=parseInt(J.sy)+"px";else if(H=="3")M.style.left=parseInt(J.sx)+"px";else if(H=="4"){M.style.top=parseInt(J.sy)+"px";M.style.left=parseInt(J.sx)+"px"}J.style.width=K+"px";J.style.height=G+"px";M.style.width=K+"px";M.style.height=G+"px";J.popstate="true";return}C=C+parseFloat(J.getAttribute("wext"));var D=I+parseFloat(J.getAttribute("hext"));if(D>=G){J.style.width=K+"px";J.style.height=G+"px";M.style.width=parseInt(K)+"px";M.style.height=parseInt(G)+"px";if(H=="2")M.style.top=parseInt(J.sy)+"px";else if(H=="3")M.style.left=parseInt(J.sx)+"px";else if(H=="4"){M.style.top=parseInt(J.sy)+"px";M.style.left=parseInt(J.sx)+"px"}J.popstate="true";return}else{J.style.width=C+"px";J.style.height=D+"px";M.style.width=C+"px";M.style.height=D+"px";if(H=="2")M.style.top=(parseInt(M.style.top)-parseFloat(J.getAttribute("hext")))+"px";else if(H=="3")M.style.left=(parseInt(M.style.left)-parseFloat(J.getAttribute("wext")))+"px";else if(H=="4"){M.style.top=(parseInt(M.style.top)-parseFloat(J.getAttribute("hext")))+"px";M.style.left=(parseInt(M.style.left)-parseFloat(J.getAttribute("wext")))+"px"}}F.setTimeout("top.DxPanel.pop_('"+E+"','"+A+"','"+H+"')",parseInt(J.getAttribute("poptime")))}catch(_){alert(_.message)}};DxPanel.push2=function(B,C,A){var _=top.E_clientModel.E_getWindow(B),$=WatCore.getWindowDoc(B,_);top.DxPanel.push(B,C,$,A)};DxPanel.push=function(C,$,_,H){var K=top.E_getObject(C,"E_SW_"+$,_),F=K.ownerDocument.getElementById($);if(F.popstate!="true")return;if(F!=null&&F.style.visibility!="hidden"){var A=H.split(",");parentId=A[0];var I="";if(A.length==2)I=A[1];var D,B;if(I!="-1")if(C==top.DESKTOP){var L=WatCore.getWindow(C,J);D=L.clientWidth;B=L.clientHeight}else{var J=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,J);D=_.clientWidth;B=_.clientHeight}if(I=="1"){F.sx=parseInt(D)-parseInt(F.swidth)-2;F.sy=parseInt(B)-parseInt(F.sheight)-2}else if(I=="2"){F.sx=parseInt(D)-parseInt(F.swidth)-2;F.sy=2}else if(I=="3"){F.sx=2;F.sy=parseInt(B)-parseInt(F.sheight)}else if(I=="4"){F.sx=2;F.sy=2}var E=F.getAttribute("popdirect"),G=F.getAttribute("bl");DxPanel.push_(C,$,E)}};DxPanel.push_=function(E,A,H){try{var L=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,L),F=WatCore.getWindow(E,L),M=top.E_getObject(E,"E_SW_"+A,B),J=$("#"+A,M).get(0),C=parseInt(J.style.width),I=parseInt(J.style.height),K=parseInt(J.getAttribute("swidth")),G=parseInt(J.getAttribute("sheight"));if(C<=0||(C-parseInt(J.getAttribute("wext")))<=0){J.style.width="0px";J.style.height="0px";M.style.width="0px";M.style.height="0px";J.style.visibility="hidden";J.style.display="none";J.popstate="false";return}C=C-parseInt(J.getAttribute("wext"));var D=I-parseInt(J.getAttribute("hext"));if(D<=0){J.style.width="0px";J.style.height="0px";M.style.width="0px";M.style.height="0px";J.style.visibility="hidden";J.style.display="none";J.popstate="false";return}else{J.style.width=C+"px";J.style.height=D+"px";M.style.width=C+"px";M.style.height=D+"px";if(H=="2")M.style.top=(parseInt(M.style.top)+parseInt(J.getAttribute("hext")))+"px";else if(H=="3")M.style.left=(parseInt(M.style.left)+parseInt(J.getAttribute("wext")))+"px";else if(H=="4"){M.style.top=(parseInt(M.style.top)+parseInt(J.getAttribute("hext")))+"px";M.style.left=(parseInt(M.style.left)+parseInt(J.getAttribute("wext")))+"px"}}setTimeout("top.DxPanel.push_('"+E+"','"+A+"','"+H+"')",parseInt(J.getAttribute("poptime")))}catch(_){alert(_.message)}};DxPanel.render=function($,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.SCROLLABLE:if(C=="true")top.E_getObject($,E,D).style.overflow="auto";else top.E_getObject($,E,D).style.overflow="hidden";break;case top.DC.WIDTH:top.E_getObject($,E,D).style.width=C;top.E_getObject($,"E_SW_"+E,D).style.width=C;break;case top.DC.POP:top.DxPanel.pop($,E,D,C);break;case top.DC.PUSH:top.DxPanel.push($,E,D,C);break;case top.DC.HEIGHT:top.E_getObject($,E,D).style.height=C;top.E_getObject($,"E_SW_"+E,D).style.height=C;break;case top.DC.VISIBLE:top.E_getObject($,"E_SW_"+E,D).style.visibility=C;break;case top.DC.BORDERSTYLE:top.E_getObject($,E,D).style.borderStyle=C;break;case top.DC.BORDERWIDTH:top.E_getObject($,E,D).style.borderWidth=C;break;case top.DC.BORDERCOLOR:top.E_getObject($,E,D).style.borderColor=C;break;case top.DC.X:top.E_getObject($,"E_SW_"+E,D).style.left=C;break;case top.DC.Y:top.E_getObject($,"E_SW_"+E,D).style.top=C;break;case top.DC.ENABLED:if(C=="true")top.E_getObject($,E,D).disabled=false;else top.E_getObject($,E,D).disabled=true;break;case top.DC.BACKGROUND:top.E_getObject($,E,D).style.backgroundColor=C;break;case top.DC.FOREGROUND:top.E_getObject($,E,D).style.color=C;break;case top.DC.DISPLAY:var _=top.E_getObject($,"E_SW_"+E,D);if(C=="true"){_.style.visibility="visible";_.style.display="block"}else{_.style.visibility="hidden";_.style.display="none"}break;default:break}}};function DxTextField(){}DxTextField.init=function(A,D,L,U,b,Z,I,C,J,M){var c=top.E_clientModel.E_getWindow(A),R=WatCore.getWindowDoc(A,c),G=top.E_getObject(A,D,R),N=G.getAttribute("cookieName"),O=G.getAttribute("cookieEnabled");G.poplocation=b;G.quickinput=Z;G.hiddentime=I;G.searchtype=C;G.sensitive=M;var Q=$("#"+D+"_null",G.parentElement),e=$(G);if(O=="true"){var K=top.WatCore.getCookie(N+"_name");if(K!=null){if("true"==$(G).attr("cookieencryption"))K=$.base64Decode(K);G.value=K;top.Format.showFunction(G,K);G.setAttribute("resultValue",K);Format.storeValue(A,D,K,G.type);var Y=L,S=Y.split(",");for(var V=0;V<S.length;V++){var d=S[V],T=R.getElementById(d+"_t");if(T!=null){T.innerText=K;T.style.visibilty="visible"}}if(U=="false")G.style.visibility="hidden"}}if(G.value==""||G.value==null){var _=top.E_getObject(A,D+"_null",R),H=G.getAttribute("cannull"),W=G.getAttribute("nulltip"),E=G.getAttribute("isnulltip");if(H=="true"&&W!=""&&_!=null){_.value=W;G.setAttribute("isnulltip","true");_.style.color="#999999";_.style.display="";G.style.display="none";G.style.fontStyle="normal";G.style.color="#000"}}var F=parseInt(e.css("line-height"));if(top.isIE){e.css("line-height",(F-4)+"px");Q.css("line-height",(F-4)+"px")}if(C=="true"){G.dataDom=top.WatCore.createXmlDom("<searchs/>");var P=D+"_searchlist";if(!R.getElementById(P)){var a=R.createElement("div"),B=$(a);B.attr("id",P);B.css({display:"none","z-index":"1000","height":"auto","width":$(G.parentElement).width()+"px"});B.addClass("bdsug");$(R.body).append(B);G.sobj=a}$(G).keyup(function(_){var B=_.keyCode,$=$$(DxTextField._rInput,DxTextField._winId,DxTextField._doc).attr("_showpanel");if($=="1")DxTextField.searchkeyup(D,_.keyCode,this.value,A,_)});var X=WatCore.getWindow(A,c);if(window.attachEvent)X.document.attachEvent("onclick",DxTextField.hideOnClick);else X.document.addEventListener("click",DxTextField.hideOnClick,false)}};DxTextField.hideOnClick=function(){if($$(DxTextField._rInput,DxTextField._winId,DxTextField._doc).attr("_showpanel")=="1"){var $=DxTextField._winId;DxTextField.hide(DxTextField._rInput,$)}};DxTextField.hide=function(D,B){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),C=D+"_searchlist";try{$$(D,B,_).attr("_showpanel","0");$$(C,B,_).hide()}catch($){}};DxTextField.textbuttonclick=function(_,A,$){WatCore.call(_,A,"textbuttonclick&"+$)};DxTextField.E_textFieldKeyPress=function(A,$,E){var C;if(A.keyCode)C=A.keyCode;else C=A.which;if(C==13){var D=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,D),_=top.E_getObject(E,StrCtrID,B);Format.storeValue(E,$,_.value,_.type);if(!_.readOnly)WatCore.call(E,$,"enter")}};DxTextField.keyupaction=function(F,E,D){var A=0;if(F.altKey)A=1;if(F.ctrlKey)A=2;if(F.shiftKey)A=4;if(F.shiftKey&&F.altKey)A=5;if(F.altKey&&F.ctrlKey)A=3;if(F.shiftKey&&F.ctrlKey)A=6;if(F.shiftKey&&F.altKey&&F.ctrlKey)A=7;var $=A*100+F.keyCode,C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),_=top.E_getObject(E,D,B);Format.storeValue(E,D,_.value,_.type);WatCore.sendACallToChart(E,D,"keyPop&"+$)};DxTextField.quickInputBegin=function(_,C,B,$){var A=WatCore.getWindow(C,_);A.setTimeout("top.DxTextField.quickInputEnd('"+C+"','"+B+"')",$)};DxTextField.quickInputEnd=function(C,B){var A=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,A),$=top.E_getObject(C,B,_);$.blur();$.quickin="true"};DxTextField.listenKey=function(E,C,K,B){var _=0;if(E.altKey)_=1;var J=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,J),H=top.E_getObject(C,K,A);Format.storeValue(C,K,H.value,H.type);if(H.quickinput=="true"){var I=H.hiddentime;DxTextField.quickInputBegin(J,C,K,I)}if(E.ctrlKey)_=2;if(E.shiftKey)_=4;if(E.shiftKey&&E.altKey)_=5;if(E.altKey&&E.ctrlKey)_=3;if(E.shiftKey&&E.ctrlKey)_=6;if(E.shiftKey&&E.altKey&&E.ctrlKey)_=7;var G=_*100+E.keyCode,D=B.split("|");for(var F=0;F<D.length;F++)if(G==D[F]){Format.storeValue(C,K,H.value,H.type);if(!H.readOnly)return top.WatCore.listenKey(E,C,K,B)}_=0;if(E.keyCode!=16&&E.keyCode!=17&&E.keyCode!=18){if(E.altKey)_=1;if(E.ctrlKey)_=2;if(E.shiftKey)_=4;if(E.shiftKey&&E.altKey)_=5;if(E.altKey&&E.ctrlKey)_=3;if(E.shiftKey&&E.ctrlKey)_=6;if(E.shiftKey&&E.altKey&&E.ctrlKey)_=7;if(true){E.cancelBubble=true;var G=_*100+E.keyCode,D=B.split("|"),$=false;for(F=0;F<D.length;F++)if(G==D[F]){$=true;break}E.cancelBubble=true;if($){J=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,J),H=top.E_getObject(C,K,A);Format.storeValue(C,K,H.value,H.type);if(!H.readOnly)WatCore.call(C,K,"keyEvent&"+G,E)}}}return true};DxTextField.__getAbsoluteCoords=function(_){var A=new Object();A.x=0;A.y=0;try{while(_){A.x=A.x+_.offsetLeft+_.clientLeft+_.scrollLeft;A.y=A.y+_.offsetTop+_.clientTop+_.scrollTop;if(_.tagName=="body")break;_=_.offsetParent}}catch($){}return A};DxTextField.focusFunctionnull=function(H,B){var G=top.E_clientModel.E_getWindow(H),F=WatCore.getWindowDoc(H,G),I=WatCore.getWindow(H,G),C=top.E_getObject(H,B,F),E=C.getAttribute("cannull"),A=C.getAttribute("nulltip"),_=C.getAttribute("isnulltip"),D=top.E_getObject(H,B+"_null",F);if($(C).attr("enabled")=="false"){D.blur();return}if(_=="true"&&D!=null){C.setAttribute("isnulltip","false");C.value="";C.style.display="";D.style.display="none";C.style.fontStyle="normal";C.style.color="#000";C.focus()}};DxTextField.focusFunction=function(E,B){var I=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,I),F=WatCore.getWindow(E,I),G=top.E_getObject(E,B,C);F.EventRouter.closePopWin();if(G.readOnly)return;var J=G.getAttribute("tValue");if(J!=null&&J!="null")G.value=J;G.select();var H=G.poplocation;if(G.getAttribute("eStyle")!="0"){var D=(E==top.DESKTOP)?I:I.contentWindow;try{var P=window.createPopup();$(C).data("maskdialog",P);var L=P.document.body;L.style.color="green";L.style.backgroundColor="lightyellow";L.style.fontSize="12px";L.style.border="solid black 1px";L.innerHTML=G.getAttribute("eError");var K=top.Desktop.textCounter(G.getAttribute("eError"));K=K*7;if(K<parseInt(G.style.width))K=parseInt(G.style.width);var M=F.EventRouter.posPopwin(E,G).y+parseInt(G.style.height),O=F.EventRouter.posPopwin(E,G).x;if(E==top.DESKTOP){if(H=="1")P.show(0,-22,parseInt(K),22,G);else if(H=="16")P.show(0,parseInt(G.style.height)+2,parseInt(K),22,G);else if(H=="2")P.show(-parseInt(K),0,parseInt(K),22,G);else if(H=="8")P.show(parseInt(G.style.width),0,parseInt(K),22,G);else P.show(0,-22,parseInt(K),22,G)}else if(top.isIE){if(H=="1")P.show(0,-22,parseInt(K),22,G);else if(H=="16")P.show(0,parseInt(G.style.height),parseInt(K),22,G);else if(H=="2")P.show(-parseInt(K),0,parseInt(K),22,G);else if(H=="8")P.show(parseInt(G.style.width),0,parseInt(K),22,G);else P.show(0,-22,parseInt(K),22,G)}else{var N=$(I).offset();if(H=="1")P.show(0,-22,parseInt(K),22,G);else if(H=="16")P.show(0,parseInt(G.style.height),parseInt(K),22,G);else if(H=="2")P.show(-parseInt(K),0,parseInt(K),22,G);else if(H=="8")P.show(parseInt(G.style.width),0,parseInt(K),22,G);else P.show(0,-22,parseInt(K),22,G)}}catch(A){}DxTextField._valueProcess(E,B)}else if(G.getAttribute("eError")!=""){P=window.createPopup();G.maskdialog=P;L=P.document.body;L.style.color="green";L.style.backgroundColor="lightyellow";L.style.fontSize="12px";L.style.border="solid black 1px";L.innerHTML=G.getAttribute("eError");K=G.getAttribute("eError").length;K=K*13;if(K<parseInt(G.style.width))K=parseInt(G.style.width);var _=DxTextField.__getAbsoluteCoords(G),O=_.x,M=_.y;if(E==top.DESKTOP){if(H=="1")P.show(0,-22,parseInt(K),22,G);else if(H=="16")P.show(0,parseInt(G.style.height),parseInt(K),22,G);else if(H=="2")P.show(-parseInt(K),0,parseInt(K),22,G);else if(H=="8")P.show(parseInt(G.style.width),0,parseInt(K),22,G);else P.show(0,-22,parseInt(K),22,G)}else if(H=="1")P.show(0,-22,parseInt(K),22,G);else if(H=="16")P.show(0,parseInt(G.style.height),parseInt(K),22,G);else if(H=="2")P.show(-parseInt(K),0,parseInt(K),22,G);else if(H=="8")P.show(parseInt(G.style.width),0,parseInt(K),22,G);else P.show(0,-22,parseInt(K),22,G)}};DxTextField.showSearchList=function(strWinID,strConID,ob,oDoc,keyvalue,vkeycode){if(vkeycode==40||vkeycode==38||vkeycode==13)return;var searchobj=ob.sobj;if(ob.searchtype=="true"&&searchobj!=null){var $searchobj=$(searchobj);if($$(strConID,strWinID,oDoc).attr("_showpanel")!="1"||true){var $pob=$(ob.parentElement),offset=$pob.offset();if(offset.left>0&&offset.top>0){$searchobj.css("left",offset.left);var stop=offset.top+$pob.height()+2;$searchobj.css("top",stop);if(stop+$searchobj.height()>=(oDoc.body.offsetHeight||oDoc.documentElement.clientHeight)){stop=offset.top-$searchobj.height()+2;$searchobj.css("top",stop)}$searchobj.css("display","block")}$$(strConID,strWinID,oDoc).attr("_showpanel","1");DxTextField._rInput=strConID;DxTextField._doc=oDoc;DxTextField._winId=strWinID}var document=ob.dataDom.documentElement,searchs=document.selectNodes("search"),inputtext=ob.value;if(inputtext!=null)inputtext=trim(inputtext).toUpperCase();var height=26,searchwidth=$searchobj.width(),rownum=0,inputlist="<ul>";$searchobj.attr("inputtext",inputtext);var pattern=eval("/.*("+inputtext+").*/");for(var i=0;i<searchs.length;i++){if(rownum>=12)break;var cNode=searchs[i],text=cNode.getAttribute("text"),value=cNode.getAttribute("value"),zjm=cNode.getAttribute("zjm"),input=false;if(inputtext==null||inputtext=="")input=true;else{var result=pattern.test(text);if(result)input=true;else{result=pattern.test(zjm);if(result)input=true}}if(input){inputlist+="<li key='"+value+"' rownum='"+rownum+"' class=\"DxPanelBar_listdetail\" style=\"z-index:1000;;color: #000;font: 13px arial;height:38px;line-height:"+height+"px;padding-left:0px;position: relative;margin-left:0px;cursor: default;height:"+height+"px;\" >"+text+"</li>";rownum++}}if(rownum==0){$$(strConID,strWinID,oDoc).attr("_showpanel","0");$searchobj.css("display","none")}else{var totalheight=height*rownum,$pob=$(ob.parentElement),offset=$pob.offset();if(offset.left>0&&offset.top>0){$searchobj.css("left",offset.left);stop=offset.top+$pob.height()+2;$searchobj.css("top",stop);if(stop+$searchobj.height()>=(oDoc.body.offsetHeight||oDoc.documentElement.clientHeight)){stop=offset.top-totalheight-2;$searchobj.css("top",stop)}$searchobj.css("display","block")}inputlist+="</ul>";$(searchobj).html(inputlist);$(searchobj).attr("rowcount",rownum);if(rownum>0){$(searchobj).attr("currow",0);$(searchobj).find("[rownum=0]").css({"background-color":"#3399FF","color":"#FFFFFF"})}else $(searchobj).attr("currow",-1);for(i=0;i<=rownum;i++){var $o=$("[rownum="+i+"]",searchobj);$o.mouseover(function(){$(this).css({"background-color":"#3399FF","color":"#FFFFFF"})});$o.mouseout(function(){$(this).css({"background-color":"#FFFFFF","color":"#000"})});$o.click(function(){var B=top.E_clientModel.E_getWindow(strWinID),A=WatCore.getWindowDoc(strWinID,B),_=$$(strConID,strWinID,A);DxTextField.setText(strWinID,strConID,A,$(this).text());Format.storeValue(strWinID,strConID,$(this).text(),$(this).attr("type"));WatCore.setParameter(strWinID,strConID,top.DC.VALUE,$(this).attr("key"));top.WatCore.call(strWinID,strConID,"press",event);DxTextField.hide(strConID,strWinID)})}}}};DxTextField._listmouseIn=function(_,A,B){$(B).css({"background":"#3399FF","color":"#FFFFFF"})};DxTextField._listmouseOut=function(_,A,B){$(B).css({"background":"#FFFFFF","color":"#000"})};DxTextField.searchkeyup=function(B,_,H,G,I){var F=top.E_clientModel.E_getWindow(G),D=WatCore.getWindowDoc(G,F),C=top.E_getObject(G,B,D),E=$(C.sobj),J=parseInt(E.attr("currow"));if(_==40||_==38){var A=parseInt(E.attr("rowcount"));E.find("[rownum="+J+"]").mouseout();if(_==40){if(++J>=A)J=0}else if(--J<=-1)J=A-1;E.find("[rownum="+J+"]").mouseover();E.attr("currow",J)}else if(_==13){E.find("[rownum="+J+"]").click();stopEvent(I)}};DxTextField._valueProcess=function(G,A){try{var D=top.E_clientModel.E_getWindow(G),C=WatCore.getWindowDoc(G,D),B=top.E_getObject(G,A,C),E=WatCore.getWindow(G,D),H=B.getAttribute("maskdialog");if(!H)return;var F=H.document.body;if(B.value==""||B.value==null){F.innerHTML=B.getAttribute("eError");F.style.color="green"}else{var $=Format.blurFunction(B);if($){F.innerHTML=B.getAttribute("eError");F.style.color="green"}else{F.innerHTML=B.getAttribute("eError");F.style.color="red"}if(B.getAttribute("iscannumber")=="true"){$=Format.isNumber(B.value);if(!$&&B.value.charAt(B.value.length-1)!=".")DxTextField.clearNoNum(B)}}}catch(_){}};DxTextField.keyUpFunction=function(D,$,A){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),_=top.E_getObject(D,$,B);Format.storeValue(D,$,_.value,_.type);DxTextField._valueProcess(D,$);var E=A.keyCode;DxTextField.showSearchList(D,$,_,B,_.value,E)};DxTextField.blurFunction=function(Q,A){stopEvent(A);var X=top.E_clientModel.E_getWindow(Q),N=WatCore.getWindowDoc(Q,X),G=top.E_getObject(Q,A,N),E=G.type;if(G.readOnly)return;G.value=htmlEncode(G.value);var M=$(N).data("maskdialog");if(M)M.hide();var K=G.getAttribute("cookieName"),J=G.getAttribute("cookieEnabled");if(G.getAttribute("eStyle")!="0"){var P=WatCore.getWindow(Q,X),Y=G.getAttribute("maskdialog");if(Y)Y.hide();if((G.value==""||G.value==null)&&G.getAttribute("nullflag")=="false"){G.setAttribute("tValue",G.value);G.setAttribute("resultValue",G.value);G.setAttribute("sValue",G.value);if(J=="true")if(K!=""&&K!=null)if("true"==$(G).attr("cookieencryption")){var R=$.base64Encode(G.value);top.WatCore.SetCookie(K+"_name",R)}else top.WatCore.SetCookie(K+"_name",G.value);Format.storeValue(Q,A,G.getAttribute("tValue"),E);if(G.getAttribute("action")=="true"&&!G.readOnly&&G.searchtype!="true")top.WatCore.call(Q,A,"press",event);var H=G.getAttribute("cannull"),U=G.getAttribute("nulltip"),F=G.getAttribute("isnulltip"),B=top.E_getObject(Q,A+"_null",N);if(H=="true"&&B!=null){B.value=U;G.setAttribute("isnulltip","true");B.style.color="#999999";G.style.display="none";B.style.display=""}return}if((G.value==G.getAttribute("resultValue")))if(G.value!=""&&G.value!=null){if(G.getAttribute("sValue")==null||G.getAttribute("sValue")==undefined)G.value="";else G.value=G.getAttribute("sValue");if(J=="true")if(K!=""&&K!=null)if("true"==$(G).attr("cookieencryption")){R=$.base64Encode(G.value);top.WatCore.SetCookie(K+"_name",R)}else top.WatCore.SetCookie(K+"_name",G.value);return}var _=Format.blurFunction(G);if(_){if(G.getAttribute("iscannumber")=="true"){DxTextField.clearNoNum(G);var W=G.getAttribute("inputnumbers");if(W!=null){var O=W.split(","),V;for(var S=0;S<O.length;S++)if(G.value==O[S]){V="ok";break}if(V!="ok"){G.value="";Format.storeValue(Q,A,G.value,E);alert("\u4e0d\u5141\u8bb8\u8f93\u5165\u6b64\u503c");G.focus()}}G.setAttribute("tValue",G.value);G.setAttribute("sValue",G.value)}G.setAttribute("resultValue",G.value);G.value=G.getAttribute("sValue");if(J=="true")if(K!=""&&K!=null)if("true"==$(G).attr("cookieencryption")){R=$.base64Encode(G.value);top.WatCore.SetCookie(K+"_name",R)}else top.WatCore.SetCookie(K+"_name",G.value);Format.storeValue(Q,A,G.getAttribute("tValue"),E);if(G.getAttribute("action")=="true"&&!G.readOnly&&G.searchtype!="true")top.WatCore.call(Q,A,"press",event)}else{alert(G.getAttribute("eError"));WatCore.setFocus(G)}}else{P=WatCore.getWindow(Q,X);if((G.value==""||G.value==null)&&G.getAttribute("nullflag")=="false"){G.setAttribute("tValue",G.value);G.setAttribute("resultValue",G.value);G.setAttribute("sValue",G.value);if(J=="true")if(K!=""&&K!=null)if("true"==$(G).attr("cookieencryption")){R=$.base64Encode(G.value);top.WatCore.SetCookie(K+"_name",R)}else top.WatCore.SetCookie(K+"_name",G.value);Format.storeValue(Q,A,G.getAttribute("tValue"),E);if(G.getAttribute("action")=="true"&&!G.readOnly&&G.searchtype!="true")top.WatCore.call(Q,A,"press",event);H=G.getAttribute("cannull"),U=G.getAttribute("nulltip"),F=G.getAttribute("isnulltip"),B=top.E_getObject(Q,A+"_null",N);if(H=="true"&&B!=null){B.value=U;G.setAttribute("isnulltip","true");B.style.color="#999999";B.style.display="";G.style.display="none"}return}if(G.getAttribute("iscannumber")=="true"){DxTextField.clearNoNum(G);W=G.getAttribute("inputnumbers");if(W!=null){O=W.split(",");if((G.value==""||G.value==null)){G.setAttribute("tValue",value);G.setAttribute("sValue",value);G.setAttribute("resultValue",value);Format.storeValue(Q,A,value,E);return}V;for(S=0;S<O.length;S++)if(G.value==O[S]){V="ok";break}if(V!="ok"){G.value="";Format.storeValue(Q,A,G.value,E);alert("\u4e0d\u5141\u8bb8\u8f93\u5165\u6b64\u503c");G.focus()}}G.setAttribute("tValue",G.value);G.setAttribute("sValue",G.value)}var L=G.getAttribute("mutextcontrols");if(L!=null&&L!=""){var T=L.split(",");for(S=0;S<T.length;S++){var C=top.E_getObject(Q,T[S],N);if(C!=null&&C.value!=null&&C.value!="")if(G.value==C.value){G.value="";Format.storeValue(Q,A,G.value,E);alert("\u5df2\u7ecf\u8f93\u5165\u6b64\u503c");G.focus();G.setAttribute("tValue",G.value);G.setAttribute("sValue",G.value);G.setAttribute("resultValue",G.value);break}}}if(G.value==G.getAttribute("resultValue")&&G.sensitive!="true")return;G.setAttribute("resultValue",G.value);G.setAttribute("tValue",G.value);G.setAttribute("sValue",G.value);if(J=="true")if(K!=""&&K!=null)if("true"==$(G).attr("cookieencryption")){R=$.base64Encode(G.value);top.WatCore.SetCookie(K+"_name",R)}else top.WatCore.SetCookie(K+"_name",G.value);Format.storeValue(Q,A,G.value,E);if(G.getAttribute("action")=="true"&&!G.readOnly&&G.searchtype!="true"){var I=G.getAttribute("actionstr");if(I!=null&&I!=""){var D=I.split(",");for(S=0;S<D.length;S++)if(G.value==D[S]){top.WatCore.call(Q,A,"press",event);break}}else top.WatCore.call(Q,A,"press",event)}}if(G.quickinput=="true"&&G.quickin=="true"){G.quickin="false";DxTextField.setEnabled(Q,A,N,"false")}};DxTextField.dblAction=function(D,_){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,_,B);if($(A).attr("enabled")!="false"){DxTextField.blurFunction(D,_);top.WatCore.call(D,_,"dbl",event)}};DxTextField.clearNoNum=function($){$.value=$.value.replace(/[^\d.]/g,"");$.value=$.value.replace(/^\./g,"");$.value=$.value.replace(/\.{2,}/g,".");$.value=$.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".")};DxTextField.setFocus=function(F,$,C,E){var _=top.E_getObject(F,$,C);if(_.value==""||_.value==null){var B=_.getAttribute("cannull"),A=top.E_getObject(F,$+"_null",C);if(B=="true"&&A!=null&&_.style.visibility!="hidden"&&!_.readOnly){WatCore.setFocus(A);stopEvent(event)}else if(_.style.visibility!="hidden"&&!_.readOnly){WatCore.setFocus(_);stopEvent(event)}else if(_.getAttribute("targetId")!=null)if(WatCore.isKeyCode(E,_.getAttribute("keyCode"))){stopEvent(E);var D=WatCore.getJsFunctionParams(E,_.getAttribute("targetId"),_.getAttribute("keyCode"),_.getAttribute("fname"));WatCore.jsFunctionCall(F,$,D[0],D[1],E)}}else if(_.style.visibility!="hidden"&&!_.readOnly){WatCore.setFocus(_);stopEvent(event)}else if(_.getAttribute("targetId")!=null)if(WatCore.isKeyCode(E,_.getAttribute("keyCode"))){stopEvent(E);D=WatCore.getJsFunctionParams(E,_.getAttribute("targetId"),_.getAttribute("keyCode"),_.getAttribute("fname"));WatCore.jsFunctionCall(F,$,D[0],D[1],E)}};DxTextField.keyFunctionCall=function(C,_,D){var H=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,H),G=top.E_getObject(C,_,A),I=$(G),F=I.attr("kcoList");if(F=="true"){var K=I.attr("targetId"),B=I.attr("keyCode"),J=I.attr("fname"),E=I.attr("fkeys");stopEvent(D);DxTextField.jsFunctionCall(C,_,K,B,J,D,E)}};DxTextField.jsFunctionCall=function(B,$,C,E,K,D,A){if(D.keyCode!=16&&D.keyCode!=17&&D.keyCode!=18&&D.keyCode!=9&&D.keyCode!=27){var H=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,H),F=top.E_getObject(B,$,_);if(F.quickinput=="true"){var G=F.hiddentime;DxTextField.quickInputBegin(H,B,$,G)}if(D.keyCode==37||D.keyCode==39){var I=Desktop.getCursorPsn(F);if(D.keyCode==37&&I!=0)return true;else if(D.keyCode==39&&I<F.value.length)return true}if(WatCore.isKeyCode(D,E)){stopEvent(D);if(F.getAttribute("maskdialog")!=null){F.getAttribute("maskdialog").hide();F.setAttribute("maskdialog",null)}var J=WatCore.getJsFunctionParams(D,C,E,K);WatCore.jsFunctionCall(B,$,J[0],J[1],D);return true}else if(A!=null){Format.storeValue(B,$,F.value,F.type);return WatCore.listenKey(D,B,$,A)}}};DxTextField.clear=function(_,$,A){};DxTextField.setEnabled=function(E,F,D,C){var B=top.E_getObject(E,F,D),A=$("#"+F+"_null",B.parentElement);if(C=="true"){B.readOnly=false;A.get(0).readOnly=false;var _=B.getAttribute("bkcolor");if(_!=null){B.style.backgroundColor=_;A.css("background-color",_)}else{B.style.backgroundColor="window";A.css("background-color","window")}$(B).attr("enabled","true");$(B).css("cursor","");A.css("cursor","")}else{B.readOnly=true;A.get(0).readOnly=true;B.style.backgroundColor="#F0F0F0";A.css("background-color","#F0F0F0");$(B).attr("enabled","false");$(B).css("cursor","not-allowed");A.css("cursor","not-allowed")}};DxTextField.updateData=function(C,D,A,$){var B=top.E_clientModel.E_getWindow(C),_=A.getElementById(D);if(top.isIE)_.dataDom.loadXML($);else _.dataDom=WatCore.createXmlDom($)};DxTextField.setText=function(F,G,E,D){var A=top.E_getObject(F,G,E);top.Format.showFunction(A,D);A.setAttribute("resultValue",D);var C=A.getAttribute("cannull"),_=A.getAttribute("nulltip"),$=A.getAttribute("isnulltip"),B=top.E_getObject(F,G+"_null",E);if(A.value==""||A.value==null){if(C=="true"&&_!=""){B.value=_;A.setAttribute("isnulltip","true");B.style.color="#999999";B.style.display="";A.style.display="none"}}else if(C=="true"&&_!=""){B.style.display="none";A.style.display="";A.style.fontStyle="normal";A.style.color="#000"}};DxTextField.render=function(O,W,V){var C=V.getAttribute("cid"),M=V.selectNodes("*");for(var R=0;R<M.length;R++){var Q=M[R].nodeName;Q=Q.substring(1,Q.length);var I=top.isIE?M[R].text:M[R].textContent;switch(Q){case top.DC.PASSWORD:if(I=="true")top.E_getObject(O,C,W).type="password";else top.E_getObject(O,C,W).type="text";break;case top.DC.CSSNAME:top.E_getObject(O,C,W).className=I;break;case top.DC.READONLY:if(I=="true")top.E_getObject(O,C,W).readOnly="true";else top.E_getObject(O,C,W).readOnly="";break;case top.DC.WIDTH:top.E_getObject(O,C,W).style.width=I;break;case top.DC.HEIGHT:top.E_getObject(O,C,W).style.height=I;break;case top.DC.MAXLENGTH:top.E_getObject(O,C,W).maxLength=I;break;case top.DC.NULLTIP:var F=top.E_getObject(O,C,W),B=top.E_getObject(O,C+"_null",W);if(F!=null&&B!=null){var G=F.getAttribute("cannull");F.setAttribute("nulltip",I);var D=F.getAttribute("isnulltip");if(G=="true"&&B!=null&&F.getAttribute("isnulltip")=="true")B.value=I}break;case top.DC.TEXT:DxTextField.setText(O,C,W,I);break;case top.DC.FOCUS:B=top.E_getObject(O,C+"_null",W);if(B!=null&&B.style.display!="none")DxTextField.setFocus(O,C+"_null",W);else DxTextField.setFocus(O,C,W);break;case top.DC.VISIBLE:var J=top.E_getObject(O,"E_SW_"+C,W),F=J.ownerDocument.getElementById(C);F.style.visibility=I;var P=F.getAttribute("buttons");if(P!=undefined&&P!=""){var L=P.split(",");for(var T=0;T<L.length;T++){var E=L[T],K=J.ownerDocument.getElementById(E);if(K!=null)K.style.visibility=I}}if(I=="visible"){if(F.value==""||F.value==null){var G=F.getAttribute("cannull"),U=F.getAttribute("nulltip"),D=F.getAttribute("isnulltip"),B=top.E_getObject(O,C+"_null",W);if(G=="true"&&U!=""){B.value=U;F.setAttribute("isnulltip","true");B.style.color="#999999";B.style.display="";B.style.visibility=I;F.style.display="none"}}}else if(F.value==""||F.value==null){G=F.getAttribute("cannull"),U=F.getAttribute("nulltip"),D=F.getAttribute("isnulltip"),B=top.E_getObject(O,C+"_null",W);if(B!=null)B.style.display="none"}break;case top.DC.BORDERSTYLE:top.E_getObject(O,C,W).style.borderStyle=I;break;case top.DC.BORDERWIDTH:top.E_getObject(O,C,W).style.borderWidth=I;break;case top.DC.BORDERCOLOR:top.E_getObject(O,C,W).style.borderColor=I;break;case top.DC.X:top.E_getObject(O,"E_SW_"+C,W).style.left=I;break;case top.DC.Y:top.E_getObject(O,"E_SW_"+C,W).style.top=I;break;case top.DC.ENABLED:DxTextField.setEnabled(O,C,W,I);break;case top.DC.fontFamily:top.E_getObject(O,C,W).style.fontFamily=I;break;case top.DC.fontSize:top.E_getObject(O,C,W).style.fontSize=I;break;case top.DC.fontWeight:top.E_getObject(O,C,W).style.fontWeight=I;break;case top.DC.fontStyle:top.E_getObject(O,C,W).style.fontStyle=I;break;case top.DC.textDecoration:top.E_getObject(O,C,W).style.textDecoration=I;break;case top.DC.BACKGROUND:top.E_getObject(O,C,W).style.backgroundColor=I;top.E_getObject(O,C,W).setAttribute("bkcolor",I);break;case top.DC.FOREGROUND:top.E_getObject(O,C,W).style.color=I;break;case top.DC.SELECTED:F=top.E_getObject(O,C,W);if(F==null||F.readOnly)return;F.focus();F.select();break;case top.DC.FOCUSLASTTEXT:F=top.E_getObject(O,C,W);if(F==null||F.readOnly)return;var _=F.createTextRange();_.moveStart("character",F.value.length);_.moveEnd("character",F.value.length);_.collapse(true);_.select();break;case top.DC.POP_LOCATION:F=top.E_getObject(O,C,W);F.poplocation=I;break;case top.DC.UPDATE_DATA:DxTextField.updateData(O,C,W,I);break;case top.DC.BUTTON_VISIBLE:var J=top.E_getObject(O,"E_SW_"+C,W),N=I.split("$"),A=N[0],S=N[1],X=$("#"+C+"_button"+"_"+A,J);if(S=="true")X.css("visibility","visible");else X.css("visibility","hidden");break;case top.DC.SENSITIVE:F=top.E_getObject(O,C,W);F.sensitive=I;break;case top.DC.JSFUNCTION_KEYCODE:var F=top.E_getObject(O,C,W),H=$(F);H.attr("keyCode",I);break;case top.DC.JSFUNCTION_TARGET:F=top.E_getObject(O,C,W),H=$(F);H.attr("targetId",I);break;case top.DC.JSFUNCTION_NAME:F=top.E_getObject(O,C,W),H=$(F);H.attr("fname",I);break;case top.DC.JSFUNCTION_KCOLIST:F=top.E_getObject(O,C,W),H=$(F);H.attr("kcoList",I);break;default:break}}};function DxTextArea(){}DxTextArea.labelcall=function(C,$){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,$,A);if(DxTextArea.pdcd(_)){value=_.value.replaceAll("]]>","$watcdatatail$");WatCore.setParameter(C,$,top.DC.TEXT,htmlEncode(value));WatCore.call(C,$,"enter")}else _.focus()};DxTextArea.click=function(E,_){try{var D=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,D),A=top.E_getObject(E,_,B);if(top.isIE){A.focus();var F=A.document.selection,C=F.createRange();A.rng=C}}catch($){}};DxTextArea.dbllabelcall=function(C,$){var B=top.E_clientModel.E_getWindow(C),A=(C==top.DESKTOP)?B.document:B.contentWindow.document,A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,$,A);if(DxTextArea.pdcd(_)){value=_.value.replaceAll("]]>","$watcdatatail$");WatCore.setParameter(C,$,top.DC.TEXT,htmlEncode(value));WatCore.call(C,$,"dbl")}else _.focus()};DxTextArea.putvalue=function(C,$){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,$,A);if(DxTextArea.pdcd(_)){value=_.value.replaceAll("]]>","$watcdatatail$");WatCore.setParameter(C,$,top.DC.TEXT,value)}else _.focus()};DxTextArea.pdcd=function(A){var $=A.maxlength;if($==null)return true;var _=Desktop.textCounter(A.value);if(parseInt($)<_){alert("\u8f93\u5165\u5b57\u7b26\u64cd\u8fc7\u5141\u8bb8\u5b57\u7b26\u6570"+$+"\u4e2a");return false}return true};DxTextArea.listenKey=function(H,G,F,D){var A=0;if(H.altKey)A=1;if(H.ctrlKey)A=2;if(H.shiftKey)A=4;if(H.shiftKey&&H.altKey)A=5;if(H.altKey&&H.ctrlKey)A=3;if(H.shiftKey&&H.ctrlKey)A=6;if(H.shiftKey&&H.altKey&&H.ctrlKey)A=7;var $=A*100+H.keyCode,C=top.E_clientModel.E_getWindow(G),B=WatCore.getWindowDoc(G,C),_=top.E_getObject(G,F,B);value=_.value.replaceAll("]]>","$watcdatatail$");WatCore.setParameter(G,F,top.DC.TEXT,htmlEncode(value));DxTextArea.click(G,F);var E=D.split("|");for(var I=0;I<E.length;I++)if($==E[I])if(!_.readOnly)return top.WatCore.listenKey(H,G,F,D)};DxTextArea.setFocus=function(B,$,A){var _=top.E_getObject(B,$,A);WatCore.setFocus(_)};DxTextArea.keyFunctionCall=function(H,A,J){var F=top.E_clientModel.E_getWindow(H),C=WatCore.getWindowDoc(H,F),B=top.E_getObject(H,A,C),E=$(B),_=E.attr("kcoList");if(_=="true"){var I=E.attr("targetId"),G=E.attr("keyCode"),D=E.attr("fname");DxTextArea.jsFunctionCall(H,A,I,G,D,J)}};DxTextArea.jsFunctionCall=function(C,_,B,$,E,D){DxTextArea.click(C,_);if(WatCore.isKeyCode(D,$)){var A=WatCore.getJsFunctionParams(D,B,$,E);WatCore.jsFunctionCall(C,_,A[0],A[1])}};DxTextArea.getSelectedText=function(G,_){var $="",E=top.E_clientModel.E_getWindow(G),B=WatCore.getWindowDoc(G,E),F=top.E_getObject(G,_,B);if(top.isIE){var H=F.ownerDocument.selection,D=H.createRange();D.colapse;if((H.type=="Text"||H.type=="None")&&D!=null)if(D.text.length>0)$=D.text;$=D.text.toString().length;WatCore.setParameter(G,_,top.DC.SELECTTEXT,D.text.toString())}else{if(browserVersion.indexOf("FIREFOX")>-1){var A=0,I=0,C=0;if(typeof(F.selectionStart)=="number"){A=F.selectionStart;I=F.selectionEnd;if(I>A)C=I-A}$=F.value.substr(A,C)}else{H=F.ownerDocument.getSelection();$=H.toString()}WatCore.setParameter(G,_,top.DC.SELECTTEXT,$)}};DxTextArea.insertText=function(G,$,A,D){var F=top.E_getObject(G,$,A);if(top.isIE){F.focus();var C=F.rng;if(C==null)C=F.document.selection.createRange();C.text=D;F.focus();C.moveStart("character",-1);F.rng=C}else{var _=F.selectionStart,E=F.selectionEnd,B=F.scrollTop;F.value=F.value.substring(0,_)+D+F.value.substring(E,F.value.length);F.focus();F.selectionStart=_+D.length;F.selectionEnd=_+D.length;F.scrollTop=B}};DxTextArea.render=function(_,G,C){var H=C.getAttribute("cid"),B=C.selectNodes("*");for(var J=0;J<B.length;J++){var I=B[J].nodeName;I=I.substring(1,I.length);var F=top.isIE?B[J].text:B[J].textContent;switch(I){case top.DC.TEXT:var D=F.replaceAll("\\$watcdatatail\\$","]]>");if(!top.isIE){D=D.replaceAll("<br>","\n");$(top.E_getObject(_,H,G)).val(D)}else{D=D.replaceAll("<br>","\r\n");$(top.E_getObject(_,H,G)).val(D)}break;case top.DC.EMR_INPUT_TEXT:D=F.replaceAll("\\$watcdatatail\\$","]]>");top.DxTextArea.insertText(_,H,G,D);break;case top.DC.EDITABLE:var A=top.E_getObject(_,H,G);if(F=="true"){A.readOnly="";A.style.backgroundColor=top.DxCache.getAttribute(_,H,"background")}else{A.readOnly="true";top.DxCache.setAttribute(_,H,"background",A.style.backgroundColor);A.style.backgroundColor="threedface"}break;case top.DC.FOCUS:DxTextArea.setFocus(_,H,G);break;case top.DC.SCROLLABLE:if(F=="true")top.E_getObject(_,H,G).style.overflow="auto";else top.E_getObject(_,H,G).style.overflow="hidden";break;case top.DC.WRAP:if(F=="true")top.E_getObject(_,H,G).wrap="soft";else top.E_getObject(_,H,G).wrap="off";break;case top.DC.WIDTH:top.E_getObject(_,H,G).style.width=F;break;case top.DC.HEIGHT:top.E_getObject(_,H,G).style.height=F;break;case top.DC.VISIBLE:top.E_getObject(_,"E_SW_"+H,G).style.visibility=F;break;case top.DC.BORDERSTYLE:top.E_getObject(_,H,G).style.borderStyle=F;break;case top.DC.BORDERWIDTH:top.E_getObject(_,H,G).style.borderWidth=F;break;case top.DC.BORDERCOLOR:top.E_getObject(_,H,G).style.borderColor=F;break;case top.DC.X:top.E_getObject(_,"E_SW_"+H,G).style.left=F;break;case top.DC.Y:top.E_getObject(_,"E_SW_"+H,G).style.top=F;break;case top.DC.ENABLED:A=top.E_getObject(_,H,G);if(F=="true"){A.readOnly=false;A.style.backgroundColor=top.DxCache.getAttribute(_,H,"background");A.style.cursor=""}else{A.readOnly=true;top.DxCache.setAttribute(_,H,"background",A.style.backgroundColor);A.style.backgroundColor="#F0F0F0";A.style.cursor="not-allowed"}break;case top.DC.fontFamily:top.E_getObject(_,H,G).style.fontFamily=F;break;case top.DC.fontSize:top.E_getObject(_,H,G).style.fontSize=F;break;case top.DC.fontWeight:top.E_getObject(_,H,G).style.fontWeight=F;break;case top.DC.fontStyle:top.E_getObject(_,H,G).style.fontStyle=F;break;case top.DC.textDecoration:top.E_getObject(_,H,G).style.textDecoration=F;break;case top.DC.BACKGROUND:top.E_getObject(_,H,G).style.backgroundColor=F;break;case top.DC.FOREGROUND:top.E_getObject(_,H,G).style.color=F;break;case top.DC.JSFUNCTION_KEYCODE:var A=top.E_getObject(_,H,G),E=$(A);E.attr("keyCode",F);break;case top.DC.JSFUNCTION_TARGET:A=top.E_getObject(_,H,G),E=$(A);E.attr("targetId",F);break;case top.DC.JSFUNCTION_NAME:A=top.E_getObject(_,H,G),E=$(A);E.attr("fname",F);break;case top.DC.JSFUNCTION_KCOLIST:A=top.E_getObject(_,H,G),E=$(A);E.attr("kcoList",F);break;default:break}}};function DxCoolTab(){}DxCoolTab.initTab=function(D,E,S,H,L,O,A,G,N,J,R){var P=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,P),M=top.E_getObject(D,E,C),I=M.ownerDocument.getElementById(E+"tab");M.tabWrap=I;M.tabControlButton=M.ownerDocument.getElementById(E+"tab_controlbuttons");M.tabHeadArea=M.ownerDocument.getElementById(E+"tab_headArea");var T=M.tabHeadArea,K=0,Q=new Array(),_=new Array();M.sons=Q;M.heads=_;$(M).unbind("resize");$(M).bind("resize",D,function($){top.DxCoolTab._changeSize(M,M.tabWrap)});for(var F=0;F<S;F++){M.sons[F]=M.ownerDocument.getElementById(E+"son"+F);M.heads[F]=M.ownerDocument.getElementById(E+"tab_head"+F)}M.selectHead=M.heads[0];for(F=0;F<T.childNodes.length-1;F++)K+=parseInt(T.children[F].style.width);M.nWidth=K;M.notify=O;M.asyn=G;M.issinglepage=N;M.isenabledcontrolbutton=J;M.isAutoExpandHeadWidth=R;try{$(M.ownerDocument).ready(function(){top.DxCoolTab._changeSize(M,M.tabWrap)})}catch(B){}DxCoolTab.selectPageServer(D,M,H)};DxCoolTab.tabContentWidth=function($,_,B){var A=B.parentElement;return A.clientWidth};DxCoolTab.tabContentHeight=function($,_,B){var A=B.parentElement;return A.clientHeight};DxCoolTab.changeSize=function(_,A,B){var $=B.parentElement;DxCoolTab._changeSize($,B)};DxCoolTab._changeSize=function(M,I){if(M==null)return;if(M.tabWrap!=null)if(parseInt(M.tabWrap.clientWidth)>10)if(M.nWidth>parseInt(M.tabWrap.clientWidth)&&I.isenabledcontrolbutton)M.tabControlButton.style.visibility="visible";var _=I.getAttribute("placement"),A=M.ownerDocument.getElementById(M.id+"contentWrap");if(A==null)return;var H=I.clientWidth,K=I.clientHeight;if(H==0||K==0){var F=WatCore.getClientRect(M);H=F.w;K=F.h}if(_=="left"){if(top.isIE){if(parseInt(H)<=32)A.style.width=parseInt(M.cwidth)+"%";else A.style.width=(parseInt(H)-32)+"px"}else if(parseInt(H)<=34)A.style.width=parseInt(M.cwidth)+"%";else A.style.width=(parseInt(H)-34)+"px";var B=parseInt(K);if((B)>0){if(top.isIE)A.style.height=B+"px";else A.style.height=(B-2)+"px"}else A.style.height=parseInt(M.cheight)+"%";var C=M.ownerDocument.getElementById(M.id+"tab_controlbuttons"),D=parseInt(K)-40;if(D<0)D=0;C.style.top=D+"px"}else if(_=="bottom"){if(parseInt(H)<=0)A.style.width=parseInt(M.cwidth)+"%";else{if(top.isIE)A.style.width=parseInt(H)+"px";else A.style.width=(parseInt(H)-2)+"px";var E=M.heads.length;if(E>0&&M.isAutoExpandHeadWidth=="true"){var J=parseInt(parseInt(H)/E),L=0;for(var G=0;G<M.heads.length;G++){$(M.heads[G]).width(J);$("#mid",M.heads[G]).width(J-16);$("#right",M.heads[G]).css("left",(J-8));$(M.heads[G]).css("left",L);L+=J}}}B=parseInt(K);if(top.isIE){if((B)>32)A.style.height=(parseInt(B)-32)+"px";else A.style.height=parseInt(M.cheight)+"%"}else if((B)>35)A.style.height=(parseInt(B)-35)+"px";else A.style.height=parseInt(M.cheight)+"%";C=M.ownerDocument.getElementById(M.id+"tab_controlbuttons"),D=parseInt(H)-40;if(D<0)D=0;C.style.left=D+"px"}else if(_=="right"){if(top.isIE){if(parseInt(H)<=32)A.style.width=parseInt(M.cwidth)+"%";else A.style.width=(parseInt(H)-32)+"px"}else if(parseInt(H)<=34)A.style.width=parseInt(M.cwidth)+"%";else A.style.width=(parseInt(H)-34)+"px";B=parseInt(K);if((B)>0){if(top.isIE)A.style.height=B+"px";else A.style.height=(B-2)+"px"}else A.style.height=parseInt(M.cheight)+"%";C=M.ownerDocument.getElementById(M.id+"tab_controlbuttons"),D=parseInt(K)-40;if(D<0)D=0;C.style.top=D+"px"}else if(_=="top"){if(parseInt(H)<=0)A.style.width=parseInt(M.cwidth)+"%";else{if(top.isIE)A.style.width=parseInt(H)+"px";else A.style.width=(parseInt(H)-2)+"px";E=M.heads.length;if(E>0&&M.isAutoExpandHeadWidth=="true"){J=parseInt(parseInt(H)/E),L=0;for(G=0;G<M.heads.length;G++){$(M.heads[G]).width(J);$("#mid",M.heads[G]).width(J-16);$("#right",M.heads[G]).css("left",(J-8));$(M.heads[G]).css("left",L);L+=J}}}B=parseInt(K);if(top.isIE){if((B)>32)A.style.height=(parseInt(B)-32)+"px";else A.style.height=parseInt(M.cheight)+"%"}else if((B)>35)A.style.height=(parseInt(B)-35)+"px";else A.style.height=parseInt(M.cheight)+"%";C=M.ownerDocument.getElementById(M.id+"tab_controlbuttons"),D=parseInt(H)-40;if(D<0)D=0;C.style.left=D+"px"}};DxCoolTab.changeSize2=function(F){var _=F.ownerDocument.getElementById(F.id+"contentWrap"),A=F.ownerDocument.getElementById(F.id+"tab"),$=A.getAttribute("placement"),E=F.getAttribute("cwidthunit"),D=F.getAttribute("cheightunit");if($=="left"){if("%"==E)_.style.width="98%";else _.style.width=(parseInt(A.style.width)-22)+"px";if("%"==D)_.style.height="100%";else _.style.height=parseInt(A.style.height)+"px"}else if($=="bottom"){if("%"==E)_.style.width="100%";else _.style.width=parseInt(A.style.width)+"px";if("%"==D)_.style.height=parseInt(F.cheight-4)+"%";else _.style.height=(parseInt(A.style.height)-22)+"px"}else if($=="right"){if("%"==E)_.style.width="98%";else _.style.width=(parseInt(A.style.width)-22)+"px";if("%"==D)_.style.height="100%";else _.style.height=parseInt(A.style.height)+"px"}else if($=="top"){if("%"==E)_.style.width="100%";else _.style.width=parseInt(A.style.width)+"px";if("%"==D)_.style.height=parseInt(F.cheight-4)+"%";else _.style.height=(parseInt(A.style.height)-22)+"px"}var C=F.ownerDocument.getElementById(F.id+"tab_controlbuttons"),B=parseInt(F.clientWidth)-40;if(B<0)B=0;C.style.left=B+"px"};DxCoolTab.selectPageServer=function(A,_,$){var B=_.heads[$];DxCoolTab._select(_,B);WatCore.setParameter(A,_.id,top.DC.SELECTEDINDEX,B.getAttribute("index"))};DxCoolTab.selectPage=function(D,B,C){var A=B.parentElement.parentElement.parentElement,_=B,E=$(_).attr("disabled");if(E=="disabled")return;DxCoolTab._select(A,_);WatCore.setParameter(D,A.id,top.DC.SELECTEDINDEX,_.getAttribute("index"));if(A.notify=="true")if(A.asyn=="true"||C==true)WatCore.sendACallToChartNotifyDataChange(D,A.id,"Select_changed");else WatCore.call(D,A.id,"Select_changed")};DxCoolTab._initselect=function(C,A){var _=C.tabWrap.getAttribute("placement");if(_=="top")_="";else _="-"+_;for(var D=0;D<A;D++){var B=C.heads[D];if(B.id!=C.selectHead.id){$("#left",C.selectHead).attr("class","DxCoolTab-head-left"+_);$("#mid",C.selectHead).attr("class","DxCoolTab-head-mid"+_);$("#right",C.selectHead).attr("class","DxCoolTab-head-right"+_);C.sons[C.selectHead.getAttribute("index")].style.visibility="hidden";C.sons[C.selectHead.getAttribute("index")].style.display="none"}else{$("#left",C.selectHead).attr("class","DxCoolTab-head-left-selected"+_);$("#mid",C.selectHead).attr("class","DxCoolTab-head-mid-selected"+_);$("#right",C.selectHead).attr("class","DxCoolTab-head-right-selected"+_);C.sons[C.selectHead.getAttribute("index")].style.visibility="visible";C.sons[C.selectHead.getAttribute("index")].style.display="block"}}};DxCoolTab.visibleChange=function(C,G,D,K,A){A=parseInt(A);var I=top.E_getObject(C,G,D),B=I.heads[A];if(B==null)return;var _=I.getAttribute("placement");if(K=="true"){B.style.visibility="visible";DxCoolTab._select(I,B);WatCore.setParameter(C,I.id,top.DC.SELECTEDINDEX,B.getAttribute("index"))}else{var E=I.oldtabhead;if(B.style.visibility=="hidden")return;B.style.visibility="hidden";$("#splitimage",B).css("visibility","hidden");if(B.id==I.selectHead.id)if(E!=null&&E.getAttribute("index")!=A&&E.style.visibility!="hidden")DxCoolTab.selectPage(C,E,true);else{var J=-1;for(var H=A-1;H>=0;H--)if(I.heads[H].style.visibility!="hidden"&&I.heads[H].disabled!="true"){J=H;break}if(J==-1)for(H=A+1;H<I.heads.length;H++)if(I.heads[H].style.visibility!="hidden"&&I.heads[H].disabled!="true"){J=H;break}if(J>=0)DxCoolTab.selectPage(C,I.heads[J],true)}}if(_=="top"||_=="bottom"){var L=0;for(H=0;H<I.heads.length;H++)if(I.heads[H].style.visibility!="hidden"){I.heads[H].style.left=L+"px";L+=parseInt(I.heads[H].style.width)}}else{var F=0;for(H=0;H<I.heads.length;H++)if(I.heads[H].style.visibility!="hidden"){I.heads[H].style.top=F+"px";F+=parseInt(I.heads[H].style.height)}}};DxCoolTab._select=function(F,D){if(D==null)return false;if(D.id==F.selectHead.id)return false;var A=parseInt(F.selectHead.getAttribute("index")),H=parseInt(D.getAttribute("index")),I=F.getAttribute("cName");if(I=="")I="DxCoolTab";var _=F.tabWrap.getAttribute("placement");if(_=="top")_="";else _="-"+_;var G=F.selectHead;$("#left",G).attr("class",I+"-head-left"+_);$("#mid",G).attr("class",I+"-head-mid"+_);$("#right",G).attr("class",I+"-head-right"+_);$("#mid_text",G).attr("class",I+"-head-mid-text"+_);F.oldtabhead=G;var E=F.issinglepage;if(E!="true"){var B=F.sons[G.getAttribute("index")];B.style.visibility="hidden";$(B).css({"left":"-1111111px","top":"-1111111px"})}F.selectHead=D;$("#left",D).attr("class",I+"-head-left-selected"+_);$("#mid",D).attr("class",I+"-head-mid-selected"+_);$("#right",D).attr("class",I+"-head-right-selected"+_);$("#mid_text",D).attr("class",I+"-head-mid-text-select"+_);if(E!="true"){B=F.sons[D.getAttribute("index")];B.style.visibility="visible";$(B).css({"left":"0px","top":"0px"});if(top.isIE){if(B.style.display=="none")B.style.display="block"}else if(B.style.display=="none")B.style.display="inline-table"}var C=F.heads[A];if(C!=null)$("#splitimage",C).css("visibility","visible");if(A>0){C=F.heads[A-1];if(C!=null)$("#splitimage",C).css("visibility","visible")}if(H>0){C=F.heads[H-1];if(C!=null)$("#splitimage",C).css("visibility","hidden")}C=F.heads[H];if(C!=null)$("#splitimage",C).css("visibility","hidden")};DxCoolTab.changeEnabled=function(C,E,$,_){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),A=B.getElementById(E);if(_=="true")A.heads[$].disabled=false;else A.heads[$].disabled=true};DxCoolTab.moveTabToRight=function(B){var D=B.parentElement.parentElement.parentElement.parentElement,G=D.tabHeadArea,C=0,A=0,E=null,_=0;B.parentNode.children[0].disabled=false;for(var F=0;F<G.childNodes.length-1;F++)if(G.children[F].style.display!="none"&&A==0){G.children[F].style.display="none";E=G.children[F];if(E.id==D.selectHead.id)_=0;A=1;break}var $=D.tabWrap.getAttribute("placement");if($=="left"||$=="right"){for(F=0;F<G.childNodes.length-1;F++){G.children[F].style.top=(parseInt(G.children[F].style.top)-parseInt(E.style.height)+_)+"px";if(G.children[F].style.dispaly!="none")C+=parseInt(G.children[F].style.height)}if(C>parseInt(D.tabWrap.style.height))B.disabled=false;else B.disabled=true}else{for(F=0;F<G.childNodes.length-1;F++){G.children[F].style.left=(parseInt(G.children[F].style.left)-parseInt(E.style.width)+1+_)+"px";if(G.children[F].style.display!="none")C+=parseInt(G.children[F].style.width)}if(C>(parseInt(D.tabWrap.style.width)-parseInt(G.children[G.childNodes.length-2].style.width)))B.disabled=false;else B.disabled=true}};DxCoolTab.moveTabToLeft=function(B){var D=B.parentElement.parentElement.parentElement.parentElement,G=D.tabHeadArea,C=0,A=0,E=null,_=0;B.disabled=true;B.parentNode.children[1].disabled=false;for(var F=G.childNodes.length-2;F>=0;F--)if(G.children[F].style.display=="none"&&A==0){G.children[F].style.display="";B.parentNode.children[0].disabled=false;E=G.children[F];if(E.id==D.selectHead.id)_=0;A=1;if(F==0)B.disabled=true;break}var $=D.tabWrap.getAttribute("placement");if($=="left"||$=="right"){for(F=0;F<G.childNodes.length-1;F++)G.children[F].style.top=(parseInt(G.children[F].style.top)+parseInt(E.style.heigth)+4-_)+"px";if(G.children[F].style!="none")C+=parseInt(G.children[F].style.height)+4;else B.disabled=true}else{for(F=0;F<G.childNodes.length-1;F++)G.children[F].style.left=(parseInt(G.children[F].style.left)+parseInt(E.style.width)-1-_)+"px";if(G.children[F].style!="none")C+=parseInt(G.children[F].style.width);else B.disabled=true}};DxCoolTab._mouseOut=function(E,_){var C=E.parentElement.parentElement.parentElement,G=$(E).attr("disabled");if(G=="disabled"){if(!top.isIE)$("#mid_text",E).css("color","#999999");return}var A=parseInt(C.selectHead.getAttribute("index")),D=parseInt(E.getAttribute("index"));if(A!=D){var F=E.getAttribute("cName");if(F=="")F="DxCoolTab";$("#left",E).attr("class",F+"-head-left"+_);$("#mid",E).attr("class",F+"-head-mid"+_);$("#right",E).attr("class",F+"-head-right"+_);if(D+1!=A)$("#splitimage",E).css("visibility","visible");if(D>0)if(D-1!=A){var B=C.heads[D-1];if(B!=null)$("#splitimage",B).css("visibility","visible")}}};DxCoolTab._mouseIn=function(C,_){var E=$(C).attr("disabled");if(E=="disabled")return;if(C.parentElement.parentElement.parentElement.selectHead.getAttribute("index")!=C.getAttribute("index")){var B=C.parentElement,D=C.getAttribute("cName");if(D=="")D="DxCoolTab";$("#left",C).attr("class",D+"-head-left-mouseover"+_);$("#mid",C).attr("class",D+"-head-mid-mouseover"+_);$("#right",C).attr("class",D+"-head-right-mouseover"+_);$("#splitimage",C).css("visibility","hidden");if(C.getAttribute("index")>0){var A=C.parentElement.parentElement.parentElement.heads[parseInt(C.getAttribute("index"))-1];if(A!=null)$("#splitimage",A).css("visibility","hidden")}}};DxCoolTab.clear=function(_,$,A){};DxCoolTab.render=function(A,J,I){var D=I.getAttribute("cid"),B=I.selectNodes("*");for(var F=0;F<B.length;F++){var E=B[F].nodeName;E=E.substring(1,E.length);var C=E.split("_"),_=0;if(C.length==2){E=C[0];_=C[1]}var K=top.isIE?B[F].text:B[F].textContent;switch(E){case top.DC.TITLE:var H=top.E_getObject(A,D,J),L=$("#mid_text",H.heads[_]).get(0);if(L!=null)top.setInnerText(L,K);break;case top.DC.SELECTEDINDEX:H=top.E_getObject(A,D,J);DxCoolTab.selectPageServer(A,H,parseInt(K));break;case top.DC.ENABLED:H=top.E_getObject(A,D,J);if(_=="all"){for(F=0;F<H.heads.length;F++)if(K=="true"){var G=$("#"+D+"tab_head"+F,H);G.attr("disabled",false);if(!top.isIE)$("#mid_text",G).css("color","")}else{G=$("#"+D+"tab_head"+F,H);G.attr("disabled",true);if(!top.isIE)$("#mid_text",G).css("color","#999999")}}else if(K=="true"){G=$("#"+D+"tab_head"+_,H);G.attr("disabled",false);if(!top.isIE)$("#mid_text",G).css("color","")}else{G=$("#"+D+"tab_head"+_,H);G.attr("disabled",true);if(!top.isIE)$("#mid_text",G).css("color","#999999")}break;case top.DC.VISIBLE:if(_=="all"){if(K=="true")top.E_getObject(A,D,J).style.visibility="visible";else top.E_getObject(A,D,J).style.visibility="hidden"}else DxCoolTab.visibleChange(A,D,J,K,_);break;case top.DC.BORDERSTYLE:top.E_getObject(A,D,J).style.borderStyle=K;break;case top.DC.BORDERWIDTH:top.E_getObject(A,D,J).style.borderWidth=K;break;case top.DC.CHILD_BACKGROUND:top.E_getObject(A,D,J).style.borderWidth=K;break;case top.DC.BORDERCOLOR:top.E_getObject(A,D,J).style.borderColor=K;break;case top.DC.CHILD_FOREGROUND:top.E_getObject(A,D,J).style.borderColor=K;break;case top.DC.X:top.E_getObject(A,"E_SW_"+D,J).style.left=K;break;case top.DC.Y:top.E_getObject(A,"E_SW_"+D,J).style.top=K;break;case top.DC.WIDTH:top.E_getObject(A,D,J).style.width=K;top.E_getObject(A,"E_SW_"+D,J).style.width=K;break;default:break}}};function DxToggleButton(){}DxToggleButton.APPNAME="TOGGLE_APPNAME";DxToggleButton.SELECTED="TOGGLE_SELECTED";DxToggleButton.ImageList=new Array();DxToggleButton.ImageList[0]="/resources/core/CheckBoxOff.png";DxToggleButton.ImageList[1]="/resources/core/CheckBoxOn.png";DxToggleButton.ImageList[2]="/resources/core/CheckBoxOffDisable.png";DxToggleButton.ImageList[3]="/resources/core/CheckBoxOnDisable.png";DxToggleButton.ImageList[4]="/resources/core/RadioButtonOff.png";DxToggleButton.ImageList[5]="/resources/core/RadioButtonOn.png";DxToggleButton.ImageList[6]="/resources/core/RadioButtonOffDisable.png";DxToggleButton.ImageList[7]="/resources/core/RadioButtonOnDisable.png";DxToggleButton.Dx_checkBoxAction=function(D,F,E,J,C){if($(J).attr("ena")=="false")return;var H,B=J.select;if(B!="1")B="1";else B="0";WatCore.setParameter(D,F,top.DC.SELECTED,B);J.select=B;var _=J.getAttribute("appname"),I=J.ownerDocument.getElementById("TBIMG_"+F),A="normal";if(B=="1"){I.src=_+DxToggleButton.ImageList[1];A="bold"}else I.src=_+DxToggleButton.ImageList[0];var G=J.ownerDocument.getElementById("text_"+F);if(G!=null)G.style.fontWeight=A;if(E=="true")top.WatCore.sendACallToChartNotifyDataChange(D,F,"press",C)};DxToggleButton.radioButtonCall=function(D,F,B,_){var E=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,E),A=top.E_getObject(D,F,C);if($(A).attr("ena")=="false")return;if(_=="true")top.WatCore.sendACallToChartNotifyDataChange(D,F,"press",B);else top.WatCore.call(D,F,"press",B)};DxToggleButton.clear=function(_,$,A){};DxToggleButton.render=function(_,M,L){var D=L.getAttribute("cid"),A=L.selectNodes("*");for(var F=0;F<A.length;F++){var E=A[F].nodeName;E=E.substring(1,E.length);var N=top.isIE?A[F].text:A[F].textContent;switch(E){case top.DC.SELECTED:var K=top.E_getObject(_,D,M),H=K.getAttribute("appname"),G=K.ownerDocument.getElementById("TBIMG_"+D),P=N.split("$"),J=P[0],B=P[1],I="normal";if(K.disabled==true){if(B=="1")B="3";else if(B=="0")B="2";if(B=="5"){B="7";I="bold"}else if(B=="4")B="6";if(B=="1"||B=="3"||B=="5"||B=="7")I="bold"}else{if(B=="3")B="1";else if(B=="2")B="0";if(B=="7")B="5";else if(B=="6")B="4";if(B=="1"||B=="3"||B=="5"||B=="7")I="bold"}G.src=H+DxToggleButton.ImageList[parseInt(B)];K.select=J;var O=K.ownerDocument.getElementById("text_"+D);if(O!=null)O.style.fontWeight=I;break;case top.DC.UPDATE:var C=top.E_getObject(_,"E_SW_"+D,M);C.innerHTML="";$(C).html(N);top.E_removeTheObject(_,"E_SW_"+D);top.E_removeTheObject(_,"table_"+D);top.E_removeTheObject(_,"text_"+D);top.E_removeTheObject(_,D);top.E_removeTheObject(_,"TBIMG_"+D);break;case top.DC.WIDTH:top.E_getObject(_,D,M).style.width=N;top.E_getObject(_,"table_"+D,M).style.width=N;break;case top.DC.HEIGHT:top.E_getObject(_,D,M).style.height=N;top.E_getObject(_,"table_"+D,M).style.height=N;break;case top.DC.TEXT:top.E_getObject(_,"text_"+D,M).innerText=N;break;case top.DC.VISIBLE:top.E_getObject(_,"E_SW_"+D,M).style.visibility=N;break;case top.DC.BORDERSTYLE:top.E_getObject(_,D,M).style.borderStyle=N;break;case top.DC.BORDERWIDTH:top.E_getObject(_,D,M).style.borderWidth=N;break;case top.DC.BORDERCOLOR:top.E_getObject(_,D,M).style.borderColor=N;break;case top.DC.X:top.E_getObject(_,"E_SW_"+D,M).style.left=N;break;case top.DC.Y:top.E_getObject(_,"E_SW_"+D,M).style.top=N;break;case top.DC.ENABLED:var K=top.E_getObject(_,D,M),G=K.ownerDocument.getElementById("TBIMG_"+D),H=K.getAttribute("appname"),P=N.split("$"),Q=P[0],B=P[1];$(K).attr("ena",Q);if(Q=="true"){K.disabled=false;$(K).css("cursor","default")}else{K.disabled=true;$(K).css("cursor","not-allowed")}if(K.disabled==true){if(B=="1")B="3";else if(B=="0")B="2";if(B=="5")B="7";else if(B=="4")B="6"}else{if(B=="3")B="1";else if(B=="2")B="0";if(B=="7")B="5";else if(B=="6")B="4"}if(Q=="true")G.src=H+DxToggleButton.ImageList[parseInt(B)];else G.src=H+DxToggleButton.ImageList[parseInt(B)];break;case top.DC.fontFamily:top.E_getObject(_,"text_"+D,M).style.fontFamily=N;break;case top.DC.fontSize:top.E_getObject(_,"text_"+D,M).style.fontSize=N;break;case top.DC.fontWeight:top.E_getObject(_,"text_"+D,M).style.fontWeight=N;break;case top.DC.fontStyle:top.E_getObject(_,"text_"+D,M).style.fontStyle=N;break;case top.DC.textDecoration:top.E_getObject(_,"text_"+D,M).style.textDecoration=N;break;case top.DC.BACKGROUND:top.E_getObject(_,D,M).style.backgroundColor=N;break;case top.DC.FOREGROUND:top.E_getObject(_,D,M).style.color=N;break;case top.DC.TRANSPARENT:top.E_getObject(_,D,M).style.background="transparent";break;default:break}}};function DxDDWComboBox(){}DxDDWComboBox.render=function($,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.DDW_CHANGE:var _=D.getElementById(F);_.innerHTML="";_.parentElement.removeChild(_);top.E_removeTheObject($,F);top.E_removeTheObject($,"E_SW_"+F);var E=top.E_getObject($,"E_SW_"+F,D);insertHTML(E,"BeforeEnd",C);top.E_removeTheObject($,F);top.E_removeTheObject($,"E_SW_"+F);break;default:break}}};var messagealert,messageconfirm;function DxMessageDlg(){}DxMessageDlg.alert=function(C,H,O,I){var P=O.split("$"),N=P[0],K=P[1],M="";if(P.length>=3)M=P[2];if(M=="")if(N=="-100")M="\u5e94\u7528\u63d0\u793a\u6d88\u606f,\u6d88\u606f3\u79d2\u540e\u6216\u56de\u8f66\u6216\u70b9\u51fb\u5176\u4ed6\u533a\u57df\u5173\u95ed";else M="\u5e94\u7528\u63d0\u793a\u6d88\u606f";top.activeState=true;top.activeValueSendState=true;if(!messagealert){var A=["<div class=\"dialog-delorder\" onmousedown=\"top.DxMessageDlg.beginDrag2(this,document,event);\" style=\"width:460px;height:260px;border:1px solid #488fcd;\">","<div class=\"dialog-bar\" style=\"cursor:pointer;width:460px;\">","\u5e94\u7528\u63d0\u793a\u6d88\u606f","</div>","<IMG class=\"dialog-bar-image\" style=\"RIGHT: 12px; POSITION: absolute;top:10px;cursor:pointer\" onclick=\"top.DxMessageDlg.hidden();\" src=\""+watLocation2+"/resources/core/x.png\">","<div class=\"dialog-content\" style=\"height:138px\" >","<div class=\"dialog-content-content\" onmousedown=\"event.cancelBubble = true;return false;\" style=\"overflow-y:auto;width:426px;margin:17px 17px;text-align:center;font-size:15px;color:#000\">222</div>","</div>","<div class=\"dialog-console\">","<a class=\"console-btn-confirm\" style=\"border:1px solid #000;margin: 0;color: #fff;background:url("+watLocation2+"/resources/component/confirm.png) repeat-x\" href=\"#\" title=\"\u786e\u5b9a\">\u786e\u5b9a</a>","</div>","</div>"].join(""),D=$(A).appendTo(document.body);messagealert=D.get(0)}var J=$(messagealert);J.css("zIndex","9100");J.show();var F=J.find(".dialog-bar");F.text(M);var L=J.find(".dialog-content-content");L.html(K);if(top.isIE)J.css("background","#e9e9e9");else J.css("background","#ffffff");if(N=="-100"){J.css("height","207px");var S=J.find(".dialog-console");S.css("display","none");var Q=J.find(".dialog-bar-image");Q.css("visibility","visible");var B=J.find(".dialog-content");B.css("height","138px");$("#messagecover").css("display","block");$("#messagecover").unbind("mousedown");$("#messagecover").bind("mousedown",function(){DxMessageDlg.hidden()});J.unbind("keydown");J.keydown(function($){var _=$.keyCode;if(_==13)DxMessageDlg.hidden()});var G=(parseInt(document.body.clientWidth||document.documentElement.clientWidth)-parseInt(messagealert.style.width))/2,E=(parseInt(document.body.clientHeight||document.documentElement.clientHeight)-parseInt(messagealert.style.height))/2;J.css({"top":E+"px","left":G+"px"});var _=window.setTimeout("top.DxMessageDlg.hidden()",3000);J.attr("timeflag",_);J.focus();var R=J.find("a.console-btn-confirm");R.focus()}else{B=J.find(".dialog-content");B.css("height","151px");Q=J.find(".dialog-bar-image");Q.css("visibility","hidden");J.unbind("keydown");$("#messagecover").css("display","block");$("#messagecover").unbind("click");J.css("height","260px");S=J.find(".dialog-console");S.css("display","block");R=J.find("a.console-btn-confirm");R.focus();R.unbind("mousedown");R.bind("mousedown",function(){J.hide();$("#messagecover").css("display","none");if(N!="0")if(I=="true")top.WatCore.call(C,H,"sysmsgOK&"+N);else top.WatCore.call(C,H,"msgOK&"+N);if(C!=top.DESKTOP)E_focusWindow(C,false);else E_focusWindow(C,true)});R.unbind("keyup");R.keyup(function($){var _=$.keyCode;if(_==13)R.trigger("mousedown");stopEvent($)});G=(parseInt(document.body.clientWidth||document.documentElement.clientWidth)-parseInt(messagealert.style.width))/2,E=(parseInt(document.body.clientHeight||document.documentElement.clientHeight)-parseInt(messagealert.style.height))/2;J.css({"top":E+"px","left":G+"px"})}};DxMessageDlg.hidden=function(){try{var B=$(messagealert),_=B.attr("timeflag");window.clearInterval(_);B.attr("timeflag",null);B.hide();$("#messagecover").css("display","none")}catch(A){}};DxMessageDlg.beginDrag2=function(A,$,_){if(_.target.className=="dialog-bar")top.DxDragUtil.beginDrag2(A,$,_)};DxMessageDlg.confirm=function(C,I,O,J){var P=O.split("$"),_=P[0],G=P[1],M="",S="\u786e\u5b9a",V="\u67e5\u770b",Q="\u53d6\u6d88",B="0";if(P.length>=4)M=P[3];if(M=="")M="\u5e94\u7528\u63d0\u793a\u6d88\u606f";if(P.length>=8){B=P[4];S=P[5];V=P[6];Q=P[7];if(S=="")S="\u786e\u5b9a";if(V=="")V="\u67e5\u770b";if(Q=="")Q="\u53d6\u6d88"}top.activeState=true;top.activeValueSendState=true;var K=P[2];if(!messageconfirm){var U=["<div class=\"dialog-delorder\" onmousedown=\"top.DxMessageDlg.beginDrag2(this,document,event);\" style=\"width:460px;height:260px;border:1px solid #488fcd;background:#FFFFFF\">","<div class=\"dialog-bar\" style=\"cursor:pointer;width:460px;\">","\u5e94\u7528\u63d0\u793a\u6d88\u606f","</div>","<div class=\"dialog-content\">","<div class=\"dialog-content-content\" onmousedown=\"event.cancelBubble = true;return false;\" style=\"overflow-y:auto;width:426px;margin:17px 17px;text-align:center;font-size:15px;color:#000\">222</div>","</div>","<div class=\"dialog-console\" style=\"padding:12px 13px 12px 140px;\">","<a class=\"console-btn-confirm\" style=\"border:1px solid #000;background:url("+watLocation2+"/resources/component/confirm.png) repeat-x\" href=\"#\" onclick=\"return false;\" >\u786e\u5b9a</a>","<a class=\"console-btn-center\" style=\"color: #fff;background:url("+watLocation2+"/resources/component/confirm.png) repeat-x\" href=\"#\" onclick=\"return false;\">\u67e5\u770b</a>","<a class=\"console-btn-cancel\" style=\"background:url("+watLocation2+"/resources/component/cancel.png) repeat-x\" href=\"#\" onclick=\"return false;\">\u53d6\u6d88</a>","</div>","</div>"].join(""),D=$(U).appendTo(document.body);messageconfirm=D.get(0)}$("#messagecover").unbind("click");$("#messagecover").css("display","block");var R=$(messageconfirm);R.css("zIndex","9100");R.show();var F=R.find(".dialog-bar");F.text(M);if(top.isIE)R.css("background","#e9e9e9");else R.css("background","#ffffff");var L=R.find(".dialog-content-content");L.html(K);var N=R.find("a.console-btn-center");N.text(V);if(B=="0")N.css("display","none");else{N.css("display","inline-block");N.unbind("mousedown");N.bind("mousedown",function(){R.hide();$("#messagecover").css("display","none");if(J=="true")top.WatCore.call(C,I,"sysmsgCenter&"+B);else top.WatCore.call(C,I,"msgCenter&"+B);if(C!=top.DESKTOP)E_focusWindow(C,false);else E_focusWindow(C,true)});N.unbind("keydown");N.keydown(function($){var _=$.keyCode;if(_==13)N.trigger("mousedown")})}var T=R.find("a.console-btn-confirm");T.text(S);T.focus();T.unbind("mousedown");T.bind("mousedown",function(){R.hide();$("#messagecover").css("display","none");if(_!="0")if(J=="true")top.WatCore.call(C,I,"sysmsgOK&"+_);else top.WatCore.call(C,I,"msgOK&"+_);if(C!=top.DESKTOP)E_focusWindow(C,false);else E_focusWindow(C,true)});T.unbind("keyup");T.keyup(function($){var _=$.keyCode;if(_==13)T.trigger("mousedown");stopEvent($)});T.focus(function(){T.css("border","1px solid #000")});T.blur(function(){T.css("border","1px none #000")});var A=R.find("a.console-btn-cancel");A.text(Q);A.unbind("mousedown");A.bind("mousedown",function(){R.hide();$("#messagecover").css("display","none");if(G!="0")if(J=="true")top.WatCore.call(C,I,"sysmsgCancel&"+G);else top.WatCore.call(C,I,"msgCancel&"+G);if(C!=top.DESKTOP)E_focusWindow(C,false);else E_focusWindow(C,true)});A.unbind("keyup");A.keyup(function($){var _=$.keyCode;if(_==13)A.trigger("mousedown");stopEvent($)});A.focus(function(){A.css("border","1px solid #000")});A.blur(function(){A.css("border","1px none #000")});R.unbind("keyup");R.bind("keyup",function(){var _=event.keyCode;if(N.css("display")=="none"){if(_==37)T.focus();else if(_==39)A.focus()}else{if(_==37){var $=A.is(":focus");if($)N.focus();else T.focus()}else if(_==39){$=T.is(":focus");if($)N.focus();else A.focus()}if(event&&event.stopPropagation)event.stopPropagation();else event.cancelBubble=true;return false}});var H=(parseInt(document.body.clientWidth||document.documentElement.clientWidth)-parseInt(messageconfirm.style.width))/2,E=(parseInt(document.body.clientHeight||document.documentElement.clientHeight)-parseInt(messageconfirm.style.height))/2;R.css({"top":E+"px","left":H+"px"})};DxMessageDlg.render=function($,C,A){var D=A.getAttribute("cid"),_=A.selectNodes("*");for(var F=0;F<_.length;F++){var E=_[F].nodeName;E=E.substring(1,E.length);var B=top.isIE?_[F].text:_[F].textContent;switch(E){case top.DC.ALERT:DxMessageDlg.alert($,D,B);break;case top.DC.CONFIRM:DxMessageDlg.confirm($,D,B);break;case top.DC.SYSALERT:DxMessageDlg.alert($,D,B,"true");break;case top.DC.SYSCONFIRM:DxMessageDlg.confirm($,D,B,"true");break;default:break}}};function DxTimeDisplay(){}DxTimeDisplay.init=function(C,E){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=A.getElementById(E),D=WatCore.getWindow(C,B);try{_.interval=D.setInterval("try{top.DxTimeDisplay.getTime('"+C+"','"+E+"')}catch(e){};",1000)}catch($){}};DxTimeDisplay.getTime=function(B,D){var H=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,H),G=A.getElementById(D),E=new Date(),J="",I="",L="",M="",C="",F="",_="";J=(E.getYear()<1900)?(1900+E.getYear()):E.getYear();I=E.getMonth()+1;L=E.getDate();M=E.getDay();var $;switch(M){case 0:$="\u661f\u671f\u65e5";break;case 1:$="\u661f\u671f\u4e00";break;case 2:$="\u661f\u671f\u4e8c";break;case 3:$="\u661f\u671f\u4e09";break;case 4:$="\u661f\u671f\u56db";break;case 5:$="\u661f\u671f\u4e94";break;case 6:$="\u661f\u671f\u516d";break}C=DxTimeDisplay.add_zero(E.getHours());F=DxTimeDisplay.add_zero(E.getMinutes());_=DxTimeDisplay.add_zero(E.getSeconds());var K=" "+J+"\u5e74"+I+"\u6708"+L+"\u65e5 "+$+" "+C+":"+F+":"+_;if(G!=null)G.ownerDocument.getElementById("text").innerText=K};DxTimeDisplay.add_zero=function($){if($<10)return"0"+$;else return $};DxTimeDisplay.clear=function(C,A,E){try{var _=E.interval;if(_!=null){var B=top.E_clientModel.E_getWindow(C),D=WatCore.getWindow(C,B);D.clearInterval(_);E.interval=null}}catch($){}};DxTimeDisplay.render=function($,C,A){var D=A.getAttribute("cid"),_=A.selectNodes("*");for(var F=0;F<_.length;F++){var E=_[F].nodeName;E=E.substring(1,E.length);var B=top.isIE?_[F].text:_[F].textContent;switch(E){case top.DC.TEXT:DxTimeDisplay.addText($,D,B);break;case top.DC.WIDTH:C.getElementById(D).style.width=B+"px";break;case top.DC.HEIGHT:C.getElementById(D).style.height=B+"px";break;case top.DC.VISIBLE:C.getElementById("E_SW_"+D).style.visibility=B;break;case top.DC.X:C.getElementById("E_SW_"+D).style.left=B+"px";break;case top.DC.Y:C.getElementById("E_SW_"+D).style.top=B+"px";break;default:break}}};function DxCalendar(){}DxCalendar.init=function(_,B,$,A){};DxCalendar.clear=function(_,$,A){A.longTime=null;A.clearAttributes();A.removeNode(true)};DxCalendar.calendarChange=function(_,A,C,B){C.longTime=B;if(B==0){if(top.isIE)C.innerText="";else{$(C).text("");$(C).val("")}}else if(top.isIE)C.innerText=top.DxDataGrid.timeToStr(B);else{$(C).text(top.DxDataGrid.timeToStr(B));$(C).val(top.DxDataGrid.timeToStr(B))}top.WatCore.setParameter(_,A,top.DC.TIME_VALUE,B);if(C.getAttribute("actionFlag")=="true")top.WatCore.call(_,A,"press",event)};DxCalendar.focusShowTime=function(B,E,I){var J=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,J),D=WatCore.getWindow(B,J),G=top.E_getObject(B,E,C);try{if(D.EventRouter.getDateTimeDialog(D)!=null&&E!=null&&D.EventRouter.getDateTimeDialog(D).sid==E){D.EventRouter.hiddenDateTimeDialog();return false}}catch(_){}var M=D.EventRouter.showDateTimeDialog(),N,K;if(top.isIE){K=D.EventRouter.posPopwin(B,I).y+parseInt(I.style.height)+5;N=D.EventRouter.posPopwin(B,I).x}else{K=D.EventRouter.posPopwin(B,I).y+parseInt(I.style.height)+6;N=D.EventRouter.posPopwin(B,I).x+2}DxCalendarTemplate.init(B,E,I,G.longTime,"DxCalendar");var L=C.body.offsetWidth||C.documentElement.offsetWidth,H=C.body.offsetHeight||C.documentElement.offsetHeight||C.documentElement.clientHeight,A=$(M).width(),F=$(M).height();if((N+parseInt(A))>L-10){N=N-parseInt(A)+parseInt(G.style.width);if((N+parseInt(A))>L-10)N=L-10-parseInt(A)}if((K+parseInt(F))>H-2){K=K-parseInt(F)-21;if(K<0)K=H-parseInt(F)-4}M.style.top=K+"px";M.style.left=N+"px";M.style.display="block";M.style.zIndex="1000";M.sid=E};DxCalendar.render=function(F,D,B){var G=B.getAttribute("cid"),A=B.selectNodes("*");for(var J=0;J<A.length;J++){var H=A[J].nodeName;H=H.substring(1,H.length);var C=top.isIE?A[J].text:A[J].textContent;switch(H){case top.DC.TIME_VALUE:var _=top.E_getObject(F,G,D),I=0;if(C!=null&&C!="")I=top.DxDataGrid.timeToLong(C);_.longTime=I;if(I==null||I==""||I=="0"){if(top.isIE)_.innerText="";else{$(_).text("");$(_).val("")}}else if(top.isIE)_.innerText=top.DxDataGrid.timeToStr(I);else{$(_).text(top.DxDataGrid.timeToStr(I));$(_).val(top.DxDataGrid.timeToStr(I))}break;case top.DC.VISIBLE:top.E_getObject(F,G,D).style.visibility=C;break;case top.DC.ENABLED:var E=top.E_getObject(F,G,D);if(C=="true"){E.disabled=false;E.enabled="false"}else{E.disabled=true;E.enabled="false"}break;default:break}}};DxQQOutlookBar.OPENTITLE="OPENTITLE";DxQQOutlookBar.SMOOTHSTAT="SMOOTHSTAT";DxQQOutlookBar.TEMPINNERTEXT1="TEMPINNERTEXT1";DxQQOutlookBar.TEMPINNERTEXT2="TEMPINNERTEXT2";var oDraggingMenubyqqbar=new Object();oDraggingMenubyqqbar.drag=false;oDraggingMenubyqqbar.targetCtrid="";oDraggingMenubyqqbar.targetID="";oDraggingMenubyqqbar.targetIcon="";oDraggingMenubyqqbar.functionId="";oDraggingMenubyqqbar.functionName="";oDraggingMenubyqqbar.targetysIcon="";oDraggingMenubyqqbar.num=0;oDraggingMenubyqqbar.orgX=0;oDraggingMenubyqqbar.orgY=0;oDraggingMenubyqqbar.targetControlframeid="";oDraggingMenubyqqbar.targetControlctrid="";var dragsource;function DxQQOutlookBar(){}DxQQOutlookBar.init=function(E,F,D,A){var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),_=top.E_getObject(E,F,B);$(_).attr("action",D);_.notifyid=A;_.smoothState=0;_.dataDom=top.WatCore.createXmlDom("<QQlook/>")};DxQQOutlookBar.changeSize=function($){};DxQQOutlookBar.updateData=function(B,F,_,L){var O=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,O),M=top.E_getObject(B,F,A);if(!M)return;if(top.isIE)M.dataDom.loadXML(_);else M.dataDom=WatCore.createXmlDom(_);var E=$("#"+F+"td",M).get(0),G=$("#"+F+"table",M).get(0);if(G!=null){var D=G.parentElement;D.removeChild(G)}G=M.ownerDocument.createElement("table");G.border=0;G.cellSpacing="0";G.cellPadding="0";G.vAlign="middle";G.align="center";G.style.borderStyle="none";G.style.height="100%";G.style.width="100%";G.id=F+"table";E.appendChild(G);var J=M.dataDom.documentElement,H=J.getAttribute("targetframeid"),N=J.getAttribute("targetctrid");M.targetcontrolframeid=H;M.targetControlctrid=N;var C=J.selectNodes("onelevel");for(var I=0;I<C.length;I++){var K=C[I];DxQQOutlookBar.createOneLevelNode(B,F,G,M,K,I,L)}};DxQQOutlookBar.createOneLevelNode=function(D,G,J,P,H,W,I){var A=J.insertRow(-1);A.style.height="34px";var F=A.insertCell(-1);F.style.height="34px";F.vAlign="top";F.id=J.id;var V=J.ownerDocument.createElement("span");V.style.top="0px";V.style.width="100%";V.style.height="100%";V.strWinId=D;V.strCtrId=G;var L=$(P).attr("className"),N=J.ownerDocument.createElement("table");N.className=L+"-onelevel";N.width="100%";N.border=0+"px";N.style.height="34px";V.appendChild(N);var B=N.insertRow(-1),X=B.insertCell(-1);X.align="left";X.style.width="100%";X.className=L+"-onlevel-text";X.innerText=H.getAttribute("name");F.appendChild(V);var a=H.getAttribute("qqtype");if(a=="formcontainer"){var M=H.getAttribute("id");V.strWinId=D;V.strCtrId=G;V.identifyId=M;if(window.attachEvent)V.attachEvent("onmousedown",top.DxQQOutlookBar.switchoutlookBar);else V.addEventListener("mousedown",top.DxQQOutlookBar.switchoutlookBar,false);var R=J.insertRow(-1),O=R.insertCell(-1);R.id=M+"divtr";O.id=M+"div";O.vAlign="top";O.align="left";if(W==0){O.style.width="100%";if(!top.isIE)O.style.height="100%";R.style.width="100%";if(!top.isIE)R.style.height="100%";P.setAttribute("identifyId",H.getAttribute("id"))}else{O.style.display="none";O.style.width="100%";if(!top.isIE)O.style.height="100%";R.style.display="none";R.style.width="100%";if(!top.isIE)R.style.height="100%"}var Y=J.ownerDocument.createElement("div");Y.id=M+"divin";Y.className=L+"-twolevel";Y.style.width="100%";Y.style.height="100%";Y.style.position="relative";O.appendChild(Y);var Q=H.getAttribute("fid"),Z=H.getAttribute("formhashcode");Y.fid=Q;var U=I.selectSingleNode("server/templates/template[@tid='"+Q+"']");if(U){var K=top.isIE?U.selectNodes("content")[0].text:U.selectNodes("content")[0].textContent;K=Desktop.getWebFormContent(D,Q,K);$(Y).html(K);if(Q)E_watwebformCacheList.push(Q);var S=U.selectNodes("initial");if(S[0]!=null){var _=top.isIE?S[0].text:S[0].textContent;_=Desktop.getWebFormScript(D,Q,_);top.WatCore.execInitScript(D,_)}}if(W==0);}else{var E=H.selectNodes("twolevel");if(E.length>0){M=H.getAttribute("id");V.strWinId=D;V.strCtrId=G;V.identifyId=M;if(V.attachEvent)V.attachEvent("onmousedown",top.DxQQOutlookBar.switchoutlookBar);else if(V.addEventListener)V.addEventListener("mousedown",top.DxQQOutlookBar.switchoutlookBar,false);R=J.insertRow(-1),O=R.insertCell(-1);R.id=M+"divtr";O.id=M+"div";O.vAlign="top";O.align="center";if(W==0){O.style.width="100%";if(!top.isIE)O.style.height="100%";R.style.width="100%";if(!top.isIE)R.style.height="100%";P.setAttribute("identifyId",H.getAttribute("id"))}else{O.style.display="none";O.style.width="100%";if(!top.isIE)O.style.height="100%";R.style.display="none";R.style.width="100%";if(!top.isIE)R.style.height="100%"}Y=J.ownerDocument.createElement("div");Y.id=M+"divin";Y.className=L+"-twolevel";Y.style.width="100%";Y.style.height="100%";O.appendChild(Y);for(var T=0;T<E.length;T++){var C=E[T];DxQQOutlookBar.createTwoLevelNode(D,G,Y,C,T,P)}if(W==0);}}};DxQQOutlookBar.createTwoLevelNode=function(B,D,L,A,J,C){var P=$(C).attr("className"),K=L.ownerDocument.createElement("div");K.style.width="100%";K.style.left="1px";K.className=P+"-twolevel";var E=L.ownerDocument.createElement("table");K.appendChild(E);E.cellSpacing="0";E.cellPadding="2";E.border="0";E.width="100%";var _=E.insertRow(),I=_.insertCell();I.style.height="16px";I.style.width="100%";var H=L.ownerDocument.createElement("img");I.appendChild(H);H.style.width="11px";H.style.height="11px";H.src=top.watLocation2+"/resources/component/icon_right.png";H.align="absmiddle";H.border="0";var R=L.ownerDocument.createElement("span");R.style.width="2px";R.innerText=" ";I.appendChild(R);var M=L.ownerDocument.createElement("span");M.className=P+"-twolevel-text";I.appendChild(M);M.UNSELECTABLE="on";M.innerText=A.getAttribute("name");var Q=A.selectNodes("threelevel");if(Q.length>0){var O=A.getAttribute("id");$(K).mousedown(function($){top.DxQQOutlookBar.openfolder(B,L.id,O,this)});K.id=O;K.sid=L.id;K.wid=B;H.id=O+"img";L.appendChild(K);var N=L.ownerDocument.createElement("div");N.id=O+"menu";N.style.display="none";L.appendChild(N);N.style.width="100%";N.style.paddingRight="16px";for(var G=0;G<Q.length;G++){var F=Q[G];DxQQOutlookBar.createThreeLevelNodes(B,D,N,F,C)}if(J==0)DxQQOutlookBar.openfolder(B,L.id,O,K)}};DxQQOutlookBar.createThreeLevelNodes=function(E,I,P,J,F){var R=$(F).attr("className"),S=P.ownerDocument.createElement("div");S.style.width="100%";S.className=R+"-threelevel";S.onmouseover="top.DxQQOutlookBar.OverItems('"+E+"','"+I+"',this);";S.onmouseout="top.DxQQOutlookBar.OutItems('"+E+"','"+I+"',this);";S.onmousedown="top.DxQQOutlookBar.ItemClick('"+E+"','"+I+"',this);";$(S).mousedown(function($){top.DxQQOutlookBar.ItemClick(E,I,this)});var O=J.selectSingleNode("name"),C="";if(O!=null)C=top.isIE?O.text:O.textContent;S.id=J.getAttribute("id");S.name=C;P.appendChild(S);var H=P.ownerDocument.createElement("table");S.appendChild(H);H.cellSpacing="0";H.cellPadding="2";H.border="0";H.width="100%";var M=H.insertRow(-1),D=M.insertCell(-1);D.style.width="16px";D.style.height="16px";var N=P.ownerDocument.createElement("img");D.appendChild(N);N.id=J.getAttribute("id")+"img";var A=J.getAttribute("icon");N.src=A;A=A.substring(1,A.length);var B=A.indexOf("/");A=A.substring(B,A.length);N.icon=A;N.align="absmiddle";N.border="0";N.width="12px";N.height="12px";N.style.width="18px";N.style.height="18px";var G=F.targetcontrolframeid,T=F.targetControlctrid;if(G!=null&&T!=null)S.onmousedown="top.DxQQOutlookBar.agentForBeginDragTitle('"+E+"','"+I+"','"+A+"','"+S.id+"','"+S.name+"',this,event);";var L=M.insertCell(-1),_=P.ownerDocument.createElement("table");L.appendChild(_);var K=_.insertRow(-1),Q=K.insertCell(-1);Q.align="left";Q.UNSELECTABLE="on";Q.id="ttext";Q.className=R+"-threelevel-text";O=J.selectSingleNode("name");Q.innerText=C;Q.title=C};DxQQOutlookBar.agentForBeginDragTitle=function(A,E,D,_,B,F,C){try{DxQQOutlookBar.beginDragTitle(A,E,window,D,_,B,F,C)}catch($){}};DxQQOutlookBar.beginDragTitle=function(B,F,E,I,A,D,K,J){var H=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,H),$=document.getElementById("dummyQQbarDrag"),G=C.getElementById(F);try{if($.setCapture)$.setCapture();else if(window.captureEvents)window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);if(window.attachEvent){$.attachEvent("onmousemove",DxQQOutlookBar.agentForDraggingTitleInIE);$.attachEvent("onmouseup",DxQQOutlookBar.agentForEndDraggingTitleInIE)}else{$.addEventListener("mousemove",DxQQOutlookBar.agentForDraggingTitleInIE,false);$.addEventListener("mouseup",DxQQOutlookBar.agentForEndDraggingTitleInIE,false)}oDraggingMenubyqqbar.targetID=B;oDraggingMenubyqqbar.functionId=A;oDraggingMenubyqqbar.functionName=D;oDraggingMenubyqqbar.targetCtrid=F;oDraggingMenubyqqbar.targetysIcon=I;oDraggingMenubyqqbar.targetControlframeid=G.targetcontrolframeid;oDraggingMenubyqqbar.targetControlctrid=G.targetControlctrid;oDraggingMenubyqqbar.num=0;dragsource=K}catch(_){window.status="beginDragTitle:"+_.description}};DxQQOutlookBar.endDraggingTitleInIE=function(G,Q){var B=oDraggingMenubyqqbar.targetID;if(B=="")return;var O=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,O),_=document.getElementById("dummyQQbarDrag");try{_.detachEvent("onmousemove",DxQQOutlookBar.agentForDraggingTitleInIE);_.detachEvent("onmouseup",DxQQOutlookBar.agentForEndDraggingTitleInIE);_.releaseCapture();var S=oDraggingMenubyqqbar.functionId,T=oDraggingMenubyqqbar.functionName,L=oDraggingMenubyqqbar.targetysIcon,J=oDraggingMenubyqqbar.targetCtrid,M=oDraggingMenubyqqbar.targetControlframeid,U=oDraggingMenubyqqbar.targetControlctrid,F=top.E_clientModel.E_getWindow(M),P=WatCore.getWindowDoc(M,F),$=P.getElementById(U),I=__getAbsoluteCoordsByDesktop($),N=parseInt($.clientWidth),R=parseInt($.clientHeight),E=parseInt(I.x),D=parseInt(I.y),H=parseInt(_.style.left),K=parseInt(_.style.top);oDraggingMenubyqqbar.targetID="";oDraggingMenubyqqbar.targetIcon="";oDraggingMenubyqqbar.functionId="";oDraggingMenubyqqbar.functionName="";oDraggingMenubyqqbar.targetCtrid="";oDraggingMenubyqqbar.targetysIcon="";oDraggingMenubyqqbar.isparent="";oDraggingMenubyqqbar.num=0;oDraggingMenubyqqbar.targetControlframeid="";oDraggingMenubyqqbar.targetControlctrid="";_.style.visibility="hidden";_.innerHTML="";_.style.left=0;_.style.top=0;dragsource=null;if(oDraggingMenubyqqbar.drag&&H>=E&&H<=E+N&&K>=D&&K<=D+R){oDraggingMenubyqqbar.drag=false;WatCore.setParameter(B,J,"4005",T);WatCore.setParameter(B,J,"4006",L);top.WatCore.call(B,J,"drag&"+S,Q)}else oDraggingMenubyqqbar.drag=false}catch(A){}};function __getAbsoluteCoordsByDesktop(_){var A=new Object();A.x=0;A.y=0;A.w=0;A.h=0;A.sl=0;A.st=0;try{while(_){A.x+=parseInt(_.offsetLeft);A.y+=parseInt(_.offsetTop);A.sl+=parseInt(_.scrollLeft);A.st+=parseInt(_.scrollTop);if(_.getAttribute("watBody")){A.w=_.clientWidth;A.h=_.clientHeight;break}_=_.offsetParent}}catch($){}return A}DxQQOutlookBar.agentForEndDraggingTitleInIE=function(){try{DxQQOutlookBar.endDraggingTitleInIE(window,event)}catch($){MsgConsole.displayErr("agentForEndDraggingTitleInIE:"+$.description)}};DxQQOutlookBar.agentForDraggingTitleInIE=function(){try{DxQQOutlookBar.dragWindow(event,document)}catch($){MsgConsole.displayErr("agentForDraggingTitleInIE:"+$.description)}};DxQQOutlookBar.getMouseCoords=function(B,_){var A=new Object();try{A.x=(!isIE)?B.pageX:B.clientX+_.body.scrollLeft;A.y=(!isIE)?B.pageY:B.clientY+_.body.scrollTop}catch($){}return A};DxQQOutlookBar.dragWindow=function(F,E){var _=document.getElementById("dummyQQbarDrag"),D=DxQQOutlookBar.getMouseCoords(F,E).x,$=DxQQOutlookBar.getMouseCoords(F,E).y;try{if(F==null)return;switch(F.type){case"mousedown":if(F.button%2==EVT_LEFT_BUTTON){_.style.zIndex="10000";_.style.top=$;_.style.left=D;oDraggingMenubyqqbar.orgX=D;oDraggingMenubyqqbar.orgY=$}break;case"mouseup":var H=parseInt(_.style.left)-parseInt(oWrapper.style.left),C=parseInt(_.style.top)-parseInt(oWrapper.style.top);if(Math.abs(H)>VALID_RESIZE_OFFSET||Math.abs(C)>VALID_RESIZE_OFFSET);_.style.visibility="hidden";break;case"mousemove":if(F.button%2==EVT_LEFT_BUTTON){if(_.style.visibility=="hidden"){var A=parseInt(oDraggingMenubyqqbar.num);A++;oDraggingMenubyqqbar.num=A;if(A>=10){oDraggingMenubyqqbar.drag=true;_.style.visibility="visible";if(_.innerHTML.length<10&&dragsource!=null){_.style.width=dragsource.clientWidth;_.style.height=dragsource.clientHeight;_.insertAdjacentHTML("BeforeEnd",dragsource.innerHTML)}}}var I=parseInt(D)-22;if(I<0)I=0;var G=parseInt($)-17;if(G<0)G=0;_.style.left=I;_.style.top=G}break;default:break}F.cancelBubble=true}catch(B){window.status="dragWindow:"+B.description}};DxQQOutlookBar.switchoutlookBar=function(L){var K=L.srcElement||L.target;while(K.tagName!="SPAN")K=K.parentElement;var D=K.strCtrId,C=K.strWinId,M=K.identifyId,I=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,I),J=$("#"+D,B),E=J.attr("identifyId")||J.get(0).getAttribute("identifyId")||J.get(0).identifyId;J.attr("identifyId",M);var H=J.get(0).smoothState,A,_,F,G;if(M!=E&&H==0)if(M!=null){if(E==null||E=="");else if(!top.isIE){$("#"+E+"divtr",J).css({"display":"none","height":"0%"});$("#"+E+"div",J).css({"display":"none","height":"0%"})}else{$("#"+E+"divtr",J).css({"display":"none"});$("#"+E+"div",J).css({"display":"none"})}if(!top.isIE){$("#"+M+"divtr",J).css({"display":"","height":"100%","overflow-y":"auto"});$("#"+M+"div",J).css({"display":"","height":"100%","overflow-y":"auto"})}else{$("#"+M+"divtr",J).css({"display":"block","overflow-y":"auto"});$("#"+M+"div",J).css({"display":"block","overflow-y":"auto"})}}};DxQQOutlookBar.switchoutlookBar2=function(L){if(true)return;var K=L.srcElement||L.target;while(K.tagName!="SPAN")K=K.parentElement;var N=$(K),D=N.attr("strCtrId"),C=N.attr("strWinId"),M=N.attr("identifyId"),I=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,I),J=$("#"+D,B),E=J.attr("identifyId")||J.get(0).getAttribute("identifyId")||J.get(0).identifyId;J.attr("identifyId",M);var H=J.get(0).smoothState,A,_,F,G;if(M!=E&&H==0)if(M!=null){if(E==null||E==""){_="blankdiv";G="blankdiv"}else{_=E+"div";G=E+"divin"}A=M+"div";F=M+"divin";DxQQOutlookBar.smoothout(C,D,A,_,F,G,0)}};DxQQOutlookBar.smoothout=function(C,D,A,_,F,G,E){var J=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,J),K=$("#"+D,B),M=$("#"+F,K),L=$("#"+G,K),H=$("#"+A,K),I=$("#"+_,K),N=M.html();K.attr("tempInnerText1",N);if(L.get(0)!=null){O=L.html();K.attr("tempInnerText2",O);L.html("");L.css("overflow","hidden")}M.html("");M.css("overflow","hidden");var N=K.attr("tempInnerText1"),O=K.attr("tempInnerText2");M.html(N);if(L.get(0)!=null)L.html(O);H.css({"height":"100%","display":"block"});I.css("height","0%");M.css("overflow","auto");if(I.get(0)!=null)I.css("display","none")};DxQQOutlookBar.openfolder=function(D,_,L,N){var G=new Date(),I=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,I),H=N.parentElement,F=H.ownerDocument.getElementById(L+"menu"),E=H.ownerDocument.getElementById(L+"img"),J=$(H);if(F.style.display=="none"){var A=J.attr("oldId");if(A!=L&&A!=null){var K=$("#"+A+"menu",H);if(K.get(0)!=null){K.css("display","none");var B=$("#"+A+"img",H);B.attr("src",top.watLocation2+"/resources/component/icon_right.png")}}F.style.display="block";E.src=top.watLocation2+"/resources/component/icon.png";J.attr("oldId",L)}else if(F.style.display=="block"){F.style.display="none";E.src=top.watLocation2+"/resources/component/icon_right.png";A=J.attr("oldId");if(A==L)J.attr("oldId",null)}var M=new Date();MsgConsole.displayNormal(M-G)};DxQQOutlookBar.ItemClick=function(G,I,E,D){var F=top.E_clientModel.E_getWindow(G),C=WatCore.getWindowDoc(G,F),A=top.E_getObject(G,I,C),B=A.oldSelect;if(B!=null&&B!=E.id){var J=A.ownerDocument.getElementById(B);if(J!=null){var _=$("#ttext",J).get(0);if(_!=null)_.className="DxQQOutlookBar-threelevel-text";J.className="DxQQOutlookBar-threelevel"}}A.oldSelect=E.id;var H=$("#ttext",E).get(0);if(H!=null){H.className="DxQQOutlookBar-threelevel-text-click";E.className="DxQQOutlookBar-threelevel-click"}if(A.notifyid!=undefined&&A.notifyid!=""){if(DxEMREditor.actionnotify(G,A.notifyid))top.WatCore.call(G,I,E.id,D)}else top.WatCore.call(G,I,E.id,D)};DxQQOutlookBar.OverItems=function(C,E,A){var B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,E,_);if($.oldSelect!=A.id){var D=A.ownerDocument.getElementById("ttext");D.className="DxQQOutlookBar-threelevel-text-movein"}};DxQQOutlookBar.OutItems=function(C,E,A){var B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,E,_);if($.oldSelect!=A.id){var D=A.ownerDocument.getElementById("ttext");D.className="DxQQOutlookBar-threelevel-text"}};DxQQOutlookBar.OutBar=function(_){var $=_.srcElement||_.target;while($.tagName!="SPAN")$=$.parentElement;$.className="DxQQOutlookBar-onelevel"};DxQQOutlookBar.ClickBar=function(F){var _=F.srcElement||F.target;while(_.tagName!="SPAN")_=_.parentElement;var D=_.strWinId,G=_.strCtrId,C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=B.getElementById(G);if($(A).attr("action")=="true"){var E=_.identifyId;if(E!=null)top.WatCore.call(D,G,E,event)}};DxQQOutlookBar.OverBar=function(_){var $=_.srcElement||_.target;while($.tagName!="SPAN")$=$.parentElement;$.className="DxQQOutlookBar-onelevel-movein"};DxQQOutlookBar.clear=function(_,$,A){A.dataDom=null};DxQQOutlookBar.setForm=function(E,F,C,L,O){var M=top.E_getObject(E,F,C),D=O.split("@"),S=D[0],G=D[1],K=M.ownerDocument.getElementById(S+"divin");if(K!=null){var Q=M.ownerDocument.getElementById(K.fid);if(Q!=null){var P=top.E_dataChange.E_keys.E_list.E_contents.length,B;for(var I=P-1;I>=0;I--){B=top.E_dataChange.E_keys.E_list.E_contents[I];var A=top.E_dataChange.E_get(B);if(E==A)top.E_dataChange.E_remove(B)}Desktop.clear(E,Q,C);Q.removeNode(true);Q.innerHTML="";Q=null}top.E_removeObject(E);var R=D[2],J=L.selectSingleNode("server/templates/template[@tid='"+G+"']"),N=top.isIE?J.selectNodes("content")[0].text:J.selectNodes("content")[0].textContent;N=Desktop.getWebFormContent(frameId,G,N);$(K).html(N);if(G)E_watwebformCacheList.push(G);var H=J.selectNodes("initial");if(H[0]!=null){var _=top.isIE?H[0].text:H[0].textContent;_=Desktop.getWebFormScript(frameId,G,_);top.WatCore.execInitScript(frameId,_)}}};DxQQOutlookBar.render=function(A,N,K,J){var F=K.getAttribute("cid"),B=K.selectNodes("*");for(var H=0;H<B.length;H++){var G=B[H].nodeName;G=G.substring(1,G.length);var E=G.split("_"),$=0;if(E.length==2){G=E[0];$=E[1]}var O=top.isIE?B[H].text:B[H].textContent;switch(G){case top.DC.UPDATE_DATA:var L=/<name>/g;O=O.replace(L,"<name><![CDATA[");L=/<\/name>/g;O=O.replace(L,"]]></name>");DxQQOutlookBar.updateData(A,F,O,J);break;case top.DC.WEBTAB_Add_FORM:DxQQOutlookBar.setForm(A,F,N,J,O);break;case top.DC.TARGET_CONTROL:try{var D=O.split(","),M=top.E_clientModel.E_getWindow(A),C=WatCore.getWindowDoc(A,M),I=C.getElementById(F);I.targetcontrolframeid=D[0];I.targetControlctrid=D[1]}catch(_){}break;case top.DC.WIDTH:I=top.E_getObject(A,F,C);I.style.width=O;break;case top.DC.HEIGHT:I=top.E_getObject(A,F,C);I.style.height=O;break;case top.DC.VISIBLE:I=top.E_getObject(A,"E_SW_"+F,C);I.style.visibility=O;break;case top.DC.X:I=top.E_getObject(A,"E_SW_"+F,C);I.style.left=O;break;case top.DC.Y:I=top.E_getObject(A,"E_SW_"+F,C);I.style.top=O;break;case top.DC.ENABLED:I=top.E_getObject(A,F,C);if(O=="true")I.disabled=false;else I.disabled=true;break;case top.DC.BACKGROUND:I=top.E_getObject(A,F,C);I.style.backgroundColor=O;break;default:break}}};function DxTreeView(){}DxTreeView.ImageList=new Array();DxTreeView.ImageList[0]="/resources/core/tree_check_none.gif";DxTreeView.ImageList[1]="/resources/core/tree_check_part.gif";DxTreeView.ImageList[2]="/resources/core/tree_check_all.gif";DxTreeView.ImageList[3]="/resources/core/collapse.gif";DxTreeView.ImageList[4]="/resources/core/expand.gif";DxTreeView.ImageList[5]="/resources/core/plus_top.gif";DxTreeView.ImageList[6]="/resources/core/minus_top.gif";DxTreeView.ImageList[7]="/resources/core/plus_btm.gif";DxTreeView.ImageList[8]="/resources/core/minus_btm.gif";DxTreeView.ImageList[9]="/resources/core/plus.gif";DxTreeView.ImageList[10]="/resources/core/minus.gif";DxTreeView.TREE_NODE="TN";DxTreeView.TREE_LABEL="TL";DxTreeView.SPAN_ID="TS";DxTreeView.NODES_WRAPPER="WP";DxTreeView.TREE_FOCUS="TF";DxTreeView.NODE_CHECK="CK";DxTreeView.EXPAND_ICON="EP";DxTreeView.COLLAPSE_ICON="CL";DxTreeView.NORAML_ICON="NR";DxTreeView.NODE_ICON="PM";DxTreeView.SCROLLTOP="TPL";DxTreeView.SCROLLLEFT="TCT";DxTreeView.NODE_NOCHECK_IMG_INDEX=0;DxTreeView.NODE_PARTCHECK_IMG_INDEX=1;DxTreeView.NODE_ALLCHECK_IMG_INDEX=2;DxTreeView.LIMITOR="$";DxTreeView.FOCUSEDNODE="focusedNode";DxTreeView.ACTIONEVENT="actionEvent";DxTreeView.EXPANDEDEVENT="expandedEvent";DxTreeView.WILLEXPANDEVENT="willExpandEvent";DxTreeView.PARTDOWNLOAD="partDownload";DxTreeView.SELECTEDBACKGROUND="selectedBackground";DxTreeView.SELECTEDFOREGROUND="red";DxTreeView.ENABLED="enabled";DxTreeView.APPNAME="APPNAME";DxTreeView.initTreeControl=function(D,G,F,M,P,N,_,O,K,H,E,A,L,C){var J=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,J),I=top.E_getObject(D,G,B);I.FOCUSEDNODE=F;I.SELECTEDBACKGROUND=O;I.SELECTEDFOREGROUND=K;I.ACTIONEVENT=M;I.EXPANDEDEVENT=N;I.WILLEXPANDEVENT=P;I.PARTDOWNLOAD=_;I.ENABLED=H;I.APPNAME=E;I.notifyid=A;I.ischeckAncestor=L;I.ischeckedAction=C;$(I).unbind("keydown");$(I).bind("keydown",function($){top.DxTreeView.onKeyDown(D,G,$)});if(I.SCROLLTOP);};DxTreeView.resizeChange=function(_,$,A){var B=WatCore.getClientRect(_);if(B.h<=0||_.change)return;_.change=true};DxTreeView.__getNodeID=function(A){var _=A.split(DxTreeView.LIMITOR),$="";_.shift();_.shift();$=_.join(DxTreeView.LIMITOR);return $};DxTreeView.__getParentNodeID=function(_){var A=_.split(DxTreeView.LIMITOR),$="";A.pop();$=A.join(DxTreeView.LIMITOR);return $};DxTreeView.__getSequenceID=function($){var _=$.split(DxTreeView.LIMITOR),A="";A=_.pop();return parseInt(A)};DxTreeView.__getTreeViewID=function(B,E,$){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_,D;_=DxTreeView.TREE_FOCUS+DxTreeView.LIMITOR+E+DxTreeView.LIMITOR+$;D=A.getElementById(_);if(D==null)return null;return D.value};DxTreeView.__getNextNode=function(C,F,A){var H=top.E_clientModel.E_getWindow(C),D=WatCore.getWindowDoc(C,H),G=DxTreeView.__getSequenceID(A),$=DxTreeView.__getParentNodeID(A),I=null,J="",E;E=D.getElementById(DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+F+DxTreeView.LIMITOR+A);if(E!=null&&E.style.display!="none"){J=DxTreeView.TREE_NODE+DxTreeView.LIMITOR+F+DxTreeView.LIMITOR;J+=A+DxTreeView.LIMITOR+"0";I=D.getElementById(J)}if(I==null){J=DxTreeView.TREE_NODE+DxTreeView.LIMITOR+F;J+=($!=""?DxTreeView.LIMITOR+$:"")+DxTreeView.LIMITOR+(G+1);I=D.getElementById(J);if(I==null)while(I==null&&$!=""){var B=DxTreeView.__getParentNodeID($),_=DxTreeView.__getSequenceID($);J=DxTreeView.TREE_NODE+DxTreeView.LIMITOR+F;J+=(B!=""?DxTreeView.LIMITOR+B:"")+DxTreeView.LIMITOR+(_+1);I=D.getElementById(J);$=DxTreeView.__getParentNodeID($)}}return I};DxTreeView.__getPrevNode=function(C,G,A){var $=DxTreeView.__getParentNodeID(A),_=DxTreeView.__getSequenceID(A),D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),F=null;if(_!=0){var H=($!=""?$+DxTreeView.LIMITOR:"")+(--_);F=DxTreeView.__getLastChildNode(C,G,H)}else if($!=""){var E=DxTreeView.TREE_NODE+DxTreeView.LIMITOR+G+DxTreeView.LIMITOR+$;F=B.getElementById(E)}return F};DxTreeView.__getLastChildNode=function(A,F,$){var I=top.E_clientModel.E_getWindow(A),B=WatCore.getWindowDoc(A,I),D=DxTreeView.TREE_NODE+DxTreeView.LIMITOR+F+DxTreeView.LIMITOR+$,E=B.getElementById(D),C;C=B.getElementById(DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+F+DxTreeView.LIMITOR+$);if(C!=null&&C.style.display!="none"){var G=0,_=D+DxTreeView.LIMITOR+G,J=B.getElementById(_);while(J!=null){_=D+DxTreeView.LIMITOR+(++G);J=B.getElementById(_)}if(G!=0){var H=$+DxTreeView.LIMITOR+(--G);E=DxTreeView.__getLastChildNode(A,F,H)}}return E};DxTreeView.__moveUp=function(C,G,$){var E=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,E),D=DxTreeView.__getPrevNode(C,G,$);if(D!=null){var A=DxTreeView.__getNodeID(D.id),F=DxTreeView.TREE_LABEL+DxTreeView.LIMITOR+G+DxTreeView.LIMITOR+A,_=B.getElementById(F);if(_!=null)DxTreeView.setFocusToNode(C,G,A)}};DxTreeView.__moveDown=function(B,E,$){var D=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,D),C=DxTreeView.__getNextNode(B,E,$);if(C!=null){var _=DxTreeView.__getNodeID(C.id);DxTreeView.setFocusToNode(B,E,_)}};DxTreeView.__setFocusToFirstNode=function(A,E){var C=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,C),D=DxTreeView.TREE_NODE+DxTreeView.LIMITOR+E+DxTreeView.LIMITOR+"0",$="",B=null;B=_.getElementById(D);if(B==null||B.style.display=="none")$="0"+DxTreeView.LIMITOR+"0";else $="0";DxTreeView.setFocusToNode(A,E,$)};DxTreeView.__setFocusToLastNode=function(A,D){var C=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,C),$="0",B=DxTreeView.__getLastChildNode(A,D,$);if(B!=null){$=DxTreeView.__getNodeID(B.id);DxTreeView.setFocusToNode(A,D,$)}};DxTreeView.onKeyDown=function(B,I,G){var D=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,D),_=top.E_getObject(B,I,A);if(!_.ENABLED)return;if(!DxTreeView.__isActionReady())return;var H=_.FOCUSEDNODE,C,E,F;if(H=="")return;try{switch(G.keyCode){case top.KeyCode.END:DxTreeView.__setFocusToLastNode(B,I);break;case top.KeyCode.HOME:DxTreeView.__setFocusToFirstNode(B,I);break;case top.KeyCode.UP:DxTreeView.__moveUp(B,I,H);break;case top.KeyCode.DOWN:DxTreeView.__moveDown(B,I,H);break;case top.KeyCode.LEFT:E=A.getElementById(DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+I+DxTreeView.LIMITOR+H);if(E==null||E.style.display=="none")DxTreeView.__moveUp(B,I,H);else DxTreeView.toggleExpand(B,I,E);break;case top.KeyCode.RIGHT:E=A.getElementById(DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+I+DxTreeView.LIMITOR+H);if(!DxTreeView.__isLeaf(B,I,H)&&E.style.display=="none")DxTreeView.toggleExpand(B,I,E);else DxTreeView.__moveDown(B,I,H);break;case top.KeyCode.PLUS:E=A.getElementById(DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+I+DxTreeView.LIMITOR+H);if(E.style.display=="none")DxTreeView.toggleExpand(B,I,E);break;case top.KeyCode.SUB:E=A.getElementById(DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+I+DxTreeView.LIMITOR+H);if(E.style.display=="block")DxTreeView.toggleExpand(B,I,E);break;case top.KeyCode.SPACE:F=A.getElementById(DxTreeView.NODE_CHECK+DxTreeView.LIMITOR+I+DxTreeView.LIMITOR+H);if(F!=null)DxTreeView.onClickCheckbox(B,I,F);break;case top.KeyCode.STAR:DxTreeView.expandAllSubNode(B,I,H);break;default:break}}catch($){}};DxTreeView.onClickLabel=function(B,D,$){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,D,A);if(!_.ENABLED)return;if(!DxTreeView.__isActionReady())return;DxTreeView.setFocusToNode(B,D,DxTreeView.__getNodeID($.id))};DxTreeView.htmlCall=function(C,E,A){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),_=top.E_getObject(C,E,B);if(!_.ENABLED)return;if(!DxTreeView.__isActionReady())return;var $=DxTreeView.findTreeNode(A);DxTreeView.setFocusToNodeNoAction(C,E,DxTreeView.__getNodeID($.id))};DxTreeView.onDblClick=function(C,F,E){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),A=top.E_getObject(C,F,B);if(!A.ENABLED)return;if(!DxTreeView.__isActionReady())return;var _=(top.isIE?E.srcElement:E.target);if(_.id.indexOf(DxTreeView.SPAN_ID+DxTreeView.LIMITOR+F)==0||_.id.indexOf(DxTreeView.TREE_LABEL+DxTreeView.LIMITOR+F)==0||_.id.indexOf(DxTreeView.EXPAND_ICON+DxTreeView.LIMITOR+F)==0||_.id.indexOf(DxTreeView.COLLAPSE_ICON+DxTreeView.LIMITOR+F)==0){var $=DxTreeView.__getNodeID(_.id);if(!DxTreeView.__isLeaf(C,F,$))DxTreeView.toggleExpand(C,F,_);DxTreeView.setFocusToNode(C,F,$)}};DxTreeView.__getCheckStatus=function(D,F,A){var E=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,E),_=top.E_getObject(D,F,C),B=0,$=_.APPNAME;if(DxTreeView.__compareImageUrl($+DxTreeView.ImageList[DxTreeView.NODE_ALLCHECK_IMG_INDEX],A))B=2;else if(DxTreeView.__compareImageUrl($+DxTreeView.ImageList[DxTreeView.NODE_PARTCHECK_IMG_INDEX],A))B=1;return B};DxTreeView.__compareImageUrl=function(B,A){var $=B.lastIndexOf("/"),_=B.substring($+1,B.length);$=A.lastIndexOf("/");var C=A.substring($+1,A.length);return _==C};DxTreeView.onClickCheckbox=function(B,E,G){var J=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,J),H=top.E_getObject(B,E,C);if(!H.ENABLED)return;if(!DxTreeView.__isActionReady())return;var $=DxTreeView.__getNodeID(G.id),I=(DxTreeView.__getCheckStatus(B,E,G.src)==2)?false:true,D=DxTreeView.__getTreeViewID(B,E,$),A="chk "+D,F=H.APPNAME;if(I){G.src=F+DxTreeView.ImageList[DxTreeView.NODE_ALLCHECK_IMG_INDEX];A+=" 1,"}else{G.src=F+DxTreeView.ImageList[DxTreeView.NODE_NOCHECK_IMG_INDEX];A+=" 0,"}var K=A;if(H.ischeckAncestor=="true"){A+=DxTreeView.__changeStatusOfChildCheckbox(B,E,$,I);DxTreeView.__changeStatusOfAncestorCheckbox(B,E,$,I)}WatCore.appendParameter(B,E,top.DC.PARAMETER_VALUE,A);var _=WatCore.getParameter(B,E,top.DC.PARAMETER_VALUE);if(H.ischeckedAction=="true")top.WatCore.call(B,E,K)};DxTreeView.__changeStatusOfChildCheckbox=function(A,E,$,H){var I=top.E_clientModel.E_getWindow(A),B=WatCore.getWindowDoc(A,I),C=DxTreeView.TREE_NODE+DxTreeView.LIMITOR+E+DxTreeView.LIMITOR+$,F=0,G=C+DxTreeView.LIMITOR+F,K="",J=B.getElementById(G),_="";while(J!=null){K=DxTreeView.__getNodeID(J.id);var D=DxTreeView.__getTreeViewID(A,E,K);_+="chk "+D;if(H){DxTreeView.__setCheckboxStatus(A,E,K,2);_+=" 2,"}else{DxTreeView.__setCheckboxStatus(A,E,K,0);_+=" 0,"}_+=DxTreeView.__changeStatusOfChildCheckbox(A,E,K,H);G=C+DxTreeView.LIMITOR+(++F);J=B.getElementById(G)}return _};DxTreeView.__changeStatusOfAncestorCheckbox=function(A,B,$,_){DxTreeView.__changeStatusOfParentCheckbox(A,B,$,true)};DxTreeView.__changeStatusOfParentCheckbox=function(D,G,A,B){var K=top.E_clientModel.E_getWindow(D),E=WatCore.getWindowDoc(D,K),_=DxTreeView.__getParentNodeID(A);if(_=="")return;var H=0,L=DxTreeView.TREE_NODE+DxTreeView.LIMITOR+G+DxTreeView.LIMITOR+_,H=0,I,F;F=E.getElementById(L);if(F!=null){var N=L+DxTreeView.LIMITOR+H,O="",C=E.getElementById(N),M=0,J=false;while(C!=null){O=DxTreeView.__getNodeID(C.id);var $=E.getElementById(DxTreeView.NODE_CHECK+DxTreeView.LIMITOR+G+DxTreeView.LIMITOR+O);if(DxTreeView.__getCheckStatus(D,G,$.src)==2)M=M+2;else if(DxTreeView.__getCheckStatus(D,G,$.src)==1)M=M+1;N=L+DxTreeView.LIMITOR+(++H);C=E.getElementById(N)}I=E.getElementById(DxTreeView.NODE_CHECK+DxTreeView.LIMITOR+G+DxTreeView.LIMITOR+_);if(M==0){if(DxTreeView.__getCheckStatus(D,G,I.src)!=0){DxTreeView.__setCheckboxStatus(D,G,_,0);J=true}}else if(M==2*H){if(DxTreeView.__getCheckStatus(D,G,I.src)!=2){DxTreeView.__setCheckboxStatus(D,G,_,2);J=true}}else if(DxTreeView.__getCheckStatus(D,G,I.src)!=1){DxTreeView.__setCheckboxStatus(D,G,_,1);J=true}if(B&&J&&_!=""&&_!="0")DxTreeView.__changeStatusOfParentCheckbox(D,G,_,B)}};DxTreeView.__setCheckboxStatus=function(E,G,_,D){var F=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,F),B=top.E_getObject(E,G,C),A=C.getElementById(DxTreeView.NODE_CHECK+DxTreeView.LIMITOR+G+DxTreeView.LIMITOR+_),$=B.APPNAME;if(D==0)A.src=$+DxTreeView.ImageList[DxTreeView.NODE_NOCHECK_IMG_INDEX];else if(D==1)A.src=$+DxTreeView.ImageList[DxTreeView.NODE_PARTCHECK_IMG_INDEX];else A.src=$+DxTreeView.ImageList[DxTreeView.NODE_ALLCHECK_IMG_INDEX]};DxTreeView.__exchangeIcon=function(D,F,_,B){var E=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,E),A=top.E_getObject(D,DxTreeView.EXPAND_ICON+DxTreeView.LIMITOR+F+DxTreeView.LIMITOR+_,C),$=top.E_getObject(D,DxTreeView.COLLAPSE_ICON+DxTreeView.LIMITOR+F+DxTreeView.LIMITOR+_,C);if(B){if(A!=null)A.style.display="inline";if($!=null)$.style.display="none"}else{if(A!=null)A.style.display="none";if($!=null)$.style.display="inline"}};DxTreeView._setFocusToNodeByServer=function(C,H,_,I){var N=top.E_clientModel.E_getWindow(C),D=WatCore.getWindowDoc(C,N),Q=top.E_getObject(C,"E_SW_"+H,D),L=$("#"+H,Q).get(0),F=Q.FOCUSEDNODE;Q.FOCUSEDNODE=_;var G=DxTreeView.__getTreeViewID(C,H,_);if(G==null)return;var B,E,J;if(F!="null"&&F!=""&&F!=null){var P=DxTreeView.TREE_LABEL+DxTreeView.LIMITOR+H+DxTreeView.LIMITOR+F,M=D.getElementById(P),O=D.getElementById(H);if(M!=null){M.style.backgroundColor=O.style.backgroundColor;M.style.color=M.getAttribute("fcolor")}}J=D.getElementById(DxTreeView.TREE_LABEL+DxTreeView.LIMITOR+H+DxTreeView.LIMITOR+_);J.style.backgroundColor=L.SELECTEDBACKGROUND;J.style.color=L.SELECTEDFOREGROUND;B=DxTreeView.TREE_FOCUS+DxTreeView.LIMITOR+H+DxTreeView.LIMITOR+_;E=D.getElementById(B);try{if(DxTreeView.__isAncestorDisplay(C,H,_)&&I)E.focus()}catch(A){}var K="sel "+G+" 1,";if(F!=_)WatCore.appendParameter(C,H,top.DC.PARAMETER_VALUE,K)};DxTreeView.setFocusToNode=function(D,J,A){var O=top.E_clientModel.E_getWindow(D),E=WatCore.getWindowDoc(D,O),R=top.E_getObject(D,"E_SW_"+J,E),M=$("#"+J,R).get(0),_=false;if(M.notifyid!=undefined&&M.notifyid!="")if(DxEMREditor.actionnotify(D,M.notifyid))_=true;var H=R.FOCUSEDNODE,I=DxTreeView.__getTreeViewID(D,J,A);if(I==null)return;var C,G,K;if(H!="null"&&H!=""&&H!=null){var Q=DxTreeView.TREE_LABEL+DxTreeView.LIMITOR+J+DxTreeView.LIMITOR+H,N=E.getElementById(Q),P=E.getElementById(J);if(N!=null){N.style.backgroundColor=P.style.backgroundColor;N.style.color=N.getAttribute("fcolor")}}K=E.getElementById(DxTreeView.TREE_LABEL+DxTreeView.LIMITOR+J+DxTreeView.LIMITOR+A);K.style.backgroundColor=M.SELECTEDBACKGROUND;K.style.color=M.SELECTEDFOREGROUND;C=DxTreeView.TREE_FOCUS+DxTreeView.LIMITOR+J+DxTreeView.LIMITOR+A;G=E.getElementById(C);try{if(DxTreeView.__isAncestorDisplay(D,J,A))G.focus()}catch(B){}R.FOCUSEDNODE=A;var L="sel "+I+" 1,";WatCore.appendParameter(D,J,top.DC.PARAMETER_VALUE,L);var F=M.ACTIONEVENT;if(F){M.SCROLLTOP=parseInt(E.getElementById(J).scrollTop.toString());M.SCROLLLEFT=parseInt(E.getElementById(J).scrollLeft.toString());if(M.notifyid!=undefined&&M.notifyid!=""){if(_)top.WatCore.call(D,J,L)}else top.WatCore.call(D,J,L)}};DxTreeView.findTreeNode=function(B){var _=null,C=B,A=true,$=0;while(C.wattreenodedend!="true"&&A&&$<100)if(C.wattreenodedend=="true"){_=C;A=false}else{C=C.parentElement;$++}return C};DxTreeView.setFocusToNodeNoAction=function(D,I,A){var N=top.E_clientModel.E_getWindow(D),E=WatCore.getWindowDoc(strWinstrWindowIDdowID,N),R=top.E_getObject(D,"E_SW_"+I,E),L=$("#"+I,R).get(0),_=false;if(L.notifyid!=undefined&&L.notifyid!="")if(DxEMREditor.actionnotify(D,L.notifyid))_=true;var G=R.FOCUSEDNODE,H=DxTreeView.__getTreeViewID(D,I,A);if(H==null)return;var C,F,J;if(G!="null"&&G!=""&&G!=null){var Q=DxTreeView.TREE_LABEL+DxTreeView.LIMITOR+I+DxTreeView.LIMITOR+G,M=E.getElementById(Q),O=E.getElementById(I);if(M!=null){M.style.backgroundColor=O.style.backgroundColor;M.style.color=M.getAttribute("fcolor")}}J=E.getElementById(DxTreeView.TREE_LABEL+DxTreeView.LIMITOR+I+DxTreeView.LIMITOR+A);J.style.backgroundColor=L.SELECTEDBACKGROUND;J.style.color=L.SELECTEDFOREGROUND;C=DxTreeView.TREE_FOCUS+DxTreeView.LIMITOR+I+DxTreeView.LIMITOR+A;F=E.getElementById(C);try{if(DxTreeView.__isAncestorDisplay(D,I,A))F.focus()}catch(B){}R.FOCUSEDNODE=A;var K="sel "+H+" 1,";WatCore.appendParameter(D,I,top.DC.PARAMETER_VALUE,K);var P="html "+H+" 1,";top.WatCore.call(D,I,P);stopEvent(event)};DxTreeView.__isAncestorDisplay=function(B,F,_){var E=true,$=DxTreeView.__getParentNodeID(_),C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),D=A.getElementById(DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+F+DxTreeView.LIMITOR+$);while(D!=null){if(D.style.display=="none"){E=false;break}$=DxTreeView.__getParentNodeID($);D=A.getElementById(DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+F+DxTreeView.LIMITOR+$)}return E};DxTreeView.__isLeaf=function(A,E,$){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),C=top.E_getObject(A,DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+E+DxTreeView.LIMITOR+$,_),D=false;if(C==null)D=true;return D};DxTreeView.expandNode=function(A,D,$){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),C=top.E_getObject(A,DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+D+DxTreeView.LIMITOR+$,_);if(C!=null){if(C.style.display!="block")C.style.display="block";else return;DxTreeView.__exchangeIcon(A,D,$,true);DxTreeView.__expandStatusChanged(A,D,$,true)}};DxTreeView.collapseNode=function(A,D,$){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),C=top.E_getObject(A,DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+D+DxTreeView.LIMITOR+$,_);if(C.style.display!="none")C.style.display="none";else return;DxTreeView.__exchangeIcon(A,D,$,false);DxTreeView.__expandStatusChanged(A,D,$,false)};DxTreeView.toggleExpand=function(A,G,$){var K=top.E_clientModel.E_getWindow(A),B=WatCore.getWindowDoc(A,K),D=WatCore.getWindow(A,K),J=top.E_getObject(A,G,B);if(!J.ENABLED)return;if(!DxTreeView.__isActionReady())return;var K=top.E_clientModel.E_getWindow(A),_=DxTreeView.__getNodeID($.id),E=B.getElementById(DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+G+DxTreeView.LIMITOR+_),F=DxTreeView.__getTreeViewID(A,G,_),I,L=J.EXPANDEDEVENT,M=J.WILLEXPANDEVENT,C=J.PARTDOWNLOAD;J.SCROLLTOP=parseInt(B.getElementById(G).scrollTop.toString());J.SCROLLLEFT=parseInt(B.getElementById(G).scrollLeft.toString());if(E.style.display=="none"){var H=B.getElementById("WP$"+G+"$"+_);if(M){if(H.innerHTML=="")I="exp "+F+" 2";else I="exp "+F+" 1";top.WatCore.call(A,G,I);DxTreeView.expandNode(A,G,_);return}if(H.innerHTML==""){I="com "+F+" 1";top.WatCore.call(A,G,I);DxTreeView.expandNode(A,G,_);return}else I="exp "+F+" 1";DxTreeView.expandNode(A,G,_)}else{I="exp "+F+" 0";if(M){WatCore.appendParameter(A,G,top.DC.PARAMETER_VALUE,I+",");top.WatCore.call(A,G,I);DxTreeView.collapseNode(A,G,_);return}DxTreeView.collapseNode(A,G,_)}WatCore.appendParameter(A,G,top.DC.PARAMETER_VALUE,I+",");if(L){top.WatCore.call(A,G,I);return}I+=" "+E.id+",";if(!L&&!M&&C&&!DxTreeView.__isAllChildrenDownloaded(A,G,_))top.WatCore.call(A,G,I)};DxTreeView.changeNodes=function(_,E,$,I){var J=top.E_clientModel.E_getWindow(_),A=WatCore.getWindowDoc(_,J),H=top.E_getObject(_,E,A);if(!H.ENABLED)return;var C=A.getElementById(DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+E+DxTreeView.LIMITOR+$),D=DxTreeView.__getTreeViewID(_,E,$),G,K=H.EXPANDEDEVENT,L=H.WILLEXPANDEVENT,B=H.PARTDOWNLOAD;H.SCROLLTOP=parseInt(A.getElementById(E).scrollTop.toString());H.SCROLLLEFT=parseInt(A.getElementById(E).scrollLeft.toString());if(I=="true"){var F=A.getElementById("WP$"+E+"$"+$);if(F.innerHTML==""){G="com "+D+" 1";top.WatCore.call(_,E,G);DxTreeView.expandNode(_,E,$);return}DxTreeView.expandNode(_,E,$)}else{G="exp "+D+" 0";if(L){top.WatCore.call(_,E,G);DxTreeView.collapseNode(_,E,$);return}DxTreeView.collapseNode(_,E,$)}WatCore.appendParameter(_,E,top.DC.PARAMETER_VALUE,G+",");if(K){top.WatCore.call(_,E,G);return}G+=" "+C.id+",";if(!K&&!L&&B&&!DxTreeView.__isAllChildrenDownloaded(_,E,$))top.WatCore.call(_,E,G)};DxTreeView.__expandStatusChanged=function(A,E,$,D){var C=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,C),B=_.getElementById(DxTreeView.NODE_ICON+DxTreeView.LIMITOR+E+DxTreeView.LIMITOR+$);if(B!=null)DxTreeView.__changeIcon(A,E,B)};DxTreeView.__changeIcon=function(C,F,E){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),A=top.E_getObject(C,F,B),_=-1,$=A.APPNAME;for(var G=0;G<DxTreeView.ImageList.length;G++)if(DxTreeView.__compareImageUrl($+DxTreeView.ImageList[G],E.src)){_=G;break}if(_>=3)if(_%2==1)_++;else _--;if(_!=-1)E.src=$+DxTreeView.ImageList[_]};DxTreeView.__isAllChildrenDownloaded=function(A,E,$){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),C=_.getElementById(DxTreeView.NODES_WRAPPER+DxTreeView.LIMITOR+E+DxTreeView.LIMITOR+$),D=false;if(C.childNodes.length>0)D=true;return D};DxTreeView.__isActionReady=function(){return true};DxTreeView.CheckState=function($){alert("dfdf")};DxTreeView.render=function(C,M,K){var D=K.getAttribute("cid"),B=K.selectNodes("*");for(var G=0;G<B.length;G++){var F=B[G].nodeName;F=F.substring(1,F.length);var N=top.isIE?B[G].text:B[G].textContent;switch(F){case top.DC.ADDNODE:var J=M.getElementById(D),_=N.indexOf("]"),I=N.substring(1,_);N=N.substring(_+1,N.length);var A=J.ownerDocument.getElementById(I);if(A==null){$(J).html("");insertHTML(J,"BeforeEnd",N)}else if(A.innerHTML==""){$(A).html("");insertHTML(A,"BeforeEnd",N)}var P=DxTreeView.__getNodeID(I);if(P!=null)DxTreeView.expandNode(C,D,P);if(J.SCROLLTOP){J.scrollTop=J.SCROLLTOP;J.scrollLeft=J.SCROLLLEFT}break;case top.DC.EXPAND:_=N.lastIndexOf("$");if(_==-1)return;var I=N.substring(0,_),H=N.substring(_+1,N.length),E=E_frame.location.href,_=E.indexOf("="),O=E.indexOf("&"),L=E.substring(_+1,O);DxTreeView.changeNodes(L,D,I,H);break;case top.DC.VISIBLE:M.getElementById(D).style.visibility=N;break;case top.DC.DISPLAY:J=top.E_getObject(C,"E_SW_"+D,M);if(N=="true"){J.style.visibility="visible";J.style.display="block"}else{J.style.visibility="hidden";J.style.display="none"}break;case top.DC.BORDERSTYLE:M.getElementById(D).style.borderStyle=N;break;case top.DC.BORDERWIDTH:M.getElementById(D).style.borderWidth=N;break;case top.DC.BORDERCOLOR:M.getElementById(D).style.borderColor=N;break;case top.DC.WIDTH:M.getElementById(D).style.width=N;break;case top.DC.HEIGHT:M.getElementById(D).style.height=N;break;case top.DC.ENABLED:if(N=="true")M.getElementById(D).disabled=false;else M.getElementById(D).disabled=true;break;case top.DC.X:M.getElementById("E_SW_"+D).style.left=N;break;case top.DC.Y:M.getElementById("E_SW_"+D).style.top=N;break;case top.DC.BACKGROUND:M.getElementById(D).style.backgroundColor=N;break;case top.DC.FOREGROUND:M.getElementById(D).style.color=N;break;case top.DC.UPDATE:top.E_removeObject(C);break;case top.DC.fontFamily:M.getElementById(D).style.fontFamily=N;break;case top.DC.FOCUSNODE:DxTreeView._setFocusToNodeByServer(C,D,N,true);break;case top.DC.FOCUSNODENOFOCUS:DxTreeView._setFocusToNodeByServer(C,D,N,false);break;case top.DC.fontSize:M.getElementById(D).style.fontSize=N;break;case top.DC.fontWeight:M.getElementById(D).style.fontWeight=N;break;case top.DC.fontStyle:M.getElementById(D).style.fontStyle=N;break;case top.DC.textDecoration:M.getElementById(D).style.textDecoration=N;break;default:break}}};function DxTitlePanel(){}DxTitlePanel.init=function(D,_){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,_,B);$(A).unbind("resize");$(A).bind("resize",D,function($){top.DxTitlePanel.resizeChange(D,_)});DxTitlePanel.resizeChange(D,_)};DxTitlePanel.clear=function(_,$,A){};DxTitlePanel.resizeChange=function(E,$){if(top.isIE){var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),_=top.E_getObject(E,$,B);if(_!=null){var F=WatCore.getClientRect(_);_.ow=parseInt(F.w);_.oh=parseInt(F.h);var A=_.ownerDocument.getElementById($+"_content"),D=_.oh-_.getAttribute("titleheight");if(D>=0){A.oh=D;A.style.height=A.oh+"px"}}}return true};DxTitlePanel.center=function(F,_,D){var H=parseInt(window.document.body.clientWidth),I=parseInt(window.document.body.clientHeight),A=top.E_getObject(F,_,D),C=parseInt(A.style.width),$=parseInt(A.style.height),E,G;if(H<=C)E=0;else E=(H-C)/2;if(I<=$)G=0;else{G=(I-$)/2;G-=52;if(G<0)G=0}var B=top.E_getObject(F,"E_SW_"+_,D);B.style.top=G+"px";B.style.left=E+"px"};DxTitlePanel.onclick=function(_,$){WatCore.call(_,$,"titleimageclick")};DxTitlePanel.render=function($,G,F){var A=F.getAttribute("cid"),_=F.selectNodes("*");for(var C=0;C<_.length;C++){var B=_[C].nodeName;B=B.substring(1,B.length);var H=top.isIE?_[C].text:_[C].textContent;switch(B){case top.DC.WIDTH:top.E_getObject($,A,G).style.width=H+"px";break;case top.DC.MOVE_TO_CENTER:top.DxTitlePanel.center($,A,G);break;case top.DC.HEIGHT:var E=top.E_getObject($,A,G);E.style.height=H;E.ownerDocument.getElementById(A+"_content").oh=H+"px";break;case top.DC.TITLE:top.E_getObject($,A+"_text",G).innerText=H;break;case top.DC.VISIBLE:top.E_getObject($,"E_SW_"+A,G).style.visibility=H;break;case top.DC.TITLE_BK_ICON:top.E_getObject($,A+"_title",G).style.backgroundImage="url('"+H+"')";break;case top.DC.BK_IMG:top.E_getObject($,A+"_content",G).style.backgroundImage="url('"+H+"')";break;case top.DC.ICON:var D=top.E_getObject($,A+"_img",G);D.src=H;break;case top.DC.SCROLLABLE:var J=top.E_getObject($,A+"_content",G);if(H=="true"){J.style.overflow="auto";J.sc="true"}else{J.style.overflow="hidden";J.sc="false"}break;case top.DC.BORDERSTYLE:top.E_getObject($,A+"_title",G).style.borderStyle=H;var I=top.E_getObject($,A+"_content",G).style;I.borderLeftStyle=H;I.borderBottomStyle=H;I.borderRightStyle=H;break;case top.DC.BORDERWIDTH:top.E_getObject($,A+"_title",G).style.borderWidth=H;I=top.E_getObject($,A+"_content",G).style;I.borderLeftWidth=H;I.borderBottomWidth=H;I.borderRightWidth=H;break;case top.DC.BORDERCOLOR:top.E_getObject($,A+"_title",G).style.borderColor=H;I=top.E_getObject($,A+"_content",G).style;I.borderLeftColor=H;I.borderBottomColor=H;I.borderRightColor=H;break;case top.DC.X:top.E_getObject($,"E_SW_"+A,G).style.left=H;break;case top.DC.Y:top.E_getObject($,"E_SW_"+A,G).style.top=H;break;case top.DC.ENABLED:J=top.E_getObject($,A+"_content",G);if(H=="true")J.disabled=false;else J.disabled=true;break;case top.DC.BACKGROUND:top.E_getObject($,A+"_content",G).style.backgroundColor=H;break;case top.DC.FOREGROUND:top.E_getObject($,A+"_content",G).style.color=H;break;case top.DC.FOCUS:E=top.E_getObject($,A,G);WatCore.setFocus(E);break;case top.DC.DISPLAY:E=top.E_getObject($,"E_SW_"+A,G);if(H=="true"){E.style.visibility="visible";E.style.display="block"}else{E.style.visibility="hidden";E.style.display="none"}break;default:break}}};function DxHrefLabel(){}DxHrefLabel.init=function(B,C){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),$=top.E_getObject(B,C,_);WatCore.setParameter(B,C,top.DC.URL,watLocation2)};DxHrefLabel.call=function(_,$){WatCore.call(_,$,"enter")};DxHrefLabel.render=function(_,D,B){var G=B.getAttribute("cid"),A=B.selectNodes("*");for(var I=0;I<A.length;I++){var H=A[I].nodeName;H=H.substring(1,H.length);var C=top.isIE?A[I].text:A[I].textContent;switch(H){case top.DC.WIDTH:top.E_getObject(_,G,D).style.width=C;break;case top.DC.HEIGHT:top.E_getObject(_,G,D).style.height=C;break;case top.DC.TEXT:var F=G;top.E_getObject(_,F,D).innerText=C;break;case top.DC.FILEPATH:F=G;top.E_getObject(_,F,D).href=C;break;case top.DC.VISIBLE:top.E_getObject(_,G,D).style.visibility=C;break;case top.DC.UPDATE:var E=top.E_getObject(_,"E_SW_"+G,D);$(E).html("");insertHTML(E,"BeforeEnd",C);break;case top.DC.BORDERSTYLE:top.E_getObject(_,G,D).style.borderStyle=C;break;case top.DC.BORDERWIDTH:top.E_getObject(_,G,D).style.borderWidth=C;break;case top.DC.BORDERCOLOR:top.E_getObject(_,G,D).style.borderColor=C;break;case top.DC.X:top.E_getObject(_,"E_SW_"+G,D).style.left=C;break;case top.DC.Y:top.E_getObject(_,"E_SW_"+G,D).style.top=C;break;case top.DC.ENABLED:break;default:break}}};function DxPopGrid(){}DxPopGrid.init=function($,_){DxPopGrid.hide(_)};DxPopGrid.render=function(frameId,doc,controlNode){var componentId=controlNode.getAttribute("cid"),oNodes=controlNode.selectNodes("*");for(var i=0;i<oNodes.length;i++){var propName=oNodes[i].nodeName;propName=propName.substring(1,propName.length);var value=top.isIE?oNodes[i].text:oNodes[i].textContent;switch(propName){case top.DC.UPDATE_FLAG:eval("var data="+value);this.createReport(componentId,data);break;case top.DC.CHANGE_FLAG:eval("var data="+value);this.setReportData(componentId,data);break;case top.DC.POPGRID_SHOW:var pars=value.split("&");this.show(componentId,pars[0],pars[1]);break;case top.DC.POPGRID_HIDDEN:this.hide(componentId);break;default:break}}};DxPopGrid.createReport=function(D,B){var A=$$(D);A.html(B.tmpl);var _=A.children();$(_[0]).addClass("DxPopGrid-divList");var E=_.find("thead");E.addClass("DxPopGrid-divList");E.find("tr").addClass("DxPopGrid-divListTitle");E.find("td").addClass("DxPopGrid-divList");var C=_.find("tbody");C.addClass("DxPopGrid-divList");C.find("td").addClass("DxPopGrid-divList");this.setReportData(D,B)};DxPopGrid.setReportData=function(G,E){var _=$$(G).children(),I=$(_).find("tr[@meta=row]"),D=E.data==null?0:E.data.length,H=E.meta;for(var J=0;J<D;++J){var B=E.data[J],C=I[0].cloneNode(true);for(var F=0;F<B.length;++F){var A=$(C).find("td[@meta="+H[F].n+"]");A.html(B[F]+"")}I[0].parentNode.insertBefore(C,I[0]);$(C).attr("_rownum",J);$(C).attr("_container",G);$(C).removeClass();if(J%2==0)$(C).addClass("DxPopGrid-repList1");else $(C).addClass("DxPopGrid-repList2");$(C).mouseover(function(){$(this).css("background-color","#CCCCFF")});$(C).mouseout(function(){$(this).css("background-color","")});$(C).click(function(){var _=$(this).attr("_rownum"),A=$$($(this).attr("_container"));WatCore.call(A.attr("winId"),A.attr("id"),"row&"+_);DxPopGrid.hide($(this).attr("_container"))})}I.remove()};DxPopGrid.show=function(_,B,A){var $=$$("E_SW_"+_);$.css("left",B);$.css("top",A);$.show()};DxPopGrid.hide=function($){$$("E_SW_"+$).hide()};DxPopGrid.keydown=function(C,$){var A=$$("E_SW_"+C),B=parseInt(A.attr("currow"));if($==40||$==38){var _=parseInt(A.attr("rowcount"));A.find("[@_rownum="+B+"]").mouseout();if($==40){if(++B>=_)B=0}else if(--B<=-1)B=_-1;A.find("[@_rownum="+B+"]").mouseover();A.attr("currow",B)}else if($==13)A.find("[@_rownum="+B+"]").click()};var DxMenu={};DxMenu.openMenuList={};DxMenu.openMenuSubList={};DxMenu.selectItem=null;DxMenu.selectSubItem=null;DxMenu.nMenuTimeout=null;DxMenu.showSubMenu=function(P,C,J){var X=P.getAttribute("disabled");if(X=="disabled")return;window.clearTimeout(DxMenu.nMenuTimeout);var L=P.ownerDocument.body.clientWidth||P.ownerDocument.documentElement.clientWidth,U=P.ownerDocument.body.clientHeight||P.ownerDocument.documentElement.clientHeight,R=$(P),K=P.ownerDocument.getElementById(R.attr("sub")),D=R.attr("pop");if(!K)return;var I=R.attr("sub");if(J)J.cancelBubble=true;if(DxMenu.openMenuSubList[I]!=null&&C=="vertical"){DxMenu.closeAllMenu(true);return}if(C=="horizontal"){var _=1,N=1;if((parseInt(__getAbsoluteCoords(P).x)+P.offsetWidth+K.offsetWidth>L-10))_=P.offsetWidth+K.offsetWidth-4;var Y=__getAbsoluteCoords(P).y-2;if((Y+parseInt(K.clientHeight))>U-30)Y=U-30-parseInt(K.clientHeight);if(parseInt(Y)<0)Y=4;K.style.top=Y+"px";var M=(__getAbsoluteCoords(P).x)+P.offsetWidth-_-2;K.style.left=(M>0?M:2)+"px";DxMenu.selectSubItem=K}else{if(D!="1"){if(parseInt(__getAbsoluteCoords(P).y)+P.offsetHeight+K.offsetHeight+10<U)K.style.top=((__getAbsoluteCoords(P).y)+P.offsetHeight-1)+"px";else K.style.top=((__getAbsoluteCoords(P).y)-K.offsetHeight-1)+"px";K.style.left=((__getAbsoluteCoords(P).x)-2)+"px"}else{var Q=$(P).attr("winid"),W=top.E_clientModel.E_getWindow(Q),A=0,H=0,T=W.isiframe;if((T!="true"||Q==top.DESKTOP)&&!top.isIE){var S=DxMenu.__getAbsoluteCoords(P),V=$(W).offset(),Y=S.y,B=0;if(S.wy>0){B=S.wy-(V?V.top:0);Y-=B}else{if(W.bHasTitle){Y-=31;B+=31}if(W.bHasMenubar){Y-=28*2;B+=28*2}}if(parseInt(Y)<0)Y=4;if((Y+parseInt(K.clientHeight))>$(W).height()-2-B)Y-=parseInt(K.clientHeight);K.style.top=Y+"px";var Z;if(S.wx>0)Z=(S.x-S.wx+(V?V.left:0));else Z=(S.x);if(((Z+parseInt(K.clientWidth))>$(W).width()-2)||((Z+parseInt(K.clientWidth))+(V?V.left:0)>L-2))Z-=parseInt(K.clientWidth);K.style.left=Z+"px"}else{if(parseInt(__getAbsoluteCoords(P).y)+P.offsetHeight+K.offsetHeight<U)K.style.top=((__getAbsoluteCoords(P).y)-1)+"px";else K.style.top=((__getAbsoluteCoords(P).y)-1)+"px";S=DxMenu.__getAbsoluteCoords(P),Y=S.y,B=0;if(S.wy>0){B=S.wy;Y-=B}else{if(W.bHasTitle)Y-=31;if(W.bHasMenubar)Y-=28}if((Y+parseInt(K.clientHeight))>U-2)Y-=parseInt(K.clientHeight);if(parseInt(Y)<0)Y=4;K.style.top=Y+"px";K.style.left=((DxMenu.__getAbsoluteCoords(P).x)-2)+"px"}}DxMenu.mSetMainMenuItemStyle(P,"inset");DxMenu.openMenuList["openmain"]=P;DxMenu.selectItem=P;DxMenu.selectSubItem=K}var O=P.ownerDocument.getElementById(K.getAttribute("sub"));if(K.style.visibility=="visible"&&C=="vertical"){K.style.visiblity="hidden";DxMenu.closeAllMenu(true)}else{K.style.visibility="visible";DxMenu.openMenuSubList[I]=K;if(C=="horizontal"){var G=DxMenu.getItemBorder(P).id;if(G!=null&&G!="")if(DxMenu.openMenuSubList[G])DxMenu.openMenuSubList[G]["child"]=K}DxMenu.openMenuSubList[I]["parent"]=P;var E=DxMenu.openMenuSubList[I]["selected"];if(E){E.style.color="";E.style.backgroundColor="";var F=$("#"+E.id+"_image_parent",E);F.css("background","");E=null}}};DxMenu.showSubMenu2=function(E,B,M){var P=E.getAttribute("disabled");if(P=="disabled")return;window.clearTimeout(DxMenu.nMenuTimeout);var Q=E.ownerDocument.documentElement.clientWidth||E.ownerDocument.body.clientWidth,K=E.ownerDocument.documentElement.clientHeight||E.ownerDocument.body.clientHeight,G=$(E),N=E.ownerDocument.getElementById(G.attr("sub")),F=G.attr("pop");if(!N)return;var L=G.attr("sub");if(M)M.cancelBubble=true;if(DxMenu.openMenuSubList[L]!=null&&B=="vertical"){DxMenu.closeAllMenu(true);return}if(B=="horizontal"){var _=1,C=1;if(parseInt(__getAbsoluteCoords(E).x)+E.offsetWidth+N.offsetWidth>Q-10)_=E.offsetWidth+N.offsetWidth-4;var O=__getAbsoluteCoords(E).y-2;if((O+parseInt(N.clientHeight))>K-30)O=K-30-parseInt(N.clientHeight);if(parseInt(O)<0)O=4;N.style.top=O+"px";var A=(__getAbsoluteCoords(E).x)+E.offsetWidth-_-2;N.style.left=(A>0?A:2)+"px";DxMenu.selectSubItem=N}else{if(F!="1"){if(parseInt(__getAbsoluteCoords(E).y)+E.offsetHeight+N.offsetHeight+10<K)N.style.top=((__getAbsoluteCoords(E).y)+E.offsetHeight-1)+"px";else N.style.top=((__getAbsoluteCoords(E).y)-N.offsetHeight-1)+"px"}else{if(parseInt(__getAbsoluteCoords(E).y)+E.offsetHeight+N.offsetHeight<K)N.style.top=((__getAbsoluteCoords(E).y)-1)+"px";else N.style.top=((__getAbsoluteCoords(E).y)-1)+"px";O=(__getAbsoluteCoords(E).y)-1;if((O+parseInt(N.clientHeight))>K-2)O-=parseInt(N.clientHeight);if(parseInt(O)<0)O=4;N.style.top=O+"px"}N.style.left=((__getAbsoluteCoords(E).x)-2)+"px";DxMenu.mSetMainMenuItemStyle(E,"inset");DxMenu.openMenuList["openmain"]=E;DxMenu.selectItem=E;DxMenu.selectSubItem=N}var D=E.ownerDocument.getElementById(N.getAttribute("sub"));if(N.style.visibility=="visible"&&B=="vertical"){N.style.visiblity="hidden";DxMenu.closeAllMenu(true)}else{N.style.visibility="visible";DxMenu.openMenuSubList[L]=N;if(B=="horizontal"){var J=DxMenu.getItemBorder(E).id;if(J!=null&&J!="")if(DxMenu.openMenuSubList[J])DxMenu.openMenuSubList[J]["child"]=N}DxMenu.openMenuSubList[L]["parent"]=E;var H=DxMenu.openMenuSubList[L]["selected"];if(H){H.style.color="";H.style.backgroundColor="";var I=$("#"+H.id+"_image_parent",H);I.css("background","");H=null}}};DxMenu.getItemBorder=function($){return $.parentNode.parentNode.parentNode};DxMenu.closeAllMenu=function($){try{var A=DxMenu.openMenuSubList;if(A)for(var B in A)if(A[B]!=null){A[B].style.visibility="hidden";DxMenu.mSetMainMenuItemStyle(A[B],"outset")}if(DxMenu.openMenuList["openmain"]){try{if(DxMenu.openMenuList["openmain"].getAttribute("pop")!="1")DxMenu.mSetMainMenuItemStyle(DxMenu.openMenuList["openmain"],"outset");else DxMenu.openMenuList["openmain"].style.visibility="hidden"}catch(_){}}try{if(DxMenu.selectItem!=null&&DxMenu.selectItem.getAttribute("pop")=="1")DxMenu.selectItem.style.visibility="hidden"}catch(_){}if($)DxMenu.openMenuList={};if(DxMenu.selectSubItem!=null&&DxMenu.selectSubItem["parent"]!=null)DxMenu.mSetMainMenuItemStyle(DxMenu.selectSubItem["parent"],"outset");DxMenu.openMenuSubList={};DxMenu.selectSubItem=null}catch(_){alert(_.message)}};DxMenu.closeMenu=function(_){try{if(_.getAttribute("active")=="false"){_.style.visibility="hidden";DxMenu.closeMenu(DxMenu.openMenuSubList[_.id]["child"]);DxMenu.openMenuSubList[_.id]=null}}catch($){}};DxMenu.mMainMouseOver=function($){DxMenu.closeAllMenu();if(DxMenu.openMenuList["openmain"]){DxMenu.mSetMainMenuItemStyle(DxMenu.openMenuList["openmain"],"outset");DxMenu.showSubMenu($,"vertical");DxMenu.openMenuList["openmain"]=$;DxMenu.mSetMainMenuItemStyle($,"inset")}else DxMenu.mSetMainMenuItemStyle($,"inset")};DxMenu.mtaskMouseOver=function($){DxMenu.closeAllMenu();DxMenu.mSetMainMenuItemStyle(DxMenu.openMenuList["openmain"],"outset");DxMenu.showSubMenu($,"horizontal");DxMenu.openMenuList["openmain"]=$;DxMenu.mSetMainMenuItemStyle($,"inset")};DxMenu.mtaskMouseOver2=function(_,$){DxMenu.closeAllMenu();DxMenu.mSetMainMenuItemStyle(DxMenu.openMenuList["openmain"],"outset");DxMenu.showSubMenu2(_,"horizontal");DxMenu.openMenuList["openmain"]=_;DxMenu.mSetMainMenuItemStyle(_,"inset",$)};DxMenu.mMainMouseOut=function($){if($.signalmenut=="inset"||$.signalmenut==null)DxMenu.mSetMainMenuItemStyle($,"outset")};DxMenu.taskmenubuttonMouseOut=function($){$.className="DxTaskMenuButton"};DxMenu.taskmenubuttonMouseOver=function($){$.className="DxTaskMenuButton-mouseover"};DxMenu.mMainMouseClick=function(_,$){};DxMenu.mSetMainMenuItemStyle=function(C,A,B){try{switch(A){case"inset":C.signalment="inset";C.style.backgroundColor="#3399ff";$(".DxMenu-text",C).css("color","#ffffff");break;case"outset":C.signalment="outset";C.style.backgroundColor="transparent";$(".DxMenu-text",C).css("color","");C.style.backgroundImage="";break;case"float":break;default:break}}catch(_){}};DxMenu.mDocumentClick=function(){try{window.clearTimeout(DxMenu.nMenuTimeout);DxMenu.closeAllMenu(true);top.Desktop.topTaskBarReturn();var A=WatCore.taskbar;if(A!=null){var J=document.getElementById("desktopbar");J.style.zIndex="2";J.style.height="30px";var I=A.taskmenu;if(I!=null&&I.style.visibility!="hidden")I.style.visibility="hidden"}DxTaskBar.pushwebformshow();DxNewMediaplayer.pause();var B=WatCore.piaofouleftbar;if(B==null){var H=top.E_clientModel.E_getWindow(top.DESKTOP),D=H.document,F=D.getElementById("piaofouleftbar");WatCore.piaofouleftbar=F;B=WatCore.piaofouleftbar}if(B!=null&&B.style.visibility!="hidden"){var E=B.dnum;if(E!=null&&E>0)B.dnum=E-1;else{var G=B.swidth;B.style.left=((parseInt(G)+21)*-1)+"px"}}var $=WatCore.piaofourightbar;if($==null){H=top.E_clientModel.E_getWindow(top.DESKTOP),D=H.document,F=D.getElementById("piaofourightbar");WatCore.piaofourightbar=F;$=WatCore.piaofourightbar}if($!=null&&$.style.visibility!="hidden"){E=$.dnum;if(E!=null&&E>0)$.dnum=E-1;else $.style.left=(parseInt(document.body.clientWidth)-1)+"px"}var C=WatCore.piaofoutopbar;if(C==null){H=top.E_clientModel.E_getWindow(top.DESKTOP),D=H.document,F=D.getElementById("piaofoutopbar");WatCore.piaofoutopbar=F;C=WatCore.piaofoutopbar}if(C!=null&&C.style.visibility!="hidden"){E=C.dnum;if(E!=null&&E>0)C.dnum=E-1;else C.style.top=((parseInt(C.sheight)+22)*-1)+"px"}}catch(_){}};DxMenu.mSubItemMouseOver=function(F,G){try{$(F).mouseleave(function(){DxMenu.mSubItemMouseOut(F)});var J=DxMenu.getItemBorder(F).id;if(DxMenu.openMenuSubList[J]["selected"]&&DxMenu.openMenuSubList[J]["selected"].id==F.id&&DxMenu.openMenuSubList[J]["selected"].style.backgroundImage!="")return;if(DxMenu.openMenuSubList[J]["selected"]){var M=DxMenu.openMenuSubList[J]["selected"];M.className="";M.style.backgroundImage="";M.style.background="";var K=M.ownerDocument.getElementById(M.id+"_image_parent");if(K!=null)K.style.background="";var H=M.ownerDocument.getElementById(M.id+"_text");if(H!=null)H.style.backgroundImage="";var E=M.ownerDocument.getElementById(M.id+"_three");if(E!=null)E.style.backgroundImage="";var C=M.ownerDocument.getElementById(M.id+"_sortKey");if(C!=null)C.style.backgroundImage="";var I=M.ownerDocument.getElementById(M.id+"_five");if(I!=null)I.style.backgroundImage="";if(DxMenu.openMenuSubList[J]["child"])DxMenu.closeMenu(DxMenu.openMenuSubList[J]["child"])}if(DxMenu.openMenuSubList[J])DxMenu.openMenuSubList[J]["selected"]=F;if(DxMenu.openMenuSubList[J]["parent"]&&DxMenu.openMenuSubList[J]["parent"].tagName!="SPAN"){DxMenu.openMenuSubList[J]["parent"].style.background="#91c9f7";var N=DxMenu.openMenuSubList[J]["parent"]}if(DxMenu.openMenuList["openmain"])DxMenu.mSetMainMenuItemStyle(DxMenu.openMenuList["openmain"],"inset");F.style.background="#91c9f7";var P=F.ownerDocument.getElementById(F.id+"_image_parent");if(P!=null)P.style.background="#91c9f7";var D=F.ownerDocument.getElementById(F.id+"_text");if(D!=null);var L=F.ownerDocument.getElementById(F.id+"_three");if(L!=null);var B=F.ownerDocument.getElementById(F.id+"_sortKey");if(B!=null);var O=F.ownerDocument.getElementById(F.id+"_five");if(O!=null);if(F.getAttribute("sub")){var _=function(){if(DxMenu.openMenuSubList[F.getAttribute("sub")]==null)DxMenu.showSubMenu2(F,"horizontal")};DxMenu.nMenuTimeout=window.setTimeout(_,444)}}catch(A){}};DxMenu.mSubItemMouseOver2=function(F,G){try{$(F).mouseleave(function(){DxMenu.mSubItemMouseOut(F)});var J=DxMenu.getItemBorder(F).id;if(DxMenu.openMenuSubList[J]["selected"]&&DxMenu.openMenuSubList[J]["selected"].id==F.id)return;if(DxMenu.openMenuSubList[J]["selected"]){var M=DxMenu.openMenuSubList[J]["selected"];M.className="";M.style.backgroundImage="";var K=M.ownerDocument.getElementById(M.id+"_image_parent");if(K!=null)K.style.backgroundImage="";var H=M.ownerDocument.getElementById(M.id+"_text");if(H!=null){H.style.backgroundImage="";H.style.color="#000"}var E=M.ownerDocument.getElementById(M.id+"_three");if(E!=null)E.style.backgroundImage="";var C=M.ownerDocument.getElementById(M.id+"_sortKey");if(C!=null)C.style.backgroundImage="";var I=M.ownerDocument.getElementById(M.id+"_five");if(I!=null)I.style.backgroundImage="";if(DxMenu.openMenuSubList[J]["child"])DxMenu.closeMenu(DxMenu.openMenuSubList[J]["child"])}if(DxMenu.openMenuSubList[J])DxMenu.openMenuSubList[J]["selected"]=F;if(DxMenu.openMenuSubList[J]["parent"]&&DxMenu.openMenuSubList[J]["parent"].tagName!="SPAN")if(DxMenu.openMenuSubList[J]["parent"].style.backgroundImage=="")DxMenu.openMenuSubList[J]["parent"].style.backgroundImage="url('"+watLocation2+"/resources/component/mback.jpg')";if(DxMenu.openMenuList["openmain"])DxMenu.mSetMainMenuItemStyle(DxMenu.openMenuList["openmain"],"inset","/resources/component/mbackbig.jpg");var D=F.ownerDocument.getElementById(F.id+"_text");if(D!=null)D.style.backgroundImage="url('"+watLocation2+"/resources/component/mback.jpg')";var L=F.ownerDocument.getElementById(F.id+"_three");if(L!=null)L.style.backgroundImage="url('"+watLocation2+"/resources/component/mback.jpg')";var B=F.ownerDocument.getElementById(F.id+"_sortKey");if(B!=null)B.style.backgroundImage="url('"+watLocation2+"/resources/component/mback.jpg')";var N=F.ownerDocument.getElementById(F.id+"_five");if(N!=null)N.style.backgroundImage="url('"+watLocation2+"/resources/component/mback.jpg')";F.style.backgroundImage="url('"+watLocation2+"/resources/component/mback.jpg')";var O=F.ownerDocument.getElementById(F.id+"_image_parent");if(O!=null)O.style.backgroundImage="url('"+watLocation2+"/resources/component/mback.jpg')";if(F.getAttribute("sub")){var _=function(){if(DxMenu.openMenuSubList[F.getAttribute("sub")]==null)DxMenu.showSubMenu2(F,"horizontal")};DxMenu.nMenuTimeout=window.setTimeout(_,444)}}catch(A){}};DxMenu.doAction=function(B,_,E){if(E!=null){var D=E.getAttribute("disabled");if(D=="disabled")return}var $=WatCore.taskbar;if($!=null){var C=document.getElementById("desktopbar");C.style.zIndex="2";C.style.height="30px";var A=$.taskmenu;if(A!=null&&A.style.visibility!="hidden")A.style.visibility="hidden";if(DxMenu.openMenuList["openmain"])DxMenu.mSetMainMenuItemStyle(DxMenu.openMenuList["openmain"],"outset")}top.WatCore.call(B,_,"press",event)};DxMenu.checkSelectAction=function(D,_,F,C){var E=F.ownerDocument.getElementById(_+"_image");if(C=="true"){F.select=C;var $=watLocation2+"/resources/core/checkMenuOn.gif";if(E!=null){E.oldsrc=E.src;E.src=$}else{var B=F.ownerDocument.getElementById(_+"_image_parent");insertHTML(B,"BeforeEnd","<IMG id="+_+"_image SRC="+$+" WIDTH=16 HEIGHT=16>");top.E_removeTheObject(D,_+"_checked");top.E_removeTheObject(D,_+"_font");top.E_removeTheObject(D,_);top.E_removeTheObject(D,_+"_image");top.E_removeTheObject(D,_+"_image_parent")}}else{F.select=C;if(E!=null){var A=E.oldsrc;if(A!=undefined&&A!=null&&A!="")E.src=A;else{B=F.ownerDocument.getElementById(_+"_image_parent");B.innerHTML=""}}}};DxMenu.doItemAction=function(B,_,E){var D=E.getAttribute("disabled");if(D=="disabled")return;var $=WatCore.taskbar;if($!=null){var C=document.getElementById("desktopbar");C.style.zIndex="2";C.style.height="30px";var A=$.taskmenu;if(A!=null&&A.style.visibility!="hidden")A.style.visibility="hidden";if(DxMenu.openMenuList["openmain"])DxMenu.mSetMainMenuItemStyle(DxMenu.openMenuList["openmain"],"outset")}if(E.getAttribute("checkabled")=="true"){if(E.select=="true")DxMenu.checkSelectAction(B,_,E,"false");else DxMenu.checkSelectAction(B,_,E,"true");WatCore.setParameter(B,_,top.DC.SELECTED,E.select)}if(E.getAttribute("action")=="true")top.WatCore.call(B,_,"press",event)};DxMenu.mSubItemMouseOut=function(C){window.clearTimeout(DxMenu.nMenuTimeout);C.className="";C.style.backgroundImage="";var $=C.ownerDocument.getElementById(C.id+"_image_parent");if($!=null){$.style.backgroundImage="";$.style.backgroundColor=""}var B=C.ownerDocument.getElementById(C.id+"_text");if(B!=null)B.style.backgroundImage="";var A=C.ownerDocument.getElementById(C.id+"_three");if(A!=null)A.style.backgroundImage="";var _=C.ownerDocument.getElementById(C.id+"_sortKey");if(_!=null)_.style.backgroundImage="";var D=C.ownerDocument.getElementById(C.id+"_five");if(D!=null)D.style.backgroundImage="";var E=C.ownerDocument.getElementById(C.id+"_image_parent");if(E!=null)E.style.backgroundImage=""};DxMenu.listenKeyItem=function(A){if(DxMenu.selectItem==null)return;if(DxMenu.selectSubItem==null)return;if(!DxMenu.openMenuSubList[DxMenu.selectSubItem.id])return;var $=DxMenu.openMenuSubList[DxMenu.selectSubItem.id]["selected"];if($==null){DxMenu.mSubItemMouseOver(DxMenu.openMenuSubList[DxMenu.selectSubItem.id].children(0).children(0).children(0));return}var _=null;if(A.keyCode==40){_=$.nextSibling;while(_!=null&&(_.disabled||_.offsetHeight<12)){if(_==null)break;_=_.nextSibling}if(_==null)_=$.parentNode.firstChild}else{_=$.previousSibling;while(_!=null&&(_.disabled||_.offsetHeight<12)){if(_==null)break;_=_.previousSibling}if(_==null)_=$.parentNode.lastChild}DxMenu.mSubItemMouseOut($);DxMenu.mSubItemMouseOver(_)};DxMenu.listenKey=function(C,B){B.cancelBubble=true;B.returnValue=false;if(B.keyCode==27)DxMenu.closeAllMenu();if(B.keyCode==13){try{var _;if(DxMenu.selectSubItem!=null){if(!DxMenu.openMenuSubList[DxMenu.selectSubItem.id])return;_=DxMenu.openMenuSubList[dxMenu.selectSubItem.id]["selected"];if(_&&_.click){DxMenu.oEvent=B;_.click();if(_.getAttribute("sub"))return}}}catch($){}DxMenu.closeAllMenu()}if(B.keyCode==38||B.keyCode==40)DxMenu.listenKeyItem(B);if(!(B.keyCode==9||B.keyCode==39||B.keyCode==37))return;var A=null;if(DxMenu.selectItem==null)DxMenu.selectItem=C;if(B.keyCode==39||B.keyCode==9){A=DxMenu.selectItem.nextSibling;while(A!=null&&(A.disabled)){if(A==null)break;A=A.nextSibling}if(A==null)A=DxMenu.selectItem.parentNode.firstChild}else{A=DxMenu.selectItem.previousSibling;while(A!=null&&(A.disabled)){if(A==null)break;A=A.previousSibling}if(A==null)A=DxMenu.selectItem.parentNode.lastChild}DxMenu.mMainMouseOut(DxMenu.selectItem);DxMenu.selectItem=A;DxMenu.mMainMouseOver(A)};function __getAbsoluteCoords(_){var A=new Object();A.x=0;A.y=0;A.w=0;A.h=0;A.sl=0;A.st=0;try{while(_){A.x+=parseInt(_.offsetLeft);A.y+=parseInt(_.offsetTop);A.sl+=parseInt(_.scrollLeft);A.st+=parseInt(_.scrollTop);if(_.getAttribute("isMenu")||_.getAttribute("watform")){A.w=_.clientWidth;A.h=_.clientHeight;break}_=_.offsetParent}}catch($){}return A}DxMenu.__getAbsoluteCoords=function(A){var B=new Object();B.x=0;B.y=0;B.wy=0;B.wx=0;try{while($(A).attr("watform")!="true"&&$(A).attr("windowflag")!="true"){if(top.isIE){B.x=B.x+A.offsetLeft+A.clientLeft-A.scrollLeft;B.y=B.y+A.offsetTop+A.clientTop-A.scrollTop}else{if(A.style.borderLeftWidth)B.x=B.x+A.offsetLeft+parseInt(A.style.borderLeftWidth)-A.scrollLeft;else B.x=B.x+A.offsetLeft-A.scrollLeft;if(A.style.borderTopWidth)B.y=B.y+A.offsetTop+parseInt(A.style.borderTopWidth)-A.scrollTop;else B.y=B.y+A.offsetTop-A.scrollTop}B.w=A.clientWidth;B.h=A.clientHeight;A=A.offsetParent;if($(A).attr("watform")=="true"){B.wy=$(A).offset().top;B.wx=$(A).offset().left;break}}}catch(_){}return B};DxMenu.onpop=function(D,B,K,L){DxMenu.closeAllMenu();var O=top.E_clientModel.E_getWindow(D),E=WatCore.getWindowDoc(D,O),J=E.getElementById(K+"_list"),_=E.getElementById(B),F=WatCore.getWindow(D,O);J.style.visibility="";var P=E.getElementById(K+"_text"),I=O.isiframe,A=0,H=0;if(D!=top.DESKTOP&&I!="true"){var Q=$(O).offset();A=parseInt(Q.left);H=parseInt(Q.top);if(!top.isIE)H-=2}var N=EventUtil.getTarget(L),M=$(J).height(),C=EventUtil.mousePosition(L,E);if(top.isIE){var G=C.y;if(parseInt(G)+M+10>parseInt(E.body.offsetHeight||E.documentElement.offsetHeight))G=G-M;else G+=0;$(P).css({"top":(G-H)+"px","left":(C.x-A)+"px"});$(P).attr("mx",(C.x-A)+"px");$(P).attr("my",(G-H)+"px")}else{G=C.y;if(parseInt(G)+M+10>parseInt(E.body.offsetHeight||E.documentElement.offsetHeight||E.documentElement.clientHeight)){if(I=="true")G=G-M+4;else G=G-M}else G+=0;$(P).css({"top":(G-H)+"px","left":(C.x-A)+"px"});$(P).attr("mx",(C.x-A)+"px");$(P).attr("my",(G-H)+"px")}P.style.zIndex=1000;L.cancelBubble=true;P.onclick()};DxMenu.onpop_dbs=function(B,A,H,I){DxMenu.closeAllMenu();var J=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,J),G=C.getElementById(H+"_list"),E=WatCore.getWindow(B,J);G.style.visibility="";var D=C.getElementById(A),K=C.getElementById(H+"_text");K.style.left=0+"px";K.style.top=0+"px";var $=__getAbsoluteCoords(EventUtil.getTarget(I)),M=$.w,F=$.h,N=parseInt(I.offsetX)+parseInt($.x)+4-$.sl;if(top.isIE)var L=parseInt(I.offsetY)+parseInt($.y)+2-$.st;else var _=C.getElementById(A),L=parseInt(I.offsetY)+parseInt($.y)+2-_.scrollTop;if((N+parseInt(G.clientWidth))>M-10)N-=parseInt(G.clientWidth);if((L+parseInt(G.clientHeight))>F-10)L-=parseInt(G.clientHeight);K.style.zIndex=1000;K.style.left=N+"px";if(J.bHasMenubar==true)L=L-44;if(parseInt(L)<0)L=4;K.style.top=L+"px";I.cancelBubble=true;K.onclick()};DxMenu.render=function(A,J,G){var C=G.getAttribute("cid"),B=G.selectNodes("*"),H=false;for(var E=0;E<B.length;E++){var D=B[E].nodeName;D=D.substring(1,D.length);var K=top.isIE?B[E].text:B[E].textContent;switch(D){case top.DC.MENUTEXT:top.E_getObject(A,C+"_text",J).innerText=K;break;case top.DC.SELECTED:var F=top.E_getObject(A,C,J);if(K=="true")DxMenu.checkSelectAction(A,C,F,"true");else DxMenu.checkSelectAction(A,C,F,"false");break;case top.DC.ENABLED:F=top.E_getObject(A,C,J);if(F!=null)if(K=="true"){$(F).attr("disabled",false);$("#"+C+"_text",F).css("color","")}else{$(F).attr("disabled",true);$("#"+C+"_text",F).css("color","threedshadow");F.signalment="outset";F.style.backgroundColor="transparent";F.style.backgroundImage="";var _=F.ownerDocument.getElementById(F.id+"_image_parent");if(_!=null)_.style.backgroundImage=""}break;case top.DC.VISIBLE:F=top.E_getObject(A,C,J);if(F!=null)if(K=="true"||K=="visible"){F.style.display="";$("#"+C+"_splitimage",F.parentElement).css("display","")}else{F.style.display="none";$("#"+C+"_splitimage",F.parentElement).css("display","none")}H=true;break;case top.DC.MENUICON:var L=top.E_getObject(A,C+"_image",J);if(L!=null)L.src=K;else{F=top.E_getObject(A,C+"_image_parent",J);F.insertAdjacentHTML("BeforeEnd","<IMG id="+C+"_image SRC="+K+" WIDTH=16 HEIGHT=16 >");top.E_removeTheObject(A,C+"_checked");top.E_removeTheObject(A,C+"_font");top.E_removeTheObject(A,C);top.E_removeTheObject(A,C+"_image");top.E_removeTheObject(A,C+"_image_parent")}break;case top.DC.fontFamily:top.E_getObject(A,C,J).style.fontFamily=K;break;case top.DC.fontSize:top.E_getObject(A,C,J).style.fontSize=K;break;case top.DC.fontWeight:top.E_getObject(A,C,J).style.fontWeight=K;break;case top.DC.fontStyle:top.E_getObject(A,C,J).style.fontStyle=K;break;case top.DC.textDecoration:top.E_getObject(A,C,J).style.textDecoration=K;break;default:break}}if(H&&A!=top.DESKTOP){var I=top.E_clientModel.E_getWindow(A);top.fitContentPaneSize(I)}};function DxStatisticsReport(){}DxStatisticsReport.ExcelExport=function(_){var A=$("#__repform");if(A.length==0){$(document.body).append("<form id='__repform' method='post' action=''></form>");A=$("#__repform")}A[0].action=watLocation2+"/exportexcel.jsp?id="+_;A.submit()};DxStatisticsReport.render=function(D,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=top.isIE?_[G].text:_[G].textContent;switch(F){case top.DC.CSSNAME:top.E_getObject(D,E,C).className=B;break;case top.DC.WIDTH:top.E_getObject(D,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject(D,E,C).style.height=B;break;case top.DC.TEXT:var $=top.E_getObject(D,E,C);$.innerHTML="";$.innerHTML=B;break;case top.DC.VISIBLE:top.E_getObject(frameId,"E_SW_"+E,C).style.visibility=B;break;case top.DC.DISPLAY:$=top.E_getObject(frameId,"E_SW_"+E,C);if(B=="true"){$.style.visibility="visible";$.style.display="block"}else{$.style.visibility="hidden";$.style.display="none"}break;case top.DC.EXCEL:DxStatisticsReport.ExcelExport(B);break;case top.DC.BORDERSTYLE:top.E_getObject(D,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject(D,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject(D,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject(D,"E_SW_"+E,C).style.left=B;break;case top.DC.Y:top.E_getObject(D,"E_SW_"+E,C).style.top=B;break;case top.DC.BACKGROUND:top.E_getObject(D,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject(D,E,C).style.color=B;break;default:break}}};function DxFlashChart(){}DxFlashChart.init=function($,_){};DxFlashChart.render=function(frameId,doc,controlNode){var componentId=controlNode.getAttribute("cid"),oNodes=controlNode.selectNodes("*");for(var i=0;i<oNodes.length;i++){var propName=oNodes[i].nodeName;propName=propName.substring(1,propName.length);var value=oNodes[i].text;switch(propName){case top.DC.CSSNAME:top.E_getObject(frameId,componentId,doc).className=value;top.E_getObject(frameId,componentId,doc).cid=value;break;case top.DC.WIDTH:top.E_getObject(frameId,componentId,doc).style.width=value;break;case top.DC.HEIGHT:top.E_getObject(frameId,componentId,doc).style.height=value;break;case top.DC.UPDATE_FLAG:eval("var data="+value);this.createFlashChart(componentId,data);break;case top.DC.CHANGE_FLAG:eval("var data="+value);this.createFlashChart(componentId,data);break;default:break}}};DxFlashChart.createFlashChart=function(E,F){$$(E).html("");var O="./FlashCharts/"+F["swf"],L=new FusionCharts(O,E,""+F["width"],""+F["height"]),_=StringUtil.format("<graph caption='{0}' showPercentageValues='1' showValues='1' animation='0' rotateYAxisName='0' xAxisName='{1}' yAxisName='{2}' showValues='0' decimals='0' formatNumberScale='0' useRoundEdges='1' baseFont='\u5b8b\u4f53' baseFontSize='12'>",F["caption"],F["xAxisName"],F["yAxisName"]),I=[],B=F["data"],G=B.length;if(B&&B.length>0)if(B[0].hasOwnProperty("s")){var K=[];for(var J=0;J<G;++J){var H=B[J]["c"];if($.inArray(H,K)==-1)K.push(H)}I.push("<categories>");for(J=0;J<K.length;++J)I.push("<category label='"+K[J]+"' />");I.push("</categories>");var A={};for(J=0;J<G;++J){var N=B[J],M=N["s"];if(!A[M])A[M]="<dataset seriesName='"+M+"' showValues='1'>";A[M]+=StringUtil.format("<set label='{0}' value='{1}' link='javascript:top.DxFlashChart.link({2})'/> ",N["c"],N["v"],N["e"])}for(p in A)I.push(A[p]+"</dataset>")}else for(J=0;J<G;++J){N=B[J];I.push(StringUtil.format("<set name='{0}' value='{1}' link='javascript:top.DxFlashChart.link({2})'/> ",N["c"],N["v"],N["e"]))}var D=F["tl"],C=[];if(D&&D.length>0){C.push("<trendlines>");for(J=0;J<D.length;++J)C.push("<line startValue='"+D[J]["v"]+"'color='FF3300' displayValue='"+D[J]["n"]+"' showOnTop='1' valueOnRight='1'/>");C.push("</trendlines>")}L.setDataXML(_+I.join("")+C.join("")+"</graph>");L.render(E)};DxFlashChart.link=function($){};if(typeof infosoftglobal=="undefined")var infosoftglobal=new Object();if(typeof infosoftglobal.FusionChartsUtil=="undefined")infosoftglobal.FusionChartsUtil=new Object();infosoftglobal.FusionCharts=function(B,_,$,C,A){if(!document.getElementById)return;this.initialDataSet=false;this.params=new Object();this.variables=new Object();this.attributes=new Array();if(B)this.setAttribute("swf",B);if(_)this.setAttribute("id",_);if($)this.setAttribute("width",$);if(C)this.setAttribute("height",C);if(A)this.addParam("bgcolor",A);this.addParam("quality","high");this.addParam("allowScriptAccess","always");this.addParam("swliveconnect","true");if($.indexOf("%")>-1)this.addVariable("chartWidth",$+"25");else this.addVariable("chartWidth",$);if(C.indexOf("%")>-1)this.addVariable("chartHeight",C+"25");else this.addVariable("chartHeight",C)};infosoftglobal.FusionCharts.prototype={setAttribute:function($,_){this.attributes[$]=_},getAttribute:function($){return this.attributes[$]},addParam:function($,_){this.params[$]=_},getParams:function(){return this.params},addVariable:function($,_){this.variables[$]=_},getVariable:function($){return this.variables[$]},getVariables:function(){return this.variables},getVariablePairs:function(){var $=new Array(),_,A=this.getVariables();for(_ in A)$.push(_+"="+A[_]);return $},getSWFHTML:function(){var $="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){$="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\"100%\" height=\"100%\" ";$+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var A=this.getParams();for(var B in A)$+=[B]+"=\""+A[B]+"\" ";var _=this.getVariablePairs().join("&");if(_.length>0)$+="flashvars=\""+_+"\"";$+="/>"}else{$="<object style=\"border:1 none red;\" id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"100%\" height=\"100%\">";$+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";$+="<param name=\"wmode\" value=\"opaque\" />";A=this.getParams();for(B in A)$+="<param name=\""+B+"\" value=\""+A[B]+"\" />";_=this.getVariablePairs().join("&");if(_.length>0)$+="<param name=\"flashvars\" value=\""+_+"\" />";$+="</object>"}return $},setDataURL:function($){if(this.initialDataSet==false){this.addVariable("dataURL",$);this.initialDataSet=true}},setDataXML:function($){if(this.initialDataSet==false){this.addVariable("dataXML",$);this.initialDataSet=true}},render:function($,B,_){var A=$$($,B,_)[0];A.innerHTML=this.getSWFHTML();return true}};infosoftglobal.FusionChartsUtil.cleanupSWFs=function(){if(window.opera||!document.all)return;var $=document.getElementsByTagName("OBJECT");for(var A=0;A<$.length;A++){$[A].style.display="none";for(var _ in $[A])if(typeof $[A][_]=="function")$[A][_]=function(){}}};infosoftglobal.FusionChartsUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var $=window.onunload;window.onunload=function(){infosoftglobal.FusionChartsUtil.cleanupSWFs();$()}}else window.onunload=infosoftglobal.FusionChartsUtil.cleanupSWFs};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){infosoftglobal.FusionChartsUtil.prepUnload();oldBeforeUnload()}}else window.onbeforeunload=infosoftglobal.FusionChartsUtil.prepUnload;if(Array.prototype.push==null)Array.prototype.push=function($){this[this.length]=$;return this.length};infosoftglobal.FusionChartsUtil.getChartObject=function($){if(window.document[$])return window.document[$];if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[$])return document.embeds[$]}else return document.getElementById($)};infosoftglobal.FusionChartsUtil.updateChartXML=function($,_){var A=infosoftglobal.FusionChartsUtil.getChartObject($);A.SetVariable("_root.dataURL","");A.SetVariable("_root.isNewData","1");A.SetVariable("_root.newData",_);A.TGotoLabel("/","JavaScriptHandler")};var getChartFromId=infosoftglobal.FusionChartsUtil.getChartObject,updateChartXML=infosoftglobal.FusionChartsUtil.updateChartXML,FusionCharts=infosoftglobal.FusionCharts;function DxFlashChartEx(){}DxFlashChartEx.init=function($,_){};DxFlashChartEx.render=function(frameId,doc,controlNode){var componentId=controlNode.getAttribute("cid"),oNodes=controlNode.selectNodes("*");for(var i=0;i<oNodes.length;i++){var propName=oNodes[i].nodeName;propName=propName.substring(1,propName.length);var value=top.isIE?oNodes[i].text:oNodes[i].textContent;switch(propName){case top.DC.CSSNAME:top.E_getObject(frameId,componentId,doc).className=value;top.E_getObject(frameId,componentId,doc).cid=value;break;case top.DC.WIDTH:top.E_getObject(frameId,componentId,doc).style.width=value;break;case top.DC.HEIGHT:top.E_getObject(frameId,componentId,doc).style.height=value;break;case top.DC.UPDATE_FLAG:eval("var data="+value);this.createFlashChart(frameId,componentId,data);break;case top.DC.CHANGE_FLAG:eval("var data="+value);this.createFlashChart(componentId,data);break;default:break}}};DxFlashChartEx.resizeFlashChart=function($,_){var B=top.E_clientModel.E_getWindow($),A=WatCore.getWindowDoc($,B),D=$$(_,$,A);if(D[0].getAttribute("chart_lwidth")==D.width()&&D[0].getAttribute("chart_lheight")==D.height())return;var C=D[0].getAttribute("chart_data");if(C!=null)DxFlashChartEx.createFlashChart($,_,C)};DxFlashChartEx.createFlashChart=function(E,F,H){var R=top.E_clientModel.E_getWindow(E),G=WatCore.getWindowDoc(E,R),M=$$(F,E,G);M[0].setAttribute("chart_data",H);M[0].setAttribute("chart_lwidth",M.width());M[0].setAttribute("chart_lheight",M.height());var S="./FlashCharts/"+H["swf"],O=new FusionCharts(S,F,""+M.width(),""+M.height()),A=StringUtil.format("<graph caption='{0}' showPercentageValues='1' rotateYAxisName='0' xAxisName='{1}' yAxisName='{2}' decimals='{10}' formatNumberScale='0' useRoundEdges='1' baseFont='\u5b8b\u4f53' baseFontSize='12' subcaption='{3}' numberPrefix='{4}' numberSuffix='{5}' yAxisMinValue='{6}' yAxisMaxValue='{7}' animation='{8}' showValues='{9}' decimalPrecision='{10}'>",H["caption"],H["xAxisName"],H["yAxisName"],H["subcaption"],H["numberPrefix"],H["numberSuffix"],H["yAxisMinValue"],H["yAxisMaxValue"],H["animation"],H["showValues"],H["decimalPrecision"],H["decimals"]),K=[],B=H["data"],I=B.length;if(B&&B.length>0)if(B[0].hasOwnProperty("s")){var N=[];for(var L=0;L<I;++L){var J=B[L]["c"];if($.inArray(J,N)==-1)N.push(J)}K.push("<categories>");for(L=0;L<N.length;++L)K.push("<category label='"+N[L]+"' />");K.push("</categories>");var _={};for(L=0;L<I;++L){var Q=B[L],P=Q["s"];if(!_[P]){if(Q["ya"]=="s")_[P]="<dataset seriesName='"+P+"' parentYAxis='S' ";else _[P]="<dataset seriesName='"+P+"' ";if(Q["color"]!=null)_[P]+=" color='"+Q["color"]+"'";_[P]+=">"}_[P]+=StringUtil.format("<set label='{0}' value='{1}' link='javascript:top.DxFlashChartEx.link(%22{2}%22,%22{3}%22,%22{4}%22)'/> ",Q["c"],Q["v"],E,F,Q["e"])}for(p in _)K.push(_[p]+"</dataset>")}else for(L=0;L<I;++L){Q=B[L];K.push(StringUtil.format("<set name='{0}' value='{1}' link='javascript:top.DxFlashChartEx.link(%22{2}%22,%22{3}%22,%22{4}%22)'/> ",Q["c"],Q["v"],E,F,Q["e"]))}var D=H["tl"],C=[];if(D&&D.length>0){C.push("<trendlines>");for(L=0;L<D.length;++L)C.push("<line startValue='"+D[L]["v"]+"'color='FF3300' displayValue='"+D[L]["n"]+"' showOnTop='1' valueOnRight='1'/>");C.push("</trendlines>")}O.setDataXML(A+K.join("")+C.join("")+"</graph>");O.render(F,E,G)};DxFlashChartEx.link=function($,A,D){var C=top.E_clientModel.E_getWindow($),B=WatCore.getWindowDoc($,C),_=top.E_getObject($,A,B);if(_.getAttribute("action")=="true")WatCore.call($,A,D)};var keynoin=",27,40,38,13,37,39,112,113,114,115,116,117,118,119,120,121,122,123,9,16,17,18,20,255,91";function DxPopGridText(){}DxPopGridText.hideOnClick=function(){if($$(DxPopGridText._rInput,DxPopGridText._winId,DxPopGridText._doc).attr("_showpanel")=="1"){var $=DxPopGridText._winId;DxPopGridText.hide(DxPopGridText._rInput,$)}if($timeimagelistobj!=null){$timeimagelistobj.css("display","none");$timeimagelistobj=null}};DxPopGridText.init=function(B,C,N,W,R,D,F){var V=top.E_clientModel.E_getWindow(B),Q=WatCore.getWindowDoc(B,V),H=top.E_getObject(B,C,Q),M=H.getAttribute("cookieName"),L=H.getAttribute("cookieEnabled"),P=$("#"+C+"_null",H.parentElement),_=$("#"+C+"_button",H.parentElement),X=$(H);H.columntitlejson=W;if(R=="true")H.frontCache=true;else H.frontCache=false;if(F=="true")H.frontQuery=true;else H.frontQuery=false;H.frontCacheMaxNum=parseInt(D);try{if(L=="true"){var J=top.WatCore.getCookie(M+"_name");if(J!=null){H.value=J;WatCore.setParameter(B,C,top.DC.TEXT,J)}var K=top.WatCore.getCookie(M+"_value");if(K!=null)WatCore.setParameter(B,C,top.DC.VALUE,K)}if(H.value==""||H.value==null){var A=top.E_getObject(B,C+"_null",Q),I=H.getAttribute("cannull"),S=H.getAttribute("nulltip"),E=H.getAttribute("isnulltip");if(I=="true"&&S!=""&&A!=null){A.value=S;H.setAttribute("isnulltip","true");A.style.color="#999999";A.style.display="";H.style.display="none";H.style.fontStyle="normal";H.style.color="#000"}}var G=parseInt(X.css("line-height"));if(top.isIE){X.height(G-1);P.height(G-1);X.css("line-height",(G-1)+"px");P.css("line-height",(G-1)+"px")}}catch(O){alert(O)}var T=V.isiframe;if(T=="true"){var U=WatCore.getWindow(B,V);if(window.attachEvent)U.document.attachEvent("onclick",DxPopGridText.hideOnClick);else U.document.addEventListener("click",DxPopGridText.hideOnClick,false)}this.initCtrl(C,B,N)};DxPopGridText.clear=function(C,A,E){var B=top.E_clientModel.E_getWindow(C),$=E.id;DxPopGridText.hide($,C);var _=B.isiframe;if(_=="true"&&C!=top.DESKTOP){var D=WatCore.getWindow(C,B);if(D.document.removeEventListener)D.document.removeEventListener("click",DxPopGridText.hideOnClick,false);else if(D.document.detachEvent)D.document.detachEvent("onclick",DxPopGridText.hideOnClick);else D.document["onclick"]=null}};DxPopGridText.render=function(N,Y,X){var B=X.getAttribute("cid"),P=X.selectNodes("*");for(var U=0;U<P.length;U++){var T=P[U].nodeName;T=T.substring(1,T.length);var I=top.isIE?P[U].text:P[U].textContent;switch(T){case top.DC.UPDATE_FLAG:var A=JSON.parse(I),Q=A.data==null?0:A.data.length,J=A.key;if(!J)J="";var Z=top.E_getObject(N,B,Y);if(Z.frontCache&&Q>0){var W=Z.frontCacheMaxNum,R=Z.frontSqlHashCode,D=Z.frontQuery;if(D)J="";putPopgridtextCache(R,J,A,W);if(Z.frontQuery)DxPopGridText.filterData(A,Z.frontQueryStr,Z.value)}top.DxPopGridText.createReport(B,N,A,Y);DxPopGridText.setFocus(N,B,Y);break;case top.DC.TEXT:try{Z=top.E_getObject(N,B,Y);popqvalue=I;Z.value=I;Z.oValue=I;var K=Z.getAttribute("cookieEnabled");if(K=="true"){var L=Z.getAttribute("cookieName");top.WatCore.SetCookie(L+"_name",I)}var G=Z.getAttribute("cannull"),V=Z.getAttribute("nulltip"),C=Z.getAttribute("isnulltip"),_=top.E_getObject(N,B+"_null",Y);if(Z.value==""||Z.value==null){if(G=="true"&&V!=""){_.value=V;Z.setAttribute("isnulltip","true");_.style.color="#999999";_.style.display="";Z.style.display="none"}}else if(G=="true"&&V!=""){_.style.display="none";Z.style.display="";Z.setAttribute("isnulltip","false");Z.style.fontStyle="normal";Z.style.color="#000"}}catch(M){}break;case top.DC.VALUE:Z=top.E_getObject(N,B,Y),K=Z.getAttribute("cookieEnabled");if(K=="true"){L=Z.getAttribute("cookieName");top.WatCore.SetCookie(L+"_value",I)}break;case top.DC.FOCUS:DxPopGridText.setFocus(N,B,Y);break;case top.DC.CUSTOMER_REPORT_TEMPLATE:Z=top.E_getObject(N,B,Y);Z.columntitlejson=I;$(Z).attr("tmpl",null);break;case top.DC.POPGRIDTEXT_FRONT_CACHE:Z=top.E_getObject(N,B,Y);if(I=="true")Z.frontCache=true;else Z.frontCache=false;break;case top.DC.POPGRIDTEXT_FRONT_SQLHASHCODE:Z=top.E_getObject(N,B,Y);Z.frontSqlHashCode=I;$(Z).attr("tmpl",null);break;case top.DC.POPGRIDTEXT_FRONT_MAXCACHENUM:Z=top.E_getObject(N,B,Y);Z.frontCacheMaxNum=parseInt(I);break;case top.DC.POPGRIDTEXT_FRONT_NOQUERYKEY:Z=top.E_getObject(N,B,Y);if(I=="true")Z.frontQuery=true;else Z.frontQuery=false;break;case top.DC.POPGRIDTEXT_FRONT_QUERYSTR:Z=top.E_getObject(N,B,Y);Z.frontQueryStr=JSON.parse(I);break;case top.DC.POPGRIDTEXT_FRONT_META:Z=top.E_getObject(N,B,Y);Z.meta=JSON.parse(I);break;case top.DC.VISIBLE:top.E_getObject(N,"E_SW_"+B,Y).style.visibility=I;break;case top.DC.CHANGE_FLAG:A=JSON.parse(I);this.setReportData(B,N,A,Y);break;case top.DC.POPGRID_SHOW:if(I=="true");break;case top.DC.POPGRID_HIDDEN:if(I=="true")DxPopGridText.hide(B,N);break;case top.DC.ENABLED:var E=top.E_getObject(N,B,Y),F=top.E_getObject(N,B+"_button",Y),O=$("#"+B+"_null",E.parentElement);if(I=="true"){E.readOnly=false;E.disabled=false;F.disabled=false;F.className=F.getAttribute("classold")+"-icon";$(E).css({"background":"window","cursor":"default"});$(F).css("cursor","pointer");$(E.parentElement).css({"background":"window"});O.css("background-color","window");O.css("cursor","")}else{E.readOnly=true;E.disabled=true;F.disabled=true;F.className=F.getAttribute("classold")+"-icon-enabled";$(E).css({"background":"#F0F0F0","cursor":"not-allowed"});$(F).css("cursor","not-allowed");$(E.parentElement).css({"background":"#F0F0F0"});O.css("background-color","#F0F0F0");O.css("cursor","not-allowed")}break;case top.DC.WIDTH:Z=top.E_getObject(N,B,Y);Z.style.width=I;var S=Z.parentElement;S.style.width=I;$(B+"_null",S).width(I);break;case top.DC.X:top.E_getObject(N,"E_SW_"+B,Y).style.left=I;break;case top.DC.Y:top.E_getObject(N,"E_SW_"+B,Y).style.top=I;break;case top.DC.JSFUNCTION_KEYCODE:var E=top.E_getObject(N,B,Y),H=$(E);H.attr("keyCode",I);break;case top.DC.JSFUNCTION_TARGET:E=top.E_getObject(N,B,Y),H=$(E);H.attr("targetId",I);break;case top.DC.JSFUNCTION_NAME:E=top.E_getObject(N,B,Y),H=$(E);H.attr("fname",I);break;case top.DC.JSFUNCTION_KCOLIST:E=top.E_getObject(N,B,Y),H=$(E);H.attr("kcoList",I);break;case top.DC.BACKGROUND:E=top.E_getObject(N,B,Y),O=$("#"+B+"_null",E.parentElement);$(E.parentElement).css("background",I);$(E).css("background",I);O.css("background",I);break;default:break}}};DxPopGridText.onblurChange=function(D,E,$){var C=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,C),_=top.E_getObject(D,E,A),B=_.value;top.WatCore.SetCookie($+"_name",B)};DxPopGridText.handClick=function(E,F){var D=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,D),A=top.E_getObject(E,F,B),_=A.getAttribute("_showpanel");if(A.readOnly==true)return;if("1"==_)DxPopGridText.hide(F,E);else{if(A.getAttribute("isnulltip")=="true")DxPopGridText._onSelectnull(E,F);if(A.frontCache){var G=A.frontSqlHashCode,$=A.frontQuery,H;if($)H="";else H=trim(A.value);if(popgridtextCacheContains(G,H)){var C=getPopgridtextCache(G,H);if($)DxPopGridText.filterData(C,A.frontQueryStr,A.value);DxPopGridText.createReport(F,E,C,B);DxPopGridText.setFocus(E,F,B)}else{WatCore.setParameter(E,F,top.DC.TEXT,H);WatCore.call(E,F,"show")}}else{WatCore.setParameter(E,F,top.DC.TEXT,A.value);WatCore.call(E,F,"show")}}};DxPopGridText.initCtrl=function(F,D,_){var H="DxPopGridText_panel_template",C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C);$$(F,D,B).attr("winId",D);var G=$$(F,D,B).get(0);if(!document.getElementById(H)){var A=document.createElement("div"),E=$(A);E.attr("id",H);E.attr("curpage",0);E.css({border:"solid yellow 0px",position:"absolute","z-index":"1000"});$(document.body).append(E)}$$(F,D,B).keyup(function(C){var I=C.keyCode;if((_!=1&&I==32)||(_==1&&keynoin.indexOf(","+I)==-1)){var $=this.value;if(C.keyCode==8&&$==""){WatCore.clearQuickcall();DxPopGridText.keydown(this.id,C.keyCode,this.value,D);return}if($.charAt($.length-1)==" ")this.value=$.substring(0,$.length-1);if(G.frontCache){var H=G.frontSqlHashCode,A=G.frontQuery,J;if(A)J="";else J=trim(this.value);if(popgridtextCacheContains(H,J)){var E=getPopgridtextCache(H,J);if(A)DxPopGridText.filterData(E,G.frontQueryStr,this.value);DxPopGridText.createReport(F,D,E,B);DxPopGridText.setFocus(D,F,B)}else{WatCore.setParameter(D,F,top.DC.TEXT,J);if(C.keyCode==8)WatCore.quickcall(D,F,"show",C,500);else WatCore.quickcall(D,F,"show",C)}}else{WatCore.setParameter(D,F,top.DC.TEXT,this.value);if(C.keyCode==8)WatCore.quickcall(D,F,"show",C,500);else WatCore.quickcall(D,F,"show",C)}}else DxPopGridText.keydown(this.id,C.keyCode,this.value,D,C)});$$(F,D,B).blur(function(I){if(this.oValue!=this.value)if(this.value==""){this.oValue="";WatCore.setParameter(D,this.id,top.DC.TEXT,this.value);WatCore.sendACallToChartNotifyDataChange2(D,this.id,"clear")}else{var C=$(this).attr("cookieEnabled"),H=$(this).attr("settextonly");if(H=="false"){this.oValue=this.value;WatCore.setParameter(D,this.id,top.DC.TEXT,this.value)}else if(this.oValue!=undefined){this.value=this.oValue;WatCore.setParameter(D,this.id,top.DC.TEXT,this.value)}else{this.oValue="";this.value="";WatCore.setParameter(D,this.id,top.DC.TEXT,"");WatCore.sendACallToChartNotifyDataChange2(D,this.id,"clear")}if(C=="true"){var A=this.cookieName;WatCore.SetCookie(A+"_name",this.value)}}if(this.value==""){var G=this.getAttribute("cannull"),E=this.getAttribute("nulltip"),_=this.getAttribute("isnulltip"),F=top.E_getObject(D,this.id+"_null",B);if(G=="true"&&F!=null){F.value=E;this.setAttribute("isnulltip","true");F.style.color="#999999";this.style.display="none";F.style.display=""}}})};DxPopGridText.prevPage=function(I,G,C){var H="DxPopGridText_panel_template",B=$("#"+H),_=B.attr("curpage"),F=top.E_clientModel.E_getWindow(I),D=WatCore.getWindowDoc(I,F),A=top.E_getObject(I,G,D);if(A.frontCache){var E=B.get(0).data;if(_>0){B.attr("curpage",--_);DxPopGridText.createReport(G,I,E,D);DxPopGridText.setFocus(I,G,D)}}else if(_>0)WatCore.call(I,G,"prevPage");EventUtil.stopPropagation(C)};DxPopGridText.nextPage=function(J,G,C){var H="DxPopGridText_panel_template",B=$("#"+H),_=B.attr("curpage"),I=B.attr("totalpage"),F=top.E_clientModel.E_getWindow(J),D=WatCore.getWindowDoc(J,F),A=top.E_getObject(J,G,D);if(A.frontCache){if(_<I-1){var E=B.get(0).data;B.attr("curpage",++_);DxPopGridText.createReport(G,J,E,D);DxPopGridText.setFocus(J,G,D)}}else if(_<I-1)WatCore.call(J,G,"nextPage");EventUtil.stopPropagation(C)};DxPopGridText.createTmpl=function($,B,C,A){var G=C.get(0).columntitlejson,D=JSON.parse(G),F=D["colname"],H=D["coltitle"],E=D["colhashcode"],_="<table style=\"border:1 solid #999999\" onclick=\"event.cancelBubble = true;\">";_+="<thead><tr style='height:20px;'>";_+="<td colspan='"+F.length+"' style='background:#91c9f7;COLOR:#525252;text-align:center;font-size:14px'><input type='button' style='width:14px;height:18px;cursor:pointer;border:1px none red;background:url(\""+watLocation2+"/resources/core/prePage.png\")' onmousedown=\"top.DxPopGridText.prevPage('@winid@','@conid@',event);event.cancelBubble = true;return false;\"></input><span height=20px;>&nbsp;&nbsp;\u6309\u952e\u76d8\u4e0a\u4e0b\u952e\u9009\u62e9\uff0c\u6309\u5de6\u53f3\u952e\u7ffb\u9875&nbsp;&nbsp;</span><input type='button' style='width:14px;height:18px;cursor:hand;border:1px none red;background:url(\""+watLocation2+"/resources/core/nextPage.png\")' onmousedown=\"top.DxPopGridText.nextPage('@winid@','@conid@',event);event.cancelBubble = true;return false;\"></input></td>";_+="</tr><tr style='font-size:14px;text-align:center;background:#E4E6D8;color:#0D8BA4;height:20px;'>";for(var I=0;I<F.length;++I)_+="<td head='"+F[I]+"'>"+H[I]+"</td>";_+="</tr></thead>";_+="<tbody><tr meta='row'>";for(I=0;I<F.length;++I)_+="<td meta='"+E[I]+"'></td>";_+="</tr></tbody>";_+="</table>";_+="<div meta='dxPopGridDetail' style='z-index:1000;visibility:hidden;position:absolute;width:320px; background-color: lightyellow; border: solid black 1px;vertical-align:top'></div>";return _};DxPopGridText.createReport=function(A,F,E,D){var I="DxPopGridText_panel_template",B=$("#"+I),G=$$(A,F,D),C=G.attr("tmpl");if(!C||C=="null"){C=DxPopGridText.createTmpl(A,F,G,D);C=C.replaceAll("@winid@",F);C=C.replaceAll("@conid@",A);G.attr("tmpl",C)}B.html(C);var _=B.children();$(_[0]).addClass("DxPopGridText-divList");var J=_.find("thead");J.addClass("DxPopGridText-divList");J.find("tr").addClass("DxPopGridText-divListTitle");J.find("td").addClass("DxPopGridText-divList");var H=_.find("tbody");H.addClass("DxPopGridText-divList");H.find("td").addClass("DxPopGridText-divList");DxPopGridText.setReportData(A,F,E,D)};DxPopGridText.filterData=function(data,queryStr,key){var count=0,rowcount=data.data==null?0:data.data.length;if(key==""||!key||!queryStr){for(var i=0;i<rowcount;i++){data.selects[i]="1";count++}data.count=count;return}var query=queryStr.query;for(var j=0;j<query.length;j++){var str,q=query[j][1].toLowerCase();str=q.replace("@",key.toUpperCase());var pattern=eval("/"+str+"/");query[j].pattern=pattern}for(i=0;i<rowcount;i++){data.selects[i]="0";for(j=0;j<query.length;j++){var value=data.data[i][query[j][0]];value=value.toUpperCase();var pattern=query[j].pattern,result=pattern.test(value),right=query[j][2];if(result){if(right!="and"){data.selects[i]="1";count++;break}}else if(right=="and"){data.selects[i]="0";break}else continue}}data.count=count};DxPopGridText.setReportData=function(A,D,C,Y){var b=$$(A,D,Y),T=b.attr("showdetail"),K="DxPopGridText_panel_template",a=$("#"+K),N=a.children(),U=$(N).find("tr[meta=row]"),J=C.data==null?0:C.data.length,R=J,V=0,M=0,H=b.get(0),G=H.frontQuery;if(G)R=C.count;if(H.frontCache){var O=R,F=a.attr("curpage");if(!F)F=0;else F=parseInt(F);V=F*C.pageSize;M=(F+1)*C.pageSize;if(M>R)M=R;a.get(0).data=C;a.attr("rowcount",(M-V))}else{a.attr("curpage",C.page);M=R;a.attr("rowcount",R)}a.attr("currow",-1);a.attr("totalpage",C.totalpage);a.attr("_datanum",R);var E=H.meta,I=null,L=0;for(var W=0;W<J;++W){var B=C.selects[W];if(B!="1"&&G)continue;if(L<V){L++;continue}if(L>=M){L++;break}var P=C.data[W],X=U[0].cloneNode(true);if(H.frontCache){for(var S=0;S<E.length;++S){var _=$(X).find("td[meta="+E[S].n+"]"),Z=E[S].i;_.html(P[Z]+"");_.css("color","#000")}$(X).attr("_listFieldValue",JSON.stringify(P))}else for(S=0;S<P.length;++S){_=$(X).find("td[meta="+E[S].n+"]");_.html(P[S]+"");_.css("color","#000")}U[0].parentNode.insertBefore(X,U[0]);if(!I)I=X;$(X).attr("_rownum",(L-V));$(X).attr("_container",K);$(X).attr("_input",A);$(X).attr("_winId",D);if(T=="true")$(X).attr("_detail",C.detail[W]);$(X).removeClass();if(W%2==0)$(X).addClass("DxPopGridText-repList1");else $(X).addClass("DxPopGridText-repList2");if(T=="true")$(X).mouseover(function(){$(this).css("background-color","#CCCCFF");DxPopGridText.showDetail(A,D,this)});else $(X).mouseover(function(){$(this).css("background-color","#CCCCFF")});L++;$(X).mouseout(function(){$(this).css("background-color","")});$(X).click(function(){var E=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,E),_=$(this).attr("_rownum");_=parseInt(_)+V;var B=$$($(this).attr("_container"),D,C);if(H.frontCache){WatCore.setParameter(D,A,top.DC.POPGRIDTEXT_FRONT_VALUE,"row&"+_+"&"+$(this).attr("_listFieldValue"));WatCore.call(D,$(this).attr("_input"),"row&"+_)}else WatCore.call(D,$(this).attr("_input"),"row&"+_);DxPopGridText.hide($(this).attr("_input"),D);DxPopGridText.setFocus(D,$(this).attr("_input"),C)})}var c=A+"_popcontent";$$(c,D,Y).blur(function(){DxPopGridText.hide(A,D)});U.remove();try{if(b.attr("_showpanel")!="1")DxPopGridText.show(A,D,Y)}catch(Q){DxPopGridText.show(A,D,Y)}if(I&&T=="true")DxPopGridText.showDetail(A,D,I);if(R>0)top.DxPopGridText.keydown(A,"40","",D)};DxPopGridText.showDetail=function(A,D,H){var C=$("#DxPopGridText_panel_template"),B=C.find("div[meta=dxPopGridDetail]");B.html($(H).attr("_detail"));var _=$(C.find("table")[0]),G=_.offset(),F=0,E=_.width()+2;if(G.top+B.height()>(DxPopGridText._doc.body.offsetHeight||DxPopGridText._doc.documentElement.clientHeight))F=0;if(G.left+_.width()+B.width()>(DxPopGridText._doc.body.offsetWidth||DxPopGridText._doc.documentElement.clientWidth))E=-B.width()-2;B.css("left",E);B.css("top",-F);B.css("visibility","visible")};DxPopGridText.posPopwin=function(A,B){var $=new Object(),_=2;$.x=0;$.y=0;$.x+=DxPopGridText.__getAbsoluteCoords(B).x-2;$.y+=DxPopGridText.__getAbsoluteCoords(B).y-2;return $};DxPopGridText.__getAbsoluteCoords=function(_){var A=new Object();A.x=0;A.y=0;try{while(_.tagName!="BODY"){if(top.isIE){A.x=A.x+_.offsetLeft+_.clientLeft-_.scrollLeft;A.y=A.y+_.offsetTop+_.clientTop-_.scrollTop}else{if(_.style.borderLeftWidth)A.x=A.x+_.offsetLeft+parseInt(_.style.borderLeftWidth)-_.scrollLeft;else A.x=A.x+_.offsetLeft-_.scrollLeft;if(_.style.borderTopWidth)A.y=A.y+_.offsetTop+parseInt(_.style.borderTopWidth)-_.scrollTop;else A.y=A.y+_.offsetTop-_.scrollTop}_=_.offsetParent}}catch($){top.MsgConsole.displayErr("__getAbsoluteCoords:"+$.description)}return A};DxPopGridText.show=function(B,D,L){var O="DxPopGridText_panel_template",N=$("#"+O),E=B,M=top.E_clientModel.E_getWindow(D),F=WatCore.getWindow(D,M),C=WatCore.getWindowDoc(D,M),J=M.isiframe,A=0,I=0;if(D!=top.DESKTOP&&J=="true"){var P=$(M).offset();A=parseInt(P.left);I=parseInt(P.top);if(!top.isIE)I-=2}if(E){var _=$$(E,D,L),H=_.get(0);if(_.css("display")=="none")_.css("display","block");var K=N.height();if(top.isIE){var G=DxPopGridText.posPopwin(D,H).y+parseInt(H.style.height);if(parseInt(G)+K+10>parseInt(C.body.offsetHeight||C.documentElement.offsetHeight))G=G-K-parseInt(H.style.height);else G+=0;N.css({"top":(G+I)+"px","left":(DxPopGridText.posPopwin(D,H).x+A)+"px"})}else{G=DxPopGridText.posPopwin(D,H).y+parseInt(H.style.height);if(parseInt(G)+K+10>parseInt(C.body.offsetHeight||C.documentElement.offsetHeight||C.documentElement.clientHeight)){if(J=="true")G=G-K-parseInt(H.style.height)+4;else G=G-K-parseInt(H.style.height)}else G+=4;N.css({"top":(G+I)+"px","left":(DxPopGridText.posPopwin(D,H).x+A)+"px"})}}N.show();$$(B,D,L).attr("_showpanel","1");DxPopGridText._rInput=B;DxPopGridText._doc=L;DxPopGridText._winId=D};DxPopGridText.hide=function(A,E){var D=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,D),F="DxPopGridText_panel_template";try{$$(A,E,C).attr("_showpanel","0");var B=$("#"+F);B.attr("curpage",0);B.get(0).data=null;B.hide()}catch(_){}};DxPopGridText.keydown=function(A,K,N,D,P){var O=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,O),E=WatCore.getWindow(D,O);if($$(A,D,B).attr("_showpanel")!="1"){WatCore.setParameter(D,A,top.DC.TEXT,N);var M=$$(A,D,B).get(0),J=M.getAttribute("kcoList");if(J=="true"){var F=M.getAttribute("targetId"),K=M.getAttribute("keyCode"),S=M.getAttribute("fname"),H=M.getAttribute("fkeys");DxPopGridText.jsFunctionCall(D,A,F,K,S,P,H)}stopEvent(P);return}var R="DxPopGridText_panel_template",L=$("#"+R),Q=parseInt(L.attr("currow"));if(K==40||K==38){var _=parseInt(L.attr("rowcount"));L.find("[_rownum="+Q+"]").mouseout();if(K==40){if(++Q>=_)Q=0}else if(--Q<=-1)Q=_-1;L.find("[_rownum="+Q+"]").mouseover();L.attr("currow",Q)}else if(K==13){if(L.find("[_rownum="+Q+"]").length>0){L.find("[_rownum="+Q+"]").click();stopEvent(P)}else DxPopGridText.hide(A,D)}else if(K==37){var I=L.attr("curpage"),M=top.E_getObject(D,A,B);if(M.frontCache){var C=L.get(0).data;if(I>0){L.attr("curpage",--I);DxPopGridText.createReport(A,D,C,B);DxPopGridText.setFocus(D,A,B)}}else if(I>0)WatCore.call(D,A,"prevPage")}else if(K==39){var I=L.attr("curpage"),G=L.attr("totalpage"),M=top.E_getObject(D,A,B);if(M.frontCache){if(I<G-1){C=L.get(0).data;L.attr("curpage",++I);DxPopGridText.createReport(A,D,C,B);DxPopGridText.setFocus(D,A,B)}}else if(I<G-1)WatCore.call(D,A,"nextPage")}else if(K==8)DxPopGridText.hide(A,D);else{M=$$(A,D,B).get(0),J=M.getAttribute("kcoList");if(J=="true"){F=M.getAttribute("targetId"),K=M.getAttribute("keyCode"),S=M.getAttribute("fname"),H=M.getAttribute("fkeys");DxPopGridText.jsFunctionCall(D,A,F,K,S,P,H)}}stopEvent(P)};DxPopGridText.setFocus=function(F,$,C,E){var _=top.E_getObject(F,$,C);if(_.value==""||_.value==null){var B=_.getAttribute("cannull"),A=top.E_getObject(F,$+"_null",C);if(B=="true"&&A!=null&&_.style.visibility!="hidden"&&!_.readOnly){popqvalue=_.value;WatCore.setFocus(A);stopEvent(event)}else if(_.style.visibility!="hidden"&&!_.readOnly){popqvalue=_.value;WatCore.setFocus(_);stopEvent(event)}else if(_.getAttribute("targetId")!=null)if(WatCore.isKeyCode(E,_.getAttribute("keyCode"))){stopEvent(E);var D=WatCore.getJsFunctionParams(E,_.getAttribute("targetId"),_.getAttribute("keyCode"),_.getAttribute("fname"));WatCore.jsFunctionCall(F,$,D[0],D[1],E)}}else if(_.style.visibility!="hidden"&&!_.readOnly){popqvalue=_.value;WatCore.setFocus(_);stopEvent(event)}else if(_.getAttribute("targetId")!=null)if(WatCore.isKeyCode(E,_.getAttribute("keyCode"))){stopEvent(E);D=WatCore.getJsFunctionParams(E,_.getAttribute("targetId"),_.getAttribute("keyCode"),_.getAttribute("fname"));WatCore.jsFunctionCall(F,$,D[0],D[1],E)}};DxPopGridText._onSelect=function($){DxPopGridText.hideOnClick();$.select()};DxPopGridText._onSelectnull=function(G,A){var F=top.E_clientModel.E_getWindow(G),E=WatCore.getWindowDoc(G,F),H=WatCore.getWindow(G,F),B=top.E_getObject(G,A,E),D=B.getAttribute("cannull"),_=B.getAttribute("nulltip"),$=B.getAttribute("isnulltip"),C=top.E_getObject(G,A+"_null",E);if($=="true"&&C!=null&&!B.readOnly){B.setAttribute("isnulltip","false");B.value="";B.style.display="";C.style.display="none";B.style.fontStyle="normal";B.style.color="#000";B.select()}};DxPopGridText.jsFunctionCall=function(D,_,E,H,M,G,C){var J=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,J),I=top.E_getObject(D,_,B);if(G.keyCode==37||G.keyCode==39){var K=Desktop.getCursorPsn(I);if(G.keyCode==37&&K!=0)return true;else if(G.keyCode==39&&K<I.value.length)return true}var A=$$(_,B).attr("_showpanel"),$=$$(_,B).attr("_datanum");if(G.keyCode==27){stopEvent(G);if(A=="1")DxPopGridText.hideOnClick();return true}if(A!="1"||(A==1&&$==0)){if(A=="1")DxPopGridText.hideOnClick();if(WatCore.isKeyCode(G,H)){stopEvent(G);var L=WatCore.getJsFunctionParams(G,E,H,M);WatCore.jsFunctionCall(D,_,L[0],L[1],G);return true}else if(C!=null){var F=WatCore.listenKey(G,D,_,C);if(!F)stopEvent(G);return F}}};function DxDataGridPopGridTextCell(){}DxDataGridPopGridTextCell.init=function(_,B,K,C,E,F,D){var I=top.E_clientModel.E_getWindow(_),$=WatCore.getWindowDoc(_,I),G=WatCore.getWindow(_,I),H=top.E_getObject(_,B,$);H.dbgridid=D;var J=top.E_getObject(_,D,$);if(!J.popgridparams)J.popgridparams=[];var A=new Object();J.popgridparams[B]=A;A.columntitlejson=K;if(C=="true")A.frontCache=true;else A.frontCache=false;if(F=="true")A.frontQuery=true;else A.frontQuery=false;A.frontCacheMaxNum=parseInt(E);if(window.attachEvent)G.document.attachEvent("onclick",DxDataGridPopGridTextCell.hideOnClick);else G.document.addEventListener("click",DxDataGridPopGridTextCell.hideOnClick,false);this.initCtrl(B,_)};DxDataGridPopGridTextCell.getPopParams=function($,E,_,A){var D=_.dbgridid,C=top.E_getObject($,D,A),B=C.popgridparams[E];return B};DxDataGridPopGridTextCell.hideOnClick=function(){if($$(DxDataGridPopGridTextCell._rInput,DxDataGridPopGridTextCell._winId,DxDataGridPopGridTextCell._doc).attr("_showpanel")=="1"){var $=DxDataGridPopGridTextCell._winId;DxDataGridPopGridTextCell.hide(DxDataGridPopGridTextCell._rInput,$)}};DxDataGridPopGridTextCell.isShowPanel=function(){if($$(DxDataGridPopGridTextCell._rInput,DxDataGridPopGridTextCell._winId,DxDataGridPopGridTextCell._doc).attr("_showpanel")=="1")return true;else return false};DxDataGridPopGridTextCell.clear=function(B,_,D){var A=top.E_clientModel.E_getWindow(B),C=WatCore.getWindow(B,A),$=D.name;DxDataGridPopGridTextCell.hide($,B);C.document.detachEvent("onclick",DxDataGridPopGridTextCell.hideOnClick)};DxDataGridPopGridTextCell.render=function(_,L,K){var F=K.getAttribute("cid"),A=K.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var M=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.UPDATE_FLAG:var N=top.E_getObject(_,F,L),E=DxDataGridPopGridTextCell.getPopParams(_,F,N,L),C=JSON.parse(M),P=C.key;if(!P)P="";var B=C.data==null?0:C.data.length;if(E.frontCache&&B>0){var J=E.frontCacheMaxNum,D=E.frontSqlHashCode,I=E.frontQuery;if(I)P="";putPopgridtextCache(D,P,C,J);if(E.frontQuery){var O=E.frontQueryValue;if(!O)O="";DxPopGridText.filterData(C,E.frontQueryStr,O);E.frontQueryValue=null}}this.createReport(F,_,C,L);break;case top.DC.CUSTOMER_REPORT_TEMPLATE:N=top.E_getObject(_,F,L),E=DxDataGridPopGridTextCell.getPopParams(_,F,N,L);E.columntitlejson=M;N.tmpl=null;break;case top.DC.POPGRIDTEXT_FRONT_CACHE:N=top.E_getObject(_,F,L),E=DxDataGridPopGridTextCell.getPopParams(_,F,N,L);if(M=="true")E.frontCache=true;else E.frontCache=false;break;case top.DC.POPGRIDTEXT_FRONT_SQLHASHCODE:N=top.E_getObject(_,F,L),E=DxDataGridPopGridTextCell.getPopParams(_,F,N,L);E.frontSqlHashCode=M;$(N).attr("tmpl",null);break;case top.DC.POPGRIDTEXT_FRONT_MAXCACHENUM:N=top.E_getObject(_,F,L),E=DxDataGridPopGridTextCell.getPopParams(_,F,N,L);E.frontCacheMaxNum=parseInt(M);break;case top.DC.POPGRIDTEXT_FRONT_NOQUERYKEY:N=top.E_getObject(_,F,L),E=DxDataGridPopGridTextCell.getPopParams(_,F,N,L);if(M=="true")E.frontQuery=true;else E.frontQuery=false;break;case top.DC.POPGRIDTEXT_FRONT_QUERYSTR:N=top.E_getObject(_,F,L),E=DxDataGridPopGridTextCell.getPopParams(_,F,N,L);E.frontQueryStr=JSON.parse(M);break;case top.DC.POPGRIDTEXT_FRONT_META:N=top.E_getObject(_,F,L),E=DxDataGridPopGridTextCell.getPopParams(_,F,N,L);E.meta=JSON.parse(M);break;case top.DC.CHANGE_FLAG:C=JSON.parse(M);this.setReportData(F,_,C,L);break;case top.DC.POPGRID_SHOW:this.show(F,_,M,L);break;case top.DC.POPGRID_HIDDEN:this.hide(F,_,L);break;case top.DC.TEXT:N=top.E_getObject(_,F,L);N.value=M;N.oValue=M;break;default:break}}};DxDataGridPopGridTextCell.initCtrl=function(E,C){var F="DxDataGridPopGridText_"+E,B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B);$$(E,C,A).attr("winId",C);if(!A.getElementById(F)){var _=A.createElement("div"),D=$(_);D.attr("id",F);D.attr("curpage",0);D.attr("winId",C);D.css({border:"solid yellow 0px",position:"absolute","z-index":"1000"});$(A.body).append(D)}};DxDataGridPopGridTextCell.prevPage=function(I,G,B){var E=top.E_clientModel.E_getWindow(I),C=WatCore.getWindowDoc(I,E),H="DxDataGridPopGridText_"+G,A=$$(H,I,C),$=A.attr("curpage"),_=top.E_getObject(I,G,C),F=DxDataGridPopGridTextCell.getPopParams(I,G,_,C);if(F.frontCache){var D=A.get(0).data;if($>0){A.attr("curpage",--$);DxDataGridPopGridTextCell.createReport(G,I,D,C)}}else if($>0)WatCore.call(I,G,"prevPage");EventUtil.stopPropagation(B)};DxDataGridPopGridTextCell.nextPage=function(C,A,H){var I=top.E_clientModel.E_getWindow(C),$=WatCore.getWindowDoc(C,I),J="DxDataGridPopGridText_"+A,F=$$(J,C,$),E=F.attr("curpage"),D=F.attr("totalpage"),G=top.E_getObject(C,A,$),B=DxDataGridPopGridTextCell.getPopParams(C,A,G,$);if(B.frontCache){if(E<D-1){var _=F.get(0).data;F.attr("curpage",++E);DxDataGridPopGridTextCell.createReport(A,C,_,$)}}else if(E<D-1)WatCore.call(C,A,"nextPage");EventUtil.stopPropagation(H)};DxDataGridPopGridTextCell.createTmpl=function($,A,G,F){var B=DxDataGridPopGridTextCell.getPopParams(A,$,G.get(0),F),I=B.columntitlejson,H=JSON.parse(I),J=H["colname"],D=H["coltitle"],C=H["colhashcode"],_="<table style=\"border:1 solid #999999\" onclick=\"event.cancelBubble = true;\">";_+="<thead><tr style='height:20px;'>";_+="<td colspan='"+J.length+"' style='background:#91c9f7;COLOR:#525252;text-align:center;font-size:14px'><input type='button' style='width:14px;height:18px;cursor:pointer;border:1px none red;background:url(\""+watLocation2+"/resources/core/prePage.png\")' onmousedown=\"top.DxDataGridPopGridTextCell.prevPage('@winid@','@conid@',event);event.cancelBubble = true;return false;\"></input><span height=20px;>&nbsp;&nbsp;\u6309\u952e\u76d8\u4e0a\u4e0b\u952e\u9009\u62e9\uff0c\u6309\u5de6\u53f3\u952e\u7ffb\u9875&nbsp;&nbsp;</span><input type='button' style='width:14px;height:18px;cursor:hand;border:1px none red;background:url(\""+watLocation2+"/resources/core/nextPage.png\")' onmousedown=\"top.DxDataGridPopGridTextCell.nextPage('@winid@','@conid@',event);event.cancelBubble = true;return false;\"></input></td>";_+="</tr><tr style='font-size:14px;text-align:center;background:#E4E6D8;color:#0D8BA4;height:20px;'>";for(var E=0;E<J.length;++E)_+="<td head='"+J[E]+"'>"+D[E]+"</td>";_+="</tr></thead>";_+="<tbody><tr meta='row'>";for(E=0;E<J.length;++E)_+="<td meta='"+C[E]+"'></td>";_+="</tr></tbody>";_+="</table>";_+="<div meta='dxPopGridDetail' style='z-index:1000;visibility:hidden;position:absolute;width:320px; background-color: lightyellow; border: solid black 1px;vertical-align:top'></div>";return _};DxDataGridPopGridTextCell.createReport=function(A,C,D,G){var E=new Date(),J="DxDataGridPopGridText_"+A,F=$$(J,C,G),H=$$(A,C,G),B=H.attr("tmpl");if(!B||B=="null"){B=DxDataGridPopGridTextCell.createTmpl(A,C,H,G);B=B.replaceAll("@winid@",C);B=B.replaceAll("@conid@",A);H.attr("tmpl",B)}F.html(B);var _=F.children();$(_[0]).addClass("DxPopGridText-divList");var K=_.find("thead");K.addClass("DxPopGridText-divList");K.find("tr").addClass("DxPopGridText-divListTitle");K.find("td").addClass("DxPopGridText-divList");var I=_.find("tbody");I.addClass("DxPopGridText-divList");I.find("td").addClass("DxPopGridText-divList");this.setReportData(A,C,D,G)};DxDataGridPopGridTextCell.filterData=function(data,queryStr,key){var count=0,rowcount=data.data==null?0:data.data.length;if(key==""||!key||!queryStr){for(var i=0;i<rowcount;i++){data.selects[i]="1";count++}data.count=count;return}var query=queryStr.query;for(var j=0;j<query.length;j++){var str,q=query[j][1].toLowerCase();str=q.replace("@",key.toUpperCase());var pattern=eval("/"+str+"/");query[j].pattern=pattern}for(i=0;i<rowcount;i++){data.selects[i]="0";for(j=0;j<query.length;j++){var value=data.data[i][query[j][0]];value=value.toUpperCase();var pattern=query[j].pattern,result=pattern.test(value),right=query[j][2];if(result){if(right!="and"){data.selects[i]="1";count++;break}}else if(right=="and"){data.selects[i]="0";break}else continue}}data.count=count};DxDataGridPopGridTextCell.setReportData=function(A,D,C,Y){DxDataGridPopGridTextCell._doc=Y;var b=$$(A,D,Y),T=b.attr("showdetail"),K="DxDataGridPopGridText_"+A,a=$$(K,D,Y),N=a.children(),U=$(N).find("tr[meta=row]"),J=C.data==null?0:C.data.length,Q=J,V=0,M=0,H=b.get(0),R=DxDataGridPopGridTextCell.getPopParams(D,A,H,Y),G=R.frontQuery;if(G)Q=C.count;if(R.frontCache){var P=Q,F=a.attr("curpage");if(!F)F=0;else F=parseInt(F);V=F*C.pageSize;M=(F+1)*C.pageSize;if(M>Q)M=Q;a.get(0).data=C;a.attr("rowcount",(M-V))}else{a.attr("curpage",C.page);M=Q;a.attr("rowcount",Q)}a.attr("currow",-1);a.attr("totalpage",C.totalpage);a.attr("_datanum",Q);var E=R.meta,I=null,L=0;for(var W=0;W<J;++W){var B=C.selects[W];if(B!="1"&&G)continue;if(L<V){L++;continue}if(L>=M){L++;break}var O=C.data[W],X=U[0].cloneNode(true);if(R.frontCache){for(var S=0;S<E.length;++S){var _=$(X).find("td[meta="+E[S].n+"]"),Z=E[S].i;_.html(O[Z]+"");_.css("color",C.colors[W]==null?"#000":C.colors[W])}$(X).attr("_listFieldValue",JSON.stringify(O))}else for(S=0;S<O.length;++S){_=$(X).find("td[meta="+E[S].n+"]");_.html(O[S]+"");_.css("color",C.colors[W]==null?"#000":C.colors[W])}U[0].parentNode.insertBefore(X,U[0]);if(!I)I=X;$(X).attr("_rownum",L-V);$(X).attr("_container",K);$(X).attr("_input",A);if(T=="true")$(X).attr("_detail",C.detail[W]);$(X).css("color",C.colors[W]==null?"#000":C.colors[W]);$(X).removeClass();if(W%2==0)$(X).addClass("DxPopGridText-repList1");else $(X).addClass("DxPopGridText-repList2");if(T=="true")$(X).mouseover(function(){$(this).css("background-color","#CCCCFF");DxDataGridPopGridTextCell.showDetail(A,D,this)});else $(X).mouseover(function(){$(this).css("background-color","#CCCCFF")});L++;$(X).mouseout(function(){$(this).css("background-color","")});$(X).mousedown(function(){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),_=$(this).attr("_rownum");_=parseInt(_)+V;if(R.frontCache){WatCore.setParameter(D,$(this).attr("_input"),top.DC.POPGRIDTEXT_FRONT_VALUE,"row&"+_+"&"+$(this).attr("_listFieldValue"));WatCore.call(D,$(this).attr("_input"),"row&"+_)}else WatCore.call(D,$(this).attr("_input"),"row&"+_);DxDataGridPopGridTextCell.hide($(this).attr("_input"),D,Y)})}U.remove();if(I&&T=="true");if(Q>0){K="DxDataGridPopGridText_"+A,X=$$(K,D,Y);X.find("[_rownum=0]").mouseover();X.attr("currow","0")}};DxDataGridPopGridTextCell.showDetail=function(A,D,H){var C=$$("DxDataGridPopGridText_"+A,D,DxDataGridPopGridTextCell._doc),B=C.find("div[meta=dxPopGridDetail]");B.html($(H).attr("_detail"));var _=$(C.find("table")[0]),G=_.offset(),F=0,E=_.width()+2;if(G.top+B.height()>DxDataGridPopGridTextCell._doc.body.offsetHeight){F=G.top+B.height()-DxDataGridPopGridTextCell._doc.body.offsetHeight;F+=10}if(G.left+_.width()+B.width()>DxDataGridPopGridTextCell._doc.body.offsetWidth)E=-B.width();B.css("left",E);B.css("top",-F);B.css("visibility","visible")};DxDataGridPopGridTextCell.show=function(A,C,B,E){try{EventRouter.hiddenDateTimeDialog()}catch(_){}var F=B.split(","),K=DxDataGrid.getRowIndex(F[2],F[3]);if(K!=F[4])return;var I="DxDataGridPopGridText_"+A,G=$$(I,C,E),D=A;if(D){var $=$$(D,C,E),H=parseInt(F[0]);G.css("left",H);var L=parseInt(F[1]);G.css("top",L);if(L+G.height()>E.body.offsetHeight){L-=G.height()+$.height()+6;G.css("top",L)}if(H+G.width()>E.body.offsetWidth){var J=H-G.width();if(J<0)J=5;G.css("left",J)}}G.show();$$(A,C,E).attr("_showpanel","1");DxDataGridPopGridTextCell._rInput=A;DxDataGridPopGridTextCell._doc=E;DxDataGridPopGridTextCell._winId=C};DxDataGridPopGridTextCell.hide=function(_,C,B){var D="DxDataGridPopGridText_"+_;try{$$(_,C,B).attr("_showpanel","0");var A=$$(D,C,B);A.attr("curpage",0);A.get(0).data=null;A.hide()}catch($){}};DxDataGridPopGridTextCell.keydown=function(E,A,K,M,N){var O=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,O),F=WatCore.getWindow(E,O),P=M.value,S=$$(A,E,C),B=S.attr("_showpanel"),$=S.attr("_datanum");S.gridInput=M;if(K==27){WatCore.setParameter(E,A,top.DC.TEXT,P);if(B=="1")DxDataGridPopGridTextCell.hideOnClick();var I=F.event;stopEvent(I);return}if(B!="1"||(B==1&&$==0)){WatCore.setParameter(E,A,top.DC.TEXT,P);if(B=="1")DxDataGridPopGridTextCell.hideOnClick();I=F.event;if(M.getAttribute("focusKeyCode")!=null)if(WatCore.isKeyCode(I,M.getAttribute("focusKeyCode"))){stopEvent(I);DxDataGrid.jsFunctionCall(E,M.getAttribute("strConId"),M.getAttribute("targetId"),M.getAttribute("focusKeyCode"),M.getAttribute("fname"),M.getAttribute("operate"),I,M)}var T=top.E_getObject(E,M.getAttribute("strConId"),C);if(T!=null&&M.getAttribute("targetId")!=null)if(WatCore.isKeyCode(I,M.getAttribute("targetId"))){stopEvent(I);WatCore.jsFunctionCall(E,M.getAttribute("strConId"),M.getAttribute("targetId"),M.getAttribute("fname"))}if(P.length<=1&&K==8)WatCore.sendACallToChartNotifyDataChange2(E,A,"clear");return}stopEvent(F.event);var R="DxDataGridPopGridText_"+A,L=$$(R,E,C),Q=parseInt(L.attr("currow"));if(K==40||K==38){var _=parseInt(L.attr("rowcount"));L.find("[_rownum="+Q+"]").mouseout();if(K==40){if(++Q>=_)Q=0}else if(--Q<=-1)Q=_-1;L.find("[_rownum="+Q+"]").mouseover();L.attr("currow",Q)}else if(K==13)L.find("[_rownum="+Q+"]").mousedown();else if(K==37){var J=L.attr("curpage"),M=top.E_getObject(E,A,C),G=DxDataGridPopGridTextCell.getPopParams(E,A,M,C);if(G.frontCache){var D=L.get(0).data;if(J>0){L.attr("curpage",--J);DxDataGridPopGridTextCell.createReport(A,E,D,C)}}else if(J>0)WatCore.call(E,A,"prevPage")}else if(K==39){var J=L.attr("curpage"),H=L.attr("totalpage"),M=top.E_getObject(E,A,C),G=DxDataGridPopGridTextCell.getPopParams(E,A,M,C);if(G.frontCache){if(J<H-1){D=L.get(0).data;L.attr("curpage",++J);DxDataGridPopGridTextCell.createReport(A,E,D,C)}}else if(J<H-1)WatCore.call(E,A,"nextPage")}else if(K==8)DxDataGridPopGridTextCell.hide(A,E,C)};DxDataGridPopGridTextCell.jsFunctionCall=function(D,_,E,G,J,F){var H=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,H),C=WatCore.getWindow(D,H),A=$$(_,D,B).attr("_showpanel"),$=$$(_,D,B).attr("_datanum");if(A!="1"||(A==1&&$==0))if(WatCore.isKeyCode(F,G)){stopEvent(F);var I=WatCore.getJsFunctionParams(F,E,G,J);WatCore.jsFunctionCall(D,_,I[0],I[1])}};DxDataGridPopGridTextCell.setFocus=function(C,$,A,B){var _=top.E_getObject(C,$,A);WatCore.setFocus(_)};function DxTimer(){}DxTimer.createTimer=function(G,A,_,I,C,E){try{var F=top.E_clientModel.E_getWindow(G),D=WatCore.getWindowDoc(G,F),H=WatCore.getWindow(G,F),B=D.getElementById(A);B.istimeout=C;B.notify=E;if(I=="true")if(C=="true")B.interval=H.setTimeout("top.DxTimer.timer('"+G+"','"+A+"','"+_+"','"+E+"')",_);else B.interval=H.setInterval("top.DxTimer.timer('"+G+"','"+A+"','"+_+"','"+E+"')",_)}catch($){}};DxTimer.timer=function(C,A,_,B){try{if(B=="true")top.WatCore.sendTimerAsynCall2(C,A,"press",event);else top.WatCore.sendTimerAsynCall(C,A,"press",event)}catch($){alert($)}};DxTimer.begintimer=function(F,A,D,_){try{var E=top.E_clientModel.E_getWindow(F),G=WatCore.getWindow(F,E),B=D.getElementById(A),C=B.notify;if(B.istimeout=="true")B.interval=G.setTimeout("top.DxTimer.timer('"+F+"','"+A+"','"+_+"','"+C+"')",_);else B.interval=G.setInterval("top.DxTimer.timer('"+F+"','"+A+"','"+_+"','"+C+"')",_)}catch($){}};DxTimer.clear=function(C,A,E){try{var _=E.interval;if(_!=null){var B=top.E_clientModel.E_getWindow(C),D=WatCore.getWindow(C,B);D.clearInterval(_);E.interval=null}}catch($){}};DxTimer.render=function(_,I,H){var D=H.getAttribute("cid"),B=H.selectNodes("*");for(var F=0;F<B.length;F++){var E=B[F].nodeName;E=E.substring(1,E.length);var J=top.isIE?B[F].text:B[F].textContent;switch(E){case top.DC.INTERVAL:var G=top.E_getObject(_,D,I);try{var A=G.interval;if(A!=null){var K=top.E_clientModel.E_getWindow(_),C=WatCore.getWindow(_,K);C.clearInterval(A);G.interval=C.setInterval("top.DxTimer.timer('"+_+"','"+D+"','"+J+"','"+G.notify+"')",J)}}catch($){}break;case top.DC.BEGIN_TIMER:G=top.E_getObject(_,D,I);DxTimer.begintimer(_,D,I,J);break;case top.DC.CANCEL_TIMER:G=I.getElementById(D);DxTimer.clear(_,I,G);break;default:break}}};DxDateTimePick.m_nInc=1;DxDateTimePick.m_strSigns="$,.";DxDateTimePick.m_bFixedLen=true;DxDateTimePick.m_strType="date";DxDateTimePick.m_strBlank="0";DxDateTimePick.m_input={48:0,49:1,50:2,51:3,52:4,53:5,54:6,55:7,56:8,57:9,96:0,97:1,98:2,99:3,100:4,101:5,102:6,103:7,104:8,105:9};function DxDateTimePick(){}DxDateTimePick.init=function(_,B,J,E,F){var G=top.E_clientModel.E_getWindow(_),A=WatCore.getWindowDoc(_,G),D=A.getElementById(B),K=$("#"+B+"_t",D).get(0);K.stype=E;if(K.stype=="date"){K.m_nFormatLen=10;K.m_strDefValue="0000-00-00";K.m_arrPlaceHolder=[{4:1,7:1},{5:1,8:1}];K.m_oSeg={0:14,1:14,2:14,3:14,4:14,5:15,6:15,7:15,8:16,9:16,10:16,14:[0,4],15:[5,2],16:[8,2]};K.m_oDateInfo={y:14,m:15,d:16,c:0};K.m_oRegExp=/([0-9]{4})-(((0[0-9])|(1[0-2])))-(((0[0-9])|([12][0-9])|(3[0-1])))/;K.m_oRegExp2=/([0-9]{4})-(((0[0-9])|(1[0-9])))-(((0[0-9])|([12][0-9])|(3[0-9])))/;K.m_oMin=new Date("1900-01-01".replace(/-/g,"/"));K.m_oMax=new Date("2099-01-01".replace(/-/g,"/"))}else if(K.stype=="datetime"){K.m_nFormatLen=16;K.m_strDefValue="0000-00-00 00:00";K.m_arrPlaceHolder=[{4:1,7:1,10:1,13:1},{5:1,11:1,8:1,14:1}];K.m_oSeg={0:17,1:17,2:17,3:17,4:17,5:18,6:18,7:18,8:19,9:19,10:19,11:20,12:20,13:20,14:21,15:21,16:21,17:[0,4],18:[5,2],19:[8,2],20:[11,2],21:[14,2]};K.m_oDateInfo={y:17,m:18,d:19,c:0,h:20,s:21};K.m_oRegExp=/([0-9]{4})-(((0[0-9])|(1[0-2])))-(((0[0-9])|([12][0-9])|(3[0-1]))\s(([01][0-9])|(2[0-3])):([0-5][0-9]))/;K.m_oRegExp2=/([0-9]{4})-(((0[0-9])|(1[0-9])))-(((0[0-9])|([12][0-9])|(3[0-9]))\s(([01][0-9])|(2[0-9])):([0-5][0-9]))/;K.m_oMin=new Date("1900-01-01".replace(/-/g,"/"));K.m_oMax=new Date("2099-01-01".replace(/-/g,"/"))}else if(K.stype=="datetime2"){K.m_nFormatLen=19;K.m_strDefValue="0000-00-00 00:00:00";K.m_arrPlaceHolder=[{4:1,7:1,10:1,13:1,16:1},{5:1,8:1,11:1,14:1,17:1}];K.m_oSeg={0:171,1:171,2:171,3:171,4:171,5:181,6:181,7:181,8:191,9:191,10:191,11:201,12:201,13:201,14:211,15:211,16:211,17:221,18:221,19:221,171:[0,4],181:[5,2],191:[8,2],201:[11,2],211:[14,2],221:[17,2]};K.m_oDateInfo={y:171,m:181,d:191,c:0,h:201,s:211,ms:221};K.m_oRegExp=/([0-9]{4})-(((0[0-9])|(1[0-2])))-(((0[0-9])|([12][0-9])|(3[0-1]))\s(([01][0-9])|(2[0-3])):([0-5][0-9]):([0-5][0-9]))/;K.m_oRegExp2=/([0-9]{4})-(((0[0-9])|(1[0-9])))-(((0[0-9])|([12][0-9])|(3[0-9]))\s(([01][0-9])|(2[0-9])):([0-5][0-9]):([0-5][0-9]))/;K.m_oMin=new Date("1900-01-01".replace(/-/g,"/"));K.m_oMax=new Date("2099-01-01".replace(/-/g,"/"))}else if(K.stype=="time"){K.m_nFormatLen=5;K.m_strDefValue="00:00";K.m_arrPlaceHolder=[{2:1},{3:1}];K.m_oSeg={0:20,1:20,2:20,3:21,4:21,5:21,20:[0,2],21:[3,2]};K.m_oDateInfo={h:20,s:21};K.m_oRegExp=/((([01][0-9])|(2[0-3])):([0-5][0-9]))/;K.m_oRegExp2=/((([01][0-9])|(2[0-9])):([0-5][0-9]))/;K.m_oMin=new Date("1900-01-01".replace(/-/g,"/"));K.m_oMax=new Date("2099-01-01".replace(/-/g,"/"))}else if(K.stype=="time2"){K.m_nFormatLen=8;K.m_strDefValue="00:00:00";K.m_arrPlaceHolder=[{2:1,5:1},{3:1,6:1}];K.m_oSeg={0:20,1:20,2:20,3:21,4:21,5:21,6:22,7:22,8:22,20:[0,2],21:[3,2],22:[6,2]};K.m_oDateInfo={h:20,s:21,ms:22};K.m_oRegExp=/((([01][0-9])|(2[0-3])):([0-5][0-9]):([0-5][0-9]))/;K.m_oRegExp2=/((([01][0-9])|(2[0-9])):([0-5][0-9]):([0-5][0-9]))/;K.m_oMin=new Date("1900-01-01".replace(/-/g,"/"));K.m_oMax=new Date("2099-01-01".replace(/-/g,"/"))}var C=0,H=K.getAttribute("timevalue");if(H!=null&&H!="")C=top.DxDataGrid.timeToLong(H);K.action=F;var I=H;DxDateTimePick.timeToStr(K,I);if(top.isIE){K.m_oRange=K.createTextRange();$(K).css("top",0)}else{$(D).height($(D).height()-2);$(D).width($(D).width()-7);DxDateTimePick._moveCursor(K,K.m_nFormatLen)}};DxDateTimePick.clear=function(_,$,A){};DxDateTimePick.calendarChangeaction=function(_,C,E,D){DxDateTimePick.timeToStr(E,D);DxDateTimePick.blurFunction(_,C,E);var A=top.E_clientModel.E_getWindow(_),$=WatCore.getWindowDoc(_,A),B=$.getElementById(C+"_t");if(B.action=="true")WatCore.call(_,C,"enter")};DxDateTimePick.timeToStr=function(H,B){if(B==""||B==0){var A="";if(H.stype=="date")A="0000-00-00";else if(H.stype=="time")A="00:00";else if(H.stype=="datetime2")A="0000-00-00 00:00:00";else if(H.stype=="time2")A="00:00:00";else A="0000-00-00 00:00";H.value=A;return}var G=new Date(parseInt(B)),D=G.getFullYear(),C=G.getMonth();if(C<9)C="0"+(C+1);else C+=1;var F=G.getDate();if(F<=9)F="0"+F;A;if(H.stype=="date")A=G.getFullYear()+"-"+C+"-"+F;else if(H.stype=="datetime"){var E=G.getHours();if(E<10)E="0"+E;var $=G.getMinutes();if($<10)$="0"+$;A=G.getFullYear()+"-"+C+"-"+F+" "+E+":"+$}else if(H.stype=="time"){E=G.getHours();if(E<10)E="0"+E;$=G.getMinutes();if($<10)$="0"+$;A=E+":"+$}else if(H.stype=="datetime2"){E=G.getHours();if(E<10)E="0"+E;$=G.getMinutes();if($<10)$="0"+$;var _=G.getSeconds();if(_<10)_="0"+_;A=G.getFullYear()+"-"+C+"-"+F+" "+E+":"+$+":"+_}else if(H.stype=="time2"){E=G.getHours();if(E<10)E="0"+E;$=G.getMinutes();if($<10)$="0"+$;_=G.getSeconds();if(_<10)_="0"+_;A=E+":"+$+":"+_}H.value=A};DxDateTimePick._verify=function(C,_,H,F,E,D){m_strCurText=_;var $,A,G,B=C.value;if(!D)B=DxDateTimePick._replace(C.value,H,F,_);G=false;if(D)G=B.match(C.m_oRegExp);else{G=B.match(C.m_oRegExp2);if(!G&&DxDateTimePick.m_strType=="string"){m_strCurText=_.toUpperCase();B=DxDateTimePick._replace(C.value,H,F,m_strCurText);G=B.match(C.m_oRegExp2);if(!G){m_strCurText=_.toLowerCase();B=DxDateTimePick._replace(C.value,H,F,m_strCurText);G=B.match(C.m_oRegExp2)}}}if(G!=null)G=true;else G=false;if(G){if(DxDateTimePick.m_strType=="date"||DxDateTimePick.m_strType=="datetime"||DxDateTimePick.m_strType=="time"||DxDateTimePick.m_strType=="datetime2"||DxDateTimePick.m_strType=="time2"){$=DxDateTimePick._getDateValue(C,B);if(DxDateTimePick.m_strType!="time"&&DxDateTimePick.m_strType!="time2")G=DxDateTimePick._isValidDate(C,$)}if(G&&E&&C.m_oMin&&C.m_oMax){switch(DxDateTimePick.m_strType){case"date":case"datetime":case"time":case"datetime2":case"time2":A=new Date($.y,$.m,$.d,$.h,$.i,$.s,$.f);break;case"numeric":A=parseInt(DxDateTimePick._getRealValue(B,true));break;default:break}if(C.stype=="time"||C.stype=="time2")G=(A<=C.m_oMax);else G=(A>=C.m_oMin)&&(A<=C.m_oMax)}}return G};DxDateTimePick._getRealValue=function(_,$){var A;for(var B in m_oHolderInfo){A=m_oHolderInfo[B];if(A)_=($)?_replace(_,B,A.length,"*"):_replace(_,B,0,A)}return($)?_.replace(/\*/g,""):_};DxDateTimePick._replace=function(B,$,C,A){var _=new RegExp("(.{"+$+"})(.{"+C+"})(.*$)","g").exec(B);return _[1]+A+_[3]};function insertSelectionText(B){if(document.selection&&document.selection.createRange)document.selection.createRange().pasteHTML(B);else{var C=document.getSelection(),A;if(C)A=C.getRangeAt(0);else A=iframeDocument.createRange();var $=A.createContextualFragment(B),_=$.lastChild;A.insertNode($);A.setEndAfter(_);A.setStartAfter(_);C.removeAllRanges();C.addRange(A)}}DxDateTimePick._selectRange=function(A,_,C,D){var B,$=A.value;B=$.substr(C,D);return B};DxDateTimePick._setSelText=function(C,$,_,E,D){var B=(D<0?E+D:E),F=(D<0?E:E+D),A=C.value;C.value=A.substring(0,B)+_+A.substring(F,A.length);DxDateTimePick._moveCursor(C,E+D)};DxDateTimePick._isHolderSign=function(_,B,A){var $=_.value.substring(B,B+A);return($)?DxDateTimePick.m_strSigns.indexof($)>=0:false};DxDateTimePick._getBlank=function($,_,A){var C=(DxDateTimePick.m_bFixedLen)?_:$.m_nFormatLen-($.value.length-_),B=$.m_strDefValue.substring(C,C+A);return B.replace(/^(\s)+/,"")};DxDateTimePick._isValidDate=function(A,_){var C=false;if(_.m=="00"||_.d=="00")C=true;else{var B=new Date(_.y,_.m,_.d),$=B.getMonth();C=($==_.m)}return C};DxDateTimePick._isValidDate2=function(A,_){var C=false;if(_.m=="-1"&&_.d=="00"&&_.y=="0000")C=true;else if(_.m=="-1"||_.d=="00"||_.y=="0000")C=false;else{var B=new Date(_.y,_.m,_.d),$=B.getMonth();C=($==_.m)}return C};DxDateTimePick._getDateValue2=function(E,C){var G={},B,F,$,A,_,D=["y","m","d","h","i","s","f","ms"];for(var H=0;H<D.length;H++){F=D[H];B=E.m_oDateInfo[F];if(B){$=E.m_oSeg[B];A=(F=="y")?1900:1;G[F]=(B==-1)?A:Number(C.substring($[0],$[0]+$[1]));if(F=="m")G[F]-=1}else G[F]=0}return G};DxDateTimePick._getDateValue=function(E,C){var G={},B,F,$,A,_,D=["y","m","d","h","i","s","f","ms"];for(var H=0;H<D.length;H++){F=D[H];B=E.m_oDateInfo[F];if(B){$=E.m_oSeg[B];A=(F=="y")?1900:1;G[F]=(B==-1)?A:Number(C.substring($[0],$[0]+$[1]));if(F=="m"&&G[F]!=0)G[F]-=1}else G[F]=0}return G};DxDateTimePick._getCursorPos=function(_){var A=-1;if(!top.isIE)A=_.selectionStart;else{var $=document.selection.createRange();$.moveStart("character",-_.value.length);A=$.text.length}return A};DxDateTimePick._moveCursor=function(A,_){if(top.isIE){var $=A.createTextRange();$.collapse(true);$.move("character",_);$.select()}else{A.setSelectionRange(_,_);A.focus()}};DxDateTimePick._setNumber=function(_,$){var B=DxDateTimePick._getCursorPos(_),A=_.value.length;$=DxDateTimePick._convNumber($);DxDateTimePick._selectRange(_,_.m_oRange,-B,A);DxDateTimePick._setSelText(_.m_oRange,$,nCrpos-A)};DxDateTimePick._convNumber=function(A){var _=A.replace(/,/g,""),C=_.match(/(^|[^\d]+)(\d+)(.|$)/g);if(C&&C.length>1){var E=RegExp.$2,B=E.replace(/^0+/g,"");if(B.length>3){var $=E.length%3;if($>0){B=(($==1)?"00":"0")+B;$=($==1)?2:1}var D=B.match(/(\d{3})/g),B=D.join(",");if($>0)B=B.substring($)}A=_.replace(E,B)}return A};DxDateTimePick.timer=function(A,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=_.getElementById(C+"_t");if($.value==""){DxDateTimePick.timeToStr($,"0");DxDateTimePick._moveCursor($,0)}};DxDateTimePick._onMousedown=function(B,F,D){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=A.getElementById(F+"_t"),E=WatCore.getWindow(B,C);try{DxDateTimePick._moveCursor(_,DxDateTimePick._getCursorPos(_))}catch($){DxDateTimePick._moveCursor(_,0)}E.setTimeout("top.DxDateTimePick.timer('"+B+"','"+F+"')",200)};DxDateTimePick._onSelect=function(C,G,F){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),A=B.getElementById(G+"_t");if(A.readOnly==true)return;var E=window,H=E.document.selection.createRange(),_,$=A.m_oRange;do{_=$.compareEndPoints("StartToStart",H);$.move("character",-_)}while(_!=0);$.moveEnd("character",H.text.length)};DxDateTimePick.up_onclick=function(A,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=_.getElementById(C+"_t");DxDateTimePick._clickArrow(A,C,$,true)};DxDateTimePick.down_onclick=function(A,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=_.getElementById(C+"_t");DxDateTimePick._clickArrow(A,C,$,false)};DxDateTimePick._clickArrow=function(E,H,D,J){if(DxDateTimePick.m_strType!="string"){var L;if(top.isIE)L=D.createTextRange();var C=D.value,N=C.length,M=(J)?DxDateTimePick.m_nInc:-DxDateTimePick.m_nInc,G=DxDateTimePick._getCursorPos(D);if(DxDateTimePick.m_bFixedLen&&DxDateTimePick.m_strType!="numeric"){var O=D.m_oSeg[G];if(O){var K=D.m_oSeg[O],I,N,B;I=K[0];var $=K[1],A=Number(DxDateTimePick._selectRange(D,L,I,$));if(!(A==1&&M<0)){A=A+M;while($-A.toString().length>0)A=DxDateTimePick.m_strBlank+A;if(DxDateTimePick._verify(D,A,I,$,true,false)){D.value=C.substring(0,I)+A+C.substring(I+$,C.length);DxDateTimePick._moveCursor(D,G);DxDateTimePick.blurFunction(E,H,D)}}}}else{var F=DxDateTimePick.m_bFixedLen?pareseInt(DxDateTimePick._getRealValue(C,true))+M:parseInt(C.replace(/,/g,""))+nstep,_=(D.m_oMin&&D.m_oMax)?(F>=D.m_oMin&&mReal<=D.m_oMax):true;if(_){C=DxDateTimePick.m_bFixedLen?DxDateTimePick._getRealValue(parseInt(F,false)):DxDateTimePick._convNumber(F.toString());if(C.length<=D.m_nFormatLen){DxDateTimePick._selectRange(L,-G,N);L.text=C;DxDateTimePick.blurFunction(E,H,D);G=DxDateTimePick._getCursorPos(D);DxDateTimePick._selectRange(L,-G,C.length)}}}}};DxDateTimePick._onKeyup=function(B,G,F){var D=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,D),_=A.getElementById(G+"_t");if(_.getAttribute("targetId")!=null){var $=0;if(F.keyCode==37||F.keyCode==39){var C=Desktop.getCursorPsn(_);if(F.keyCode==37&&C!=0)$=1;else if(F.keyCode==39&&C<_.value.length)$=1}if($==0)if(WatCore.isKeyCode(F,_.getAttribute("keyCode"))){stopEvent(F);var E=WatCore.getJsFunctionParams(F,_.getAttribute("targetId"),_.getAttribute("keyCode"),_.getAttribute("fname"));WatCore.jsFunctionCall(B,G,E[0],E[1],F);return}}};DxDateTimePick._onKeydown=function(Q,E,I){var X=top.E_clientModel.E_getWindow(Q),P=WatCore.getWindowDoc(Q,X),O=P.getElementById(E+"_t"),a=false,R,G=I.keyCode,F=O.m_oRange;switch(G){case 8:case 46:var D=(G==46);R=DxDateTimePick._getCursorPos(O);var T=(D)?0:1,J=D?1:-1,Z=O.value.length,Y,K;if(DxDateTimePick.m_bFixedLen&&O.m_arrPlaceHolder[T][R]||(!DxDateTimePick.m_bFixedLen&&DxDateTimePick._isHolderSign(O,R,J))){step=(D)?1:-1;R+=step;DxDateTimePick._moveCursor(O,R)}else{Y=(D)?1:-1;K=(DxDateTimePick.m_bFixedLen)?DxDateTimePick.m_strBlank:DxDateTimePick._getBlank(O,R,J);var W=(DxDateTimePick.m_bFixedLen||K.length>0)?Y:0;if((D&&R<O.m_nFormatLen)||(!D&&R!=0))DxDateTimePick._setSelText(O,F,K,R,W)}if(!DxDateTimePick.m_bFixedLen)DxDateTimePick._setNumber(O,O.value);DxDateTimePick.blurFunction(Q,E,O);break;case 36:DxDateTimePick._moveCursor(O,0);a=true;break;case 35:DxDateTimePick._moveCursor(O,O.m_nFormatLen);a=true;break;case 37:case 39:var M=(G==39),Y=(M)?1:-1,T=(M)?0:1,A=DxDateTimePick._getCursorPos(O);DxDateTimePick._moveCursor(O,A+Y);break;case 38:case 187:case 61:DxDateTimePick._clickArrow(Q,E,O,true);stopEvent(I);break;case 40:case 189:case 173:DxDateTimePick._clickArrow(Q,E,O,false);stopEvent(I);break;break;case 45:case 229:break;case 13:break;case 78:var V=new Date(),H=Number(V);DxDateTimePick.timeToStr(O,H);DxDateTimePick.blurFunction(Q,E,O);DxDateTimePick._moveCursor(O,O.m_nFormatLen);break;case 67:DxDateTimePick.timeToStr(O,"0");DxDateTimePick.blurFunction(Q,E,O);DxDateTimePick._moveCursor(O,0);break;default:R=DxDateTimePick._getCursorPos(O);var T=0,J=1,Z=O.value.length,B=O.value,Y,K;Y=0;if(DxDateTimePick.m_bFixedLen&&O.m_arrPlaceHolder[T][R]||(!DxDateTimePick.m_bFixedLen&&DxDateTimePick._isHolderSign(O,R,J))){step=1;R+=step}var C=DxDateTimePick.m_input[G];if(C!=null){W=1;if(R<O.m_nFormatLen){var L=O.m_oSeg[R];if(L){var U=O.m_oSeg[L],S,Z,_;S=U[0];var $=U[1];DxDateTimePick._setSelText(O,F,C,R,W);var N=DxDateTimePick._selectRange(O,F,S,$);DxDateTimePick.blurFunction(Q,E,O)}}}a=false;break}I.returnValue=a;return false};DxDateTimePick._onKeypress=function(C,G,F){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),A=B.getElementById(G+"_t"),H,_=String.fromCharCode(F.keyCode);nCurPos=DxDateTimePick._getCursorPos(A);var E=A.value.length;if(A.value.length<=A.m_nFormatLen&&nCurPos<A.m_nFormatLen)if(DxDateTimePick.m_bFixedLen)if(!E){if(DxDateTimePick._verify(A,_,nCurPos,1,false,false)){DxDateTimePick._selectRange(oRange,0,1);DxDateTimePick._setSelText(oRange,m_strCurText,0)}}else{var $=_+A.m_strDefValue.substring(nCurPos+1,nCurPos+E);if(DxDateTimePick._verify(A,$,nCurPos,E,false,false))DxDateTimePick._setSelText(oRange,m_strCurText,-(E-1))}DxDateTimePick.blurFunction(C,G,A);F.returnValue=false;return false};DxDateTimePick.blurFunction=function(A,B,_){var $=DxDateTimePick.strToTime(_);WatCore.setParameter(A,B,top.DC.TIME_VALUE,$)};DxDateTimePick.action=function(C,F,J){var $,H,E,I=top.E_clientModel.E_getWindow(C),D=WatCore.getWindowDoc(C,I),B=D.getElementById(F+"_t"),A=B.value,E=DxDateTimePick._verify(B,A,0,A.length,false,true),K=true;if(E)if(B.stype=="date"||B.stype=="datetime"||B.stype=="datetime2"){$=DxDateTimePick._getDateValue2(B,A);K=DxDateTimePick._isValidDate2(B,$)}if(!E||!K){if(A=="")DxDateTimePick.timeToStr(B,"0");else DxDateTimePick.timeToStr(B,"0");try{B.focus();var G=B.m_oRange;if(G!=null)while(G.move("character",-1)<0);}catch(_){}}else if(J)WatCore.call(C,F,"enter")};DxDateTimePick.strToTime=function(D){var A=D.value,_=A.split("-");if("0000-00-00"==A||"0000-00-00 00:00"==A||"00:00"==A||"0000-00-00 00:00:00"==A||"00:00:00"==A)return 0;if(_.length!=3&&D.stype!="time"&&D.stype!="time2")alert("time is error");else{var C=_[1];if(D.stype=="date"){var $=_[2];if(C>0&&$>0)_[1]=C-1;return new Date(_[0],_[1],_[2],0,0,0,0).getTime()}else if(D.stype=="datetime"){var A=_[2],B=A.split(" "),$=B[0];if(C>0&&$>0)_[1]=C-1;var E=B[1].split(":");return new Date(_[0],_[1],$,E[0],E[1],0,0).getTime()}else if(D.stype=="time"){E=A.split(":"),$=new Date();$.setHours(E[0],E[1],0);return $.getTime()}else if(D.stype=="datetime2"){A=_[2],B=A.split(" "),$=B[0];if(C>0&&$>0)_[1]=C-1;E=B[1].split(":");return new Date(_[0],_[1],$,E[0],E[1],E[2],0).getTime()}else if(D.stype=="time2"){E=A.split(":"),$=new Date();$.setHours(E[0],E[1],E[2]);return $.getTime()}}};DxDateTimePick._upMouseIn=function($){$.className="DxDateTimePick-up-image-mouseover"};DxDateTimePick._upMouseOut=function($){$.className="DxDateTimePick-up-image"};DxDateTimePick._downMouseIn=function($){$.className="DxDateTimePick-down-image-mouseover"};DxDateTimePick._downMouseOut=function($){$.className="DxDateTimePick-down-image"};DxDateTimePick.setFocus=function(G,A,C,F){var B=top.E_getObject(G,"E_SW_"+A,C),E=B.ownerDocument.getElementById(A),D=B.ownerDocument.getElementById(A+"_t");if(B.style.visibility!="hidden"&&!D.readOnly){try{D.focus();DxDateTimePick._moveCursor(E,0)}catch(_){}}else if($(D).attr("targetId")!=null)if(WatCore.isKeyCode(F,D.getAttribute("keyCode"))){stopEvent(F);E=WatCore.getJsFunctionParams(F,D.getAttribute("targetId"),D.getAttribute("keyCode"),D.getAttribute("fname"));WatCore.jsFunctionCall(G,A,E[0],E[1],F)}};DxDateTimePick.jsFunctionCall=function(F,_,E,$,H,G){if(G.keyCode==37||G.keyCode==39){var D=top.E_clientModel.E_getWindow(F),B=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,_,B),C=Desktop.getCursorPsn(A);if(G.keyCode==37&&C!=0)return;else if(G.keyCode==39&&C<A.value.length)return}if(WatCore.isKeyCode(G,$)){stopEvent(G);WatCore.jsFunctionCall(F,_,E,H,G)}};DxDateTimePick._mouseIn=function(_){var $=_.getAttribute("parentclass");_.className=$+"-button-mouseover"};DxDateTimePick._mouseOut=function(_){var $=_.getAttribute("parentclass");_.className=$+"-button"};DxDateTimePick.focusShowTime=function(A,D){var H=top.E_clientModel.E_getWindow(A);if(!H)return;var B=WatCore.getWindowDoc(A,H),C=WatCore.getWindow(A,H),G=top.E_getObject(A,D,B);top.DxPopGridText.hideOnClick();try{if(C.EventRouter.getDateTimeDialog(C).sid==D){C.EventRouter.hiddenDateTimeDialog();return false}}catch(_){}var J=C.EventRouter.showDateTimeDialog(),K=G.ownerDocument.getElementById(D+"_t"),F=DxDateTimePick.strToTime(K);DxCalendarTemplate.init(A,D,K,F,"DxDateTimePick");var I=$(J).height();if(top.isIE){var E=DxPopGridText.posPopwin(A,G).y+parseInt(G.style.height);if(parseInt(E)+I+10>parseInt(B.body.offsetHeight||B.documentElement.offsetHeight))E=E-I-parseInt(G.style.height);else E+=0;$(J).css({"top":(E)+"px","left":(DxPopGridText.posPopwin(A,G).x)+"px","display":"block","zIndex":"1000"})}else{E=DxPopGridText.posPopwin(A,G).y+parseInt(G.style.height);if(parseInt(E)+I+10>parseInt(B.body.offsetHeight||B.documentElement.offsetHeight||B.documentElement.clientHeight))E=E-I-parseInt(G.style.height);else E+=0;$(J).css({"top":(E)+"px","left":(DxPopGridText.posPopwin(A,G).x-2)+"px","display":"block","zIndex":"1000"})}J.sid=D};DxDateTimePick.render=function(C,L,J){var D=J.getAttribute("cid"),A=J.selectNodes("*");for(var F=0;F<A.length;F++){var E=A[F].nodeName;E=E.substring(1,E.length);var M=top.isIE?A[F].text:A[F].textContent;switch(E){case top.DC.TIME_VALUE:var _=L.getElementById(D+"_t"),G=0;if(M!=null&&M!=""){G=top.DxDataGrid.timeToLong(M);DxDateTimePick.timeToStr(_,G)}else if(_.stype=="date")_.value="0000-00-00";else if(_.stype=="datetime")_.value="0000-00-00 00:00";else if(_.stype=="time")_.value="00:00";else if(_.stype=="datetime2")_.value="0000-00-00 00:00:00";else if(_.stype=="time2")_.value="00:00:00";break;case top.DC.VISIBLE:top.E_getObject(C,"E_SW_"+D,L).style.visibility=M;break;case top.DC.FOCUS:DxDateTimePick.setFocus(C,D,L);break;case top.DC.X:top.E_getObject(C,"E_SW_"+D,L).style.left=M;break;case top.DC.Y:top.E_getObject(C,"E_SW_"+D,L).style.top=M;break;case top.DC.ENABLED:var N=top.E_getObject(C,D,L),B=N.ownerDocument.getElementById(D+"_t"),O=N.ownerDocument.getElementById(D+"up"),I=N.ownerDocument.getElementById(D+"down"),P=N.ownerDocument.getElementById("btn_"+D);if(M=="true"){N.disabled=false;$(B).removeAttr("disabled");$(B).removeAttr("readOnly");P.disabled=false;if(O!=null){O.disabled=false;I.disabled=false}N.style.backgroundColor="window";$(B).css("cursor","default");$(N).css("cursor","default");$(P).css("cursor","default")}else{N.disabled=true;$(B).attr("disabled","true");$(B).attr("readOnly","true");P.disabled=true;if(O!=null){O.disabled=true;I.disabled=true}N.style.backgroundColor="#F0F0F0";$(B).css("cursor","not-allowed");$(N).css("cursor","not-allowed");$(P).css("cursor","not-allowed")}break;case top.DC.JSFUNCTION_KEYCODE:var H=top.E_getObject(C,D,L),K=$(H);K.attr("keyCode",M);break;case top.DC.JSFUNCTION_TARGET:H=top.E_getObject(C,D,L),K=$(H);K.attr("targetId",M);break;case top.DC.JSFUNCTION_NAME:H=top.E_getObject(C,D,L),K=$(H);K.attr("fname",M);break;case top.DC.JSFUNCTION_KCOLIST:H=top.E_getObject(C,D,L),K=$(H);K.attr("kcoList",M);break;case top.DC.BACKGROUND:top.E_getObject(C,D,L).style.backgroundColor=M;top.E_getObject(C,D,L).setAttribute("bkcolor",M);break;default:break}}};function DxWebEditor(){}DxWebEditor.blurText=function($,A,_){WatCore.setParameter($,A,top.DC.TEXT,_.contentWindow.getHTML())};DxWebEditor.change=function(_,E,C){var D=E+"_editor",B=top.E_clientModel.E_getWindow(_),A=(_==top.DESKTOP)?B.document:B.contentWindow.document;try{top.E_getObject(_,D,A).contentWindow.setHTML(C)}catch($){}};DxWebEditor.render=function(_,E,C){var H=C.getAttribute("cid"),B=C.selectNodes("*");for(var J=0;J<B.length;J++){var I=B[J].nodeName;I=I.substring(1,I.length);var D=top.isIE?B[J].text:B[J].textContent;switch(I){case top.DC.WIDTH:top.E_getObject(_,H,E).style.width=D+"px";break;case top.DC.HEIGHT:top.E_getObject(_,H,E).style.height=D+"px";break;case top.DC.UPDATE:var A=top.E_getObject(_,H,E);A.innerHTML="";A.parentElement.removeChild(A);var G=E.getElementById("E_SW_"+H);$(G).append(D);break;case top.DC.TEXT:var F=H+"_editor",A=E.getElementById(F);DxWebEditor.change(_,H,D);top.E_getObject(_,F,E).onreadystatechange=function(){DxWebEditor.change(_,H,D)};break;default:break}}};function DxHTMLDisplay(){}DxHTMLDisplay.changedata=function(A,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=top.E_getObject(A,C,_);if($!=null)return $.innerHTML;else return null};DxHTMLDisplay.render=function(D,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=top.isIE?_[G].text:_[G].textContent;switch(F){case top.DC.CSSNAME:top.E_getObject(D,E,C).className=B;break;case top.DC.WIDTH:top.E_getObject(D,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject(D,E,C).style.height=B;break;case top.DC.TEXT:var $=top.E_getObject(D,E,C);$.innerHTML="";$.innerHTML=B;top.E_htmldisplayChange.E_put(E,D);break;case top.DC.BORDERSTYLE:top.E_getObject(D,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject(D,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject(D,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject(D,"E_SW_"+E,C).style.left=B;break;case top.DC.Y:top.E_getObject(D,"E_SW_"+E,C).style.top=B;break;case top.DC.BACKGROUND:top.E_getObject(D,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject(D,E,C).style.color=B;break;default:break}}};function DxDataInfomation(){}DxDataInfomation.init=function(B,C){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),$=top.E_getObject(B,C,_)};DxDataInfomation.updateData=function(D,E,_){var K=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,K),J=C.getElementById(E);if(top.isIE)J.dataDom.loadXML(_);else J.dataDom=WatCore.createXmlDom(_);var G=$("#"+E+"_content",J).get(0);G.innerHTML="";var B=G.direction,H=J.dataDom.documentElement.selectNodes("cnt"),A="";for(var F=0;F<H.length;F++){var I=H[F];if(B=="down"||B=="up")A+=DxDataInfomation.createContent(D,E,G,J,I,true);else A+=DxDataInfomation.createContent(D,E,G,J,I,false)}insertHTML(G,"BeforeEnd",A)};DxDataInfomation.notify=function(_,A,$){top.WatCore.call(_,A,$)};DxDataInfomation.processTime=function(_){var D=new Date(parseInt(_)),B=D.getFullYear(),A=D.getMonth();if(A<9)A="0"+(A+1);else A+=1;var C=D.getDate();if(C<=9)C="0"+C;var $="["+B+"-"+A+"-"+C+"]";return $};DxDataInfomation.createContent=function(F,I,$,C,A,E){var D=A.getAttribute("isNew"),_=A.getAttribute("index"),H=A.selectNodes("txt")[0],G=A.selectNodes("time")[0],B="";B+="<img src='"+C.ticon+"'>&nbsp;";if(C.isCall=="true")B+="<A class=DxDataInfomation style='font-size:14;' href=\"javascript:top.DxDataInfomation.notify('"+F+"','"+I+"','"+_+"')\">";else B+="<A class=DxDataInfomation style='font-size:14;'>";B+=H.text+"</A><span style='color:#FF9900;font-size:14;'>&nbsp;"+DxDataInfomation.processTime(G.text)+"</span>";if(D=="true")B+="<img src='"+C.nicon+"'>";B+="<br>";return B};DxDataInfomation.clear=function(A,_,B){try{B.dataDom=null}catch($){}};DxDataInfomation.render=function($,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.UPDATE_DATA:DxDataInfomation.updateData($,E,C);break;case top.DC.WIDTH:var _=top.E_getObject($,E,oDoc);_.style.width=C;break;case top.DC.HEIGHT:_=top.E_getObject($,E,oDoc);_.style.height=C;break;case top.DC.VISIBLE:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.visibility=C;break;case top.DC.X:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.left=C;break;case top.DC.Y:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.top=C;break;default:break}}};function DxHTMLDisplay(){}DxHTMLDisplay.changedata=function(A,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=top.E_getObject(A,C,_);if($!=null)return $.innerHTML;else return null};DxHTMLDisplay.render=function(D,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=top.isIE?_[G].text:_[G].textContent;switch(F){case top.DC.CSSNAME:top.E_getObject(D,E,C).className=B;break;case top.DC.WIDTH:top.E_getObject(D,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject(D,E,C).style.height=B;break;case top.DC.TEXT:var $=top.E_getObject(D,E,C);$.innerHTML="";$.innerHTML=B;top.E_htmldisplayChange.E_put(E,D);break;case top.DC.BORDERSTYLE:top.E_getObject(D,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject(D,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject(D,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject(D,"E_SW_"+E,C).style.left=B;break;case top.DC.Y:top.E_getObject(D,"E_SW_"+E,C).style.top=B;break;case top.DC.BACKGROUND:top.E_getObject(D,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject(D,E,C).style.color=B;break;default:break}}};function DxPrinter(){}DxPrinter.allprinter=[];DxPrinter.curPrinter=null;DxPrinter.init=function(B,C){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),$=top.E_getObject(B,C,_);DxPrinter.addCinfigName($.configname)};DxPrinter.addCinfigName=function(_){if(!_)return;var $=false;for(var A=0;A<DxPrinter.allprinter.length;++A)if(DxPrinter.allprinter[A]==_){$=true;break}if(!$)DxPrinter.allprinter.push(_);DxPrinter.curPrinter=_};DxPrinter.createPrintObj=function(){var _=DxPrinter.getPrintIframe(),$=_.contentWindow.document;$.open();$.write("<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>");$.write("<style>v\\:* { behavior: url(#default#VML);}</style><link href='./resources/css/report.css' media='all' rel='stylesheet' type='text/css' /><object id='print_factory' style='display:none' classid='clsid:1663ed6a-23eb-11d2-b92f-008048fdd814' codebase='ScriptX.cab#Version=6,1,431,2'></object> ");$.write("</BODY>");$.close();return $.getElementById("print_factory")};DxPrinter.setMargin=function(G){var F=G["CONFIG_NAME"],I=getCookie(F+"_printer_left");if((I==null||isNaN(parseInt(I)))){I=null;if(G["leftMargin"]!=null)I=G["leftMargin"]}var C=getCookie(F+"_printer_right");if((C==null||isNaN(parseInt(C)))){C=null;if(G["rightMargin"]!=null)C=G["rightMargin"]}var E=getCookie(F+"_printer_top");if((E==null||isNaN(parseInt(E)))){E=null;if(G["topMargin"]!=null)E=G["topMargin"]}var A=getCookie(F+"_printer_bottom");if((A==null||isNaN(parseInt(A)))){A=null;if(G["bottomMargin"]!=null)A=G["bottomMargin"]}try{var H,$,D;H="HKEY_CURRENT_USER";$="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";var B=new ActiveXObject("WScript.Shell");if(I!=null){D="margin_left";B.RegWrite(H+$+D,parseFloat(I)/25.4)}if(C!=null){D="margin_right";B.RegWrite(H+$+D,parseFloat(C)/25.4)}if(E!=null){D="margin_top";B.RegWrite(H+$+D,parseFloat(E)/25.4)}if(A!=null){D="margin_bottom";B.RegWrite(H+$+D,parseFloat(A)/25.4)}}catch(_){}};DxPrinter.print=function($,C,B,A){DxPrinter.setMargin(A);if(!DxPrinter.print_v2($,B,A))if(!DxPrinter.print_v1($,B,A))DxPrinter.print_v0($,B,A);var _=A["callback"];if(_!="")WatCore.sendACallToChart($,C,_)};DxPrinter.printpreview=function($,A,_){DxPrinter.setMargin(_);if(!DxPrinter.printpreview_v2($,A,_))if(!DxPrinter.printpreview_v1($,A,_))DxPrinter.printpreview_v0($,A,_)};DxPrinter.print_v2=function($,D,C){var E=""+C["isEx"],F;if(E=="1")F=DxPrinter.createPrintObj();else{var G=DxPrinter.getPrintIframe(),_=G.contentWindow.document;_.open();_.write("<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>");_.write("<style>v\\:* { behavior: url(#default#VML);}</style><link href='./resources/css/report.css' media='all' rel='stylesheet' type='text/css' /><object id='print_factory' style='display:none' classid='clsid:3EDE745C-4ADB-42A6-AB25-5621EDBDFD6B' codebase='QWPrint.cab#version=1,3,8,2'></object> ");_.write($$(D,$).html());_.write("</BODY>");_.close();F=_.getElementById("print_factory")}if(!F)return false;var M=C["CONFIG_NAME"];F.orientation=C["isPortrait"]=="true"?1:2;if(C["leftMargin"]!=null)F.paddingLeft=parseFloat(C["leftMargin"])*10;var K=getCookie(M+"_printer_left");if(K!=null&&!isNaN(parseInt(K)))F.paddingLeft=parseFloat(K)*10;if(C["topMargin"]!=null)F.paddingTop=parseFloat(C["topMargin"])*10;var H=getCookie(M+"_printer_top");if(H!=null&&!isNaN(parseInt(H)))F.paddingTop=parseFloat(H)*10;if(C["rightMargin"]!=null)F.paddingRight=parseFloat(C["rightMargin"])*10;var P=getCookie(M+"_printer_right");if(P!=null&&!isNaN(parseInt(P)))F.paddingRight=parseFloat(P)*10;if(C["bottomMargin"]!=null)F.paddingBottom=parseFloat(C["bottomMargin"])*10;var J=getCookie(M+"_printer_bottom");if(J!=null&&!isNaN(parseInt(J)))F.paddingBottom=parseFloat(J)*10;if(C["paperSize"]!=null)F.pageName=C["paperSize"];F.header="&nbsp;&nbsp;&nbsp;";F.footer="&nbsp;&nbsp;&nbsp;";var O=C["printsetup"];if(E=="1"){var I=top.E_clientModel.E_getWindow($),B=WatCore.getWindow($,I),L=B.document.getElementById(D),A=L.nextSibling,N=L.parentElement;B.document.getElementById("wat_print_div").appendChild(L);if(O=="true")F.Print(true);else F.Print(false);N.insertBefore(L,A)}else if(O=="true")F.Print(true);else F.Print(false);return true};DxPrinter.print_v1=function(_,D,B){try{var A="<body onload='WebBrowser.ExecWB(6,1);'><link href='./resources/css/report.css' rel='stylesheet' type='text/css' /><object ID='WebBrowser' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>"+$$(D,_).html()+"</body>",C=window.open("","","");C.opener=null;C.document.write(A);C.document.close();setTimeout(function(){C.close()},2000);return true}catch($){return false}};DxPrinter.print_v0=function(_,D,B){try{var A="<body onload='window.print();'><link href='./resources/css/report.css' rel='stylesheet' type='text/css' />"+$$(D,_).html()+"</body>",C=window.open("","","");C.opener=null;C.document.write(A);C.document.close();setTimeout(function(){C.close()},2000);return true}catch($){return false}};DxPrinter.printpreview_v2=function($,B,A){var C=""+A["isEx"],D;if(C=="1")D=DxPrinter.createPrintObj();else{var J=window.open("","","");if(!J)return false;J.opener=null;J.document.write("<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>");J.document.write("<style>v\\:* { behavior: url(#default#VML);}</style><link href='./resources/css/report.css' media='all' rel='stylesheet' type='text/css' /><object id='print_factory' style='display:none' classid='clsid:3EDE745C-4ADB-42A6-AB25-5621EDBDFD6B' codebase='QWPrint.cab#version=1,3,8,2'></object> ");J.document.write($$(B,$).html());J.document.write("</BODY>");J.document.close();J.self.moveTo(0,0);J.self.resizeTo(screen.availWidth,screen.availHeight);D=J.document.getElementById("print_factory")}var I=A["CONFIG_NAME"];if(!D)return false;D.orientation=A["isPortrait"]=="true"?1:2;D.orientation=false;D.portrait=false;if(A["leftMargin"]!=null)D.paddingLeft=parseFloat(A["leftMargin"])*10;var H=getCookie(I+"_printer_left");if(H!=null&&!isNaN(parseInt(H)))D.paddingLeft=parseFloat(H)*10;if(A["topMargin"]!=null)D.paddingTop=parseFloat(A["topMargin"])*10;var E=getCookie(I+"_printer_top");if(E!=null&&!isNaN(parseInt(E)))D.paddingTop=parseFloat(E)*10;if(A["rightMargin"]!=null)D.paddingRight=parseFloat(A["rightMargin"])*10;var K=getCookie(I+"_printer_right");if(K!=null&&!isNaN(parseInt(K)))D.paddingRight=parseFloat(K)*10;if(A["bottomMargin"]!=null)D.paddingBottom=parseFloat(A["bottomMargin"])*10;var F=getCookie(I+"_printer_bottom");if(F!=null&&!isNaN(parseInt(F)))D.paddingBottom=parseFloat(F)*10;if(A["paperSize"]!=null)D.pageName=A["paperSize"];D.header="&nbsp;&nbsp;&nbsp;";D.footer="&nbsp;&nbsp;&nbsp;";if(C=="1"){var G=top.E_clientModel.E_getWindow($),_=WatCore.getWindow($,G);D.PrintView()}else{D.PrintView();setTimeout(function(){J.close()},2000)}return true};DxPrinter.printpreview_v1=function(_,D,B){try{var A="<body onload='WebBrowser.ExecWB(7,1);'><link href='./resources/css/report.css' media='all' rel='stylesheet' type='text/css' /><object ID='WebBrowser' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>"+$$(D,_).html()+"</body>",C=window.open("","","");C.opener=null;C.document.write(A);C.document.close();setTimeout(function(){C.close()},2000);return true}catch($){return false}};DxPrinter.printpreview_v0=function(_,D,B){try{var A="<body TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0><style>v\\:* { behavior: url(#default#VML);}</style><link href='./resources/css/report.css' media='all' rel='stylesheet' type='text/css' />"+$$(D,_).html()+"</body>",C=window.open("","","");C.opener=null;C.document.write(A);C.document.close();setTimeout(function(){C.close()},2000);return true}catch($){return false}};DxPrinter.getPrintIframe=function(){var $=document.getElementById("dx_print_iframe");if(!$){$=document.createElement("iframe");$.id="dx_print_iframe";document.body.appendChild($);$.style.pixelWidth=1;$.style.pixelHeight=1}return $};function getCookie(A){coo=document.cookie;var $=coo.indexOf(A);if($>-1){var _=coo.indexOf(";",$);if(_<0)_=coo.length;return coo.substring($+A.length+1,_)}return null}function setCookie(B,A){var $=new Date(),_=new Date($.getYear()+1,$.getMonth(),$.getDate());document.cookie=B+"="+A+"; expires="+_.toGMTString()}DxPrinter.printconfig=function(){var _={title:"\u6253\u5370\u8bbe\u7f6e",content:"Content",loadUrl:"",bColor:"#777",bWidth:document.body.clientWidth+"px",bHeight:document.body.clientHeight+"px",oColor:"#FFF",oWidth:400,oHeight:250},D="<div id='cbtn' style='font-size:12px;background:#F2F3F7;color:#777;padding:5px 5px'><img id='pst_close' src='resources/core/bbgg2.gif'/>"+_.title+"</div><div>",A="<div id='odiv' style='background:"+_.oColor+";width:"+_.oWidth+"px;border:1px black solid;z-index:9999;position:absolute;top:150px;left:"+((document.body.clientWidth-_.oWidth)/2)+"px'>"+D+"<div id='content' style='padding:10px 10px;overflow-x:hidden;overflow-y:auto;width:"+_.oWidth+"px;height:"+_.oHeight+"px'><SELECT id='printer_sels'></SELECT><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>\u9875\u9762\u4e0a\u8fb9\u8ddd\uff1a</td><td><input type='text' id='printer_top' >\u6beb\u7c73</td></tr><tr><td>\u9875\u9762\u4e0b\u8fb9\u8ddd\uff1a</td><td><input type='text' id='printer_bottom' >\u6beb\u7c73</td></tr><tr><td>\u9875\u9762\u5de6\u8fb9\u8ddd\uff1a</td><td><input type='text' id='printer_left' >\u6beb\u7c73</td></tr><tr><td>\u9875\u9762\u53f3\u8fb9\u8ddd\uff1a</td><td><input type='text' id='printer_right' >\u6beb\u7c73</td></tr><tr><td>\u7eb8\u5f20\u5927\u5c0f\uff1a</td><td><input type='text' id='printer_pagesize' ></td></tr><tr><td>\u6253\u5370\u65b9\u5411\uff1a</td><td><SELECT id='printer_dyfx'><option value='0'>\u7eb5\u5411</option><option value='1'>\u6a2a\u5411</option></SELECT></td></tr><tr><td>\u9875\u7709\uff1a</td><td><input type='text' id='printer_header' ></td></tr><tr><td>\u9875\u811a\uff1a</td><td><input type='text' id='printer_footer' ></td></tr></table><button id='printer_ok'>\u786e\u5b9a</button></div></div>",C="<div id='bdiv' style='background:"+_.bColor+";width:"+_.bWidth+";height:"+_.bHeight+";z-index:9998;position:absolute;left:0:top:0;filter:alpha(opacity:90)'></div>";if(!($("#bdiv").length))$("body").append(C);if(!($("#odiv").length))$("body").append(A);var E="";for(var F=0;F<DxPrinter.allprinter.length;++F)if(DxPrinter.allprinter[F]==DxPrinter.curPrinter)E+="<option value='"+DxPrinter.allprinter[F]+"' selected>"+DxPrinter.allprinter[F]+"</option>";else E+="<option value='"+DxPrinter.allprinter[F]+"'>"+DxPrinter.allprinter[F]+"</option>";var B=$("#printer_sels");B.empty();B.append(E);B.change(function(){DxPrinter.setConfigVal($(this).val())});DxPrinter.setConfigVal(DxPrinter.curPrinter);$("#pst_close").css({"cursor":"pointer","float":"right"}).click(function(){$("#bdiv").remove();$("#odiv").remove()});$("#printer_ok").click(function(){var _=$("#printer_sels").val();setCookie(_+"_printer_top",$("#printer_top").val());setCookie(_+"_printer_bottom",$("#printer_bottom").val());setCookie(_+"_printer_left",$("#printer_left").val());setCookie(_+"_printer_right",$("#printer_right").val());setCookie(_+"_printer_pagesize",$("#printer_pagesize").val());setCookie(_+"_printer_dyfx",$("#printer_dyfx").val());setCookie(_+"_printer_header",$("#printer_header").val());setCookie(_+"_printer_footer",$("#printer_footer").val());$("#bdiv").remove();$("#odiv").remove()})};DxPrinter.setConfigVal=function(_){$("#printer_left").val(getCookie(_+"_printer_left"));$("#printer_top").val(getCookie(_+"_printer_top"));$("#printer_right").val(getCookie(_+"_printer_right"));$("#printer_bottom").val(getCookie(_+"_printer_bottom"));$("#printer_pagesize").val(getCookie(_+"_printer_pagesize"));$("#printer_dyfx").val(getCookie(_+"_printer_dyfx"));$("#printer_header").val(getCookie(_+"_printer_header"));$("#printer_footer").val(getCookie(_+"_printer_footer"))};$(document).keyup(function($){if($.keyCode==85&&$.ctrlKey)DxPrinter.printconfig()});DxPrinter.render=function(_,K,J){var F=J.getAttribute("cid"),B=J.selectNodes("*");for(var H=0;H<B.length;H++){var G=B[H].nodeName;G=G.substring(1,G.length);var L=top.isIE?B[H].text:B[H].textContent,M=L.split("|"),D,A;D=new Array(M.length-1);for(var E=0;E<M.length;E++){var C=M[E].split(":");if(C[0]=="wat_print_id_1")A=C[1];else D[C[0]]=C[1]}var I=top.E_getObject(_,F,K);D["CONFIG_NAME"]=I.configname;DxPrinter.addCinfigName(I.configname);switch(G){case top.DC.PRINT:try{top.DxPrinter.print(_,F,A,D)}catch($){}break;case top.DC.PRINT_VIEW:try{top.DxPrinter.printpreview(_,A,D)}catch($){}break;default:break}}};var READY_STATE_UNINITIALIZED=0,READY_STATE_LOADING=1,READY_STATE_LOADED=2,READY_STATE_INTERACTIVE=3,READY_STATE_COMPLETE=4;function AsynCallObj(){var $=WatCore.getXMLHttp();this.sendAsynCall=function(B,_){var A=(B.length>1877)?"POST":"POST";$.onreadystatechange=function(){var B=$.readyState,_=null;if(B==READY_STATE_COMPLETE){var A=$.responseXML;if(A!=null)WatCore.asynprocess(A)}};var C;if(_==undefined)C="true";else C="false";$.open(A,watLocation+"&asy="+C,true);$.setRequestHeader("Content-Type","text/html UTF-8");$.send(B)}};var READY_STATE_UNINITIALIZED=0,READY_STATE_LOADING=1,READY_STATE_LOADED=2,READY_STATE_INTERACTIVE=3,READY_STATE_COMPLETE=4;function AsynCallObjHidden(){var $=WatCore.getXMLHttp();this.sendAsynCall=function(A){var _=(A.length>1877)?"POST":"POST";$.onreadystatechange=function(){var A=$.readyState,_=null;if(A==READY_STATE_COMPLETE)WatCore.asynprocess($.responseXML)};$.open(_,watLocation+"&asy=true",true);$.setRequestHeader("Content-Type","text/plain UTF-8");$.send(A)}};DxDragPanel.dragSpeed=20;function DxDragPanel(){}DxDragPanel.init=function(D,_){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,_,B);$(A).unbind("resize");$(A).bind("resize",D,function($){top.DxDragPanel.resizeChange(D,_)});if(!top.isIE)$("#"+_+"_title",A).height(20);DxDragPanel.resizeChange(D,_)};DxDragPanel.resizeChange=function(E,$){if(top.isIE){var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),_=top.E_getObject(E,$,B),F=WatCore.getClientRect(_);_.ow=parseInt(F.w);_.oh=parseInt(F.h);var A=_.ownerDocument.getElementById($+"_content"),D=_.oh-22;if(D>=0){A.oh=D;A.style.height=A.oh+"px"}}return true};DxDragPanel.imgDown=function($){$.cancelBubble=true;$.returnValue=false};DxDragPanel.imgMove=function($){$.cancelBubble=true;$.returnValue=false};DxDragPanel.imgDblClick=function($){$.cancelBubble=true;$.returnValue=false};DxDragPanel.hidden=function(C,$){var B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),A=top.E_getObject(C,$+"_content",_),D=A.show;if(D!="hidden"){var E=parseInt(A.style.height);if(A.sc=="true")A.style.overflow="hidden";if(E<DxDragPanel.dragSpeed){A.style.height="1";A.show="hidden";A.style.display="none";if(A.sc=="true")A.style.overflow="auto"}else{A.style.height=parseInt(E)-DxDragPanel.dragSpeed;window.setTimeout("DxDragPanel.hidden('"+C+"','"+$+"')",0)}}else{if(A.sc=="true")A.style.overflow="hidden";E=parseInt(A.style.height);if(E>A.oh){A.style.height=A.oh;A.show="show";if(A.sc=="true")A.style.overflow="auto"}else{A.style.height=parseInt(E)+DxDragPanel.dragSpeed;A.style.display="block";window.setTimeout("DxDragPanel.hidden('"+C+"','"+$+"')",0)}}};DxDragPanel.expand=function(C,$){var B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),A=top.E_getObject(C,$+"_content",_),D=A.show;if(D=="hidden"){if(A.sc=="true")A.style.overflow="hidden";var E=parseInt(A.style.height);if(E>A.oh){A.style.height=A.oh;A.show="show";if(A.sc=="true")A.style.overflow="auto"}else{A.style.height=parseInt(E)+DxDragPanel.dragSpeed;A.style.display="block";window.setTimeout("DxDragPanel.hidden('"+C+"','"+$+"')",0)}}};DxDragPanel.indent=function(C,$){var B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),A=top.E_getObject(C,$+"_content",_),D=A.show;if(D!="hidden"){var E=parseInt(A.style.height);if(A.sc=="true")A.style.overflow="hidden";if(E<DxDragPanel.dragSpeed){A.style.height="1";A.show="hidden";A.style.display="none";if(A.sc=="true")A.style.overflow="auto"}else{A.style.height=parseInt(E)-DxDragPanel.dragSpeed;window.setTimeout("DxDragPanel.hidden('"+C+"','"+$+"')",0)}}};DxDragPanel.restoreHidden=function(E,_){var D=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,D),C=top.E_getObject(E,_+"_content",B),F=$(C).attr("show");if(F!="hidden"){var G=parseInt(C.style.height);if(G<DxDragPanel.dragSpeed){C.style.height="1";$(C).attr("show")="hidden";C.style.display="none";if($(C).attr("sc")=="true")C.style.overflow="auto";var A=top.E_getObject(E,_,B);C.oh=A.oh;DxDragPanel._restore(E,_)}else{C.style.height=parseInt(G)-DxDragPanel.dragSpeed;window.setTimeout("DxDragPanel.restoreHidden('"+E+"','"+_+"')",0)}}else DxDragPanel._restore(E,_)};DxDragPanel.restore=function(D,_){var C=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,C),B=top.E_getObject(D,_+"_content",A);if($(B).attr("indent")=="true"){if($(B).attr("sc")=="true")B.style.overflow="hidden";DxDragPanel.restoreHidden(D,_)}else DxDragPanel._restore(D,_)};DxDragPanel._restore=function(F,A){var D=top.E_clientModel.E_getWindow(F),B=WatCore.getWindowDoc(F,D),_=top.E_getObject(F,"E_SW_"+A,B),C=$("#"+A+"_content",_).get(0),E=DxDragUtil.ff(_.style.left,$(C).attr("ox"),_.style.top,$(C).attr("oy"));_.style.left=parseInt(_.style.left)-E.x;_.style.top=parseInt(_.style.top)-E.y;if(parseInt(_.style.left)!=$(C).attr("ox")||parseInt(_.style.top)!=$(C).attr("oy"))window.setTimeout("DxDragPanel._restore('"+F+"','"+A+"')",0)};DxDragPanel.removeTo=function(D,A,G,F,I,E){var J=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,J),_=top.E_getObject(D,"E_SW_"+A,B),K=$("#"+A+"_content",_).get(0),C=DxDragUtil.ff(_.style.left,G,_.style.top,F);_.style.left=parseInt(_.style.left)-C.x;_.style.top=parseInt(_.style.top)-C.y;if(parseInt(_.style.left)!=G||parseInt(_.style.top)!=F)window.setTimeout("DxDragPanel.removeTo('"+D+"','"+A+"','"+G+"','"+F+"','"+I+"','"+E+"')",0);else{var H=top.E_getObject(D,A,B);H.style.width=I;H.style.height=E;K.oh=E;DxDragPanel.expand(D,A)}};DxDragPanel.resizeChange=function(F,_){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,_,C);A.ow=parseInt(A.clientWidth);A.oh=parseInt(A.clientHeight);var B=$("#"+_+"_content",A).get(0),E=A.oh-22;if(E>=0){B.oh=A.oh-22;B.style.height=B.oh}};DxDragPanel.clear=function(_,$,A){};DxDragPanel.render=function($,H,F){var A=F.getAttribute("cid"),_=F.selectNodes("*");for(var C=0;C<_.length;C++){var B=_[C].nodeName;B=B.substring(1,B.length);var I=top.isIE?_[C].text:_[C].textContent;switch(B){case top.DC.WIDTH:top.E_getObject($,A,H).style.width=I;break;case top.DC.HEIGHT:var E=top.E_getObject($,A,H);E.style.height=I;E.ownerDocument.getElementById(A+"_content").oh=I;break;case top.DC.REMOVE_TO:var J=I.split("&");if(J.length==4)DxDragPanel.removeTo($,A,J[0],J[1],J[2],J[3]);else DxDragPanel.restore($,A);break;case top.DC.TITLE:top.E_getObject($,A+"_text",H).innerText=I;break;case top.DC.VISIBLE:top.E_getObject($,"E_SW_"+A,H).style.visibility=I;break;case top.DC.INDENT:top.E_getObject($,A+"_content",H).indent=I;break;case top.DC.EXPAND:if(I=="true")DxDragPanel.expand($,A);else DxDragPanel.indent($,A);break;case top.DC.TITLE_BK_ICON:top.E_getObject($,A+"_title",H).style.backgroundImage="url('"+I+"')";break;case top.DC.BK_IMG:top.E_getObject($,A+"_content",H).style.backgroundImage="url('"+I+"')";break;case top.DC.ICON:var D=top.E_getObject($,A+"_img",H);D.src=I;break;case top.DC.SCROLLABLE:var K=top.E_getObject($,A+"_content",H);if(I=="true"){K.style.overflow="auto";K.sc="true"}else{K.style.overflow="hidden";K.sc="false"}break;case top.DC.BORDERSTYLE:top.E_getObject($,A+"_title",H).style.borderStyle=I;var G=top.E_getObject($,A+"_content",H).style;G.borderLeftStyle=I;G.borderBottomStyle=I;G.borderRightStyle=I;break;case top.DC.BORDERWIDTH:top.E_getObject($,A+"_title",H).style.borderWidth=I;G=top.E_getObject($,A+"_content",H).style;G.borderLeftWidth=I;G.borderBottomWidth=I;G.borderRightWidth=I;break;case top.DC.BORDERCOLOR:top.E_getObject($,A+"_title",H).style.borderColor=I;G=top.E_getObject($,A+"_content",H).style;G.borderLeftColor=I;G.borderBottomColor=I;G.borderRightColor=I;break;case top.DC.X:top.E_getObject($,"E_SW_"+A,H).style.left=I;break;case top.DC.Y:top.E_getObject($,"E_SW_"+A,H).style.top=I;break;case top.DC.ENABLED:K=top.E_getObject($,A+"_content",H);if(I=="true")K.disabled=false;else K.disabled=true;break;case top.DC.BACKGROUND:top.E_getObject($,A+"_content",H).style.backgroundColor=I;break;case top.DC.FOREGROUND:top.E_getObject($,A+"_content",H).style.color=I;break;default:break}}};function DxFileUpload(){}DxFileUpload.create=function(){var $=new Date(),_=""+$.getYear()+$.getMonth()+$.getDate(),A=""+Math.random();A=A.substring(2,A.length);return _+A};DxFileUpload.isFileType=function(B,A){var C=B.filetype;if("*.*"==C)return true;var $;if(C!=null&&C!=""){var _=C.indexOf(A.toLowerCase());if(_>=0)$=true;else $=false}else $=true;return $};DxFileUpload.sendFile=function(I,G,B){var P=top.E_clientModel.E_getWindow(I),H=WatCore.getWindowDoc(I,P),M=top.E_getObject(I,G,H),Q=M.ownerDocument.getElementById("u11").value;if(B!=null)Q=B;if(Q==null||Q==""){alert("\u8bf7\u8f93\u5165\u4e0a\u4f20\u7684\u5185\u5bb9");return}var C=Q.lastIndexOf("\\"),J=Q.substring(C+1,Q.length);C=J.lastIndexOf(".");if(C<0){alert("\u6587\u4ef6\u540d\u9519\u8bef");return}var $=M.filepath,D=J.substring(C+1,J.length),_=DxFileUpload.isFileType(M,D);if(!_){alert("\u6240\u9009\u6587\u4ef6\u4e0d\u662f\u5408\u9002\u7c7b\u578b\uff0c\u53ea\u5141\u8bb8\u4e0a\u4f20["+M.filetype+"]");return}activeState=false;top.WatCore.showLoadingDialog();M.oldAction=M.action;var L="";if(M.useroot=="true"){$="\\";L="&isroot=true"}var A="";if(M.useabsolute=="true")A="&isabsolute=true";var K=M.fileserver;if(K==null||K==undefined)K="";var O=encodeURI(J),S=null;if(M.truename=="true"){S=encodeURI($+J);M.action=K+M.action+"?name="+O+"&path="+S+L+A}else{var R=DxFileUpload.create();S=encodeURI($+R+"."+D);M.action=K+M.action+"?name="+O+"&path="+S+L+A}dojo.require("dojo.io.IframeIO");try{var F={url:M.action,formNode:M,mimetype:"text/html",content:{fileFields:"u11"},load:function(A,_,$){activeState=true;top.WatCore.setParameter(I,G,top.DC.FILENAME,J);top.WatCore.setParameter(I,G,top.DC.TRUE_FILENAME,R+"."+D);if(M.watevent=="true")top.WatCore.call(I,G,"press",event);else{top.WatCore.hiddenLoadingDialog();alert("\u4e0a\u4f20\u6210\u529f")}M.ownerDocument.getElementById("u11").value=""}}}catch(E){alert(E)}M.action=M.oldAction;var N=dojo.io.bind(F)};DxFileUpload.render=function($,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=top.isIE?_[G].text:_[G].textContent;switch(F){case top.DC.SEND:DxFileUpload.sendFile($,E,B);break;case top.DC.TEXT:top.E_getObject($,E,C).ownerDocument.getElementById("u11").value=B;break;case top.DC.FILEPATH:top.E_getObject($,E,C).filepath=B;break;case top.DC.FILE_TYPE:top.E_getObject($,E,C).filetype=B.toLowerCase();break;case top.DC.WIDTH:top.E_getObject($,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject($,E,C).style.height=B;break;case top.DC.VISIBLE:top.E_getObject($,E,C).style.visibility=B;break;case top.DC.BORDERSTYLE:top.E_getObject($,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject($,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject($,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject($,"E_SW_"+E,C).style.left=B;break;case top.DC.Y:top.E_getObject($,"E_SW_"+E,C).style.top=B;break;case top.DC.ENABLED:break;case top.DC.BACKGROUND:top.E_getObject($,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject($,E,C).style.color=B;break;case top.DC.FILE_SERVER:var D=top.E_getObject($,E,C);if(D!=null)D.fileserver=B;break;default:break}}};function DxToolBar(){}DxToolBar.initUI=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E+"_contianer",B),_=parseInt(window.document.body.clientHeight||window.document.documentElement.clientHeight);$("#mid",A).width((_-12)+"px");$("#right",A).css("left",(_-4)+"px")};DxToolBar.mouseover=function($){if($==null||$.disabled)return;$.className="DxToolBar-button-mouseover"};DxToolBar.mouseout=function($){if($==null||$.disabled)return;$.className="DxToolBar-button"};DxToolBar.mousedown=function($){if($==null||$.disabled)return;$.className="DxToolBar-button-mousedown"};DxToolBar.mouseup=function(_){if(_==null||_.disabled)return;var $=document.getElementById(this.htmlObjectID+"_hidden");if(_.parentNode==$)this.mouseout(_);else this.mouseover(_)};DxToolBar.getParentWindowCoords=function($){var _=new Object();_.x=0;_.y=0;$=$.offsetParent;while($.tagName!="BODY"){_.x+=$.offsetLeft;_.y+=$.offsetTop;$=$.offsetParent}return _};DxToolBar.getColor=function($){while($.style.backgroundColor==""&&$.tagName!="toolbar"&&$.tagName!="BODY")$=$.parentNode;return $.style.backgroundColor};DxToolBar.barButtonCall=function(F,_,E,B){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,_,C);if($(A).attr("enabled")!="false")top.WatCore.call(F,_,E,B)};DxToolBar.render=function(_,I,H){var B=H.getAttribute("cid"),A=H.selectNodes("*");for(var D=0;D<A.length;D++){var C=A[D].nodeName;C=C.substring(1,C.length);var J=top.isIE?A[D].text:A[D].textContent;switch(C){case top.DC.TOOLTIPTEXT:var L=top.E_getObject(_,B,I);if(L!=null){L.title=J;var K=L.ownerDocument.getElementById("text_"+B);if(K!=null)K.innerText=J}break;case top.DC.ENABLED:var G=top.E_getObject(_,B,I),F=top.E_getObject(_,"mouse_"+B,I);$ot=$("#text_"+B,G);var E=$(G).attr("bkcolor");if(J=="false"){G.disabled=true;F.disabled=true;if(E!=null){E=$ot.css("color");$(G).attr("bkcolor",E)}$(G).attr("enabled","false");$ot.css("color","threedface")}else{G.disabled=false;F.disabled=false;$(G).attr("enabled","true");if(E!=null)$ot.css("color",E);else $ot.css("color","#000")}break;case top.DC.DISABLEDICON:top.E_getObject(_,"img_"+B,I).src=J;break;case top.DC.ICON:top.E_getObject(_,"img_"+B,I).src=J;break;default:break}}};function DxListBox(){}DxListBox.SHIFTKEY="shiftkey";DxListBox.CTRLKEY="ctrlkey";DxListBox.SELECTIONMODE="selectionMode";DxListBox.SINGLE="0";DxListBox.SINGLE_INTERVAL="1";DxListBox.MULTIPLE_INTERVAL="2";DxListBox.ITEMS="items";DxListBox.SELECTEDITEMS="selectedItems";DxListBox.SELECTEDINDEX="selectedIndex";DxListBox.SHIFTSELECTEDINDEX="shiftSelectedIndex";DxListBox.SELECTIONS="selections";DxListBox.FOCUSEDINDEX="focusedIndex";DxListBox.IDPREFIX="item";DxListBox.IDFOCUSEPREFIX="focus";DxListBox.ID="id";DxListBox.BORDERDOTTED="1px dotted windowtext";DxListBox.BORDERNONE="itemsBorderNone";DxListBox.BORDERHIGHLIGHT="1px solid highlight";DxListBox.WINID="WINID";DxListBox.init=function(A,E,D,G,_,F,$,L,H,J){var C=DxListBox.__getListBox(A,E);C.setAttribute(DxListBox.ID,E);C.setAttribute(DxListBox.SELECTIONMODE,D);C.setAttribute(DxListBox.WINID,A);C.setAttribute(DxListBox.ITEMS,G);C.setAttribute(DxListBox.SELECTIONS,$);C.setAttribute(DxListBox.SELECTEDINDEX,_);C.setAttribute(DxListBox.SHIFTSELECTEDINDEX,_);C.setAttribute(DxListBox.FOCUSEDINDEX,F);C.setAttribute(DxListBox.SELECTEDITEMS,BitSet.cardinality($));C.setAttribute(DxListBox.BORDERNONE,J);C.setAttribute(DxListBox.SHIFTKEY,"FALSE");C.setAttribute(DxListBox.CTRLKEY,"FALSE");if(F>=0)DxListBox.__setFocusItem(C,_);if(_>=0){var B=DxListBox.__getItem(C,_);if(B!=null){var K,I;if(L.isIE){K=B.offsetLeft+B.clientLeft;I=B.offsetTop+B.clientTop}else{K=B.offsetLeft;I=B.offsetTop}if(Math.abs(parseInt(L)-parseInt(I))<=C.offsetHeight);else{L=I;H=K}}}window.setTimeout("DxListBox.__setPosition(\""+A+"\",\""+E+"\","+L+","+H+")",100)};DxListBox.__setPosition=function(B,_,C,A){var $=DxListBox.__getListBox(B,_);if($==null)return;$.scrollTop=C;$.scrollLeft=0};DxListBox.__getListBox=function(A,_){var $=DxListBox.__getElement(A,_);return $};DxListBox.__getItem=function($,_){var B=$.getAttribute(DxListBox.WINID),C=top.WatCore.getWindow("0",B),A=C.document;return A.getElementById(DxListBox.IDPREFIX+"_"+$.getAttribute(DxListBox.ID)+"_"+_)};DxListBox.__getFocusItem=function($,_){var B=$.getAttribute(DxListBox.WINID),C=top.WatCore.getWindow("0",B),A=C.document;return A.getElementById(DxListBox.IDPREFIX+"_"+$.getAttribute(DxListBox.ID)+"_"+_)};DxListBox.__getElement=function(_,B){var A=top.WatCore.getWindow("0",_),$=A.document;return $.getElementById(B)};DxListBox.__setFocusItem=function(_,A){try{var B;DxListBox.__cancelFocus(_);B=DxListBox.__getItem(_,A);if(B!=null){B.style.border=DxListBox.BORDERDOTTED;_.setAttribute(DxListBox.FOCUSEDINDEX,A);_.scrollLeft=0}}catch($){}};DxListBox.__setSelectedItem=function(B,A){var G=DxListBox.__getItem(B,A),_=B.getAttribute(DxListBox.SELECTIONS);if(B.getAttribute(DxListBox.SELECTIONMODE)==DxListBox.SINGLE){var E=parseInt(B.getAttribute(DxListBox.SELECTEDINDEX));if(E>=0)if(top.BitSet.get(_,E)){_=top.BitSet.clear(_,E);DxListBox.__highlightSelected(B,DxListBox.__getItem(B,E),false)}DxListBox.__highlightSelected(B,G,true);_=top.BitSet.set(_,A);B.setAttribute(DxListBox.SELECTEDINDEX,A)}else if(B.getAttribute(DxListBox.CTRLKEY)=="TRUE"){if(top.BitSet.get(_,A)){_=top.BitSet.clear(_,A);DxListBox.__highlightSelected(B,G,false)}else{_=top.BitSet.set(_,A);DxListBox.__highlightSelected(B,G,true)}B.setAttribute(DxListBox.SELECTEDINDEX,A)}else{var D;for(var F=0;F<top.BitSet.len(_);F++){D=DxListBox.__getItem(B,F);if(top.BitSet.get(_,F)){_=top.BitSet.clear(_,F);DxListBox.__highlightSelected(B,D,false)}}if(B.getAttribute(DxListBox.SHIFTKEY)=="TRUE"){E=parseInt(B.getAttribute(DxListBox.SELECTEDINDEX));if(E==-1){E=A;B.setAttribute(DxListBox.SELECTEDINDEX,E)}var $=Math.min(E,A),C=Math.max(E,A);for(F=$;F<=C;F++){D=DxListBox.__getItem(B,F);if(!top.BitSet.get(_,F)){_=top.BitSet.set(_,F);DxListBox.__highlightSelected(B,D,true)}}}else{_=top.BitSet.set(_,A);DxListBox.__highlightSelected(B,DxListBox.__getItem(B,A),true);B.setAttribute(DxListBox.SELECTEDINDEX,A)}}B.setAttribute(DxListBox.SHIFTSELECTEDINDEX,A);B.setAttribute(DxListBox.SELECTIONS,_)};DxListBox.__setShiftKey=function($,_){if(_.shiftKey)$.setAttribute(DxListBox.SHIFTKEY,"TRUE");else $.setAttribute(DxListBox.SHIFTKEY,"FALSE")};DxListBox.__setCtrlKey=function($,_){if(_.ctrlKey)$.setAttribute(DxListBox.CTRLKEY,"TRUE");else $.setAttribute(DxListBox.CTRLKEY,"FALSE")};DxListBox.__setVisibility=function(A,_,B){var $=DxListBox.__getListBox(A,_);$.style.visibility=B};DxListBox.__cancelFocus=function(A){var C,B=parseInt(A.getAttribute(DxListBox.FOCUSEDINDEX));if(B>=0)C=DxListBox.__getItem(A,B);if(C!=null){var _=parseInt(C.id.substring(C.id.lastIndexOf("_")+1)),$=A.getAttribute(DxListBox.SELECTIONS);if(top.BitSet.get($,_)==true)C.style.border=DxListBox.BORDERHIGHLIGHT;else C.style.border=A.getAttribute(DxListBox.BORDERNONE)}};DxListBox.__scrollIntoView=function(_,$){var B=DxListBox.__getItem(_,$),A=B.offsetTop-_.scrollTop;if(A<0)_.scrollTop+=A;else{A=B.offsetTop+B.offsetHeight-_.offsetHeight-_.scrollTop;if(A>0)_.scrollTop+=A+4}};DxListBox.__highlightSelected=function(_,B,$){var A=parseInt(_.getAttribute(DxListBox.SELECTEDITEMS));if($){B.style.border=DxListBox.BORDERHIGHLIGHT;B.style.backgroundColor="#0D8BA4";B.style.color="highlighttext";A++}else if(!$){B.style.border=_.getAttribute(DxListBox.BORDERNONE);B.style.color=_.style.color;B.style.backgroundColor="transparent";A--}_.setAttribute(DxListBox.SELECTEDITEMS,A)};DxListBox.__action=function(_,$,A){if(A=="click")top.WatCore.call(_,$,"enter",event);else if(A=="dblclick")top.WatCore.call(_,$,"dblenter",event)};DxListBox.__deal=function(A,$,_,B){var C=DxListBox.__storeSelected(A,$);if(_&&!C)DxListBox.__action(A,$,B)};DxListBox.__storeSelected=function(D,B){var E="",A=DxListBox.__getListBox(D,B),_=A.getAttribute(DxListBox.SELECTIONS);for(var F=0;F<top.BitSet.len(_);F++)if(top.BitSet.get(_,F)){E+=F;E+=","}E+="idx="+A.getAttribute(DxListBox.SELECTEDINDEX);var C=top.WatCore.getParameter(D,B,top.DC.LISTSELECTION);if(C!=null)C=C.substr(1);var $=false;if(C==E)$=true;top.WatCore.setParameter(D,B,top.DC.LISTSELECTION,E);return $};DxListBox.focusToControl=function(A,_){var $=DxListBox.__getElement(A,DxListBox.IDFOCUSEPREFIX+"_"+_);if($!=null){$.focus();$.select();$.click()}};DxListBox.listFocus=function(B,_){var $=DxListBox.__getListBox(B,_);if($!=null){var A=parseInt($.getAttribute(DxListBox.FOCUSEDINDEX));if(A<0)A=0;DxListBox.__setFocusItem($,A)}};DxListBox.listBlur=function(A,_){var $=DxListBox.__getListBox(A,_);DxListBox.__cancelFocus($)};DxListBox.listKeyDown=function(D,B,C){stopEvent(C);var E=C.keyCode?C.keyCode:C.which,A=DxListBox.__getListBox(D,B);switch(E){case 16:A.setAttribute(DxListBox.SHIFTKEY,"TRUE");break;case 17:A.setAttribute(DxListBox.CTRLKEY,"TRUE");break;case 38:case 40:if(A.getAttribute(DxListBox.CTRLKEY)=="FALSE"){var _=false;if(E==38){var $=parseInt(A.getAttribute(DxListBox.SHIFTSELECTEDINDEX))-1;if($>=0)_=true}else if(E==40){$=parseInt(A.getAttribute(DxListBox.SHIFTSELECTEDINDEX))+1;if($<A.getAttribute(DxListBox.ITEMS))_=true}if(_){DxListBox.__setSelectedItem(A,$);DxListBox.__setFocusItem(A,$);DxListBox.__scrollIntoView(A,$)}}break}};DxListBox.listKeyUp=function(_,D,$,F){stopEvent(F);var J=F.keyCode?F.keyCode:F.which,B=DxListBox.__getListBox(_,D),I=B.getAttribute(DxListBox.SHIFTKEY)=="TRUE",G=B.getAttribute(DxListBox.CTRLKEY)=="TRUE",H=false;if(J==16){B.setAttribute(DxListBox.SHIFTKEY,"FALSE");if(!G)H=true}else if(J==17){B.setAttribute(DxListBox.CTRLKEY,"FALSE");if(!I)H=true}else if((!I&&!G)&&(J==40||J==38))H=true;if(H){var E=top.E_clientModel.E_getWindow(_),C="top.DxListBox.__deal(\""+_+"\",\""+D+"\","+$+",'click')",A=WatCore.getWindow(_,E);A.setTimeout(C,30)}};DxListBox.listItemClick=function(_,F,C,$,H,B){var D=DxListBox.__getListBox(_,F);DxListBox.__setCtrlKey(D,H);DxListBox.__setShiftKey(D,H);DxListBox.__setSelectedItem(D,C);DxListBox.__setFocusItem(D,C);DxListBox.__scrollIntoView(D,C);DxListBox.focusToControl(_,F);var J=(D.getAttribute(DxListBox.SHIFTKEY)=="TRUE"),I=(D.getAttribute(DxListBox.CTRLKEY)=="TRUE");if(!J&&!I){var G=top.E_clientModel.E_getWindow(_),E="top.DxListBox.__deal(\""+_+"\",\""+F+"\","+$+",\""+B+"\")",A=WatCore.getWindow(_,G);A.setTimeout(E,30)}};DxListBox.render=function(A,M,L){var F=L.getAttribute("cid"),B=L.selectNodes("*");for(var H=0;H<B.length;H++){var G=B[H].nodeName;G=G.substring(1,G.length);var N=top.isIE?B[H].text:B[H].textContent;switch(G){case top.DC.LISTSELECTION:var _=N.indexOf("|"),K;if(_>0){var E=N.substring(0,_),O=E.split(",");for(H=0;H<O.length;H++){K=top.E_getObject(A,"item_"+F+"_"+O[H],M);K.style.border="1px solid window";K.style.color="windowtext";K.style.backgroundColor="transparent"}if(_<N.length){var I=N.substring(_+1,N.length),J=I.split(",");if(I!="")for(H=0;H<J.length;H++){K=top.E_getObject(A,"item_"+F+"_"+J[H],M);K.style.color="highlighttext";K.style.backgroundColor="#0D8BA4";K.style.border="1px solid highlight"}}}else if(N.length!=0){K=top.E_getObject(A,"item_"+F+"_"+N,M);if(K!=null){K.style.color="highlighttext";K.style.backgroundColor="#0D8BA4";K.style.border="1px solid highlight"}}break;case top.DC.UPDATE:K=top.E_getObject(A,F,M);K.innerHTML="";K.parentElement.removeChild(K);top.E_removeObject(A);var D=top.E_getObject(A,"E_SW_"+F,M);$(D).html(N);break;case top.DC.LISTADD:var _=N.indexOf("$"),Q=N.substring(0,_);if(Q=="-1"){K=top.E_getObject(A,F,M);$(K).html(N.substring(_+1,N.length))}else{K=top.E_getObject(A,"item_"+F+"_"+Q,M);$(K).html(N.substring(_+1,N.length))}break;case top.DC.LISTREMOVE:_=N.indexOf(",");if(_==-1){K=top.E_getObject(A,"item_"+F+"_"+N,M);K.parentElement.removeChild(K)}oldIndex=0;removeItem=0;while(_!=-1){removeItem=E.substring(oldIndex,_);oldIndex=_+1;_=E.indexOf(",",oldIndex);K=top.E_getObject(A,"item_"+F+"_"+removeItem,M);K.parentElement.removeChild(K)}break;case top.DC.LISTREMOVEALL:var K=top.E_getObject(A,F,M),R=K.firstChild,C;if(R!=null){C=R.nextSibling;R.parentElement.removeChild(R)}while(C!=null){var P=C,D=P.parentElement;C=C.nextSibling;D.removeChild(P)}break;case top.DC.WIDTH:top.E_getObject(A,F,M).style.width=N;break;case top.DC.HEIGHT:top.E_getObject(A,F,M).style.height=N;break;case top.DC.VISIBLE:top.E_getObject(A,F,M).style.visibility=N;break;case top.DC.BORDERSTYLE:top.E_getObject(A,F,M).style.borderStyle=N;break;case top.DC.BORDERWIDTH:top.E_getObject(A,F,M).style.borderWidth=N;break;case top.DC.BORDERCOLOR:top.E_getObject(A,F,M).style.borderColor=N;break;case top.DC.X:top.E_getObject(A,"E_SW_"+F,M).style.left=N;break;case top.DC.Y:top.E_getObject(A,"E_SW_"+F,M).style.top=N;break;case top.DC.ENABLED:if(N=="true")top.E_getObject(A,F,M).disabled=false;else top.E_getObject(A,F,M).disabled=true;break;case top.DC.fontFamily:top.E_getObject(A,F,M).style.fontFamily=N;break;case top.DC.fontSize:top.E_getObject(A,F,M).style.fontSize=N;break;case top.DC.fontWeight:top.E_getObject(A,F,M).style.fontWeight=N;break;case top.DC.fontStyle:top.E_getObject(A,F,M).style.fontStyle=N;break;case top.DC.textDecoration:top.E_getObject(A,F,M).style.textDecoration=N;break;case top.DC.BACKGROUND:top.E_getObject(A,F,M).style.backgroundColor=N;break;case top.DC.FOREGROUND:top.E_getObject(A,F,M).style.color=N;break;case top.DC.horizontalScrollbar:if(N=="true")top.E_getObject(A,F,M).style.overflowX="auto";else top.E_getObject(A,F,M).style.overflowX="hidden";break;case top.DC.HORIZONTALALIGNMENT:if(N=="2")top.E_getObject(A,F,M).style.textAlign="left";else if(N=="4")top.E_getObject(A,F,M).style.textAlign="center";else if(N=="8")top.E_getObject(A,F,M).style.textAlign="right";break;default:break}}};function DxFileTextField(){}DxFileTextField.blurFunction=function(C,$){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,$,A),D=_.createTextRange().text;Format.storeValue(C,$,D)};DxFileTextField.focusFunction=function(C,$){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,$,A),D=_.createTextRange().text;Format.storeValue(C,$,D)};DxFileTextField.render=function(D,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=_[G].text;switch(F){case top.DC.CSSNAME:top.E_getObject(D,E,C).className=B;break;case top.DC.READONLY:if(B=="true")top.E_getObject(D,E,C).readOnly="";else top.E_getObject(D,E,C).readOnly="true";break;case top.DC.WIDTH:top.E_getObject(D,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject(D,E,C).style.height=B;break;case top.DC.TEXT:var $=top.E_getObject(D,E,C);top.Format.showFunction($,B);$.resultValue=B;break;case top.DC.FOCUS:top.E_getObject(D,E,C).onfocus();break;case top.DC.VISIBLE:top.E_getObject(D,E,C).style.visibility=B;break;case top.DC.BORDERSTYLE:top.E_getObject(D,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject(D,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject(D,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject(D,"E_SW_"+E,C).style.left=B;break;case top.DC.Y:top.E_getObject(D,"E_SW_"+E,C).style.top=B;break;case top.DC.ENABLED:$=top.E_getObject(D,E,C);if(B=="true")$.readOnly=false;else $.readOnly=true;break;case top.DC.fontFamily:top.E_getObject(D,E,C).style.fontFamily=B;break;case top.DC.fontSize:top.E_getObject(D,E,C).style.fontSize=B;break;case top.DC.fontWeight:top.E_getObject(D,E,C).style.fontWeight=B;break;case top.DC.fontStyle:top.E_getObject(D,E,C).style.fontStyle=B;break;case top.DC.textDecoration:top.E_getObject(D,E,C).style.textDecoration=B;break;case top.DC.BACKGROUND:top.E_getObject(D,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject(D,E,C).style.color=B;break;default:break}}};function DesignGrid(){}DesignGrid.itclick=function(D,C,F,$){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),_=top.E_getObject(D,C+"table",A),E="";if(F==null)E="row|-1";else E="row|"+F;if($==null)E+="&col|-1";else E+="&col|"+$;E+="&width|"+_.width;E+="&height|"+_.height;WatCore.setParameter(D,C,top.DC.TEXT,E);WatCore.sendACallToChart(D,C,"click")};DesignGrid.render=function(_,E,C){var F=C.getAttribute("cid"),B=C.selectNodes("*");for(var H=0;H<B.length;H++){var G=B[H].nodeName;G=G.substring(1,G.length);var D=top.isIE?B[H].text:B[H].textContent;switch(G){case top.DC.UPDATE_DATA:var A=top.E_getObject(_,F,E);$(A).html(D);break;default:break}}};function DxURLPage(){}DxURLPage.action=function($,_,B,A){WatCore.setParameter($,_,top.DC.TEXT,B);if(A||A==undefined)WatCore.sendACallToChart($,_,"click");else WatCore.call($,_,"click")};DxURLPage.watResultToIFrame=function(C,E,B,F){var D=top.E_getObject(C,E,B),A=$("#"+E+"iframe",D).get(0);if(A!=null){try{A.contentWindow.window.watResultToIFrame(F)}catch(_){}}};DxURLPage.watPrint=function(C,E,B){var D=top.E_getObject(C,E,B),A=$("#"+E+"iframe",D).get(0);if(A!=null){try{A.contentWindow.window.watPrint()}catch(_){alert(_.message)}}};DxURLPage.setiframe=function(C,E,_,D){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),$=A.getElementById(E);insertHTML($,"BeforeEnd","<iframe id="+E+"iframe src=\""+_+"\" width=\"100%\" allowtransparency=\"true\" frameborder=\"0\" height=\"100%\" name="+Math.random()+"></iframe>");if(D!="")DxURLPage.watResultToIFrame(C,E,A,D)};DxURLPage.sethtml=function(E,F,_){var D=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,D),B=C.getElementById(F),A=$("#"+F+"iframe",B).get(0);if(A!=null){oIFrameDoc=A.contentWindow.document;if(top.isIE){oIFrameDoc.open();oIFrameDoc.write(_);oIFrameDoc.close()}else{oIFrameDoc.open();oIFrameDoc.write("<html><body style='background:transparent'></body></html>");oIFrameDoc.close();oIFrameDoc.documentElement.innerHTML=_}}};DxURLPage.render=function(_,K,H){var E=H.getAttribute("cid"),A=H.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var L=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.URL:var M=top.E_getObject(_,E,K),I="";if(L.indexOf("http")<0)I=watLocation2+L;else I=L;var B=I.split(";");if(B.length>1){jQuery.support.cors=true;$.ajax({type:"POST",url:B[0],data:{requestJson:B[1]},success:function($){window.open($)},error:function($){alert($.statusText)}})}else{B=I.split("^");var D="";if(B.length>1){I=B[0];D=B[1]}I=I+(I.indexOf("?")<0?"?":"&")+new Date().getTime();M.innerHTML="";var J=top.E_clientModel.E_getWindow(_),C=WatCore.getWindow(_,J);C.setTimeout("top.DxURLPage.setiframe('"+_+"','"+E+"','"+I+"','"+D+"')",1)}break;case top.DC.TEXT:DxURLPage.sethtml(_,E,L);break;case top.DC.VISIBLE:top.E_getObject(_,"E_SW_"+E,K).style.visibility=L;break;case top.DC.BORDERSTYLE:top.E_getObject(_,E,K).style.borderStyle=L;break;case top.DC.BORDERWIDTH:top.E_getObject(_,E,K).style.borderWidth=L;break;case top.DC.BORDERCOLOR:top.E_getObject(_,E,K).style.borderColor=L;break;case top.DC.X:top.E_getObject(_,"E_SW_"+E,K).style.left=L;break;case top.DC.Y:top.E_getObject(_,"E_SW_"+E,K).style.top=L;break;case top.DC.fontFamily:top.E_getObject(_,E,K).style.fontFamily=L;break;case top.DC.fontSize:top.E_getObject(_,E,K).style.fontSize=L;break;case top.DC.fontWeight:top.E_getObject(_,E,K).style.fontWeight=L;break;case top.DC.fontStyle:top.E_getObject(_,E,K).style.fontStyle=L;break;case top.DC.textDecoration:top.E_getObject(_,E,K).style.textDecoration=L;break;case top.DC.BACKGROUND:top.E_getObject(_,E,K).style.backgroundColor=L;break;case top.DC.FOREGROUND:top.E_getObject(_,E,K).style.color=L;break;case top.DC.UPDATE_DATA:DxURLPage.watResultToIFrame(_,E,K,L);break;case top.DC.PRINT:DxURLPage.watPrint(_,E,K);break;default:break}}};function DxSpinEdit(){}DxSpinEdit.MINVALUE="MINVALUE";DxSpinEdit.MAXVALUE="MAXVALUE";DxSpinEdit.ACTION="ACTION";DxSpinEdit.up=function(B,F){var D=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,D),$=A.getElementById(F+"_t"),C=$.value,G=top.DxCache.getAttributeAsInt(B,F,DxSpinEdit.MAXVALUE);if(C<G){var _=parseInt(C)+1;$.value=_;top.WatCore.setParameter(B,F,top.DC.VALUE,_);var E=top.DxCache.getAttributeAsInt(B,F,DxSpinEdit.ACTION);if(E==1)top.WatCore.call(B,F,"enter")}};DxSpinEdit.down=function(C,G){var E=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,E),$=B.getElementById(G+"_t"),D=$.value,A=top.DxCache.getAttributeAsInt(C,G,DxSpinEdit.MINVALUE);if(D>A){var _=parseInt(D)-1;$.value=_;top.WatCore.setParameter(C,G,top.DC.VALUE,_);var F=top.DxCache.getAttributeAsInt(C,G,DxSpinEdit.ACTION);if(F==1)top.WatCore.call(C,G,"enter")}};DxSpinEdit._upMouseIn=function($){$.className="DxSpinEdit-up-image-mouseover"};DxSpinEdit._upMouseOut=function($){$.className="DxSpinEdit-up-image"};DxSpinEdit._downMouseIn=function($){$.className="DxSpinEdit-down-image-mouseover"};DxSpinEdit._downMouseOut=function($){$.className="DxSpinEdit-down-image"};DxSpinEdit.change=function(B,F){var D=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,D),$=A.getElementById(F+"_t"),C=$.value,G=top.DxCache.getAttributeAsInt(B,F,DxSpinEdit.MAXVALUE),_=top.DxCache.getAttributeAsInt(B,F,DxSpinEdit.MINVALUE);if(C<=G&&C>=_){top.WatCore.setParameter(B,F,top.DC.VALUE,C);var E=top.DxCache.getAttributeAsInt(B,F,DxSpinEdit.ACTION);if(E==1)top.WatCore.call(B,F,"enter")}else{if(C>G)$.value=G;else if(C<_)$.value=_;else $.value=_;alert("\u8bbe\u7f6e\u503c\u4e0d\u80fd\u5927\u4e8e"+G+"\u5e76\u4e14\u4e0d\u80fd\u5c0f\u4e8e"+_)}};DxSpinEdit.init=function(_,B,$,C,A){top.DxCache.setAttribute(_,B,DxSpinEdit.MINVALUE,$);top.DxCache.setAttribute(_,B,DxSpinEdit.MAXVALUE,C);top.DxCache.setAttribute(_,B,DxSpinEdit.ACTION,A)};DxSpinEdit.clear=function(A,_,B){try{top.DxCache.removeAttribute(strWindowID,B.id,DxSpinEdit.MINVALUE);top.DxCache.removeAttribute(strWindowID,B.id,DxSpinEdit.MAXVALUE);top.DxCache.removeAttribute(strWindowID,B.id,DxSpinEdit.ACTION)}catch($){}};DxSpinEdit.setFocus=function(E,_,B,D){var A=B.getElementById(_+"_t");if(A.style.visibility!="hidden"&&!A.readOnly){try{A.focus();A.select()}catch($){}}else if(A.getAttribute("targetId")!=null)if(WatCore.isKeyCode(D,A.getAttribute("keyCode"))){stopEvent(D);var C=WatCore.getJsFunctionParams(D,A.getAttribute("targetId"),A.getAttribute("keyCode"),A.getAttribute("fname"));WatCore.jsFunctionCall(E,_,C[0],C[1],D)}};DxSpinEdit.jsFunctionCall=function(F,_,E,$,H,G){if(G.keyCode!=16&&G.keyCode!=17&&G.keyCode!=18&&G.keyCode!=9&&G.keyCode!=27){var C=top.E_clientModel.E_getWindow(F),B=WatCore.getWindowDoc(F,C),A=top.E_getObject(F,_,B);if(G.keyCode==38||G.keyCode==40){if(G.keyCode==38)DxSpinEdit.up(F,_);else if(G.keyCode==40)DxSpinEdit.down(F,_)}else if(WatCore.isKeyCode(G,$)){stopEvent(G);var D=WatCore.getJsFunctionParams(G,E,$,H);WatCore.jsFunctionCall(F,_,D[0],D[1],G);return true}}};DxSpinEdit.render=function(A,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.VALUE:var $=H.getElementById(B+"_t");$.value=I;break;case top.DC.ENABLED:var F=top.E_getObject(A,B,H),$=F.ownerDocument.getElementById(B+"_t"),E=F.ownerDocument.getElementById(B+"_up"),J=F.ownerDocument.getElementById(B+"_down");if(I=="true"){$.disabled=false;E.disabled=false;J.disabled=false}else{$.disabled=true;E.disabled=true;J.disabled=true}break;case top.DC.FOCUS:top.DxSpinEdit.setFocus(A,B,H);break;case top.DC.VISIBLE:top.E_getObject(A,B,H).style.visibility=I;break;case top.DC.DISPLAY:F=top.E_getObject(A,"E_SW_"+B,H);if(I=="true"){F.style.visibility="visible";F.style.display="block"}else{F.style.visibility="hidden";F.style.display="none"}break;case top.DC.X:top.E_getObject(A,"E_SW_"+B,H).style.left=I;break;case top.DC.Y:top.E_getObject(A,"E_SW_"+B,H).style.top=I;break;default:break}}};function DxResourceDownLoad(){}DxResourceDownLoad.DownLoadResource=function(F,G,D,_){var B=$("#__downloadresource");if(B.length==0){var A=top.E_getObject(F,G,D),E=A.getAttribute("wattarget"),C="";if(E!="")C="target='"+E+"'";$(document.body).append("<form id='__downloadresource' method='post' action='' "+C+"></form>");B=$("#__downloadresource")}B[0].action=_;B.submit()};DxResourceDownLoad.render=function(D,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=top.isIE?_[G].text:_[G].textContent;switch(F){case top.DC.FILEPATH:DxResourceDownLoad.DownLoadResource(D,E,C,B);break;case top.DC.TARGET:var $=top.E_getObject(D,E,C);$.wattarget=B;break;default:break}}};var ttime=0,tInfo=new Array(19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835),solarMonth=new Array(31,28,31,30,31,30,31,31,30,31,30,31),Gan=new Array("\u7532","\u4e59","\u4e19","\u4e01","\u620a","\u5df1","\u5e9a","\u8f9b","\u58ec","\u7678"),Zhi=new Array("\u5b50","\u4e11","\u5bc5","\u536f","\u8fb0","\u5df3","\u5348","\u672a","\u7533","\u9149","\u620c","\u4ea5"),Animals=new Array("\u9f20","\u725b","\u864e","\u5154","\u9f99","\u86c7","\u9a6c","\u7f8a","\u7334","\u9e21","\u72d7","\u732a"),solarTerm=new Array("\u5c0f\u5bd2","\u5927\u5bd2","\u7acb\u6625","\u96e8\u6c34","\u60ca\u86f0","\u6625\u5206","\u6e05\u660e","\u8c37\u96e8","\u7acb\u590f","\u5c0f\u6ee1","\u8292\u79cd","\u590f\u81f3","\u5c0f\u6691","\u5927\u6691","\u7acb\u79cb","\u5904\u6691","\u767d\u9732","\u79cb\u5206","\u5bd2\u9732","\u971c\u964d","\u7acb\u51ac","\u5c0f\u96ea","\u5927\u96ea","\u51ac\u81f3"),sTermInfo=new Array(0,21208,42467,63836,85337,107014,128867,150921,173149,195551,218072,240693,263343,285989,308563,331033,353350,375494,397447,419210,440795,462224,483532,504758),nStr1=new Array("\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"),nStr2=new Array("\u521d","\u5341","\u5eff","\u5345","\u25a1"),monthName=new Array("\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"),sFtv=new Array(),lFtv=new Array(),wFtv=new Array(),offsetx=2,offsety=8,width="130";function DxCalendarNotepad(){}DxCalendarNotepad.htmlCall=function(_,G,C,B,E,F){var A=top.E_clientModel.E_getWindow(_),D=WatCore.getWindow(_,A),$=D.event;top.WatCore.setParameter(_,G,top.DC.TEXT,C+"$"+B+"$"+E);top.WatCore.call(_,G,"htmlCall#"+F,$)};DxCalendarNotepad.popmenu=function(_,H,C,B,E,G,F){var A=top.E_clientModel.E_getWindow(_),D=WatCore.getWindow(_,A),$=D.event;WatCore.setParameter(_,H,top.DC.TEXT,C+"$"+B+"$"+E);WatCore.setParameter(_,H,top.DC.KEY,G);top.DxMenu.onpop(_,H,F,$);return false};DxCalendarNotepad.init=function(Y,D,X){var G=top.E_getObject(Y,D,X);$(G).unbind("resize");$(G).bind(Y,"resize",function($){top.DxCalendarNotepad.resize(G,D)});var c=G.ownerDocument.createElement("tbody");c.id=D+"_content";G.appendChild(c);var A=c.insertRow(),C=A.insertCell();C.bgColor="#9DB5E6";C.colSpan="6";C.align="left";A.height="20px";A.style.height="20px";var i=G.ownerDocument.createElement("span");C.appendChild(i);i.style.align="center";var W=G.ownerDocument.createElement("font");i.appendChild(W);W.style.fontSize="9pt";W.color="#ffffff";W.size="2";W.innerText=" \u516c\u5143 ";var V=G.ownerDocument.createElement("select");V.style.fontSize="9pt";var E=function($,_){return function(){top.DxCalendarNotepad.changeCld($,_)}};if(window.attachEvent)V.attachEvent("onchange",E(Y,D));else V.addEventListener("change",E(Y,D),false);V.id=D+"_sy";for(var a=1900;a<2020;a++){var S=G.ownerDocument.createElement("OPTION");V.options.add(S);S.innerText=a;S.value=a}W.appendChild(V);var g=G.ownerDocument.createElement("span");g.innerText=" \u5e74 ";W.appendChild(g);var _=G.ownerDocument.createElement("select");_.style.fontSize="9pt";if(window.attachEvent)_.attachEvent("onchange",E(Y,D));else _.addEventListener("change",E(Y,D),false);_.id=D+"_sm";for(a=1;a<13;a++){S=G.ownerDocument.createElement("OPTION");_.options.add(S);S.innerText=a;S.value=a}W.appendChild(_);var R=G.ownerDocument.createElement("span");R.innerText=" \u6708 ";W.appendChild(R);var T=G.ownerDocument.createElement("font");i.appendChild(T);T.id=D+"_gz";T.face="\u5b8b\u4f53";T.color="#ffffff";T.size="2";var f=A.insertCell();f.bgColor="#9DB5E6";f.colSpan="1";f.align="right";var h=G.ownerDocument.createElement("button");h.style.width="77";h.style.height="20";h.innerText="\u56de\u5230\u4eca\u5929";f.appendChild(h);var F=c.insertRow();F.align="middle";F.bgColor="#ECF1FF";F.style.height="20";var P=F.insertCell();P.style.color="red";P.style.fontSize="12";P.innerText="\u661f\u671f\u65e5";var I=F.insertCell();I.style.color="#9B9FA8";I.style.fontSize="12";I.innerText="\u661f\u671f\u4e00";var L=F.insertCell();L.style.color="#9B9FA8";L.style.fontSize="12";L.innerText="\u661f\u671f\u4e8c";var K=F.insertCell();K.style.color="#9B9FA8";K.style.fontSize="12";K.innerText="\u661f\u671f\u4e09";var N=F.insertCell();N.style.color="#9B9FA8";N.style.fontSize="12";N.innerText="\u661f\u671f\u56db";var M=F.insertCell();M.style.color="#9B9FA8";M.style.fontSize="12";M.innerText="\u661f\u671f\u4e94";var Q=F.insertCell();Q.style.color="red";Q.style.fontSize="12";Q.innerText="\u661f\u671f\u516d";var b=function(_,B,A,$){return function(){top.DxCalendarNotepad.mOvr(_,B,A,$)}},d=function(_,A,$){return function(){top.DxCalendarNotepad.mOut(_,A,$)}},B=function(A,B,_,$){return function(){top.DxCalendarNotepad.dbl(A,B,_,$)}},O=function(A,B,_,$){return function(){top.DxCalendarNotepad.click(A,B,_,$)}},H=function(_,A,$){return function(){top.DxCalendarNotepad.todayclick(_,A,$)}};if(window.attachEvent)f.attachEvent("onclick",H(Y,D,G));else f.addEventListener("click",H(Y,D,G),false);var e;for(a=0;a<6;a++){var J=c.insertRow();J.align="center";J.height="16%";for(j=0;j<7;j++){e=a*7+j;var U=J.insertCell();U.id=D+"_gd"+e;if(window.attachEvent){U.attachEvent("onclick",O(Y,D,G,U));U.attachEvent("ondblclick",B(Y,D,G,U))}else{U.addEventListener("click",O(Y,D,G,U),false);U.addEventListener("dblclick",B(Y,D,G,U),false)}var Z=G.popupmenuid;if(Z!=null)U.innerHTML="<TABLE onContextMenu=\"top.DxCalendarNotepad.contextmenu('"+Y+"','"+D+"',this.parentElement,event);return false;\" width='100%' height ='100%' cellSpacing=0 cellPadding=0><TR height='20' style='font-size:12;background-color:#F1F4F7'><TD width='10%' align='left'><span style='width:18;height:20;color:red' id="+D+"_jd"+e+"></span></TD><TD width='90%' align='right'><span id="+D+"_sd"+e+"></span><span id="+D+"_ld"+e+"></span></TD></TR><TR><TD colspan='2'><div style='word-break:break-all;word-wrap:break-word;width:100%;height:100%;background-color:transparent;font-size:12' id="+D+"_cd"+e+"></div></TD> </TR> </TABLE>";else U.innerHTML="<TABLE width='100%' height ='100%' cellSpacing=0 cellPadding=0><TR height='20' style='font-size:12;background-color:#F1F4F7'><TD width='10%' align='left'><span style='width:18;height:20;color:red' id="+D+"_jd"+e+"></span></TD><TD width='90%' align='right'><span id="+D+"_sd"+e+"></span><span id="+D+"_ld"+e+"></span></TD></TR><TR><TD colspan='2'><div style='word-break:break-all;word-wrap:break-word;width:100%;height:100%;background-color:transparent;font-size:12' id="+D+"_cd"+e+"></div></TD> </TR> </TABLE>";U.gNum=e}}};DxCalendarNotepad.mOvr=function(B,E,K,N){var I,O,F=N.ownerDocument.getElementById(E+"_sd"+K),_=F.innerHTML-1,L=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,L),D=WatCore.getWindow(B,L),J=top.E_getObject(B,E,C),G=J.cld;if(N.nointype=="pre"){G=J.preld;var M=K-J.cld.firstWeek;_=M}else if(N.nointype=="next"){G=J.nextld;M=K-J.cld.firstWeek;_=M}if(F.innerHTML!=""){F.style.cursor="hand";var A=J.params[parseInt(_)+1];if(A==null||A==undefined||A=="");else if(J.snow==0){O="<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#FFFFFF\" ><TR><TD>"+"<FONT COLOR=\"#000000\" STYLE=\"font-size:9pt;\">"+A+"</FONT></TD>"+"</TR></TABLE>";var H=F.innerHTML-1;I="<TABLE WIDTH=\"130\" BORDER=0 CELLPADDING=\"2\" CELLSPACING=0 BGCOLOR=\"#488ecc\" style=\"filter:Alpha(opacity=80)\"><TR><TD>"+"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 style=\"z-index:1000\"><TR><TD ALIGN=\"right\"><FONT COLOR=\"#ffffff\" STYLE=\"font-size:9pt;\">"+G[H].sYear+" \u5e74 "+G[H].sMonth+" \u6708 "+G[H].sDay+" \u65e5"+"</FONT></TD></TR></TABLE>"+O+"</TD></TR></TABLE>";var $=top.E_getObject(B,E+"detail",C);$.innerHTML=I;J.dStyle.left=J.x+offsetx-(width/2);J.dStyle.top=J.y+offsety;J.dStyle.visibility="visible";J.snow=1}}};DxCalendarNotepad.mOut=function($,_,A){A.snow=0;A.dStyle.visibility="hidden"};DxCalendarNotepad.mEvn=function(_,$){_.x=$.clientX;_.y=$.clientY;if(_.snow){_.dStyle.left=_.x+offsetx-(width/2);_.dStyle.top=_.y+offsety}};DxCalendarNotepad.dbl=function(B,E,G,_){if(G.getAttribute("actionFlag")=="true"){var F,C,D=G.ownerDocument.getElementById(E+"_sy");F=D.selectedIndex+1900;G.tY=F;var $=G.ownerDocument.getElementById(E+"_sm");C=$.selectedIndex;G.tM=C;var A=G.ownerDocument.getElementById(E+"_sd"+_.gNum);WatCore.setParameter(B,E,top.DC.TEXT,F+"$"+C+"$"+A.innerText);WatCore.call(B,E,"dblclick")}};DxCalendarNotepad.click=function(A,C,E,$){if($.noin){var D=$.noyear,B=$.nomonth,_=E.ownerDocument.getElementById(C+"_sd"+$.gNum);WatCore.setParameter(A,C,top.DC.TEXT,D+"$"+B+"$"+_.innerText);WatCore.call(A,C,"change")}};DxCalendarNotepad.todayclick=function(_,C,E){var A=new Date(),D=(A.getYear()<1900)?(1900+A.getYear()):A.getYear(),B=A.getMonth(),$=A.getDate();WatCore.setParameter(_,C,top.DC.TEXT,D+"$"+B+"$"+$);WatCore.call(_,C,"change")};DxCalendarNotepad.contextmenu=function(C,G,$,E){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),_=top.E_getObject(C,G,B),H=$.noyear,F=$.nomonth;if(H==""||H==null){H=_.tY;F=_.tM;var A=_.ownerDocument.getElementById(G+"_sd"+$.gNum);WatCore.setParameter(C,G,top.DC.TEXT,H+"$"+F+"$"+A.innerText);top.DxMenu.onpop(C,G,_.popupmenuid,E);return false}};DxCalendarNotepad.changeCld=function(B,F){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,F,A),G,D,E=_.ownerDocument.getElementById(F+"_sy");G=E.selectedIndex+1900;_.tY=G;var $=_.ownerDocument.getElementById(F+"_sm");D=$.selectedIndex;_.tM=D;WatCore.setParameter(B,F,top.DC.TEXT,G+"$"+D+"$"+_.tD);WatCore.call(B,F,"change")};DxCalendarNotepad.putdata=function(C,F,D,_){var N=top.E_clientModel.E_getWindow(C),D=WatCore.getWindowDoc(C,N),K=top.E_getObject(C,F,D);K.dStyle=top.E_getObject(C,F+"detail",D).style;var Q=K.ownerDocument.getElementById(F+"_content");if(Q==null){Q=DxCalendarNotepad.init(C,F,D);K.dataDom=top.WatCore.createXmlDom("<calendar/>")}if(top.isIE)K.dataDom.loadXML(_);else K.dataDom=WatCore.createXmlDom(_);var L=K.dataDom.documentElement.selectSingleNode("date");if(L!=null){var M=top.isIE?L.text:L.textContent,G=top.DxDataGrid.timeToDate(M),P=K.ownerDocument.getElementById(F+"_sy"),R=parseInt(G.getFullYear());K.tY=R;P.selectedIndex=R-1900;var B=K.ownerDocument.getElementById(F+"_sm"),$=parseInt(G.getMonth());K.tM=$;B.selectedIndex=$;K.tD=G.getDate();var E=new Array(31),O=K.dataDom.documentElement.selectNodes("note");for(var I=0;I<O.length;I++){var J=O[I],H=J.selectSingleNode("day"),A=J.selectSingleNode("content");if(top.isIE)E[H.text]=A.text;else E[H.textContent]=A.textContent}K.params=E;DxCalendarNotepad.drawCld(K,C,F,R,$,E);K.snow=0}};DxCalendarNotepad.resize=function(A,_){var B=WatCore.getClientRect(A);$(A).height(B.h+"px")};DxCalendarNotepad.mousewheel=function(C,G,H,B){var $=B.wheelDelta;stopEvent(B);var F=H.tY,_=H.tM,E=F,D=_;if($>=120){E=F;D=parseInt(_)-1;if(D<0){D=11;E=parseInt(E)-1;if(E<1)E=1}}else if($<=-120){E=F;D=parseInt(_)+1;if(D>=12){D=0;E=parseInt(E)+1}}var A=H.ownerDocument.getElementById(G+"_sd"+1);WatCore.setParameter(C,G,top.DC.TEXT,E+"$"+D+"$2");WatCore.call(C,G,"change");return false};DxCalendarNotepad.drawCld=function(K,N,A,F,P,O){var T,C,W,S,D=new calendar(K,F,P),X=F,H=parseInt(P)-1;if(H<0){H=11;X=parseInt(X)-1;if(X<1)X=1}var L=new calendar(K,X,H),M=F,I=parseInt(P)+1;if(I>=12){I=0;M=parseInt(M)+1}var _=new calendar(K,M,I);K.cld=D;K.preld=L;K.nextld=_;if(F>1874&&F<1909)yDisplay="\u5149\u7eea"+(((F-1874)==1)?"\u5143":F-1874);if(F>1908&&F<1912)yDisplay="\u5ba3\u7edf"+(((F-1908)==1)?"\u5143":F-1908);if(F>1911)yDisplay="\u5efa\u56fd"+(((F-1949)==1)?"\u5143":F-1949);K.ownerDocument.getElementById(A+"_gz").innerHTML=yDisplay+"\u5e74 \u519c\u5386 "+cyclical(F-1900+36)+"\u5e74 \u3010"+Animals[(F-4)%12]+"\u5e74\u3011";var B=K.clientWidth;B=parseInt(B)/7;var G,Q,U,J,$,R;for(T=0;T<42;T++){G=K.ownerDocument.getElementById(A+"_gd"+T);Q=G.ownerDocument.getElementById(A+"_sd"+T);U=G.ownerDocument.getElementById(A+"_ld"+T);$=G.ownerDocument.getElementById(A+"_jd"+T);$.innerHTML="";$.style.backgroundColor="transparent";G.style.backgroundColor="#FFFFED";R=G.ownerDocument.getElementById(A+"_cd"+T);R.innerHTML="";G.noin=false;G.nomonth="";G.noyear="";G.nointype="";G.className="";R.innerHTML="";C=T-D.firstWeek;if(C>-1&&C<D.length){Q.innerText=(C+1);if(D[C].isToday){$.innerText="\u4eca";$.style.backgroundColor="#FFFF00"}Q.style.color=D[C].color;var V=O[C+1];if(V!=null)R.innerHTML="<span style='cursor:pointer'>"+V.fontcolor("green")+"</span>";if(D[C].lDay==1)U.innerHTML="&nbsp;<b>"+(D[C].isLeap?"\u95f0":"")+D[C].lMonth+"\u6708"+(monthDays(D[C].lYear,D[C].lMonth)==29?"\u5c0f":"\u5927")+"</b>";else U.innerHTML="&nbsp;"+cDay(D[C].lDay);W=D[C].lunarFestival;if(W.length>0)W=W.fontcolor("red");else{W=D[C].solarFestival;if(W.length>0){S=(W.charCodeAt(0)>0&&W.charCodeAt(0)<128)?8:4;W=(W=="\u9ed1\u8272\u661f\u671f\u4e94")?W.fontcolor("black"):W.fontcolor("blue")}else{W=D[C].solarTerms;if(W.length>0)W=W.fontcolor("limegreen")}}if(D[C].solarTerms=="\u6e05\u660e")W="\u6e05\u660e\u8282".fontcolor("red");if(D[C].solarTerms=="\u8292\u79cd")W="\u8292\u79cd\u8282".fontcolor("red");if(D[C].solarTerms=="\u590f\u81f3")W="\u590f\u81f3\u8282".fontcolor("red");if(D[C].solarTerms=="\u51ac\u81f3")W="\u51ac\u81f3\u8282".fontcolor("red");if(W.length>0);}else{G=K.ownerDocument.getElementById(A+"_gd"+T);G.className="inefficeColor";G.style.backgroundColor="#F3F3F3";Q.innerHTML="";U.innerHTML="";if(C<0){var E=L.length+C;Q.innerText=(E+1);G.noin=true;G.nointype="pre";G.nomonth=H;G.noyear=X;Q.style.color=L[E].color;V=O[C+1];if(V!=null)R.innerHTML=V.fontcolor("green");if(L[E].lDay==1)U.innerHTML="&nbsp;<b>"+(L[E].isLeap?"\u95f0":"")+L[E].lMonth+"\u6708"+(monthDays(L[E].lYear,L[E].lMonth)==29?"\u5c0f":"\u5927")+"</b>";else U.innerHTML="&nbsp;"+cDay(L[E].lDay);W=L[E].lunarFestival;if(W.length>0)W=W.fontcolor("red");else{W=L[E].solarFestival;if(W.length>0){S=(W.charCodeAt(0)>0&&W.charCodeAt(0)<128)?8:4;W=(W=="\u9ed1\u8272\u661f\u671f\u4e94")?W.fontcolor("black"):W.fontcolor("blue")}else{W=L[E].solarTerms;if(W.length>0)W=W.fontcolor("limegreen")}}if(L[E].solarTerms=="\u6e05\u660e")W="\u6e05\u660e\u8282".fontcolor("red");if(L[E].solarTerms=="\u8292\u79cd")W="\u8292\u79cd\u8282".fontcolor("red");if(L[E].solarTerms=="\u590f\u81f3")W="\u590f\u81f3\u8282".fontcolor("red");if(L[E].solarTerms=="\u51ac\u81f3")W="\u51ac\u81f3\u8282".fontcolor("red");if(W.length>0);}else if(C>=D.length){G.noin=true;G.nointype="next";G.nomonth=I;G.noyear=M;E=C-D.length;Q.innerText=(E+1);if(_[E].isToday){$.innerText="\u4eca";$.style.backgroundColor="#FFFF00"}Q.style.color=_[E].color;V=O[C+1];if(V!=null)R.innerHTML=V.fontcolor("green");if(_[E].lDay==1)U.innerHTML="&nbsp;<b>"+(_[E].isLeap?"\u95f0":"")+_[E].lMonth+"\u6708"+(monthDays(_[E].lYear,_[E].lMonth)==29?"\u5c0f":"\u5927")+"</b>";else U.innerHTML="&nbsp;"+cDay(_[E].lDay);W=_[E].lunarFestival;if(W.length>0)W=W.fontcolor("red");else{W=_[E].solarFestival;if(W.length>0){S=(W.charCodeAt(0)>0&&W.charCodeAt(0)<128)?8:4;W=(W=="\u9ed1\u8272\u661f\u671f\u4e94")?W.fontcolor("black"):W.fontcolor("blue")}else{W=_[E].solarTerms;if(W.length>0)W=W.fontcolor("limegreen")}}if(_[E].solarTerms=="\u6e05\u660e")W="\u6e05\u660e\u8282".fontcolor("red");if(_[E].solarTerms=="\u8292\u79cd")W="\u8292\u79cd\u8282".fontcolor("red");if(_[E].solarTerms=="\u590f\u81f3")W="\u590f\u81f3\u8282".fontcolor("red");if(_[E].solarTerms=="\u51ac\u81f3")W="\u51ac\u81f3\u8282".fontcolor("red");if(W.length>0);}}}};function mOut(){if(cnt>=1)sw=0;if(sw==0){snow=0;dStyle.visibility="hidden"}else cnt++}function mEvn(){x=event.x;y=event.y;if(document.body.scrollLeft){x=event.x+document.body.scrollLeft;y=event.y+document.body.scrollTop}if(snow){dStyle.left=x+offsetx-(width/2);dStyle.top=y+offsety}}function easter(E){var C=sTerm(E,5),$=new Date(Date.UTC(E,2,C,0,0,0,0)),D=new Lunar($);if(D.day<15)var _=15-D.day;else _=(D.isLeap?leapDays(E):monthDays(E,D.month))-D.day+15;var A=new Date($.getTime()+86400000*_),B=new Date(A.getTime()+86400000*(7-A.getUTCDay()));this.m=B.getUTCMonth();this.d=B.getUTCDate()}function solarDays(_,$){if($==1)return(((_%4==0)&&(_%100!=0)||(_%400==0))?29:28);else return(solarMonth[$])}function cyclical($){return(Gan[$%10]+Zhi[$%12])}function sTerm(A,$){if(A==2009&&$==2)sTermInfo[$]=43467;var _=new Date((31556925974.7*(A-1900)+sTermInfo[$]*60000)+Date.UTC(1900,0,6,2,5));return(_.getUTCDate())}function lYearDays(_){var A,$=348;for(A=32768;A>8;A>>=1)$+=(tInfo[_-1900]&A)?1:0;return($+leapDays(_))}function leapDays($){if(leapMonth($))return((tInfo[$-1900]&65536)?30:29);else return(0)}function leapMonth($){return(tInfo[$-1900]&15)}function monthDays(_,$){return((tInfo[_-1900]&(65536>>$))?30:29)}function Lunar(_){var C,B=0,$=0,A=(Date.UTC(_.getFullYear(),_.getMonth(),_.getDate())-Date.UTC(1900,0,31))/86400000;for(C=1900;C<2050&&A>0;C++){$=lYearDays(C);A-=$}if(A<0){A+=$;C--}this.year=C;B=leapMonth(C);this.isLeap=false;for(C=1;C<13&&A>0;C++){if(B>0&&C==(B+1)&&this.isLeap==false){--C;this.isLeap=true;$=leapDays(this.year)}else $=monthDays(this.year,C);if(this.isLeap==true&&C==(B+1))this.isLeap=false;A-=$}if(A==0&&B>0&&C==B+1)if(this.isLeap)this.isLeap=false;else{this.isLeap=true;--C}if(A<0){A+=$;--C}this.month=C;this.day=A+1}function calElement(G,C,B,I,A,F,E,H,$,_,D){this.isToday=false;this.sYear=G;this.sMonth=C;this.sDay=B;this.week=I;this.lYear=A;this.lMonth=F;this.lDay=E;this.isLeap=H;this.cYear=$;this.cMonth=_;this.cDay=D;this.color="";this.lunarFestival="";this.solarFestival="";this.solarTerms=""}function calendar(I,Y,P){var G,Z,L,R,D=1,Q,K=0,V,U,W,_,C,H,$=new Array(3),N=0,E=0;G=new Date(Y,P,1,0,0,0,0);this.length=solarDays(Y,P);this.firstWeek=G.getDay();if(P<2)_=cyclical(Y-1900+36-1);else _=cyclical(Y-1900+36);var A=sTerm(Y,2),X=sTerm(Y,P*2);C=cyclical((Y-1900)*12+P+12);var S=Date.UTC(Y,P,1,0,0,0,0)/86400000+25567+10;for(var T=0;T<this.length;T++){if(D>K){G=new Date(Y,P,T+1);Z=new Lunar(G);L=Z.year;R=Z.month;D=Z.day;Q=Z.isLeap;K=Q?leapDays(L):monthDays(L,R);if(N==0)E=R;$[N++]=T-D+1}if(P==1&&(T+1)==A)_=cyclical(Y-1900+36);if((T+1)==X)C=cyclical((Y-1900)*12+P+13);H=cyclical(S+T);this[T]=new calElement(Y,P+1,T+1,nStr1[(T+this.firstWeek)%7],L,R,D++,Q,_,C,H)}V=sTerm(Y,P*2)-1;U=sTerm(Y,P*2+1)-1;this[V].solarTerms=solarTerm[P*2];this[U].solarTerms=solarTerm[P*2+1];if(Y==2009&&P==1)if(I.tD==3)this[V].solarTerms="";else if(I.tD==4)this[V].solarTerms="\u7acb\u6625";if(P==3)this[V].color="red";for(T in sFtv)if(sFtv[T].match(/^(\d{2})(\d{2})([\s\*])(.+)$/))if(Number(RegExp.$1)==(P+1)){this[Number(RegExp.$2)-1].solarFestival+=RegExp.$4+" ";if(RegExp.$3=="*")this[Number(RegExp.$2)-1].color="red"}for(T in wFtv)if(wFtv[T].match(/^(\d{2})(\d)(\d)([\s\*])(.+)$/))if(Number(RegExp.$1)==(P+1)){V=Number(RegExp.$2);U=Number(RegExp.$3);if(V<5)this[((this.firstWeek>U)?7:0)+7*(V-1)+U-this.firstWeek].solarFestival+=RegExp.$5+" ";else{V-=5;W=(this.firstWeek+this.length-1)%7;this[this.length-W-7*V+U-(U>W?7:0)-1].solarFestival+=RegExp.$5+" "}}for(T in lFtv)if(lFtv[T].match(/^(\d{2})(.{2})([\s\*])(.+)$/)){V=Number(RegExp.$1)-E;if(V==-11)V=1;if(V>=0&&V<N){U=$[V]+Number(RegExp.$2)-1;if(U>=0&&U<this.length&&this[U].isLeap!=true){this[U].lunarFestival+=RegExp.$4+" ";if(RegExp.$3=="*")this[U].color="red"}}}if(P==2||P==3){var M=new easter(Y);if(P==M.m)this[M.d-1].solarFestival=this[M.d-1].solarFestival+" \u590d\u6d3b\u8282 Easter Sunday"}if(P==2)this[20].solarFestival=this[20].solarFestival+unescape("%20%u6D35%u8CE2%u751F%u65E5");if((this.firstWeek+12)%7==5)this[12].solarFestival+="\u9ed1\u8272\u661f\u671f\u4e94";var O=new Date(),J=parseInt(O.getYear()),F=parseInt(O.getMonth()),B=parseInt(O.getDate());if(Y==J&&P==F)this[B-1].isToday=true}function cDay($){var _;switch($){case 10:_="\u521d\u5341";break;case 20:_="\u4e8c\u5341";break;case 30:_="\u4e09\u5341";break;default:_=nStr2[Math.floor($/10)];_+=nStr1[$%10]}return(_)}DxCalendarNotepad.clear=function(_,$,A){A.dataDom=null};DxCalendarNotepad.render=function(D,B,_){var E=_.getAttribute("cid"),$=_.selectNodes("*");for(var G=0;G<$.length;G++){var F=$[G].nodeName;F=F.substring(1,F.length);var A=top.isIE?$[G].text:$[G].textContent;switch(F){case top.DC.VISIBLE:top.E_getObject(D,E,B).style.visibility=A;break;case top.DC.UPDATE_DATA:DxCalendarNotepad.putdata(D,E,B,A);break;case top.DC.ENABLED:var C=top.E_getObject(D,E,B);if(A=="true")C.disabled=false;else C.disabled=true;break;default:break}}};DxOutlookBar.timedelay=0;DxOutlookBar.inc=100;DxOutlookBar.OPENTITLE="OPENTITLE";DxOutlookBar.SMOOTHSTAT="SMOOTHSTAT";DxOutlookBar.TEMPINNERTEXT1="TEMPINNERTEXT1";DxOutlookBar.TEMPINNERTEXT2="TEMPINNERTEXT2";function DxOutlookBar(){}DxOutlookBar.init=function(B,D,C){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),$=_.getElementById(D);$.smoothState=0;$.identifyId=C};DxOutlookBar.switchoutlookBar=function(B,C,J){var I=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,I),G=A.getElementById(C),D=G.identifyId;G.identifyId=J;var H=G.smoothState,_,$,E,F;if(J!=D&&H==0)if(J!=null){if(D==null||D==""){$="blankdiv";F="blankdiv"}else{$=D+"div";F=D+"divin"}_=J+"div";E=J+"divin";DxOutlookBar.smoothout(B,C,_,$,E,F,0)}};DxOutlookBar.smoothout=function(D,E,B,A,G,H,F){var K=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,K),I=C.getElementById(E),_=I.ownerDocument.getElementById(G),$=I.ownerDocument.getElementById(H),L=I.ownerDocument.getElementById(B),J=I.ownerDocument.getElementById(A),M=_.innerHTML;I.tempInnerText1=M;if($!=null){N=$.innerHTML;I.tempInnerText2=N;$.innerHTML="";$.style.overflow="hidden"}_.innerHTML="";I.smoothState=1;L.style.height="100%";L.style.display="";var M=I.tempInnerText1,N=I.tempInnerText2;_.innerHTML=M;$.innerHTML=N;I.smoothState=0;_.style.overflow="auto";J.style.display="none"};DxOutlookBar.openfolder=function(A,B){var _=top.E_clientModel.E_getWindow(A),$=WatCore.getWindowDoc(A,_),C=$.getElementById(B);if(C.style.display=="none")C.style.display="block";else C.style.display="none"};DxOutlookBar.ItemClicked=function($){$.className="DxOutlookBar-twolevel-image-movedown"};DxOutlookBar.ItemSelected=function($){$.className="DxOutlookBar-twolevel-image-moveup"};DxOutlookBar.OverItems=function($){$.className="DxOutlookBar-twolevel-image-movein"};DxOutlookBar.OutItems=function($){$.className="DxOutlookBar-twolevel-image"};DxOutlookBar.OutBar=function($){$.className="DxOutlookBar-onelevel"};DxOutlookBar.OverBar=function($){$.className="DxOutlookBar-onelevel-movein"};DxOutlookBar.render=function($,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.WIDTH:var _=top.E_getObject($,E,oDoc);_.style.width=C;break;case top.DC.HEIGHT:_=top.E_getObject($,E,oDoc);_.style.height=C;break;case top.DC.VISIBLE:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.visibility=C;break;case top.DC.X:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.left=C;break;case top.DC.Y:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.top=C;break;case top.DC.OUTLOOKBAR_SHOW:DxOutlookBar.switchoutlookBar($,E,C);break;case top.DC.ENABLED:_=top.E_getObject($,E,oDoc);if(C=="true")_.disabled=false;else _.disabled=true;break;case top.DC.BACKGROUND:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.backgroundColor=C;break;default:break}}};var minPageWidth=90,rightAreaWidth=90;function WatWebContainerTab(){}WatWebContainerTab.initTab=function(E,H,T,L,O,Q,A,J,K,B,F){var R=top.E_clientModel.E_getWindow(E),D=WatCore.getWindowDoc(E,R),P=top.E_getObject(E,H,D),S=[],_=[],G=[];P.sons=S;P.heads=_;P.shows=G;P.tabSize=T;P.showHead=F;var M=P.ownerDocument.getElementById(H+"tab");P.tabWrap=M;$(P).resize(E,function(){top.WatWebContainerTab.changeSize(P,H)});if(B=="false")$("#"+H+"closeAllPage",P).css("display","none");var U=P.ownerDocument.getElementById(H+"tab_headArea");P.tabControlButton=P.ownerDocument.getElementById(H+"tab_controlbuttons");P.tabHeadArea=U;var N=0;for(var I=0;I<T;I++){P.sons[I]=$("#"+H+"son"+I,P).get(0);P.heads[I]=$("#"+H+"tab_head"+I,P).get(0);if(I>0)P.heads[I].style.display="none";else P.heads[I].style.display="block"}P.selectHead=P.heads[0];for(I=0;I<U.childNodes.length-1;I++)N+=parseInt(U.children[I].style.width);P.notify=Q;P.selectAction=J;P.containerPageAction=K;$(P).unbind("resize");$(P).bind("resize",E,function($){top.WatWebContainerTab._changeSize(P)});try{$(P.ownerDocument).ready(function(){top.WatWebContainerTab._changeSize(P)})}catch(C){}WatWebContainerTab._changeSize(P);WatWebContainerTab.selectPageServer(P,L)};WatWebContainerTab.changeSize=function($,_){WatWebContainerTab._changeSize($)};WatWebContainerTab._changeSize=function(M){var K=$("#"+M.id+"tab",M).get(0),_=K.getAttribute("placement"),G=$("#"+M.id+"contentWrap",M),B=$(M),D=M.showHead,I=K.clientWidth,L=K.clientHeight;if(I==0||L==0){var H=WatCore.getClientRect(M);I=H.w;L=H.h}if(_=="left"){if(parseInt(I)<=32)G.width(parseInt(B.attr("cwidth"))+"%");else G.width((parseInt(I)-32)+"px");var A=parseInt(L);if((A)>0)G.height(A+"px");else G.height(parseInt(B.attr("cheight"))+"%");var E=M.ownerDocument.getElementById(M.id+"tab_controlbuttons"),F=parseInt(L)-40;if(F<0)F=0;$(E).css("top",F+"px");WatWebContainerTab.changeLeftFormShow(M)}else if(_=="bottom"){if(parseInt(I)<=0)G.width(parseInt(B.attr("cwidth"))+"%");else G.width(parseInt(I)+"px");A=parseInt(L);if(top.isIE){if((A)>=32){G.height((parseInt(A)-32)+"px");$(M.tabHeadArea).css("top",parseInt(A)-34)}else G.height(parseInt(B.attr("cheight"))+"%")}else if((A)>=35)G.height((parseInt(A)-35)+"px");else G.height(parseInt(B.attr("cheight"))+"%");E=M.ownerDocument.getElementById(M.id+"tab_controlbuttons"),F=parseInt(I)-80;if(F<0)F=0;$(E).css("left",F+"px");var C=M.ownerDocument.getElementById(M.id+"closeAllPage"),F=(parseInt(I)-36)+"px";if(F<0)F=0;$(C).css("left",F);WatWebContainerTab.processResizeTopBottomTabShow(M)}else if(_=="right"){if(top.isIE){if(parseInt(I)<=32)G.width(B.attr("cwidth")+"%");else G.width((parseInt(I)-32)+"px")}else if(parseInt(I)<=34)G.width(B.attr("cwidth")+"%");else G.width((parseInt(I)-34)+"px");A=parseInt(L);if((A)>0)G.height(A+"px");else G.height(parseInt(B.attr("cheight"))+"%");E=M.ownerDocument.getElementById(M.id+"tab_controlbuttons"),F=parseInt(L)-40;if(F<0)F=0;$(E).css("top",F+"px");WatWebContainerTab.changeLeftFormShow(M)}else if(_=="top"){if(parseInt(I)<=0)G.width(parseInt(B.attr("cwidth"))+"%");else if(top.isIE)G.width(parseInt(I)+"px");else G.width((parseInt(I)-2)+"px");A=parseInt(L);if(D=="true"){if(top.isIE){if((A)>=32)G.height((parseInt(A)-32)+"px");else G.height(parseInt(B.attr("cheight"))+"%")}else if((A)>=35)G.height((parseInt(A)-35)+"px");else G.height(parseInt(B.attr("cheight"))+"%")}else if(top.isIE){if((A)>=32)G.height((parseInt(A))+"px");else G.height(parseInt(B.attr("cheight"))+"%")}else if((A)>=35)G.height((parseInt(A))+"px");else G.height(parseInt(B.attr("cheight"))+"%");E=M.ownerDocument.getElementById(M.id+"tab_controlbuttons"),F=(parseInt(I)-80)+"px";if(F<0)F=0;$(E).css("left",F);C=M.ownerDocument.getElementById(M.id+"closeAllPage"),F=(parseInt(I)-24)+"px";if(F<0)F=0;$(C).css("left",F);var J=M.ownerDocument.getElementById(M.id+"maxPage"),F=(parseInt(I)-30)+"px";if(F<0)F=0;$(J).css("left",F);WatWebContainerTab.processResizeTopBottomTabShow(M)}};WatWebContainerTab.changeLeftFormShow=function(C){var $=0;if(C.shows==null||C.shows==undefined)return;for(var D=0;D<C.shows.length;D++)$=parseInt($)+parseInt(C.shows[D].style.height);if($>parseInt(C.tabWrap.clientHeight)-40){C.tabControlButton.style.visibility="visible";var _=C.tabControlButton.ownerDocument.getElementById("mright");_.disabled=false;var A=0;while(_.disabled==false&&A<40){WatWebContainerTab.moveTabToRight(_);A++}}else{var B=C.tabControlButton.ownerDocument.getElementById("mleft");B.disabled=false;A=0;while(B.disabled==false&&A<40){WatWebContainerTab.moveTabToLeft(B);A++}C.tabControlButton.style.visibility="hidden"}};WatWebContainerTab.changeTopFormShow=function(C){var B=0;if(C.shows==null||C.shows==undefined)return;for(var D=0;D<C.shows.length;D++)B=parseInt(B)+parseInt(C.shows[D].style.width);if(B>parseInt(C.tabWrap.clientWidth)-90){C.tabControlButton.style.visibility="visible";var $=C.tabControlButton.ownerDocument.getElementById("mright");$.disabled=false;var _=0;while($.disabled==false&&_<40){WatWebContainerTab.moveTabToRight($);_++}}else{var A=C.tabControlButton.ownerDocument.getElementById("mleft");A.disabled=false;_=0;while(A.disabled==false&&_<100){WatWebContainerTab.moveTabToLeft(A);_++}C.tabControlButton.style.visibility="hidden"}};WatWebContainerTab.selectPageServer=function(_,$){var A=_.heads[$];WatWebContainerTab._select(_,A)};WatWebContainerTab.selectPage=function(C,B){var _=B.parentElement.parentElement.parentElement,$=B;if($.disabled==true)return;var A=B.class_name;WatWebContainerTab._select(_,$);if(A!=null)WatCore.setParameter(C,_.id,top.DC.SELECTED,A);if(_.sons[$.getAttribute("index")].show!="true"){if(A!=null)WatCore.call(C,_.id,"delayshow#"+A)}else if(_.selectAction=="true")if(A!=null)WatCore.sendTimerAsynCall(C,_.id,"select#"+A)};WatWebContainerTab.dblclickPage=function(C,B){var _=B.parentElement.parentElement.parentElement,$=B;if($.disabled==true)return;if($.id!=_.selectHead.id)return false;if(_.containerPageAction=="true"){var A=B.class_name;WatCore.call(C,_.id,"containerPage#"+A)}};WatWebContainerTab._initselect=function(C,A){var _=C.tabWrap.getAttribute("placement");if(_=="top")_="";else _="-"+_;for(var D=0;D<A;D++){var B=C.heads[D];if(B.id!=C.selectHead.id){$("#left",C.selectHead).attr("class","WatWebContainerTab-head-left"+_);$("#mid",C.selectHead).attr("class","WatWebContainerTab-head-mid"+_);$("#right",C.selectHead).attr("class","WatWebContainerTab-head-right"+_);$("#mid_text",C.selectHead).attr("class","WatWebContainerTab-head-mid-text"+_);C.sons[C.selectHead.getAttribute("index")].style.visibility="hidden";C.sons[C.selectHead.getAttribute("index")].style.display="none"}else{$("#left",C.selectHead).attr("class","WatWebContainerTab-head-left-selected"+_);$("#mid",C.selectHead).attr("class","WatWebContainerTab-head-mid-selected"+_);$("#right",C.selectHead).attr("class","WatWebContainerTab-head-right-selected"+_);$("#mid_text",C.selectHead).attr("class","WatWebContainerTab-head-mid-text-selected"+_);C.sons[C.selectHead.getAttribute("index")].style.visibility="visible";C.sons[C.selectHead.getAttribute("index")].style.display="block"}}};WatWebContainerTab._mouseOut=function(C,_){if(C.parentElement.parentElement.parentElement.selectHead.getAttribute("index")!=C.getAttribute("index")){var B=C.parentElement.parentElement.parentElement;$("#left",C).attr("class","WatWebContainerTab-head-left"+_);$("#mid",C).attr("class","WatWebContainerTab-head-mid"+_);$("#right",C).attr("class","WatWebContainerTab-head-right"+_);$("#mid_text",C).attr("class","WatWebContainerTab-head-mid-text"+_);var E=parseInt(B.selectHead.getAttribute("index")),A;for(var F=0;F<B.shows.length;F++){var D=B.shows[F];if(D.getAttribute("index")==C.getAttribute("index")){if(E!=C.getAttribute("index")){if(F>0){A=B.shows[F-1];if(A!=null)if(A.getAttribute("index")!=E)$("#splitimage",A).css("visibility","visible");else $("#splitimage",A).css("visibility","hidden")}if(F<B.shows.length-1){if(B.shows[F+1].getAttribute("index")!=B.selectHead.getAttribute("index"))$("#splitimage",C).css("visibility","visible");else $("#splitimage",C).css("visibility","hidden")}else $("#splitimage",C).css("visibility","hidden")}else{if(F>0){A=B.shows[F-1];if(A!=null)$("#splitimage",A).css("visibility","hidden")}A=B.shows[F];if(A!=null)$("#splitimage",A).css("visibility","hidden")}break}}}};WatWebContainerTab.closemouseOut=function(_){$(_).attr("src",watLocation2+"/resources/core/subwindow_close.png")};WatWebContainerTab._mouseIn=function(C,_){if(C.parentElement.parentElement.parentElement.selectHead.getAttribute("index")!=C.getAttribute("index")){var B=C.parentElement.parentElement.parentElement;$("#left",C).attr("class","WatWebContainerTab-head-left-mouseover"+_);$("#mid",C).attr("class","WatWebContainerTab-head-mid-mouseover"+_);$("#right",C).attr("class","WatWebContainerTab-head-right-mouseover"+_);$("#splitimage",C).css("visibility","hidden");var A;for(var E=0;E<B.shows.length;E++){var D=B.shows[E];if(D.getAttribute("index")==C.getAttribute("index")){A=B.shows[E];if(A!=null)$("#splitimage",A).css("visibility","hidden");if(E>0){A=B.shows[E-1];if(A!=null)$("#splitimage",A).css("visibility","hidden")}break}}}};WatWebContainerTab.closemouseIn=function(_){$(_).attr("src",watLocation2+"/resources/core/R_tabclose.png")};WatWebContainerTab._select=function(J,D,A){if(D==null)return false;var I=parseInt(J.selectHead.getAttribute("index")),G=parseInt(D.getAttribute("index"));if(D.id==J.selectHead.id){var E=J.sons[D.getAttribute("index")];if(top.isIE){E.style.visibility="visible";if(E.style.display=="none")E.style.display="inline-table";$(E).css({"left":"0px","top":"0px"})}else{$(E).css({"left":"0px","top":"0px"});E.style.visibility="visible";if(E.style.display=="none")$(E).fadeIn("fast")}return false}D.udate=new Date();var F=J.selectHead,_=J.tabWrap.getAttribute("placement");if(_=="top")_="";else _="-"+_;$("#left",F).attr("class","WatWebContainerTab-head-left"+_);$("#mid",F).attr("class","WatWebContainerTab-head-mid"+_);$("#right",F).attr("class","WatWebContainerTab-head-right"+_);$("#mid_text",F).attr("class","WatWebContainerTab-head-mid-text"+_);var B=J.sons[F.getAttribute("index")];if(top.isIE){B.style.visibility="hidden";$(B).css({"left":"-1111111px","top":"-1111111px"})}else if(A=="close")B.style.display="none";else{B.style.visibility="hidden";$(B).css({"left":"-1111111px","top":"0px"})}J.selectHead=D;$("#left",D).attr("class","WatWebContainerTab-head-left-selected"+_);$("#mid",D).attr("class","WatWebContainerTab-head-mid-selected"+_);$("#right",D).attr("class","WatWebContainerTab-head-right-selected"+_);$("#mid_text",D).attr("class","WatWebContainerTab-head-mid-text-selected"+_);B=J.sons[D.getAttribute("index")];if(top.isIE){B.style.visibility="visible";if(B.style.display=="none")B.style.display="inline-table";$(B).css({"left":"0px","top":"0px"})}else if(A=="add"){$(B).css({"left":"0px","top":"0px"});B.style.visibility="visible";if(B.style.display=="none")$(B).fadeIn("fast")}else{$(B).css({"left":"0px","top":"0px"});B.style.visibility="visible";if(B.style.display=="none")B.style.display="inline-table"}var C=J.heads[I];if(C!=null)if(J.shows[J.shows.length-1]!=null&&I!=J.shows[J.shows.length-1].getAttribute("index"))$("#splitimage",C).css("visibility","visible");else $("#splitimage",C).css("visibility","hidden");if(I>0){C;for(var H=0;H<J.shows.length;H++){var K=J.shows[H];if(K.getAttribute("index")==I){if(H>0){C=J.shows[H-1];if(C!=null)$("#splitimage",C).css("visibility","visible")}break}}}for(H=0;H<J.shows.length;H++){K=J.shows[H];if(K.getAttribute("index")==G){C=J.shows[H];if(C!=null)$("#splitimage",C).css("visibility","hidden");if(H>0){C=J.shows[H-1];if(C!=null)$("#splitimage",C).css("visibility","hidden")}break}}};WatWebContainerTab.changeEnabled=function(C,E,$,_){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),A=B.getElementById(E);if(_=="true")A.heads[$].disabled=false;else A.heads[$].disabled=true};WatWebContainerTab.moveTabToRight=function(G){var I=G.parentElement.parentElement.parentElement.parentElement,_=I.ownerDocument.getElementById(I.id+"tab").getAttribute("placement");if(I.shows==null||I.shows==undefined)return;if(_=="left"||_=="right"){G.parentNode.children[0].disabled=false;var J=0,C;for(C=0;C<I.shows.length;C++)if(I.shows[C].style.display!="none"){I.shows[C].style.display="none";J=I.shows[C].style.height;break}for(var B=C;B<I.shows.length;B++)I.shows[B].style.top=(parseInt(I.shows[B].style.top)-parseInt(J))+"px";var E=0;for(C=0;C<I.shows.length;C++)if(I.shows[C].style.display!="none")E=parseInt(E)+parseInt(I.shows[C].style.height);if(E>parseInt(I.tabWrap.clientHeight)-50)G.disabled=false;else G.disabled=true}else{var H=WatWebContainerTab.getTopPageShowBeginAndEndIndex(I),D=H.begin,K=H.end,A=G.parentNode,F=$("#mleft",A);F.removeAttr("disabled");K++;if(K>=I.shows.length)$(G).attr("disabled","true");else{$(I.shows[K]).css("display","block");$(I.shows[D]).css("display","none");if(K==I.shows.length)$(G).attr("disabled","true")}}};WatWebContainerTab.getTopPageShowBeginAndEndIndex=function($){var B,A;for(i=0;i<$.shows.length;i++)if($.shows[i].style.display=="block"&&B==null)B=i;else if(B!=null)if($.shows[i].style.display=="none"){A=i-1;break}else if(i==$.shows.length-1)A=i;var _=new Object();_.begin=B;_.end=A;return _};WatWebContainerTab.moveTabToLeft=function(G){var I=G.parentElement.parentElement.parentElement.parentElement,_=I.ownerDocument.getElementById(I.id+"tab").getAttribute("placement");if(I.shows==null||I.shows==undefined)return;if(_=="left"||_=="right"){G.parentNode.children[1].disabled=false;var J=0,E;for(E=I.shows.length-1;E>=0;E--)if(I.shows[E].style.display=="none"){I.shows[E].style.display="block";I.shows[E].style.top=0;J=I.shows[E].style.height;break}for(var D=E+1;D<I.shows.length;D++){var K=parseInt(I.shows[D].style.top)+parseInt(J);if(K<0)K=0;I.shows[D].style.top=K+"px"}var C=0;for(E=0;E<I.shows.length;E++)if(I.shows[E].style.display=="block"){C=E;break}if(C==0)G.disabled=true;else G.disabled=false}else{var H=WatWebContainerTab.getTopPageShowBeginAndEndIndex(I),F=H.begin,L=H.end,B=G.parentNode,A=$("#mright",B);A.removeAttr("disabled");F--;if(F<0)$(G).attr("disabled","true");else{$(I.shows[F]).css("display","block");$(I.shows[L]).css("display","none");if(F==0)$(G).attr("disabled","true")}}};WatWebContainerTab.clear=function(_,$,A){};WatWebContainerTab.remove=function(A,C,E,F){var _=E.ownerDocument.getElementById(F);if(_!=null){var D=top.E_dataChange.E_keys.E_list.E_contents.length,G;for(var H=D-1;H>=0;H--){G=top.E_dataChange.E_keys.E_list.E_contents[H];var B=top.E_dataChange.E_get(G);if(A==B)top.E_dataChange.E_remove(G)}D=top.E_htmldisplayChange.E_keys.E_list.E_contents.length;for(H=D-1;H>=0;H--){G=top.E_htmldisplayChange.E_keys.E_list.E_contents[H];B=top.E_htmldisplayChange.E_get(G);if(A==B)top.E_htmldisplayChange.E_remove(G)}D=top.E_emrshowChange.E_keys.E_list.E_contents.length;for(H=D-1;H>=0;H--){G=top.E_emrshowChange.E_keys.E_list.E_contents[H];B=top.E_emrshowChange.E_get(G);if(A==B)top.E_emrshowChange.E_remove(G)}Desktop.clear(A,_,C,"false");if(_.removeNode)_.removeNode(true);else $(_).remove();_.innerHTML="";_=null}top.E_removeObject(A)};WatWebContainerTab.delayShowForm=function(B,E,M,K,N){var C=N.split("@"),O=C[0],F=C[1],P;if(C.length>=2)P=C[2];var I=K.selectSingleNode("server/templates/template[@tid='"+F+"']"),L=top.isIE?I.selectNodes("content")[0].text:I.selectNodes("content")[0].textContent;L=Desktop.getWebFormContent(B,F,L);var _=-1,J=top.E_getObject(B,E,M);if(J.shows==null||J.shows==undefined)return;for(var H=0;H<J.shows.length;H++){var D=J.shows[H].class_name;if(D==O){_=J.shows[H].getAttribute("index");break}}if(_>=0){J.sons[_].show="true";$(J.sons[_]).html(L);if(F)E_watwebformCacheList.push(F);var G=I.selectNodes("initial");if(G[0]!=null){var A=top.isIE?G[0].text:G[0].textContent;A=Desktop.getWebFormScript(B,F,A);top.WatCore.execInitScript(B,A)}}};WatWebContainerTab.processResizeTopBottomTabShow=function(M){var J=WatWebContainerTab.getTopPageShowBeginAndEndIndex(M),F=J.begin,S=J.end,L=0,R=M.wstate;for(var G=0;G<M.shows.length;G++)L=parseInt(L)+parseInt($(M.shows[G]).attr("currwidth"));var I=M.shows.length,A=parseInt(M.tabWrap.clientWidth)-rightAreaWidth;if(L>A){if(minPageWidth*I>A){for(G=0;G<M.shows.length;G++){var N=M.shows[G];WatWebContainerTab.changeHeadWidth(M,N,minPageWidth)}M.tabControlButton.style.visibility="visible";var H=$("#mright",M.tabControlButton).get(0),K=$("#mleft",M.tabControlButton).get(0),P=parseInt(A/minPageWidth);if(P<=0)P==1;var C=S-F+1;if(C>P){var E=C-P;for(var _=0;_<E;_++){N=M.shows[S];$(N).css("display","none");S--}H.disabled=false;if(F==0)K.disabled=true;else K.disabled=false}else if(C<P){var B=P-C,Q=M.shows.length-S-1;if(Q>=B){for(_=0;_<B;_++){S++;N=M.shows[S];$(N).css("display","block")}if(Q==B)H.disabled=true;else H.disabled=false;if(F==0)K.disabled=true;else K.disabled=false}else{for(_=0;_<Q;_++){S++;N=M.shows[S];$(N).css("display","block")}H.disabled=true;var D=B-Q;for(_=0;_<D;_++){F--;if(F<0)break;N=M.shows[F];$(N).css("display","block")}if(F==0)K.disabled=true;else K.disabled=false}}}else{var O=parseInt(A/I);for(G=0;G<M.shows.length;G++){N=M.shows[G];$(N).css("display","block");WatWebContainerTab.changeHeadWidth(M,N,O)}M.tabControlButton.style.visibility="hidden"}}else{for(G=0;G<M.shows.length;G++){N=M.shows[G];$(N).css("display","block");WatWebContainerTab.changeHeadWidth(M,N,$(N).attr("currwidth"))}M.tabControlButton.style.visibility="hidden"}};WatWebContainerTab.processAddPageTopBottomTabShow=function(F){var D=0,H=F.wstate;for(var I=0;I<F.shows.length;I++)D=parseInt(D)+parseInt($(F.shows[I]).attr("currwidth"));var A=F.shows.length,C=parseInt(F.tabWrap.clientWidth)-rightAreaWidth;if(D>C){if(minPageWidth*A>C){for(I=0;I<F.shows.length;I++){var E=F.shows[I];WatWebContainerTab.changeHeadWidth(F,E,minPageWidth);if((A-I)*minPageWidth>C)$(E).css("display","none");else $(E).css("display","block")}F.tabControlButton.style.visibility="visible";var _=$("#mright",F.tabControlButton).get(0);_.disabled=true;var B=$("#mleft",F.tabControlButton).get(0);B.disabled=false}else{var G=parseInt(C/A);for(I=0;I<F.shows.length;I++){E=F.shows[I];$(E).css("display","block");WatWebContainerTab.changeHeadWidth(F,E,G)}F.tabControlButton.style.visibility="hidden"}}else{for(I=0;I<F.shows.length;I++){E=F.shows[I];$(E).css("display","block");WatWebContainerTab.changeHeadWidth(F,E,$(E).attr("currwidth"))}F.tabControlButton.style.visibility="hidden"}};WatWebContainerTab.addForm=function(Z,J,o,Q,U){try{top.DxPopGridText.hideOnClick();DxDataGridPopGridTextCell.hideOnClick()}catch(Y){}var a=U.split("@"),V=a[0],g=a[1],O=a[2],f=a[3],M="false";if(a.length>=5)M=a[4];var q;if(a.length>=6)q=a[5];var R=top.E_getObject(Z,J,o),X=-1,W,S,C;if(R.shows==null||R.shows==undefined){WatCore.sendTimerAsynCall(Z,J,"close#"+V);return}for(var i=0;i<R.shows.length;i++){var G=R.shows[i].class_name,N=R.shows[i].cid;if(G==V){WatWebContainerTab.remove(Z,o,R.sons[R.shows[i].getAttribute("index")],N);X=R.shows[i].getAttribute("index");S=i;break}else if(f==R.shows[i].getAttribute("index")){WatWebContainerTab.remove(Z,o,R.sons[R.shows[i].getAttribute("index")],N);X=R.shows[i].getAttribute("index");S=i;C=G;break}}if(X==-1)if(R.shows.length>=parseInt(R.tabSize)){WatCore.sendTimerAsynCall(Z,J,"close#"+V);top.DxLabel.showLabel_("\u8bf7\u5173\u6389\u4e00\u4e9b\u4e0d\u5fc5\u8981\u7684\u9875\u9762\u518d\u5c1d\u8bd5\u6253\u5f00");return}else for(i=0;i<R.heads.length;i++){G=R.heads[i].class_name;if(G==""||G==null||G==undefined){X=i;W=true;break}}if(M=="true"){$(R.sons[X]).html("");R.sons[X].show="false"}else{var l=Q.selectSingleNode("server/templates/template[@tid='"+g+"']"),T=top.isIE?l.selectNodes("content")[0].text:l.selectNodes("content")[0].textContent;T=Desktop.getWebFormContent(Z,g,T);R.sons[X].show="true";$(R.sons[X]).css("display","none");R.sons[X].innerHTML=T;if(g)E_watwebformCacheList.push(g);WatWebContainerTab._select(R,R.heads[X],"add")}var j=R.sons[X].ownerDocument.getElementById(J+"img"+X);if(j!=null)j.style.display="none";var b=R.heads[X],D=b.style.display;if(R.shows.length>0&&S==null){var L=R.shows[R.shows.length-1];if($(L).next().id!=b.id){$(b).remove();$(L).after(b)}}b.cid=g;b.class_name=V;b.style.display="block";b.title=O;b.udate=new Date();var e=b.getAttribute("canclose"),I=top.Desktop.textCounter(O),A=parseInt(b.style.width),H=R.ownerDocument.getElementById(R.id+"tab"),_=H.getAttribute("placement"),O=a[2],F=parseInt(9.5*I)+5;if(_=="left"||_=="right"){if(F>120){F=120;O=top.Desktop.getSltext(O,14)}}else if(F>160){F=160;O=top.Desktop.getSltext(O,22)}if(_=="left"||_=="right"){if("true"==e){$(b).height((parseInt(F)+16+12)+"px");$("#right",b).css("top",(F+8+12)+"px");$("#mid",b).height((F+12)+"px")}else{$(b).height((parseInt(F)+16)+"px");$("#right",b).css("top",(F+8)+"px");$("#mid",b).height(F+"px")}$("#mid_text",b).text(O)}else{if("true"==e){if(top.isIE){$("#closeimage",b).css("position","absolute");$("#splitimage",b).css("position","relative");$("#splitimage",b).css("top","4px")}else $("#splitimage",b).css("right","-3px");var c=parseInt(F)+16+12;$(b).width(c+"px");$(b).attr("currwidth",c);$("#mid",b).width((F+12)+"px");$("#mid_text",b).width(F)}else{if(top.isIE){$("#splitimage",b).css("position","relative");$("#splitimage",b).css("top","4px")}else $("#splitimage",b).css("right","-3px");c=parseInt(F)+16;$(b).width(c+"px");$(b).attr("currwidth",c);$("#mid",b).width(F+"px");$("#mid_text",b).width(F)}$("#mid_text",b).text(O)}if(W){var d=0;if(_=="left"||_=="right"){d=WatWebContainerTab.getPreTop(R.shows,0,R.shows.length-1);b.style.top=d+"px"}R.shows.push(R.heads[X])}else if(S>=0&&C==null){R.shows.splice(S,1);R.shows.push(b);for(i=0;i<R.shows.length;i++){R.shows[i].style.display="block";if(_=="left"||_=="right"){d=WatWebContainerTab.getPreTop(R.shows,0,i-1);R.shows[i].style.top=d+"px"}else{d=WatWebContainerTab.getPreLeft(R.shows,0,i-1);R.shows[i].style.left=d+"px"}}}if(_=="left"||_=="right"){var k=0;for(i=0;i<R.shows.length;i++)k=parseInt(k)+parseInt(R.shows[i].style.height);if(k>parseInt(R.tabWrap.clientHeight)-20){if(C==null){R.tabControlButton.style.visibility="visible";var m=R.tabControlButton.ownerDocument.getElementById("mright");m.disabled=false;var n=0;while(m.disabled==false&&n<100){WatWebContainerTab.moveTabToRight(m);n++}}else{var p=R.shows[X];if(parseInt(p.style.top)<0){var K=0;for(i=X;i<R.shows.length;i++){R.shows[i].style.display="block";R.shows[i].style.top=K+"px";K=parseInt(K)+parseInt(R.shows[i].style.height)}m=R.tabControlButton.ownerDocument.getElementById("mright");m.disabled=false;var P=R.tabControlButton.ownerDocument.getElementById("mleft"),E=0;for(i=0;i<R.shows.length;i++)if(R.shows[i].style.display=="block"){E=i;break}if(E==0)P.disabled=true;else P.disabled=false}}}else R.tabControlButton.style.visibility="hidden"}else WatWebContainerTab.processAddPageTopBottomTabShow(R);if(M!="true"){var h=l.selectNodes("initial");if(h[0]!=null){var B=top.isIE?h[0].text:h[0].textContent;B=Desktop.getWebFormScript(Z,g,B);top.WatCore.execInitScript(Z,B)}}if(C!=null)WatCore.sendTimerAsynCall(Z,J,"close#"+C)};WatWebContainerTab.changeHeadWidth=function(_,A,B){var D=A.getAttribute("canclose");if("true"==D){if(top.isIE){$("#closeimage",A).css("position","absolute");$("#splitimage",A).css("position","relative");$("#splitimage",A).css("top","4px")}else $("#splitimage",A).css("right","-3px");var C=B-16-12;$(A).width(B+"px");$("#mid",A).width((C+12)+"px");$("#mid_text",A).width(C)}else{if(top.isIE){$("#splitimage",A).css("position","relative");$("#splitimage",A).css("top","4px")}else $("#splitimage",A).css("right","-3px");C=B-16;$(A).width(B+"px");$("#mid",A).width(C+"px");$("#mid_text",A).width(C)}};WatWebContainerTab.getPreLeft=function(A,C,_){var $=0;for(var B=C;B<=_;B++)if(A[B].style.display!="none")$+=(parseInt(A[B].style.width));return $};WatWebContainerTab.getPreTop=function(A,C,_){var $=0;for(var B=C;B<=_;B++)if(A[B].style.display!="none")$+=(parseInt(A[B].style.height));return $};WatWebContainerTab.leftcloseForm=function(R,F,P,M,C,G,E){if(M.shows==null||M.shows==undefined)return;if(P.id==M.selectHead.id){var B=-1,O,N=new Date("1970","1","1");for(var I=0;I<M.shows.length;I++)if(R==M.shows[I].class_name)O=I;else{var Q=M.shows[I].udate;if(Q>N){N=Q;B=M.shows[I].getAttribute("index")}}if(O>=0){for(I=O+1;I<M.shows.length;I++)$(M.shows[I]).css("top",(parseInt(M.shows[I].style.top)-parseInt(P.style.height))+"px");if(O==M.shows.length-1)M.shows.pop();else{var A=new Array(),D=0;for(I=0;I<M.shows.length;I++)if(I!=O){A[D]=M.shows[I];D+=1}M.shows=A}}if(B==-1){B=0;if(P.index==0){$("#mid_text",P).text("\u8d77\u59cb\u9875");P.style.top=0;var H=M.sons[B].ownerDocument.getElementById(G+"img"+B);if(H!=null)H.style.display="block"}else{M.heads[0].style.display="block";$("#mid_text",M.heads[0]).text("\u8d77\u59cb\u9875");M.heads[0].style.top=0+"px";P.style.display="none";WatWebContainerTab.selectPageServer(M,B);H=M.sons[B].ownerDocument.getElementById(G+"img"+B);if(H!=null)H.style.display="block"}var _=parseInt(9*6)+12;$(M.heads[B]).height((parseInt(_)+16)+"px");$("#mid",M.heads[B]).height(_+"px");$("#right",M.heads[B]).css("top",(_+8)+"px")}else{P.style.display="none";WatWebContainerTab.selectPageServer(M,B)}}else{B=-1,O;for(I=0;I<M.shows.length;I++)if(R==M.shows[I].class_name)O=I;if(O>=0){for(I=O+1;I<M.shows.length;I++)$(M.shows[I]).css("top",(parseInt(M.shows[I].style.top)-parseInt(P.style.height))+"px");if(O==M.shows.length-1)M.shows.pop();else{A=new Array(),D=0;for(I=0;I<M.shows.length;I++)if(I!=O){A[D]=M.shows[I];D+=1}M.shows=A}}P.style.display="none"}P.cid="";P.class_name="";P.title="";P.udate=null;var L=M.tabControlButton.ownerDocument.getElementById("mleft"),K=M.tabControlButton.ownerDocument.getElementById("mright");if(L.disabled==false){WatWebContainerTab.moveTabToLeft(L);var J=0;for(I=0;I<M.shows.length;I++)if(M.shows[I].style.display!="none")J=parseInt(J)+parseInt(M.shows[I].style.height);if(J>parseInt(M.tabWrap.clientHeight)-20)K.disabled=false;else K.disabled=true}if(L.disabled==true){J=0;for(I=0;I<M.shows.length;I++)J=parseInt(J)+parseInt(M.shows[I].style.height);if(J>parseInt(M.tabWrap.clientHeight)-20)M.tabControlButton.style.visibility="visible";else M.tabControlButton.style.visibility="hidden"}if(E=="true"){WatCore.sendTimerAsynCall(C,G,"close#"+R);return R}else return R};WatWebContainerTab.topcloseForm=function(O,D,N,L,A,E,C){if(L.shows==null||L.shows==undefined)return;var K=WatWebContainerTab.getTopPageShowBeginAndEndIndex(L),G=K.begin,P=K.end,M=-1,H=-1,J=false,I=false,_=false;for(var F=0;F<L.shows.length;F++)if(O==L.shows[F].class_name){M=F;if(N.id==L.selectHead.id)J=true;if($(N).css("display")=="block")I=true;break}if(M<0)return;if(!I||M>P||M<G)$(N).css("display","none");else if(J){if(M<L.shows.length-1)H=M+1;else if(M>0)H=M-1;else _=true}if(_){L.heads[0].style.display="block";$("#mid_text",L.heads[0]).text("\u8d77\u59cb\u9875");WatWebContainerTab.selectPageServer(L,0)}else if(H>=0){$(L.shows[H]).css("display","block");WatWebContainerTab._select(L,L.shows[H],"close");var B=L.shows[H].class_name;if(B!=null)WatCore.setParameter(A,E,top.DC.SELECTED,B)}L.shows.splice(M,1);$(N).css("display","none");N.cid="";N.class_name="";N.title="";N.udate=null;WatWebContainerTab.processResizeTopBottomTabShow(L);if(C=="true"){WatCore.sendTimerAsynCall(A,E,"close#"+O);return O}else return O};WatWebContainerTab.closeForm=function(B,G,H,F,E){var D;if(E!=null){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,G,A);D=$("#"+E,_).get(0)}else D=H.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;WatWebContainerTab.closeForm_(B,G,D,F,"true")};WatWebContainerTab.closeForm_=function(B,E,G,I,$){var J=G.class_name,D=G.cid;if(I!=null)stopEvent(I);if((J==""||J==null||D==""||D==null)&&G.ownerDocument.getElementById("mid_text").innerText=="\u8d77\u59cb\u9875"){alert("\u8d77\u59cb\u9875\u4e0d\u5141\u8bb8\u5173\u95ed");return}var H=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,H),F=top.E_getObject(B,E,C);try{top.DxPopGridText.hideOnClick();DxDataGridPopGridTextCell.hideOnClick()}catch(A){}WatWebContainerTab.remove(B,C,F,D);var _=F.ownerDocument.getElementById(E+"tab").getAttribute("placement");if(_=="left"||_=="right")return WatWebContainerTab.leftcloseForm(J,D,G,F,B,E,$);else return WatWebContainerTab.topcloseForm(J,D,G,F,B,E,$)};WatWebContainerTab.selectForm=function(A,F,C,E){var B=top.E_getObject(A,F,C),_=-1;if(B.shows==null||B.shows==undefined)return;for(var G=0;G<B.shows.length;G++){var D=B.shows[G].class_name,$=B.shows[G].cid;if(D==E){_=B.shows[G].getAttribute("index");break}}if(_!=-1)WatWebContainerTab.selectPageServer(B,_)};WatWebContainerTab.enabledForm=function(B,H,E,G,D){var C=top.E_getObject(B,H,E),A=-1;if(C.shows==null||C.shows==undefined)return;for(var I=0;I<C.shows.length;I++){var F=C.shows[I].class_name,_=C.shows[I].cid;if(F==G){A=C.shows[I].getAttribute("index");break}}if(A!=-1)if(D=="true"){C.heads[A].disabled=false;if(!top.isIE)$("#mid_text",C.heads[A]).css("color","")}else{C.heads[A].disabled=true;if(!top.isIE)$("#mid_text",C.heads[A]).css("color","threedshadow")}};WatWebContainerTab.closeFormByServer=function(A,G,D,F){var B=top.E_getObject(A,G,D),_=-1;if(B.shows==null||B.shows==undefined)return;for(var H=0;H<B.shows.length;H++){var E=B.shows[H].class_name,$=B.shows[H].cid;if(E==F){_=B.shows[H].getAttribute("index");break}}if(_!=-1){var C=B.heads[_];WatWebContainerTab.closeForm_(A,G,C,null,"true")}};WatWebContainerTab.closeAllForm=function($,B){var A=top.E_clientModel.E_getWindow($),_=WatCore.getWindowDoc($,A);WatWebContainerTab.closeAllFormByServer($,B,_)};WatWebContainerTab.maxPage=function(B,H){var D=top.E_clientModel.E_getWindow(B),C=WatCore.getWindowDoc(B,D),_=$("#maxPagePanel",C);_.css("display","block");var G=$("#E_SW_"+H,C),E=G.html();_.html("");insertHTML(_.get(0),"BeforeEnd",E);var F=top.DESKTOP,I=getMaxZIndex(F);_.css("z-index",I);G.html("");var A=$("#"+H,maxPagePanel).get(0);top.WatWebContainerTab._changeSize(A);_.width("100%");_.height("100%");_.resize()};WatWebContainerTab.closeAllFormByServer=function(B,E,J,F){var I=top.E_getObject(B,E,J),A=-1;I.tabControlButton.style.visibility="hidden";if(I.shows==null||I.shows==undefined)return;var _=new Array();if(F==undefined)F=true;for(var G=0;G<I.shows.length;G++){var D=I.shows[G].class_name,H=I.shows[G].cid;A=I.shows[G].getAttribute("index");var C=$(I.heads[G]).attr("canclose");if(A!=-1&&C=="true"||!F){var K=I.heads[A];_.push(K)}}var L="";for(G=0;G<_.length;G++){K=_[G];if(K!=null)L+=WatWebContainerTab.closeForm_(B,E,K,null,"false")+"|"}if(L!="")WatCore.sendTimerAsynCall(B,E,"closeAllForm#"+L)};WatWebContainerTab.setHeadTitle=function(B,H,E,G,D){var C=top.E_getObject(B,H,E),A=-1;if(C.shows==null||C.shows==undefined)return;for(var I=0;I<C.shows.length;I++){var F=C.shows[I].class_name,_=C.shows[I].cid;if(F==G){A=C.shows[I].getAttribute("index");break}}if(A!=-1){$("#mid_text",C.heads[A]).text(D);WatWebContainerTab._changeSize(C)}};WatWebContainerTab.setHeadShowNew=function(A,E,I,K,J){var H=top.E_getObject(A,E,I),_=-1;if(H.shows==null||H.shows==undefined)return;for(var F=0;F<H.shows.length;F++){var C=H.shows[F].class_name,G=H.shows[F].cid;if(C==K){_=H.shows[F].getAttribute("index");break}}if(_!=-1)if(""!=J&&J!=undefined){var D=top.Desktop.textCounter(J),B=D*8;if(B<12)B=12;$("#shownew",H.heads[_]).css("display","block");$("#shownew",H.heads[_]).width(B);$("#shownew",H.heads[_]).text(J)}else $("#shownew",H.heads[_]).css("display","none")};WatWebContainerTab.render=function(_,J,H,F){var C=H.getAttribute("cid"),A=H.selectNodes("*");for(var E=0;E<A.length;E++){var D=A[E].nodeName;D=D.substring(1,D.length);var B=D.split("_"),$=0;if(B.length==2){D=B[0];$=B[1]}else{var K=D,G=K.indexOf("_");if(G>=0){D=K.substring(0,G);$=K.substring(G+1,K.length)}}var I=top.isIE?A[E].text:A[E].textContent;switch(D){case top.DC.WEBTAB_Add_FORM:case top.DC.WEBTAB_Add_FRAMESET:WatWebContainerTab.addForm(_,C,J,F,I);break;case top.DC.WEBTAB_SELECT_FORM:WatWebContainerTab.selectForm(_,C,J,I);break;case top.DC.WEBTAB_DELAY_SHOW_FORM:WatWebContainerTab.delayShowForm(_,C,J,F,I);break;case top.DC.ENABLED:WatWebContainerTab.enabledForm(_,C,J,$,I);break;case top.DC.CLOSEWINDOW:WatWebContainerTab.closeFormByServer(_,C,J,I);break;case top.DC.CLOSEALLWINDOW:WatWebContainerTab.closeAllFormByServer(_,C,J,true);break;case top.DC.CLOSEALLWINDOWNOENABLED:WatWebContainerTab.closeAllFormByServer(_,C,J,false);break;case top.DC.HEADERTEXT:WatWebContainerTab.setHeadTitle(_,C,J,$,I);break;case top.DC.SHOWNEW:WatWebContainerTab.setHeadShowNew(_,C,J,$,I);break;default:break}}};function DxGridjjReport(){}var GridReportCodeBase="codebase=\"./griectl.cab#Version=5,6,12,905\"";DxGridjjReport.init=function(D,E,F,$,G,_){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);A.username=$;A.serialno=G;A.fileserver=_};DxGridjjReport.clear=function(_,$,A){};DxGridjjReport.reportViewcreate_=function(H,I,C,_){var G=top.E_clientModel.E_getWindow(H),F=WatCore.getWindowDoc(H,G),D=top.E_getObject(H,I,F),B=parseInt(_);if(B>50)return;var E=$("#"+I+"_report",D).get(0);try{E.Stop();E.DataURL=C;E.Start()}catch(A){window.setTimeout("top.DxGridjjReport.reportViewcreate_('"+H+"','"+I+"','"+C+"','"+(B+1)+"')",500)}};DxGridjjReport.reportViewcreate=function(E,G,P){var Q=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,Q),N=top.E_getObject(E,G,C),L=P.split("@"),D=L[0].split("#"),A,K=-1;if(L.length>=2){A=L[1];if(L.length==3)K=L[2]}var J=D[1],M=watLocation2+"/gridjjreport?reportkey="+D[0],I;if(D.length==5)I=D[4].split("|");else I=D[2].split("|");var F=new Array(I.length-1);for(var H=1;H<I.length;H++){D=I[H].split(":");F[D[0]]=D[1]}var O=$("#"+G+"_report",N).get(0);if(O!=null){try{if(F["paperName"]!=null&&F["paperName"]!="null")O.Report.Printer.PaperName=F["paperName"];window.setTimeout("top.DxGridjjReport.reportViewcreate_('"+E+"','"+G+"','"+M+"','1')",300);if(F["leftMargin"]!=null)O.Report.Printer.LeftMargin=parseFloat(F["leftMargin"]);if(F["topMargin"]!=null)O.Report.Printer.TopMargin=parseFloat(F["topMargin"]);if(F["rightMargin"]!=null)O.Report.Printer.RightMargin=parseFloat(F["rightMargin"]);if(F["bottomMargin"]!=null)O.Report.Printer.BottomMargin=parseFloat(F["bottomMargin"]);if(F["isPortrait"]=="true")O.Report.Printer.PaperOrientation="2";else O.Report.Printer.PaperOrientation="1";if(F["pageSize"]!=null)O.Report.Printer.PaperSize=parseFloat(F["pageSize"]);if(F["pageWidth"]!=null)O.Report.Printer.PaperWidth=parseFloat(F["pageWidth"]);if(F["pageLength"]!=null)O.Report.Printer.PaperLength=parseFloat(F["pageLength"]);if(F["PrinterName"]!=null)O.Report.Printer.PrinterName=F["PrinterName"]}catch(_){}try{if(A!=null&&A!="\u65e0"){var B=A.split("|");for(H=0;H<B.length;H++){D=B[H].split(":");O.Report.ControlByName(D[0]).AsPictureBox.LoadFromFile(top.watLocation2+D[1])}}}catch(_){alert(_.message)}}else alert("reportview is null")};DxGridjjReport.createReport=function(A,Q,J,O){var H=top.E_getObject(A,Q,O),Y=H.reporttype,X=O.getElementById(Q+"_report"),V=H.fileserver,D=H.username,K=H.serialno,E=J.split("@"),N=E[0].split("#"),$,T=-1;if(E.length>=2){$=E[1];if(E.length==3)T=E[2]}var B=N[1],G=watLocation2+"/gridjjreport?reportkey="+N[0],C,M;if(N.length==5){C=N[4].split("|");if(V==null||V=="")M=watLocation2+"/"+N[2];else M=V+N[2]}else{C=N[2].split("|");if(V==null||V=="")M=watLocation2+"/"+C[0];else M=V+C[0]}var R=new Array(C.length-1);for(var S=1;S<C.length;S++){N=C[S].split(":");R[N[0]]=N[1]}var F=E[0].split("|")[0].split("#");if(X==null||Y!=B||true){H.innerHTML="";if(B==1){html="<OBJECT id='"+Q+"_report"+"'"+" classid='CLSID:50CA95AF-BDAA-4C69-A9C6-93E1136E68BC' "+GridReportCodeBase+" VIEWASTEXT></OBJECT>";H.innerHTML=html;X=O.getElementById(Q+"_report");X.LoadFromURL(M);X.LoadDataFromURL(G);if(R["paperName"]!=null)X.MyInterface.Printer.PaperName=R["paperName"];if(R["leftMargin"]!=null)X.MyInterface.Printer.LeftMargin=parseFloat(R["leftMargin"]);if(R["topMargin"]!=null)X.MyInterface.Printer.TopMargin=parseFloat(R["topMargin"]);if(R["rightMargin"]!=null)X.MyInterface.Printer.RightMargin=parseFloat(R["rightMargin"]);if(R["bottomMargin"]!=null)X.MyInterface.Printer.BottomMargin=parseFloat(R["bottomMargin"]);if(R["isPortrait"]=="true")X.MyInterface.Printer.PaperOrientation="2";else X.MyInterface.Printer.PaperOrientation="1";if(R["pageSize"]!=null)X.MyInterface.Printer.PaperSize=parseFloat(R["pageSize"]);if(R["pageWidth"]!=null)X.MyInterface.Printer.PaperWidth=parseFloat(R["pageWidth"]);if(R["pageLength"]!=null)X.MyInterface.Printer.PaperLength=parseFloat(R["pageLength"]);if(R["printerName"]!=null)X.MyInterface.Printer.PrinterName=R["printerName"];try{if($!=null&&$!="\u65e0"){var P=$.split("|");for(S=0;S<P.length;S++){N=P[S].split(":");X.ControlByName(N[0]).AsPictureBox.LoadFromFile(top.watLocation2+N[1])}}}catch(L){}var U=F[3],W=F[4];if(U=="print"){if(W=="true")X.Print(true);else X.Print(false)}else if(U=="printview")if(W=="true")X.PrintPreview(true);else X.PrintPreview(false);if(T!=-1)WatCore.sendACallToChart(A,Q,T)}else if(B==2){html="<OBJECT classid=\"CLSID:9E4CCA44-17FC-402b-822C-BFA6CBA77C0C\" "+GridReportCodeBase+" width='100%' height='100%' id="+Q+"_report"+" VIEWASTEXT>\n";html+="<param name=\"AutoRun\" value=\"false\">\n";html+="<param name=\"UserName\" value=\""+D+"\">\n";html+="<param name=\"SerialNo\" value=\""+K+"\">\n";html+="<param name=\"ReportURL\" value=\""+M+"\">\n";html+="<param name=\"DataURL\" value=\""+G+"\">\n";html+="</OBJECT>";H.innerHTML=html;window.setTimeout("top.DxGridjjReport.reportViewcreate('"+A+"','"+Q+"','"+J+"')",300)}else if(B==3){html="<OBJECT classid=\"CLSID:E060AFE6-5EFF-4830-B7F0-093ECC08EF37\" "+GridReportCodeBase+" width='100%' height='100%' id="+Q+"_report"+" VIEWASTEXT>\n";html+="<param name=\"AutoRun\" value=\"false\">\n";html+="<param name=\"UserName\" value=\""+D+"\">\n";html+="<param name=\"SerialNo\" value=\""+K+"\">\n";html+="<param name=\"ReportURL\" value=\""+M+"\">\n";html+="</OBJECT>";H.innerHTML=html;X=O.getElementById(Q+"_report");if(R["paperName"]!=null)X.Report.Printer.PaperName=R["paperName"];if(R["leftMargin"]!=null)X.Report.Printer.LeftMargin=parseFloat(R["leftMargin"]);if(R["topMargin"]!=null)X.Report.Printer.TopMargin=parseFloat(R["topMargin"]);if(R["rightMargin"]!=null)X.Report.Printer.RightMargin=parseFloat(R["rightMargin"]);if(R["bottomMargin"]!=null)X.Report.Printer.BottomMargin=parseFloat(R["bottomMargin"]);if(R["isPortrait"]=="true")X.Report.Printer.PaperOrientation="2";else X.Report.Printer.PaperOrientation="1";if(R["pageSize"]!=null)X.Report.Printer.PaperSize=parseFloat(R["pageSize"]);if(R["pageWidth"]!=null)X.Report.Printer.PaperWidth=parseFloat(R["pageWidth"]);if(R["pageLength"]!=null)X.Report.Printer.PaperLength=parseFloat(R["pageLength"]);X.Stop();X.DataURL=G;X.Start()}else if(B==4){var _=watLocation2+"/gridreport/11.grf";html="<OBJECT classid=\"CLSID:76AB1C26-34A0-4898-A90B-74CCFF435C43\" "+GridReportCodeBase+" width='100%' height='100%' id="+Q+"_report"+" VIEWASTEXT>\n";html+="<param name=\"UserName\" value=\""+D+"\">\n";html+="<param name=\"SerialNo\" value=\""+K+"\">\n";html+="<param name=\"LoadReportURL\" value=\""+M+"\">\n";html+="<param name=\"DataURL\" value=\""+G+"\">\n";html+="</OBJECT>";H.innerHTML=html;X=O.getElementById(Q+"_report");var I;if(V==null||V=="")I=watLocation2+"/gridjjdesignwrite?report="+F[3];else I=V+"gridjjdesignwrite?report="+F[3];X.SaveReportURL=I}}else if(B==1){X.LoadDataFromURL(G);if(R["paperName"]!=null)X.Report.Printer.PaperName=R["paperName"];if(R["leftMargin"]!=null)X.Report.Printer.LeftMargin=parseFloat(R["leftMargin"]);if(R["topMargin"]!=null)X.Report.Printer.TopMargin=parseFloat(R["topMargin"]);if(R["rightMargin"]!=null)X.Report.Printer.RightMargin=parseFloat(R["rightMargin"]);if(R["bottomMargin"]!=null)X.Report.Printer.BottomMargin=parseFloat(R["bottomMargin"]);if(R["isPortrait"]=="true")X.Report.Printer.PaperOrientation="2";else X.Report.Printer.PaperOrientation="1";if(R["pageSize"]!=null)X.Report.Printer.PaperSize=parseFloat(R["pageSize"]);if(R["pageWidth"]!=null)X.Report.Printer.PaperWidth=parseFloat(R["pageWidth"]);if(R["pageLength"]!=null)X.Report.Printer.PaperLength=parseFloat(R["pageLength"]);U=N[3],W=N[4];if(U=="print"){if(W=="true")X.Print(true);else X.Print(false)}else if(U=="printview")if(W=="true")X.PrintPreview(true);else X.PrintPreview(false)}else if(B==2){X.Stop();if(R["paperName"]!=null)X.Report.Printer.PaperName=R["paperName"];if(R["leftMargin"]!=null)X.Report.Printer.LeftMargin=parseFloat(R["leftMargin"]);if(R["topMargin"]!=null)X.Report.Printer.TopMargin=parseFloat(R["topMargin"]);if(R["rightMargin"]!=null)X.Report.Printer.RightMargin=parseFloat(R["rightMargin"]);if(R["bottomMargin"]!=null)X.Report.Printer.BottomMargin=parseFloat(R["bottomMargin"]);if(R["isPortrait"]=="true")X.Report.Printer.PaperOrientation="2";else X.Report.Printer.PaperOrientation="1";if(R["pageSize"]!=null)X.Report.Printer.PaperSize=parseFloat(R["pageSize"]);if(R["pageWidth"]!=null)X.Report.Printer.PaperWidth=parseFloat(R["pageWidth"]);if(R["pageLength"]!=null)X.Report.Printer.PaperLength=parseFloat(R["pageLength"]);X.DataURL=G;X.LoadReportURL=M;X.QuickRefresh();X.Start()}else if(B==3){if(R["paperName"]!=null)X.Report.Printer.PaperName=R["paperName"];if(R["leftMargin"]!=null)X.Report.Printer.LeftMargin=parseFloat(R["leftMargin"]);if(R["topMargin"]!=null)X.Report.Printer.TopMargin=parseFloat(R["topMargin"]);if(R["rightMargin"]!=null)X.Report.Printer.RightMargin=parseFloat(R["rightMargin"]);if(R["bottomMargin"]!=null)X.Report.Printer.BottomMargin=parseFloat(R["bottomMargin"]);if(R["isPortrait"]=="true")X.Report.Printer.PaperOrientation="2";else X.Report.Printer.PaperOrientation="1";if(R["pageSize"]!=null)X.Report.Printer.PaperSize=parseFloat(R["pageSize"]);if(R["pageWidth"]!=null)X.Report.Printer.PaperWidth=parseFloat(R["pageWidth"]);if(R["pageLength"]!=null)X.Report.Printer.PaperLength=parseFloat(R["pageLength"]);X.Stop();X.DataURL=G;X.Start()}else if(B==4){I=N[3];X.SaveReportURL=I}H.reporttype=B};DxGridjjReport.render=function($,C,A){var F=A.getAttribute("cid"),_=A.selectNodes("*");for(var H=0;H<_.length;H++){var G=_[H].nodeName;G=G.substring(1,G.length);var B=top.isIE?_[H].text:_[H].textContent;switch(G){case top.DC.WIDTH:top.E_getObject($,F,C).style.width=B;var D=top.E_getObject($,"img_"+F,C);if(D!=null)D.style.width=B;break;case top.DC.UPDATE_DATA:DxGridjjReport.createReport($,F,B,C);break;case top.DC.HEIGHT:top.E_getObject($,F,C).style.height=B;D=top.E_getObject($,"img_"+F,C);if(D!=null)D.style.height=B;break;case top.DC.FILE_SERVER:var E=top.E_getObject($,F,C);if(E!=null)E.fileserver=B;break;default:break}}};function DxIDCard4DC(){}DxIDCard4DC.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id=\""+_+"_rd\" codebase=\"./T10CtlN.cab#version=1,0,0,6\" classid=\"clsid:638B238E-EB84-4933-B3C8-854B86140668\"></OBJECT>";A.innerHTML=D}catch($){alert($)}};DxIDCard4DC.read=function(H,B,F,E,R){var S,O,I,P=top.E_getObject(H,B,F),J=F.getElementById(B+"_rd");S=J.dc_init(E,R);if(S<=0){alert("\u5fb7\u5361\u521d\u8bc6\u5316\u9519\u8bef\uff0c\u8bf7\u67e5\u770b\u8bbe\u5907\u4e32\u53e3\u53f7\u662f\u5426\u8bbe\u7f6e\u6b63\u786e!");return}S=J.dc_setcpu(12);if(S<0){alert("dc_setcpu error!");J.dc_exit();return}var M=J.get_bstrRBuffer_asc;S=J.DC_find_i_d();if(S<0){alert("\u8bfb\u53d6\u8eab\u4efd\u8bc1\u4fe1\u606f\u5931\u8d25");return}S=J.DC_start_i_d();if(S<0)return;var Q=J.DC_i_d_query_name(),A=J.DC_i_d_query_sex(),K=J.DC_i_d_query_nation(),_=J.DC_i_d_query_birth(),N=J.DC_i_d_query_address(),G=J.DC_i_d_query_id_number(),D=J.DC_i_d_query_department(),$=J.DC_i_d_query_expire_day(),S=J.DC_i_d_query_photo_bmp_buffer(),C=J.get_bstrRBuffer_asc;J.DC_end_i_d();S=J.dc_exit();if(S<0){alert("dc_exit error!");return}var L=Q+"&"+A+"&"+K+"&"+_+"&"+N+"&"+G+"&"+D+"&"+$+"&"+C;WatCore.setParameter(H,B,top.DC.TEXT,L);WatCore.sendACallToChart(H,B,"enter")};DxIDCard4DC.clear=function(_,$,A){};DxIDCard4DC.cardInit=function(G,_,D,C,E){var H,B,F,A=top.E_getObject(G,_,D),I=D.getElementById(_+"_rd");H=I.dc_init(C,E);if(H<=0){alert("\u521d\u8bc6\u5316\u9519\u8bef\uff0c\u8bf7\u67e5\u770b\u8bbe\u5907\u4e32\u53e3\u53f7\u662f\u5426\u8bbe\u7f6e\u6b63\u786e!");return}H=I.dc_setcpu(12);if(H<0){alert("dc_setcpu error!");I.dc_exit();return}var $=I.get_bstrRBuffer_asc;H=I.DC_find_i_d();if(H<0){alert("\u8bfb\u53d6\u8eab\u4efd\u8bc1\u4fe1\u606f\u5931\u8d25");return}H=I.DC_start_i_d();if(H<0){alert("\u8bfb\u53d6\u8eab\u4efd\u8bc1\u4fe1\u606f\u5931\u8d25");return}H=I.dc_exit();if(H<0){alert("dc_exit error!");return}alert("\u5361\u521d\u8bc6\u5316\u6b63\u786e")};DxIDCard4DC.render=function(_,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.UPDATE_DATA:var $=C.split("$");DxIDCard4DC.read(_,E,D,$[0],$[1]);break;case top.DC.CARD_INIT:$=C.split("$");DxIDCard4DC.cardInit(_,E,D,$[0],$[1]);break;default:break}}};function DxPhoto(){}var PhotoCodeBase="codebase=\"./HardwareObj.cab#Version=1,0,0,0\"";DxPhoto.createPhoto=function(A,_,$){};DxPhoto.takephoto=function(strWinID,strConID){try{var oWin=top.E_clientModel.E_getWindow(strWinID),oDoc=WatCore.getWindowDoc(strWinID,oWin),win=WatCore.getWindow(strWinID,oWin),HardWareControl=oDoc.getElementById(strConID+"_photo"),Ret=HardWareControl.TakePhoto(),ob=top.E_getObject(strWinID,strConID,oDoc),re;eval("re="+Ret.replace(/\\/g,"\\\\"));var content=re.PhotoFile+"&"+re.ErrCode+"&"+re.ErrStr;ob.photofile=re.PhotoFile;var obj=ob.photofile,index=obj.lastIndexOf("\\"),v=obj.substring(index+1,obj.length),tv=encodeURI(v),truefilename;if(ob.truename=="true")truefilename=tv;else{var opath=DxFileUpload.create(),strs=tv.split(".");truefilename=opath+"."+strs[1]}ob.truefilename=truefilename;WatCore.setParameter(strWinID,strConID,top.DC.TEXT,content+"&"+truefilename);WatCore.sendACallToChart(strWinID,strConID,"photo")}catch(e){alert("\u62cd\u7167\u5f02\u5e38\u4fe1\u606f\uff1a"+e.message)}};DxPhoto.SubmitHTTPUploadReq=function(strWinID,strConID){var oWin=top.E_clientModel.E_getWindow(strWinID),oDoc=WatCore.getWindowDoc(strWinID,oWin),win=WatCore.getWindow(strWinID,oWin),ob=top.E_getObject(strWinID,strConID,oDoc),filepath=ob.filepath,action=ob.action,isabsolute="";if(ob.useabsolute=="true")isabsolute="&isabsolute=true";var obj=ob.photofile,index=obj.lastIndexOf("\\"),v=obj.substring(index+1,obj.length),tv=encodeURI(v),tpath=null,truefilename=ob.truefilename,fileserver=ob.fileserver;if(fileserver==null||fileserver==undefined)fileserver=watLocation2+"/";if(ob.truename=="true"){tpath=encodeURI(filepath+v);action=fileserver+action+"?name="+tv+"&path="+tpath+isabsolute}else{var strs=tv.split(".");tpath=encodeURI(filepath+truefilename);action=fileserver+action+"?name="+tv+"&path="+tpath+isabsolute}var HardWareControl=oDoc.getElementById(strConID+"_photo"),result=HardWareControl.SubmitHTTPUploadReq(action,obj),re;eval("re="+result.replace(/\\/g,"\\\\"));WatCore.sendACallToChart(strWinID,strConID,"submit");alert(re.ErrStr)};DxPhoto.updateFile=function(strWinID,strConID,oDoc,updatefilename,downloadocxid,isdelete){var ob=top.E_getObject(strWinID,strConID,oDoc),filepath=ob.filepath,action=ob.action,isabsolute="";if(ob.useabsolute=="true")isabsolute="&isabsolute=true";var obj=updatefilename,index=obj.lastIndexOf("\\"),v=obj.substring(index+1,obj.length),tv=encodeURI(v),tpath=null,truefilename=ob.truefilename,fileserver=ob.fileserver;if(fileserver==null||fileserver==undefined)fileserver=watLocation2+"/";tpath=encodeURI(filepath+v);action=fileserver+action+"?name="+tv+"&path="+tpath+isabsolute;var HardWareControl=oDoc.getElementById(strConID+"_photo"),result=HardWareControl.SubmitHTTPUploadReq(action,obj),re;eval("re="+result.replace(/\\/g,"\\\\"));WatCore.sendACallToChart(strWinID,strConID,"submit");if(re.ErrStr!=null&&re.ErrStr.indexOf("\u4e0a\u4f20\u8bf7\u6c42\u63d0\u4ea4\u6210\u529f")>=0){if(downloadocxid!=""&&isdelete=="true")top.DxMulThreadDownLoad.operatefile(strWinID,downloadocxid,oDoc,1,obj)}else alert(re.ErrStr)};DxPhoto.clear=function(_,$,A){};DxPhoto.render=function($,I,H){var C=H.getAttribute("cid"),A=H.selectNodes("*");for(var E=0;E<A.length;E++){var D=A[E].nodeName;D=D.substring(1,D.length);var B=D.indexOf("_"),K=D,M;if(B>-1){D=K.substring(0,B);M=K.substring(B+1,K.length);var F=M.split("-");M=F[0]}var J=top.isIE?A[E].text:A[E].textContent;switch(D){case top.DC.TAKEPHOTO:DxPhoto.takephoto($,C);break;case top.DC.SUBMITPHOTO:DxPhoto.SubmitHTTPUploadReq($,C);break;case top.DC.FILEPATH:var G=top.E_getObject($,C,I);G.filepath=J;break;case top.DC.FILE_SERVER:var L=top.E_getObject($,C,I);if(L!=null)L.fileserver=J;break;case top.DC.UPDATE_DATA:var _=J.split("@wat@");DxPhoto.updateFile($,C,I,_[0],_[1],_[2]);break;default:break}}};function DxNavegator(){}DxNavegator.clear=function(_,$,A){};DxNavegator.render=function($,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.FIRST:var _=top.E_getObject($,"F_"+E,D);if(C=="true")_.disabled=false;else _.disabled=true;break;case top.DC.PREVIOUS:_=top.E_getObject($,"P_"+E,D);if(C=="true")_.disabled=false;else _.disabled=true;break;case top.DC.NEXT:_=top.E_getObject($,"N_"+E,D);if(C=="true")_.disabled=false;else _.disabled=true;break;case top.DC.LAST:_=top.E_getObject($,"L_"+E,D);if(C=="true")_.disabled=false;else _.disabled=true;break;case top.DC.WIDTH:top.E_getObject($,E,D).style.width=C;break;case top.DC.HEIGHT:top.E_getObject($,E,D).style.height=C;break;case top.DC.TEXT:top.E_getObject($,"t_"+E,D).innerText=C;break;case top.DC.VISIBLE:if(C=="true")top.E_getObject($,E,D).style.visibility="visible";else top.E_getObject($,E,D).style.visibility="hidden";break;case top.DC.X:top.E_getObject($,"E_SW_"+E,D).style.left=C;break;case top.DC.Y:top.E_getObject($,"E_SW_"+E,D).style.top=C;break;case top.DC.ENABLED:_=top.E_getObject($,E,D);if(C=="true"){_.ownerDocument.getElementById("P_"+E).disabled=false;_.ownerDocument.getElementById("F_"+E).disabled=false;_.ownerDocument.getElementById("N_"+E).disabled=false;_.ownerDocument.getElementById("L_"+E).disabled=false}else{_.ownerDocument.getElementById("P_"+E).disabled=true;_.ownerDocument.getElementById("F_"+E).disabled=true;_.ownerDocument.getElementById("N_"+E).disabled=true;_.ownerDocument.getElementById("L_"+E).disabled=true}break;case top.DC.fontFamily:top.E_getObject($,"t_"+E,D).style.fontFamily=C;break;case top.DC.fontSize:top.E_getObject($,"t_"+E,D).style.fontSize=C;break;case top.DC.fontWeight:top.E_getObject($,"t_"+E,D).style.fontWeight=C;break;case top.DC.fontStyle:top.E_getObject($,"t_"+E,D).style.fontStyle=C;break;case top.DC.textDecoration:top.E_getObject($,"t_"+E,D).style.textDecoration=C;break;case top.DC.BACKGROUND:top.E_getObject($,E,D).style.backgroundColor=C;break;case top.DC.FOREGROUND:top.E_getObject($,E,D).style.color=C;break;default:break}}};DxDataGridDateTimePickCell.m_nInc=1;DxDataGridDateTimePickCell.m_strSigns="$,.";DxDataGridDateTimePickCell.m_bFixedLen=true;DxDataGridDateTimePickCell.m_strType="date";DxDataGridDateTimePickCell.m_strBlank="0";DxDataGridDateTimePickCell.m_input={48:0,49:1,50:2,51:3,52:4,53:5,54:6,55:7,56:8,57:9,96:0,97:1,98:2,99:3,100:4,101:5,102:6,103:7,104:8,105:9};function DxDataGridDateTimePickCell(){}DxDataGridDateTimePickCell.init=function(_,D,C,A,$,B){if(C.isinit)return;C.isinit=true;C.stype=$;if(C.stype=="date"){C.m_nFormatLen=10;C.m_strDefValue="0000-00-00";C.m_arrPlaceHolder=[{4:1,7:1},{5:1,8:1}];C.m_oSeg={0:14,1:14,2:14,3:14,4:14,5:15,6:15,7:15,8:16,9:16,10:16,14:[0,4],15:[5,2],16:[8,2]};C.m_oDateInfo={y:14,m:15,d:16,c:0};C.m_oRegExp=/([0-9]{4})-(((0[0-9])|(1[0-2])))-(((0[0-9])|([12][0-9])|(3[0-1])))/;C.m_oRegExp2=/([0-9]{4})-(((0[0-9])|(1[0-9])))-(((0[0-9])|([12][0-9])|(3[0-9])))/;C.m_oMin=new Date("1900-01-01".replace(/-/g,"/"));C.m_oMax=new Date("2099-01-01".replace(/-/g,"/"))}else if(C.stype=="datetime"){C.m_nFormatLen=16;C.m_strDefValue="0000-00-00 00:00";C.m_arrPlaceHolder=[{4:1,7:1,10:1,13:1},{5:1,11:1,8:1,14:1}];C.m_oSeg={0:17,1:17,2:17,3:17,4:17,5:18,6:18,7:18,8:19,9:19,10:19,11:20,12:20,13:20,14:21,15:21,16:21,17:[0,4],18:[5,2],19:[8,2],20:[11,2],21:[14,2]};C.m_oDateInfo={y:17,m:18,d:19,c:0,h:20,s:21};C.m_oRegExp=/([0-9]{4})-(((0[0-9])|(1[0-2])))-(((0[0-9])|([12][0-9])|(3[0-1]))\s(([01][0-9])|(2[0-3])):([0-5][0-9]))/;C.m_oRegExp2=/([0-9]{4})-(((0[0-9])|(1[0-9])))-(((0[0-9])|([12][0-9])|(3[0-9]))\s(([01][0-9])|(2[0-9])):([0-5][0-9]))/;C.m_oMin=new Date("1900-01-01".replace(/-/g,"/"));C.m_oMax=new Date("2099-01-01".replace(/-/g,"/"))}else if(C.stype=="datetime2"){C.m_nFormatLen=19;C.m_strDefValue="0000-00-00 00:00:00";C.m_arrPlaceHolder=[{4:1,7:1,10:1,13:1,16:1},{5:1,8:1,11:1,14:1,17:1}];C.m_oSeg={0:171,1:171,2:171,3:171,4:171,5:181,6:181,7:181,8:191,9:191,10:191,11:201,12:201,13:201,14:211,15:211,16:211,17:221,18:221,19:221,171:[0,4],181:[5,2],191:[8,2],201:[11,2],211:[14,2],221:[17,2]};C.m_oDateInfo={y:171,m:181,d:191,c:0,h:201,s:211,ms:221};C.m_oRegExp=/([0-9]{4})-(((0[0-9])|(1[0-2])))-(((0[0-9])|([12][0-9])|(3[0-1]))\s(([01][0-9])|(2[0-3])):([0-5][0-9]):([0-5][0-9]))/;C.m_oRegExp2=/([0-9]{4})-(((0[0-9])|(1[0-9])))-(((0[0-9])|([12][0-9])|(3[0-9]))\s(([01][0-9])|(2[0-9])):([0-5][0-9]):([0-5][0-9]))/;C.m_oMin=new Date("1900-01-01".replace(/-/g,"/"));C.m_oMax=new Date("2099-01-01".replace(/-/g,"/"))}else if(C.stype=="time2"){C.m_nFormatLen=8;C.m_strDefValue="00:00:00";C.m_arrPlaceHolder=[{2:1,5:1},{3:1,6:1}];C.m_oSeg={0:20,1:20,2:20,3:21,4:21,5:21,6:22,7:22,8:22,20:[0,2],21:[3,2],22:[6,2]};C.m_oDateInfo={h:20,s:21,ms:22};C.m_oRegExp=/((([01][0-9])|(2[0-3])):([0-5][0-9]):([0-5][0-9]))/;C.m_oRegExp2=/((([01][0-9])|(2[0-9])):([0-5][0-9]):([0-5][0-9]))/;C.m_oMin=new Date("1900-01-01".replace(/-/g,"/"));C.m_oMax=new Date("2099-01-01".replace(/-/g,"/"))}else if(C.stype=="time"){C.m_nFormatLen=5;C.m_strDefValue="00:00";C.m_arrPlaceHolder=[{2:1},{3:1}];C.m_oSeg={0:20,1:20,2:20,3:21,4:21,5:21,20:[0,2],21:[3,2]};C.m_oDateInfo={h:20,s:21};C.m_oRegExp=/((([01][0-9])|(2[0-3])):([0-5][0-9]))/;C.m_oRegExp2=/((([01][0-9])|(2[0-9])):([0-5][0-9]))/;C.m_oMin=new Date("1900-01-01".replace(/-/g,"/"));C.m_oMax=new Date("2099-01-01".replace(/-/g,"/"))}DxDataGridDateTimePickCell.timeToStr(C,B);if(top.isIE)C.m_oRange=C.createTextRange()};DxDataGridDateTimePickCell.clear=function(_,$,A){};DxDataGridDateTimePickCell.timeToStr=function(H,B){if(B==""||B==0){var A="";if(H.stype=="date")A="0000-00-00";else if(H.stype=="time")A="00:00";else if(H.stype=="datetime2")A="0000-00-00 00:00:00";else if(H.stype=="time2")A="00:00:00";else A="0000-00-00 00:00";H.value=A;return}var G=new Date(parseInt(B)),D=G.getFullYear(),C=G.getMonth();if(C<9)C="0"+(C+1);else C+=1;var F=G.getDate();if(F<=9)F="0"+F;A;if(H.stype=="date")A=G.getFullYear()+"-"+C+"-"+F;else if(H.stype=="datetime"){var E=G.getHours();if(E<10)E="0"+E;var $=G.getMinutes();if($<10)$="0"+$;A=G.getFullYear()+"-"+C+"-"+F+" "+E+":"+$}else if(H.stype=="time"){E=G.getHours();if(E<10)E="0"+E;$=G.getMinutes();if($<10)$="0"+$;A=E+":"+$}else if(H.stype=="datetime2"){E=G.getHours();if(E<10)E="0"+E;$=G.getMinutes();if($<10)$="0"+$;var _=G.getSeconds();if(_<10)_="0"+_;A=G.getFullYear()+"-"+C+"-"+F+" "+E+":"+$+":"+_}else if(H.stype=="time2"){E=G.getHours();if(E<10)E="0"+E;$=G.getMinutes();if($<10)$="0"+$;_=G.getSeconds();if(_<10)_="0"+_;A=E+":"+$+":"+_}H.value=A};DxDataGridDateTimePickCell.getTimeToStr=function(H,B){if(B==""||B==0){var A="";if(H.stype=="date")A="0000-00-00";else if(H.stype=="time")A="00:00";else if(H.stype=="time2")A="00:00:00";else if(H.stype=="datetime2")A="0000-00-00 00:00:00";else A="0000-00-00 00:00";return A}var G=new Date(parseInt(B)),D=G.getFullYear(),C=G.getMonth();if(C<9)C="0"+(C+1);else C+=1;var F=G.getDate();if(F<=9)F="0"+F;A;if(H.stype=="date")A=G.getFullYear()+"-"+C+"-"+F;else if(H.stype=="datetime"){var E=G.getHours();if(E<10)E="0"+E;var $=G.getMinutes();if($<10)$="0"+$;A=G.getFullYear()+"-"+C+"-"+F+" "+E+":"+$}else if(H.stype=="time"){E=G.getHours();if(E<10)E="0"+E;$=G.getMinutes();if($<10)$="0"+$;A=E+":"+$}else if(H.stype=="datetime2"){E=G.getHours();if(E<10)E="0"+E;$=G.getMinutes();if($<10)$="0"+$;var _=G.getSeconds();if(_<10)_="0"+_;A=G.getFullYear()+"-"+C+"-"+F+" "+E+":"+$+":"+_}else if(H.stype=="time2"){E=G.getHours();if(E<10)E="0"+E;$=G.getMinutes();if($<10)$="0"+$;_=G.getSeconds();if(_<10)_="0"+_;A=E+":"+$+":"+_}return A};DxDataGridDateTimePickCell._verify=function(C,_,H,F,E,D){m_strCurText=_;var $,A,G,B=C.value;if(!D)B=DxDataGridDateTimePickCell._replace(C.value,H,F,_);G=false;if(D)G=B.match(C.m_oRegExp);else{G=B.match(C.m_oRegExp2);if(!G&&DxDataGridDateTimePickCell.m_strType=="string"){m_strCurText=_.toUpperCase();B=DxDataGridDateTimePickCell._replace(C.value,H,F,m_strCurText);G=B.match(C.m_oRegExp2);if(!G){m_strCurText=_.toLowerCase();B=DxDataGridDateTimePickCell._replace(C.value,H,F,m_strCurText);G=B.match(C.m_oRegExp2)}}}if(G!=null)G=true;else G=false;if(G){if(DxDataGridDateTimePickCell.m_strType=="date"||DxDataGridDateTimePickCell.m_strType=="datetime"||DxDataGridDateTimePickCell.m_strType=="time"||DxDataGridDateTimePickCell.m_strType=="datetime2"||DxDataGridDateTimePickCell.m_strType=="time2"){$=DxDataGridDateTimePickCell._getDateValue(C,B);if(DxDataGridDateTimePickCell.m_strType!="time"&&DxDataGridDateTimePickCell.m_strType!="time2")G=DxDataGridDateTimePickCell._isValidDate(C,$)}if(G&&E&&C.m_oMin&&C.m_oMax){switch(DxDataGridDateTimePickCell.m_strType){case"date":case"datetime":case"time":case"datetime2":case"time2":A=new Date($.y,$.m,$.d,$.h,$.s,$.ms);break;case"numeric":A=parseInt(DxDataGridDateTimePickCell._getRealValue(B,true));break;default:break}G=(A>=C.m_oMin)&&(A<=C.m_oMax)}}return G};DxDataGridDateTimePickCell._getRealValue=function(_,$){var A;for(var B in m_oHolderInfo){A=m_oHolderInfo[B];if(A)_=($)?_replace(_,B,A.length,"*"):_replace(_,B,0,A)}return($)?_.replace(/\*/g,""):_};DxDataGridDateTimePickCell._replace=function(B,$,C,A){var _=B.substring(0,$)+A+B.substring($+C,B.length);return _};DxDataGridDateTimePickCell._selectRange=function(A,_,C,D){var B,$=A.value;B=$.substr(C,D);return B};DxDataGridDateTimePickCell._setSelText=function(C,$,_,E,D){var B=(D<0?E+D:E),F=(D<0?E:E+D),A=C.value;C.value=A.substring(0,B)+_+A.substring(F,A.length);DxDataGridDateTimePickCell._moveCursor(C,E+D)};DxDataGridDateTimePickCell._isHolderSign=function(_,B,A){var $=_.value.substring(B,B+A);return($)?DxDataGridDateTimePickCell.m_strSigns.indexof($)>=0:false};DxDataGridDateTimePickCell._getBlank=function($,_,A){var C=(DxDataGridDateTimePickCell.m_bFixedLen)?_:$.m_nFormatLen-($.value.length-_),B=$.m_strDefValue.substring(C,C+A);return B.replace(/^(\s)+/,"")};DxDataGridDateTimePickCell._isValidDate=function(A,_){var C=false;if(_.m=="00"||_.d=="00")C=true;else{var B=new Date(_.y,_.m,_.d),$=B.getMonth();C=($==_.m)}return C};DxDataGridDateTimePickCell._getDateValue=function(E,C){var G={},B,F,$,A,_,D=["y","m","d","h","i","s","f","ms"];for(var H=0;H<D.length;H++){F=D[H];B=E.m_oDateInfo[F];if(B){$=E.m_oSeg[B];A=(F=="y")?1900:1;G[F]=(B==-1)?A:Number(C.substring($[0],$[0]+$[1]));if(F=="m"&&G[F]!=0)G[F]-=1}else G[F]=0}return G};DxDataGridDateTimePickCell._isValidDate2=function(A,_){var C=false;if(_.m=="-1"&&_.d=="00"&&_.y=="0000")C=true;else if(_.m=="-1"||_.d=="00"||_.y=="0000")C=false;else{var B=new Date(_.y,_.m,_.d),$=B.getMonth();C=($==_.m)}return C};DxDataGridDateTimePickCell._getDateValue2=function(E,C){var G={},B,F,$,A,_,D=["y","m","d","h","i","s","f","ms"];for(var H=0;H<D.length;H++){F=D[H];B=E.m_oDateInfo[F];if(B){$=E.m_oSeg[B];A=(F=="y")?1900:1;G[F]=(B==-1)?A:Number(C.substring($[0],$[0]+$[1]));if(F=="m")G[F]-=1}else G[F]=0}return G};DxDataGridDateTimePickCell._getCursorPos=function(_){var A=-1;if(!top.isIE)A=_.selectionStart;else{var $=document.selection.createRange();$.moveStart("character",-_.value.length);A=$.text.length}return A};DxDataGridDateTimePickCell._moveCursor=function(A,_){if(top.isIE){var $=A.createTextRange();$.collapse(true);$.move("character",_);$.select()}else{A.setSelectionRange(_,_);A.focus()}};DxDataGridDateTimePickCell._setNumber=function(_,$){var B=DxDataGridDateTimePickCell._getCursorPos(_),A=_.value.length;$=DxDataGridDateTimePickCell._convNumber($);DxDataGridDateTimePickCell._selectRange(_.m_oRange,-B,A);DxDataGridDateTimePickCell._setSelText(_.m_oRange,$,nCrpos-A)};DxDataGridDateTimePickCell._convNumber=function(A){var _=A.replace(/,/g,""),C=_.match(/(^|[^\d]+)(\d+)(.|$)/g);if(C&&C.length>1){var E=RegExp.$2,B=E.replace(/^0+/g,"");if(B.length>3){var $=E.length%3;if($>0){B=(($==1)?"00":"0")+B;$=($==1)?2:1}var D=B.match(/(\d{3})/g),B=D.join(",");if($>0)B=B.substring($)}A=_.replace(E,B)}return A};DxDataGridDateTimePickCell.timer=function(B,D){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=top.E_getObject(B,D,A),_=$.oThis;$.oThis=null;if(_.value==""){DxDataGridDateTimePickCell.timeToStr(_,"0");DxDataGridDateTimePickCell._moveCursor(_,0)}};DxDataGridDateTimePickCell._onMousedown2=function(B,F,G,D){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=G,$=top.E_getObject(B,F,A);$.oThis=_;var E=WatCore.getWindow(B,C);DxDataGridDateTimePickCell._moveCursor(_,0);E.setTimeout("top.DxDataGridDateTimePickCell.timer('"+B+"','"+F+"')",200)};DxDataGridDateTimePickCell._onMousedown=function(A,D,E,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=E;if(C==null)DxDataGridDateTimePickCell._moveCursor($,0);else DxDataGridDateTimePickCell._moveCursor($,C.offsetX)};DxDataGridDateTimePickCell._onSelect=function(C,G,F){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),A=B.getElementById(G);if(A.readOnly==true)return;var E=window,H=E.document.selection.createRange(),_,$=A.m_oRange;do{_=$.compareEndPoints("StartToStart",H);$.move("character",-_)}while(_!=0);$.moveEnd("character",H.text.length)};DxDataGridDateTimePickCell.up_onclick=function(A,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=_.getElementById(C);DxDataGridDateTimePickCell._clickArrow(A,C,$,true)};DxDataGridDateTimePickCell.down_onclick=function(A,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=_.getElementById(C);DxDataGridDateTimePickCell._clickArrow(A,C,$,false)};DxDataGridDateTimePickCell._clickArrow=function(E,H,D,J){if(DxDataGridDateTimePickCell.m_strType!="string"){var L;if(top.isIE)L=D.createTextRange();var C=D.value,N=C.length,M=(J)?DxDataGridDateTimePickCell.m_nInc:-DxDataGridDateTimePickCell.m_nInc,G=DxDataGridDateTimePickCell._getCursorPos(D);if(DxDataGridDateTimePickCell.m_bFixedLen&&DxDataGridDateTimePickCell.m_strType!="numeric"){var O=D.m_oSeg[G];if(O){var K=D.m_oSeg[O],I,N,B;I=K[0];var $=K[1],A=Number(DxDataGridDateTimePickCell._selectRange(D,L,I,$));if(!(A==1&&M<0)){A=A+M;while($-A.toString().length>0)A=DxDataGridDateTimePickCell.m_strBlank+A;if(DxDataGridDateTimePickCell._verify(D,A,I,$,true)){D.value=C.substring(0,I)+A+C.substring(I+$,C.length);DxDataGridDateTimePickCell._moveCursor(D,G);DxDataGridDateTimePickCell.blurFunction(E,H,D)}}}}else{var F=DxDataGridDateTimePickCell.m_bFixedLen?pareseInt(DxDataGridDateTimePickCell._getRealValue(C,true))+M:parseInt(C.replace(/,/g,""))+nstep,_=(D.m_oMin&&D.m_oMax)?(F>=D.m_oMin&&mReal<=D.m_oMax):true;if(_){C=DxDataGridDateTimePickCell.m_bFixedLen?DxDataGridDateTimePickCell._getRealValue(parseInt(F,false)):DxDataGridDateTimePickCell._convNumber(F.toString());if(C.length<=D.m_nFormatLen){DxDataGridDateTimePickCell._selectRange(L,-G,N);L.text=C;DxDataGridDateTimePickCell.blurFunction(E,H,D);G=DxDataGridDateTimePickCell._getCursorPos(D);DxDataGridDateTimePickCell._selectRange(L,-G,C.length)}}}}};DxDataGridDateTimePickCell._onClick=function(_,C,D,B){var A=DxDataGridDateTimePickCell._getCursorPos(D),$=D.m_oRange;$.select()};DxDataGridDateTimePickCell._onKeydown=function(Q,E,L,I){var P=L,Z=false,R,G=I.keyCode,F=P.m_oRange;switch(G){case 8:case 46:var D=(G==46);R=DxDataGridDateTimePickCell._getCursorPos(P);var T=(D)?0:1,J=D?1:-1,Y=P.value.length,X,K;if(DxDataGridDateTimePickCell.m_bFixedLen&&P.m_arrPlaceHolder[T][R]||(!DxDataGridDateTimePickCell.m_bFixedLen&&DxDataGridDateTimePickCell._isHolderSign(P,R,J))){step=(D)?1:-1;R+=step;DxDataGridDateTimePickCell._moveCursor(P,R)}else{X=(D)?1:-1;K=(DxDataGridDateTimePickCell.m_bFixedLen)?DxDataGridDateTimePickCell.m_strBlank:DxDataGridDateTimePickCell._getBlank(P,R,J);var W=(DxDataGridDateTimePickCell.m_bFixedLen||K.length>0)?X:0;if((D&&R<P.m_nFormatLen)||(!D&&R!=0))DxDataGridDateTimePickCell._setSelText(P,F,K,R,W)}if(!DxDataGridDateTimePickCell.m_bFixedLen)DxDataGridDateTimePickCell._setNumber(P,P.value);DxDataGridDateTimePickCell.blurFunction(Q,E,P);break;case 36:DxDataGridDateTimePickCell._moveCursor(P,0);Z=true;break;case 35:DxDataGridDateTimePickCell._moveCursor(P,P.m_nFormatLen);Z=true;break;case 37:case 39:var N=(G==39),X=(N)?1:-1,T=(N)?0:1,A=DxDataGridDateTimePickCell._getCursorPos(P);DxDataGridDateTimePickCell._moveCursor(P,A+X);break;case 38:case 187:case 61:DxDataGridDateTimePickCell._clickArrow(Q,E,P,true);stopEvent(I);break;case 40:case 189:case 173:DxDataGridDateTimePickCell._clickArrow(Q,E,P,false);stopEvent(I);break;case 45:case 229:break;case 13:break;case 78:var V=new Date(),H=Number(V);DxDataGridDateTimePickCell.timeToStr(P,H);DxDataGridDateTimePickCell.blurFunction(Q,E,P);DxDataGridDateTimePickCell._moveCursor(P,P.m_nFormatLen);Z=true;stopEvent(I);break;case 67:DxDataGridDateTimePickCell.timeToStr(P,"0");DxDataGridDateTimePickCell.blurFunction(Q,E,P);DxDataGridDateTimePickCell._moveCursor(P,0);Z=true;stopEvent(I);break;default:R=DxDateTimePick._getCursorPos(P);var T=0,J=1,Y=P.value.length,B=P.value,X,K;X=0;if(DxDataGridDateTimePickCell.m_bFixedLen&&P.m_arrPlaceHolder[T][R]||(!DxDataGridDateTimePickCell.m_bFixedLen&&DxDataGridDateTimePickCell._isHolderSign(P,R,J))){step=1;R+=step}var C=DxDataGridDateTimePickCell.m_input[G];if(C!=null){W=1;if(R<P.m_nFormatLen){var M=P.m_oSeg[R];if(M){var U=P.m_oSeg[M],S,Y,_;S=U[0];var $=U[1];DxDataGridDateTimePickCell._setSelText(P,F,C,R,W);var O=DxDataGridDateTimePickCell._selectRange(P,F,S,$);DxDataGridDateTimePickCell.blurFunction(Q,E,P)}}}Z=false;break}I.returnValue=Z;return false};top.DxDataGridDateTimePickCell._onKeyup=function(B,F,H,E){var _=H;if(_.getAttribute("targetId")!=null)if(E.keyCode==_.getAttribute("keyCode")){stopEvent(E);WatCore.jsFunctionCall(B,F,_.getAttribute("targetId"),_.getAttribute("fname"));return}var G=false,D=E.keyCode;switch(D){case 67:DxDataGridDateTimePickCell.timeToStr(_,"0");return;default:G=true;break}if(G){if(_.getAttribute("focusKeyCode")!=null)if(WatCore.isKeyCode(E,_.getAttribute("focusKeyCode"))){stopEvent(E);top.DxDataGrid.jsFunctionCall(B,F,_.getAttribute("targetId"),_.getAttribute("focusKeyCode"),_.getAttribute("fname"),_.getAttribute("operate"),E,_);return}var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),$=top.E_getObject(B,F,A);if($!=null&&$.getAttribute("focusKeyCode")!=null)if(WatCore.isKeyCode(E,$.getAttribute("focusKeyCode"))){stopEvent(E);WatCore.jsFunctionCall(B,F,$.getAttribute("targetId"),$.getAttribute("fname"));return}}E.returnValue=G;stopEvent(E);return false};DxDataGridDateTimePickCell._onKeypress=function(D,G,N,L){try{var C=N,I=L.keyCode;switch(I){case 99:case 67:return;break}var J=top.E_clientModel.E_getWindow(D),E=WatCore.getWindowDoc(D,J),M,B=String.fromCharCode(L.keyCode),F=DxDataGridDateTimePickCell._getCursorPos(C),H=C.m_oRange;while(DxDataGridDateTimePickCell.m_bFixedLen&&C.m_arrPlaceHolder[0][F]){H.move("character",1);F++}F=DxDataGridDateTimePickCell._getCursorPos(C);var K=H.text.length;if(C.value.length<=C.m_nFormatLen&&F<C.m_nFormatLen)if(DxDataGridDateTimePickCell.m_bFixedLen){if(!K){if(DxDataGridDateTimePickCell._verify(C,B,F,1,false,false)){DxDataGridDateTimePickCell._selectRange(H,0,1);DxDataGridDateTimePickCell._setSelText(H,m_strCurText,0)}}else{var $=B+C.m_strDefValue.substring(F+1,F+K);if(DxDataGridDateTimePickCell._verify(C,$,F,K,false,false))DxDataGridDateTimePickCell._setSelText(H,m_strCurText,-(K-1))}}else if(B.match(C.m_oRegExp)){if(K>0)B+=DxDataGridDateTimePickCell._getBlank(C,F+1,K);else{M=DxDataGridDateTimePickCell._getBlank(C,F,1);if(M!="."){K=M.length;H.move("character",K)}}var A=DxDataGridDateTimePickCell._replace(C.value,F,K,B);if(!m_oDotReg||(m_oDotReg&&A.match(m_oDotReg)))DxDataGridDateTimePickCell._setNumber(C,A)}DxDataGridDateTimePickCell.blurFunction(D,G,C)}catch(_){}L.returnValue=false};DxDataGridDateTimePickCell.blurFunction=function(A,B,_){var $=DxDataGridDateTimePickCell.strToTime(_);top.DxDataGrid.calendarChange(A,B,_,$)};DxDataGridDateTimePickCell.action=function($,_){WatCore.call($,_,"enter")};DxDataGridDateTimePickCell.onBlurDateTimePickChange=function(B){var _=B.value;if(_==""||_==null)return true;var $=_.split("-");if(parseInt($[0])==0&&parseInt($[1])==0&&parseInt($[2])==0){B.value="";return true}var A=DxDataGridDateTimePickCell._verify(B,_,0,_.length,false,true);if(A)if(B.stype=="date"||B.stype=="datetime"||B.stype=="datetime2"){arrDate=DxDataGridDateTimePickCell._getDateValue2(B,_);A=DxDataGridDateTimePickCell._isValidDate2(B,arrDate)}return A};DxDataGridDateTimePickCell.strToTime=function(D){var A=D.value,_=A.split("-");if("0000-00-00"==A||"0000-00-00 00:00"==A||"00:00"==A||"0000-00-00 00:00:00"==A||"00:00:00"==A)return 0;if(_.length!=3&&D.stype!="time"&&D.stype!="time2")alert("time is error");else{if(parseInt(_[0])==0&&parseInt(_[1])==0&&parseInt(_[2])==0)return 0;var C=_[1];if(D.stype=="date"){var $=_[2];if(C>0&&$>0)_[1]=C-1;return new Date(_[0],_[1],_[2],0,0,0,0).getTime()}else if(D.stype=="datetime"){var A=_[2],B=A.split(" "),$=B[0];if(C>0&&$>0)_[1]=C-1;var E=B[1].split(":");return new Date(_[0],_[1],$,E[0],E[1],0,0).getTime()}else if(D.stype=="time"){E=A.split(":"),$=new Date();$.setHours(E[0],E[1],0);return $.getTime()}else if(D.stype=="datetime2"){A=_[2],B=A.split(" "),$=B[0];if(C>0&&$>0)_[1]=C-1;E=B[1].split(":");return new Date(_[0],_[1],$,E[0],E[1],E[2],0).getTime()}else if(D.stype=="time2"){E=A.split(":"),$=new Date();$.setHours(E[0],E[1],E[2]);return $.getTime()}}};DxDataGridDateTimePickCell._upMouseIn=function($){$.className="DxDataGridDateTimePickCell-up-image-mouseover"};DxDataGridDateTimePickCell._upMouseOut=function($){$.className="DxDataGridDateTimePickCell-up-image"};DxDataGridDateTimePickCell._downMouseIn=function($){$.className="DxDataGridDateTimePickCell-down-image-mouseover"};DxDataGridDateTimePickCell._downMouseOut=function($){$.className="DxDataGridDateTimePickCell-down-image"};DxDataGridDateTimePickCell.setFocus=function(C,_,B){var A=top.E_getObject(C,_,B);try{A.focus();DxDataGridDateTimePickCell._moveCursor(A,0);A.onfocus()}catch($){}};DxDataGridDateTimePickCell.jsFunctionCall=function(B,_,A,$,D,C){if(WatCore.isKeyCode(C,$)){stopEvent(C);WatCore.jsFunctionCall(B,_,A,D)}};DxDataGridDateTimePickCell.render=function(C,I,H){var D=H.getAttribute("cid"),A=H.selectNodes("*");for(var F=0;F<A.length;F++){var E=A[F].nodeName;E=E.substring(1,E.length);var J=top.isIE?A[F].text:A[F].textContent;switch(E){case top.DC.TIME_VALUE:var _=I.getElementById(D);DxDataGridDateTimePickCell.timeToStr(_,J);break;case top.DC.VISIBLE:top.E_getObject(frameId,"E_SW_"+D,I).style.visibility=J;break;case top.DC.FOCUS:DxDataGridDateTimePickCell.setFocus(C,D,I);break;case top.DC.ENABLED:var K=top.E_getObject(C,D,I),B=$("#"+D,K).get(0),L=$("#"+D+"up",K).get(0),G=$("#"+D+"down",K).get(0);if(J=="true"){K.disabled=false;B.readOnly=false;if(L!=null){L.disabled=false;G.disabled=false}}else{K.disabled=true;B.readOnly=true;if(L!=null){L.disabled=true;G.disabled=true}}break;default:break}}};function DxICCardSCR28(){}DxICCardSCR28.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id=\""+_+"_rd\" classid=\"clsid:2F593576-E694-46B5-BF4F-9F23C1020642\" height=\"1\" width=\"1\"></OBJECT>";A.innerHTML=D}catch($){alert($)}};DxICCardSCR28.readCardNo=function(F,_,D,C,A){var O=top.E_getObject(F,_,D),H=D.getElementById(_+"_rd");try{H.iComPort=C;H.iTimeOut=A;H.ReadCardNo();if(H.iStatus==22){alert("\u8bfb\u5361\u53f7\u9519\u8bef\u6216\u8005\u8d85\u65f6");return}var P="1",G="1",S="",N="1",I="1",M="1",Q="1",E="1",R="1",B="1",L="1",K="1";S=H.cCardNo;var J=P+"&"+G+"&"+S+"&"+N+"&"+I+"&"+M+"&"+Q+"&"+E+"&"+R+"&"+B+"&"+L+"&"+K;WatCore.setParameter(F,_,top.DC.TEXT,J);WatCore.sendACallToChart(F,_,"enter")}catch($){alert("\u5361\u5177\u521d\u59cb\u9519\u8bef\uff0c\u8bf7\u67e5\u662f\u5426\u5bf9\u5e94\u6b63\u786e\u5361\u5177\u6216\u5b89\u88c5\u9a71\u52a8")}};DxICCardSCR28.readCardInfo=function(F,_,D,C,A){var O=top.E_getObject(F,_,D),H=D.getElementById(_+"_rd");try{H.iComPort=C;H.iTimeOut=A;H.ReadCardInfo();if(H.iStatus==22){H.iComPort="2";H.ReadCardInfo();if(H.iStatus==22){alert("\u8bfb\u5361\u53f7\u9519\u8bef\u6216\u8005\u8d85\u65f6");return}}var P="1",G="2",S="",N="1",I="1",M="1",Q="1",E="1",R="1",B="1",L="1",K="1";P=H.iCardType;S=H.cCardNo;N=H.cIssuedeptid;I=H.cIssuedate;M=H.cIdtype;Q=H.cId;E=H.cName;G=H.iSex;R=H.cBirthDate;B=H.cCompany;L=H.cAddress;K=H.cTelephone;var J=P+"&"+G+"&"+S+"&"+N+"&"+I+"&"+M+"&"+Q+"&"+E+"&"+R+"&"+B+"&"+L+"&"+K;WatCore.setParameter(F,_,top.DC.TEXT,J);WatCore.sendACallToChart(F,_,"enter")}catch($){alert("\u5361\u5177\u521d\u59cb\u9519\u8bef\uff0c\u8bf7\u67e5\u662f\u5426\u5bf9\u5e94\u6b63\u786e\u5361\u5177\u6216\u5b89\u88c5\u9a71\u52a8")}};DxICCardSCR28.readCardStatus=function(D,_,C,B,$){var A=top.E_getObject(D,_,C),E=C.getElementById(_+"_rd");E.iComPort=B;E.iTimeOut=$;E.ReadCardStatus();if(E.iStatus!=0){alert("\u65e0\u5361");return}else{alert("\u6709\u5361");return}};DxICCardSCR28.clear=function(_,$,A){};DxICCardSCR28.render=function(_,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.UPDATE_DATA:var $=C.split("$"),E=$[0];if(E=="cardstatus")DxICCardSCR28.readCardStatus(_,F,D,$[1],$[2]);else if(E=="cardno")DxICCardSCR28.readCardNo(_,F,D,$[1],$[2]);else if(E=="cardinfo")DxICCardSCR28.readCardInfo(_,F,D,$[1],$[2]);break;default:break}}};function DxFjNhEyb(){}DxFjNhEyb.init=function(F,_,H){try{var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),G=WatCore.getWindow(F,D),A=top.E_getObject(F,_,C),E="<OBJECT id=\""+_+"_rd\" codebase=\"./hiseybocx.cab#version=1,0,0,4\" classid=\"CLSID:DA437FA6-6885-4CC5-B916-BF38CA85E274\" height=\"0\" width=\"0\"></OBJECT>",B=H.split("&");E+="<param name=\"UpdateMsg\" value=\""+B[0]+"\">\n";E+="<param name=\"ShowUpdForm\" value=\""+B[1]+"\">\n";E+="<param name=\"CreateReqMsg\" value=\""+B[2]+"\">\n";E+="<param name=\"WaitRespMsg\" value=\""+B[3]+"\">\n";E+="<param name=\"UpdateURL\" value=\""+B[4]+"\">\n";E+="<param name=\"UpdateTimeout\" value=\""+B[5]+"\">\n";E+="<param name=\"ReqFilename\" value=\""+B[6]+"\">\n";E+="<param name=\"RepFileName\" value=\""+B[7]+"\">\n";E+="<param name=\"WaitSleep\" value=\""+B[8]+"\">\n";E+="<param name=\"WaitSleepCy\" value=\""+B[9]+"\">\n";E+="<param name=\"RepTimeout\" value=\""+B[10]+"\">\n";E+="<param name=\"Spliter\" value=\""+B[11]+"\">\n";A.innerHTML=E;A.isInit=true}catch($){alert("1"+$.message)}};DxFjNhEyb.CAGInfo=function(G,B,F,_,H,D){var C=top.E_getObject(G,B,F),E=F.getElementById(B+"_rd"),$;try{$=E.CAGInfo(_,H,D)}catch(A){alert("2"+A.message)}WatCore.setParameter(G,B,top.DC.TEXT,$);WatCore.sendACallToChart(G,B,"enter");WatCore.setActiveState()};DxFjNhEyb.clear=function(C,B,D){var _=D.id,A=D.ownerDocument.getElementById(_+"_rd");try{if(A!=null)D.removeChild(A)}catch($){}};DxFjNhEyb.render=function(_,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.UPDATE_DATA:var $=C.split("&");DxFjNhEyb.CAGInfo(_,E,D,$[0],$[1],$[2]);break;default:break}}};function DxUrlLabel(){}DxUrlLabel.call=function(_,$){WatCore.call(_,$,"enter")};DxUrlLabel.render=function($,C,A){var F=A.getAttribute("cid"),_=A.selectNodes("*");for(var H=0;H<_.length;H++){var G=_[H].nodeName;G=G.substring(1,G.length);var B=top.isIE?_[H].text:_[H].textContent;switch(G){case top.DC.WIDTH:top.E_getObject($,F,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject($,F,C).style.height=B;break;case top.DC.TEXT:var E=F;top.E_getObject($,E,C).innerText=B;break;case top.DC.FILEPATH:E=F;top.E_getObject($,E,C).href=B;break;case top.DC.VISIBLE:top.E_getObject($,F,C).style.visibility=B;break;case top.DC.UPDATE:var D=top.E_getObject($,"E_SW_"+F,C);D.innerHTML="";D.insertAdjacentHTML("BeforeEnd",B);break;case top.DC.BORDERSTYLE:top.E_getObject($,F,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject($,F,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject($,F,C).style.borderColor=B;break;case top.DC.X:top.E_getObject($,"E_SW_"+F,C).style.left=B;break;case top.DC.Y:top.E_getObject($,"E_SW_"+F,C).style.top=B;break;case top.DC.ENABLED:break;default:break}}};function DxRollLabel(){}DxRollLabel.clear=function(_,$,A){};DxRollLabel.render=function($,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=_[G].text;switch(F){case top.DC.WIDTH:top.E_getObject($,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject($,E,C).style.height=B;break;case top.DC.TEXT:var D=E+"rollText";top.E_getObject($,D,C).innerText=B;break;case top.DC.VISIBLE:top.E_getObject($,E,C).style.visibility=B;break;case top.DC.BORDERSTYLE:top.E_getObject($,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject($,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject($,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject($,"E_SW_"+E,C).style.left=B;break;case top.DC.Y:top.E_getObject($,"E_SW_"+E,C).style.top=B;break;case top.DC.ENABLED:if(B=="true")top.E_getObject($,E,C).disabled=false;else top.E_getObject($,E,C).disabled=true;break;case top.DC.fontFamily:top.E_getObject($,E,C).style.fontFamily=B;break;case top.DC.fontSize:top.E_getObject($,E,C).style.fontSize=B;break;case top.DC.fontWeight:top.E_getObject($,E,C).style.fontWeight=B;break;case top.DC.fontStyle:top.E_getObject($,E,C).style.fontStyle=B;break;case top.DC.textDecoration:top.E_getObject($,E,C).style.textDecoration=B;break;case top.DC.BACKGROUND:top.E_getObject($,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject($,E,C).style.color=B;break;case top.DC.TRANSPARENT:top.E_getObject($,E,C).style.background="transparent";break;case top.DC.TRANSPARENTF:top.E_getObject($,E,C).style.background=B;break;default:break}}};function DxICCardFjYkt(){}DxICCardFjYkt.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id=\""+_+"_rd\" classid=\"CLSID:DBAFB143-3F6B-4238-A444-99E9EE954E2F\" height=\"1\" width=\"1\"></OBJECT>";A.innerHTML=D}catch($){alert($)}};DxICCardFjYkt.readCardInfo=function(E,B,D,F){var C=top.E_getObject(E,B,D),G=D.getElementById(B+"_rd"),_,$=G.OpenDevice(12,9,3,"3508");if($==0);else alert("ylzerror:"+G.GetLastErrmsg());try{if(F=="1"){_=G.ReadOpenCardNo4442Local();if(_.length>0){if("L"!=_.substring(0,1)&&"l"!=_.substring(0,1))_=G.ReadOpenCardInfoLocal("3508","1234","")}else _=G.ReadOpenCardInfoLocal("3508","1234","")}else if(F=="2")_=G.ReadOpenCardInfoLocal("3508","1234","");G.CloseDevice();WatCore.setParameter(E,B,top.DC.TEXT,_);WatCore.sendACallToChart(E,B,"enter");WatCore.increaseShowflag()}catch(A){alert("ykt"+A.message)}};DxICCardFjYkt.clear=function(_,$,A){};DxICCardFjYkt.render=function(_,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.UPDATE_DATA:var $=C.split("$"),E=$[0];if(E=="cardinfo")DxICCardFjYkt.readCardInfo(_,F,D,$[1]);break;default:break}}};function DxBoshiPrinter(){}DxBoshiPrinter.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id=\""+_+"_rd\" classid=\"clsid:7CDB6D1E-CD4A-47B4-BFD0-310B66089007\" height=\"0\" width=\"0\"></OBJECT>";A.innerHTML=D}catch($){alert($)}};DxBoshiPrinter.clear=function(_,$,A){};DxBoshiPrinter.boshi_PConnect=function($){try{var A=$.PConnect();return A}catch(_){alert(_.message)}};DxBoshiPrinter.boshi_PDisConnect=function($){try{var A=$.PDisConnect();return A}catch(_){alert(_.message)}};DxBoshiPrinter.boshi_PAdvConnect=function(G,C,E,$,H,F){try{var D=top.E_getObject(G,C,E),_=E.getElementById(C+"_rd"),B=_.PAdvConnect($,H,F);return B}catch(A){alert(A.message)}};DxBoshiPrinter.boshi_PGetCardh=function(E,B,D){try{var C=top.E_getObject(E,B,D),_=D.getElementById(B+"_rd"),G=DxBoshiPrinter.boshi_PConnect(_);if(G!="1"){alert("\u6253\u5370\u673a\u8fde\u63a5\u5931\u8d25");return}var F,$=_.PGetCardh(F);if($==0)F="";WatCore.setParameter(E,B,top.DC.TEXT,F);WatCore.sendACallToChart(E,B,"boshi_PGetCardh");G=DxBoshiPrinter.boshi_PDisConnect(_);if(G!="1"){alert("\u6253\u5370\u673a\u65ad\u5f00\u8fde\u63a5\u5931\u8d25");return}}catch(A){alert(A.message)}};DxBoshiPrinter.boshi_PGetKpr=function(E,B,D){try{var C=top.E_getObject(E,B,D),_=D.getElementById(B+"_rd"),G=DxBoshiPrinter.boshi_PConnect(_);if(G!="1"){alert("\u6253\u5370\u673a\u8fde\u63a5\u5931\u8d25");return}var F,$=_.PGetKpr(F);if($==0)F="";WatCore.setParameter(E,B,top.DC.TEXT,F);WatCore.sendACallToChart(E,B,"boshi_PGetKpr");G=DxBoshiPrinter.boshi_PDisConnect(_);if(G!="1"){alert("\u6253\u5370\u673a\u65ad\u5f00\u8fde\u63a5\u5931\u8d25");return}}catch(A){alert(A.message)}};DxBoshiPrinter.boshi_PGetCurPj=function(E,B,D){try{var C=top.E_getObject(E,B,D),_=D.getElementById(B+"_rd"),G=DxBoshiPrinter.boshi_PConnect(_);if(G!="1"){alert("\u6253\u5370\u673a\u8fde\u63a5\u5931\u8d25");return}var F,$=_.PGetCurPj("",F);if($==0)F="";WatCore.setParameter(E,B,top.DC.TEXT,F);WatCore.sendACallToChart(E,B,"boshi_PGetCurPj");G=DxBoshiPrinter.boshi_PDisConnect(_);if(G!="1"){alert("\u6253\u5370\u673a\u65ad\u5f00\u8fde\u63a5\u5931\u8d25");return}}catch(A){alert(A.message)}};DxBoshiPrinter.boshi_PGetCurPh=function(F,B,E,D){try{var C=top.E_getObject(F,B,E),_=E.getElementById(B+"_rd"),H=DxBoshiPrinter.boshi_PConnect(_);if(H!="1"){alert("\u6253\u5370\u673a\u8fde\u63a5\u5931\u8d25");return}var G,$=_.PGetCurPh(D,G);if($==0)G="";WatCore.setParameter(F,B,top.DC.TEXT,G);WatCore.sendACallToChart(F,B,"boshi_PGetCurPh");H=DxBoshiPrinter.boshi_PDisConnect(_);if(H!="1"){alert("\u6253\u5370\u673a\u65ad\u5f00\u8fde\u63a5\u5931\u8d25");return}}catch(A){alert(A.message)}};DxBoshiPrinter.boshi_PDelPj=function(F,C,E,A){try{var D=top.E_getObject(F,C,E),_=E.getElementById(C+"_rd"),H=DxBoshiPrinter.boshi_PConnect(_);if(H!="1"){alert("\u6253\u5370\u673a\u8fde\u63a5\u5931\u8d25");return}var G,$=_.PDelPj(A,G);if($==0)G="";WatCore.setParameter(F,C,top.DC.TEXT,G);WatCore.sendACallToChart(F,C,"boshi_PDelPj");H=DxBoshiPrinter.boshi_PDisConnect(_);if(H!="1"){alert("\u6253\u5370\u673a\u65ad\u5f00\u8fde\u63a5\u5931\u8d25");return}}catch(B){alert(B.message)}};DxBoshiPrinter.boshi_PFindPh=function(F,C,E,A){try{var D=top.E_getObject(F,C,E),_=E.getElementById(C+"_rd"),H=DxBoshiPrinter.boshi_PConnect(_);if(H!="1"){alert("\u6253\u5370\u673a\u8fde\u63a5\u5931\u8d25");return}var G,$=_.PFindPh(A,G);if($==0)G="";else G=G.substring(0,$);WatCore.setParameter(F,C,top.DC.TEXT,G);WatCore.sendACallToChart(F,C,"boshi_PFindPh");H=DxBoshiPrinter.boshi_PDisConnect(_);if(H!="1"){alert("\u6253\u5370\u673a\u65ad\u5f00\u8fde\u63a5\u5931\u8d25");return}}catch(B){alert(B.message)}};DxBoshiPrinter.boshi_PZrPj=function(F,B,C,D,E,I){try{var H=top.E_getObject(F,B,C),_=C.getElementById(B+"_rd"),G=DxBoshiPrinter.boshi_PConnect(_);if(G!="1"){alert("\u6253\u5370\u673a\u8fde\u63a5\u5931\u8d25");return}var J,$=_.PZrPj(D,E,I,"",J);if($==0)J="";WatCore.setParameter(F,B,top.DC.TEXT,J);WatCore.sendACallToChart(F,B,"boshi_PZrPj");G=DxBoshiPrinter.boshi_PDisConnect(_);if(G!="1"){alert("\u6253\u5370\u673a\u65ad\u5f00\u8fde\u63a5\u5931\u8d25");return}}catch(A){alert(A.message)}};DxBoshiPrinter.render=function(_,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.UPDATE_DATA:var $=C.split("@wat@"),E=$[0];if(E=="boshi_PGetCardh")DxBoshiPrinter.boshi_PGetCardh(_,F,D);else if(E=="boshi_PGetKpr")DxBoshiPrinter.boshi_PGetKpr(_,F,D);else if(E=="boshi_PGetCurPj")DxBoshiPrinter.boshi_PGetCurPj(_,F,D);else if(E=="boshi_PGetCurPh")DxBoshiPrinter.boshi_PGetCurPh(_,F,D,$[1]);else if(E=="boshi_PDelPj")DxBoshiPrinter.boshi_PDelPj(_,F,D,$[1]);else if(E=="boshi_PZrPj")DxBoshiPrinter.boshi_PZrPj(_,F,D,$[1],$[2],$[3]);else if(E=="boshi_PFindPh")DxBoshiPrinter.boshi_PFindPh(_,F,D,$[1]);else if(E=="boshi_PAdvConnect")DxBoshiPrinter.boshi_PAdvConnect(_,F,D,$[1],$[2],$[3]);break;default:break}}};function Grid(){}Grid.init=function(B,D){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,D,A);$(_).unbind("resize");$(_).bind("resize",B,function($){top.Grid.resizeChange(_,D,$)})};Grid.resizeChange=function(A,_,B){var F=A.rows.length;for(var E=0;E<F;E++){var $=A.rows[E].cells.length;for(var D=0;D<$;D++){var C=A.rows[E].cells[D];C.style.height=C.clientHeight+"px"}}};Grid.render=function($,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.VISIBLE:D.getElementById(E).style.visibility=C;break;case top.DC.DISPLAY:var _=top.E_getObject($,"E_SW_"+E,D);if(C=="true"){_.style.visibility="visible";_.style.display="block"}else{_.style.visibility="hidden";_.style.display="none"}break;default:break}}};var READY_STATE_UNINITIALIZED=0,READY_STATE_LOADING=1,READY_STATE_LOADED=2,READY_STATE_INTERACTIVE=3,READY_STATE_COMPLETE=4;function SynCallObj(){var $=WatCore.getXMLHttp();this.sendSynCall=function(C,A){var B=(C.length>1877)?"POST":"POST";$.onreadystatechange=function(){var C=$.readyState,A=null;if(C==READY_STATE_COMPLETE){var _=$.status;if(_==200||_==0){var B=$.responseXML;if(B!=null&&B.documentElement)WatCore.process(B);else{var D=WatCore.stringtoxml($.responseText);WatCore.errorProcess(D);activeState=true;activeValueSendState=true}}else{activeState=true;activeValueSendState=true;stateIsReady=true;WatCore.hiddenLoadingDialog()}}};if(B=="GET"){$.open(B,A+"&content="+C,true);$.setRequestHeader("Content-Type","text/html;charset=utf-8");if(top.isIE){try{$.responseType="msxml-document"}catch(_){}}$.send()}else{$.open(B,A,true);$.setRequestHeader("Content-Type","text/html;charset=utf-8");if(top.isIE){try{$.responseType="msxml-document"}catch(_){}}$.send(C)}}};function DxFyetVml(){}DxFyetVml.setData=function(D,_,H,B){var I=top.E_getObject(D,_,B),J=$("#"+_+"_chart",I).get(0),A=I.issvg;if(J!=null){J.innerHTML="";if(H=="")return;var E=H.split("@"),K=[],F=[];if(!top.isIE||A=="true")K.push("<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" width=\""+J.style.width+"\" height=\""+J.style.height+"\" xmlns=\"http://www.w3.org/2000/svg\">");for(var G=0;G<E.length;G++){var C=DxFyetVml.draw(J,E[G],A,true);if(C[0]=="h")F.push(C[1]);else K.push(C[1])}for(G=0;G<E.length;G++){C=DxFyetVml.draw(J,E[G],A,false);if(C[0]=="h");else K.push(C[1])}if(!top.isIE||A=="true")K.push("</svg>");K.push(F);$(J).html(K.join(""))}};DxFyetVml.drawquxian=function(i,X,L,B,C,R,V,h){var Y=X.split("&"),W=Y[1],I=Y[2],G=Y[3],E=Y[4],A=Y[5],$=Y[6],_=Y[7],U=W/$,H=I/_,g=Y[8],K=Y[9],N=Y[10],M=Y[11],e=L.split("&"),Z=new Array();if(B!=null)Z=B.split("&");var Q=new Array();if(C!=null)Q=C.split("&");var k=new Array();if(R!=null)k=R.split("&");var n=[],F=null,D=null;for(var c=0;c<e.length;++c)if(e[c]&&e[c]!="#"&&e[c]!="*"){var O=e[c].split(",");if(O.length>1)var m=parseFloat(I)+parseFloat(E)-parseFloat((parseFloat(O[0])-parseFloat(A))*H);else m=parseFloat(I)+parseFloat(E)-parseFloat((parseFloat(e[c])-parseFloat(A))*H);var o=parseFloat(G)+parseFloat(U*c);if(h)if(F!=null&&D!=null&&N=="true"){if(top.isIE)n.push("<v:line from=\""+F+","+D+"\" to=\""+o+","+m+"\" strokecolor=\""+g+" \"><v:Stroke dashstyle=\""+M+"\"/></v:line>");if(!top.isIE||V=="true"){n.push("<line x1=\""+F+"\" y1=\""+D+"\" x2=\""+o+"\" y2=\""+m+"\" style=\"stroke:"+g+";stroke-width:1;");if(M=="Solid");else if(M!="Solid")n.push("stroke-dasharray:5,5");n.push("\"/>")}}var f=m;try{for(var a=1;a<O.length;a++){var d=O[a],j=d.split("%"),J=parseFloat(I)+parseFloat(E)-parseFloat((parseFloat(j[0])-parseFloat(A))*H);if(h){if(top.isIE)n.push("<v:line from=\""+o+","+f+"\" to=\""+o+","+J+"\" strokecolor=\""+j[2]+" \"><v:Stroke dashstyle=\""+j[1]+"\"/></v:line>");if(!top.isIE||V=="true"){n.push("<line x1=\""+o+"\" y1=\""+f+"\" x2=\""+o+"\" y2=\""+J+"\" style=\"stroke:"+j[2]+";stroke-width:1;");if(j[1]=="Solid");else if(j[1]!="Solid")n.push("stroke-dasharray:5,5");n.push("\"/>")}}var l=j[3];if(!h)if(l=="1")DxFyetVml.drawX(n,o,J,j[4],V);else if(l=="2")DxFyetVml.drawOva(n,o,J,j[4],j[5],V);else if(l=="3")DxFyetVml.drawDiamond(n,o,J,j[4],j[5],V);else if(l=="4")DxFyetVml.drawOvaX(n,o,J,j[4],j[5],V);else if(l=="5")DxFyetVml.drawOva2(n,o,J,j[4],j[5],V);else if(l=="6")DxFyetVml.drawOvaPoint(n,o,J,j[4],j[5],V);f=J}}catch(S){}var T=Z[c];if(T==null)T=K;var b=k[c];if(b==null)b="1";if(!h)if(b=="1")DxFyetVml.drawX(n,o,m,T,V);else if(b=="2"){var P=Q[c];if(P==null)P=K;DxFyetVml.drawOva(n,o,m,T,P,V)}else if(b=="3"){P=Q[c];if(P==null)P=K;DxFyetVml.drawDiamond(n,o,m,T,P,V)}else if(b=="4"){P=Q[c];if(P==null)P=K;DxFyetVml.drawOvaX(n,o,m,T,P,V)}else if(b=="5"){P=Q[c];if(P==null)P=K;DxFyetVml.drawOva2(n,o,m,T,P,V)}else if(b=="6"){P=Q[c];if(P==null)P=K;DxFyetVml.drawOvaPoint(n,o,m,T,P,V)}F=o;D=m}else if(e[c]=="*"){F=null;D=null}return n.join("")};DxFyetVml.drawtext=function(H,B){var C=B.split("&"),E=C[1],D=C[2],J=C[3],G=C[4],F=C[5],$=C[6],I=C[7],A="";if(top.isIE){if(I=="false")A=";width:1px;word-wrap:break-word;word-break:normal;white-space:normal;";else A="";return"<div noWrap=false style='position:absolute;left:"+E+";top:"+D+";font-size:"+J+";color:"+G+";font-weight:"+F+";"+A+"' >"+$+"</div>"}if(!top.isIE||issvg=="true"){var _=Desktop.textCounter($);if(I=="false")A="width:20px;height:"+_*20+"px;writing-mode:tb;";else A="width:"+(_*20)+"px;height:20px";return"<text x="+E+" y="+D+" style=\"font-size:"+J+";font-weight:"+F+";fill:"+G+";word-spacing:4;"+A+";letter-spacing:1px;\" rotate=\"0\" >"+$+"</text>"}};DxFyetVml.drawhtml=function(_,A){var B=A.split("&"),D=B[1],C=B[2],$=B[3];return"<span style='position:absolute;background:transparent;left:"+D+";top:"+C+";'>"+$+"</span>"};DxFyetVml.draw=function(K,D,_,L){var E=D.split("|"),A=E[0],J=E[1],I=J.split("$"),M=I[0],B;if(I.length>=2)B=I[1];var F;if(I.length>=3)F=I[2];var $;if(I.length>=4)$=I[3];var C=A.split("&"),H=[],G=C[0];H[0]=G;if(G=="h")H[1]=DxFyetVml.drawhtml(K,A);else if(G=="v")H[1]=DxFyetVml.drawquxian(K,A,M,B,F,$,_,L);else if(L)H[1]=DxFyetVml.drawtext(K,A);return H};DxFyetVml.drawX=function(B,C,A,$,_){if(top.isIE){B.push("<v:line from=\""+(C-3)+","+(A-3)+"\" to=\""+(C+3)+","+(A+3)+"\" strokecolor=\""+$+"\" strokeweight=\"2px\"/>");B.push("<v:line from=\""+(C-3)+","+(A+3)+"\" to=\""+(C+3)+","+(A-3)+"\" strokecolor=\""+$+"\" strokeweight=\"2px\"/>")}if(!top.isIE||_=="true"){B.push("<line x1=\""+(C-3)+"\" y1=\""+(A-3)+"\" x2=\""+(C+3)+"\" y2=\""+(A+3)+"\" style=\"stroke:"+$+";stroke-width:2;\"/>");B.push("<line x1=\""+(C-3)+"\" y1=\""+(A+3)+"\" x2=\""+(C+3)+"\" y2=\""+(A-3)+"\" style=\"stroke:"+$+";stroke-width:2;\"/>")}};DxFyetVml.drawOva=function(C,D,B,_,$,A){if(top.isIE)C.push("<v:Oval FillColor='"+_+"' strokecolor='"+$+"' style='position:absolute;width:8; height:8;left:"+(D-4)+"; top:"+(B-4)+"' />");if(!top.isIE||A=="true")C.push("<circle fill='"+_+"' stroke='"+$+"' cx="+D+" cy="+B+" r='4'/>")};DxFyetVml.drawOvaX=function(C,D,B,_,$,A){if(top.isIE){C.push("<v:Oval FillColor='"+_+"' strokecolor='"+$+"' style='position:absolute;width:8; height:8;left:"+(D-4)+"; top:"+(B-4)+"' />");C.push("<v:line from=\""+(D-3)+","+(B-3)+"\" to=\""+(D+3)+","+(B+3)+"\" strokecolor=\""+$+"\" strokeweight=\"2px\"/>");C.push("<v:line from=\""+(D-3)+","+(B+3)+"\" to=\""+(D+3)+","+(B-3)+"\" strokecolor=\""+$+"\" strokeweight=\"2px\"/>")}if(!top.isIE||A=="true"){C.push("<circle fill='"+_+"' opacity:0.9 stroke='"+$+"' cx="+D+" cy="+B+" r='4'/>");C.push("<line x1=\""+(D-3)+"\" y1=\""+(B-3)+"\" x2=\""+(D+3)+"\" y2=\""+(B+3)+"\" style=\"stroke:"+$+";stroke-width:2;\"/>");C.push("<line x1=\""+(D-3)+"\" y1=\""+(B+3)+"\" x2=\""+(D+3)+"\" y2=\""+(B-3)+"\" style=\"stroke:"+$+";stroke-width:2;\"/>")}};DxFyetVml.drawOva2=function(C,D,B,_,$,A){if(top.isIE){C.push("<v:Oval FillColor='white' strokecolor='"+$+"' style='position:absolute;width:8; height:8;left:"+(D-4)+"; top:"+(B-4)+"' />");C.push("<v:Oval FillColor='white' strokecolor='"+_+"' style='position:absolute;width:4; height:4;left:"+(D-2)+"; top:"+(B-2)+"' />")}if(!top.isIE||A=="true"){C.push("<circle fill='none' opacity:0.9 stroke='"+$+"' cx="+D+" cy="+B+" r='4'/>");C.push("<circle fill='none' opacity:0.9 stroke='"+_+"' cx="+D+" cy="+B+" r='2'/>")}};DxFyetVml.drawOvaPoint=function(C,D,B,_,$,A){if(top.isIE){C.push("<v:Oval FillColor='white' strokecolor='"+$+"' style='position:absolute;width:8; height:8;left:"+(D-4)+"; top:"+(B-4)+"' />");C.push("<v:Oval FillColor='"+_+"' strokecolor='"+_+"' style='position:absolute;width:4; height:4;left:"+(D-2)+"; top:"+(B-2)+"' />")}if(!top.isIE||A=="true"){C.push("<circle fill='white' opacity:0.9 stroke='"+$+"' cx="+D+" cy="+B+" r='4'/>");C.push("<circle fill='"+_+"' opacity:0.9 stroke='"+_+"' cx="+D+" cy="+B+" r='1'/>")}};DxFyetVml.drawDiamond=function(C,D,B,_,$,A){if(top.isIE)C.push("<v:PolyLine FillColor='"+_+"' Points='"+(D-4)+" "+B+","+(D)+" "+(B-4)+","+(D+4)+" "+(B)+","+(D)+" "+(B+4)+","+(D-4)+" "+B+"' strokecolor='"+$+"'/>");if(!top.isIE||A=="true")C.push("<polygon style='fill:"+_+";stroke:"+$+";stroke-width:1' points='"+(D-3)+" "+B+","+(D)+" "+(B-3)+","+(D+3)+" "+(B)+","+(D)+" "+(B+3)+","+(D-3)+" "+B+"'/>")};DxFyetVml.showfcline=function(B,C,N,I){var O=top.E_clientModel.E_getWindow(B),$=WatCore.getWindowDoc(B,O),L=top.E_getObject(B,C,$),P=L.ownerDocument.getElementById(C+"_chart");if(I==null||I==undefined)return;var _=I.split("@#@"),Q="";for(var G=0;G<_.length;G++){var D=_[G].split("|"),A=D[0].split(","),F=A[0],E=A[1],H=D[1].split(","),M=H[0],J=H[1],K=D[2];Q+="<v:line style=\"position:absolute;\" strokecolor=\""+K+"\" from=\""+F+","+E+"\" to=\""+M+","+J+"\" >";Q+="<v:stroke dashstyle=\"solid\"/>";Q+="</v:line>"}if(P!=null)P.insertAdjacentHTML("BeforeEnd",Q)};DxFyetVml.render=function($,J,I){var B=I.getAttribute("cid"),_=I.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),L=C,M;if(A>-1){C=L.substring(0,A);M=L.substring(A+1,L.length);var G=M.split("-");M=G[0]}var K=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var F=K.split("@wat@");if(M=="showsmtz")DxFyetVml.setData($,B,F[0],J);else if(M=="showfcline")DxFyetVml.showfcline($,B,J,F[0]);break;case top.DC.BK_IMG:var H=top.E_getObject($,B+"_bkimg",J);if(H!=null)H.src=K;break;case top.DC.CREATE_SCD_HTML:H=top.E_getObject($,B,J);if(H!=null){var E=H.outerHTML;WatCore.setParameter($,B,top.DC.TEXT,E);WatCore.sendACallToChart($,B,"enter")}break;case top.DC.WIDTH:top.E_getObject($,B,J).style.width=K;break;case top.DC.HEIGHT:top.E_getObject($,B,J).style.height=K;break;default:break}}};function DxTwMbHxShow(){}DxTwMbHxShow.init=function(F,_){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),B=top.E_getObject(F,_,C),A="$|$|$|$|$|$|$",$="$|$|$|$|$|$|$",E="$|$|$|$|$|$|$";DxTwMbHxShow.drawhuxi(B,A,$,E)};DxTwMbHxShow.setData=function(D,_,$,C){var A=top.E_getObject(D,_,C);if(A!=null){var B=$.split("@");if(B.length==3)DxTwMbHxShow.drawhuxi(A,B[0],B[1],B[2])}};DxTwMbHxShow.drawhuxi=function(S,E,P,L){var H=S.clientWidth,C=S.clientHeight,G=C/22,W=[],T=(H/48),U=((C-G)/43);for(var M=0,K=H,I=0;M<42;++M,++I){if(I%6==0)W.push("<v:line strokecolor=\"#ff0000\" from=\""+K+",0\" to=\""+K+","+C+"\"/>");else W.push("<v:line strokecolor=\"#c0c0c0\" from=\""+K+",0\" to=\""+K+","+C+"\"/>");K-=T}W.push("<v:line from=\""+K+",0\" to=\""+K+","+C+"\"/>");for(M=1;M<=3;++M)W.push("<v:line from=\""+(K-T*2*M)+","+(M==3?0:G)+"\" to=\""+(K-T*2*M)+","+C+"\"/>");W.push("<v:line from=\"0,0\" to=\""+H+",0\"/>");W.push("<v:line from=\"0,"+G+"\" to=\""+H+","+G+"\"/>");for(var M=0,O=G+U,I=3;M<42;++M,++I){if(I%5==0)W.push("<v:line from=\""+K+","+O+"\" to=\""+H+","+O+"\"/>");else W.push("<v:line strokecolor=\"#3300FF\" from=\""+K+","+O+"\" to=\""+H+","+O+"\"/>");O+=U}W.push("<v:line from=\"0,"+O+"\" to=\""+H+","+O+"\"/>");W.push("<div style=\"position:absolute;top:4;text-align:center;font-size:"+T+";width:"+T*6+"\">\u65f6\u95f4</div>");var $=[2,6,10,14,18,22,2,6,10,14,18,22,2,6,10,14,18,22,2,6,10,14,18,22,2,6,10,14,18,22,2,6,10,14,18,22,2,6,10,14,18,22];for(M=0,K=T*6;M<42;++M,K+=T)W.push("<div style=\"position:absolute;top:4;left:"+K+";text-align:center;font-size:"+T+";width:"+T+"\">"+$[M]+"</div>");W.push("<div style=\"position:absolute;left:"+T/2+";top:"+G+";color:#669900;writing-mode:tb-rl;font-size:"+T+";width:"+T+"\">\u547c\u5438</div>");W.push("<div style=\"position:absolute;left:"+T*2.5+";top:"+G+";color:#ff0000;writing-mode:tb-rl;font-size:"+T+";width:"+T+"\">\u8109\u640f</div>");W.push("<div style=\"position:absolute;left:"+T*4.5+";top:"+G+";color:#3300cc;writing-mode:tb-rl;font-size:"+T+";width:"+T+"\">\u4f53\u6e29</div>");for(M=1;M<=4;++M){O=C-U*((M-1)*5+1);if(M>1)O+=T/2;W.push("<div style=\"position:absolute;color:#669900;text-align:center;top:"+O+";font-size:"+T+";width:"+T*2+"\">"+M*10+"</div>")}for(M=1;M<=9;++M){O=C-U*((M-1)*5+1);if(M>1)O+=T/2;W.push("<div style=\"position:absolute;color:#ff0000;left:"+T*2+";text-align:center;top:"+O+";font-size:"+T+";width:"+T*2+"\">"+M*20+"</div>")}for(M=1;M<=9;++M){O=C-U*((M-1)*5+1);if(M>1)O+=T/2;W.push("<div style=\"position:absolute;color:#3300cc;left:"+T*4+";text-align:center;top:"+O+";font-size:"+T+";width:"+T*2+"\">"+(M+33)+"</div>")}var _=[E,P,L],F=["#669900","#ff0000","#3300cc"],J=[10,20,34],N=[2,4,0.2];for(I=0;I<_.length;++I){var D=_[I];if(D){D=D.replace(/\|/g,",").replace(/\$/g,"#,#,#,#,#,#").split(",");var B=null,A=null,Q=T*6.5,R=F[I];for(M=0;M<D.length;++M)if(D[M]&&D[M]!="#"){var X=Q+T*M,V=C-(parseFloat(D[M])-J[I])*U/N[I];if(B&&A)W.push("<v:line from=\""+B+","+A+"\" to=\""+X+","+V+"\" strokecolor=\""+R+"\"/>");DxTwMbHxShow.drawX(W,X,V,R);B=X;A=V}}}S.innerHTML=W.join("")};DxTwMbHxShow.drawX=function(A,B,_,$){A.push("<v:line from=\""+(B-3)+","+(_-3)+"\" to=\""+(B+3)+","+(_+3)+"\" strokecolor=\""+$+"\" strokeweight=\"2px\"/>");A.push("<v:line from=\""+(B-3)+","+(_+3)+"\" to=\""+(B+3)+","+(_-3)+"\" strokecolor=\""+$+"\" strokeweight=\"2px\"/>")};DxTwMbHxShow.render=function($,C,A){var D=A.getAttribute("cid"),_=A.selectNodes("*");for(var F=0;F<_.length;F++){var E=_[F].nodeName;E=E.substring(1,E.length);var B=_[F].text;switch(E){case top.DC.UPDATE_DATA:DxTwMbHxShow.setData($,D,B,C);break;default:break}}};function DxICCardT6ULC(){}DxICCardT6ULC.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT codebase=\"./DcControl.cab#version=3,1,0,2\" id=\""+_+"_rd\" classid=\"clsid:30646FBE-5764-4974-8948-AA49CE60FD90\" height=\"1\" width=\"1\"></OBJECT>";A.innerHTML=D}catch($){alert($)}};DxICCardT6ULC.readCardInfo=function(D,A,C){var B=top.E_getObject(D,A,C),E=C.getElementById(A+"_rd"),$;try{$=E.GetData();if($==""){alert("GetData error:"+$.toString(10));return}}catch(_){alert(_.message)}WatCore.setParameter(D,A,top.DC.TEXT,$);WatCore.sendACallToChart(D,A,"enter")};DxICCardT6ULC.clear=function(_,$,A){};DxICCardT6ULC.render=function($,C,A){var D=A.getAttribute("cid"),_=A.selectNodes("*");for(var F=0;F<_.length;F++){var E=_[F].nodeName;E=E.substring(1,E.length);var B=top.isIE?_[F].text:_[F].textContent;switch(E){case top.DC.UPDATE_DATA:DxICCardT6ULC.readCardInfo($,D,C);break;default:break}}};function DxProcessBar(){}DxProcessBar.render=function($,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=_[G].text;switch(F){case top.DC.WIDTH:top.E_getObject($,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject($,E,C).style.height=B;break;case top.DC.POSITION:var D=E+"_load";top.E_getObject($,D,C).style.width=B;break;case top.DC.VISIBLE:top.E_getObject($,E,C).style.visibility=B;break;default:break}}};var oDraggingMenu=new Object();oDraggingMenu.drag=false;oDraggingMenu.targetCtrid="";oDraggingMenu.targetID="";oDraggingMenu.targetIcon="";oDraggingMenu.functionId="";oDraggingMenu.functionName="";oDraggingMenu.targetysIcon="";oDraggingMenu.isparent="";oDraggingMenu.num=0;oDraggingMenu.orgX=0;oDraggingMenu.orgY=0;function DxTaskBar(){}DxTaskBar.init=function(A,C){var G=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,G),F=_.getElementById(C),I=_.getElementById(C+"_taskmenu");F.taskmenu=I;WatCore.taskbar=F;var B=WatCore.getWindow(A,G);F.interval=B.setInterval("top.DxTaskBar.getTime('"+A+"','"+C+"')",1000);DxTaskBar.getTime(A,C);var J=new Array(),H=new Array();F.windows=J;F.showwindows=H;F.strWinId=A;F.strCtrId=C;var D=F.getAttribute("windowsize");for(var E=0;E<D;E++){F.windows[E]=$("#"+C+"_window_"+E,F).get(0);F.windows[E].style.display="none";$(F.windows[E]).unbind("mousedown");var K=F.windows[E];$(F.windows[E]).bind("mousedown",function($){top.DxTaskBar.mousedown(F,$)})}WatCore.setFocus(F)};DxTaskBar.mousedown=function(A,B){try{top.DxPopGridText.hideOnClick();DxDataGridPopGridTextCell.hideOnClick()}catch(_){}var D=A.strWinId,E=A.strCtrId,_=EventUtil.getEvent(B),C=EventUtil.getTarget(B),$=DxTaskBar.getWindowContainer(C);if($!=null)if(1==_.which){DxTaskBar.openwindow($);EventUtil.stopPropagation(B)}else if(3==_.which)DxTaskBar.onpop(D,E,E+"_menu",$,B)};DxTaskBar.getWindowContainer=function(A){var B=A,_=null;if($(B).attr("iswindowcontainer")=="true"){_=B;return _}while(!B.panelend&&$(B).attr("iswindowcontainer")!="true"){B=B.parentElement;if($(B).attr("iswindowcontainer")=="true"){_=B;break}if(B.panelend)break}return _};DxTaskBar.agentForBeginDragTitle=function(C,G,_,F,B,D,$,E){try{DxTaskBar.beginDragTitle(C,G,window,_,F,B,D,$,E)}catch(A){}};DxTaskBar.beginDragTitle=function(C,G,F,$,J,B,E,H,K){var I=top.E_clientModel.E_getWindow(C),D=WatCore.getWindowDoc(C,I),_=D.getElementById("dummyDrag");try{_.setCapture();if(_.setCapture)_.setCapture();else if(window.captureEvents)window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);if(window.attachEvent){_.attachEvent("onmousemove",DxTaskBar.agentForDraggingTitleInIE);_.attachEvent("onmouseup",DxTaskBar.agentForEndDraggingTitleInIE)}else{_.addEventListener("mousemove",DxTaskBar.agentForDraggingTitleInIE,false);_.addEventListener("mouseup",DxTaskBar.agentForEndDraggingTitleInIE,false)}oDraggingMenu.targetID=C;oDraggingMenu.targetIcon=$;oDraggingMenu.functionId=B;oDraggingMenu.functionName=E;oDraggingMenu.targetCtrid=G;oDraggingMenu.targetysIcon=J;oDraggingMenu.isparent=H;oDraggingMenu.num=0;DxTaskBar.dragWindow(K,D)}catch(A){window.status="beginDragTitle:"+A.description}};DxTaskBar.changesize=function(_,B,C){var A=C.ownerDocument.getElementById(B+"_windowcontainer"),$=document.body.clientWidth;A.style.width=parseInt($)-45};DxTaskBar.endDraggingTitleInIE=function(C,H){var A=oDraggingMenu.targetID;if(A=="")return;var G=top.E_clientModel.E_getWindow(A),B=WatCore.getWindowDoc(A,G),$=B.getElementById("dummyDrag");try{$.detachEvent("onmousemove",DxTaskBar.agentForDraggingTitleInIE);$.detachEvent("onmouseup",DxTaskBar.agentForEndDraggingTitleInIE);$.releaseCapture();var I=oDraggingMenu.functionId,J=oDraggingMenu.functionName,F=oDraggingMenu.targetysIcon,D=oDraggingMenu.targetCtrid,E=oDraggingMenu.isparent;oDraggingMenu.targetID="";oDraggingMenu.targetIcon="";oDraggingMenu.functionId="";oDraggingMenu.functionName="";oDraggingMenu.targetCtrid="";oDraggingMenu.targetysIcon="";oDraggingMenu.isparent="";oDraggingMenu.num=0;$.style.visibility="hidden";if(oDraggingMenu.drag){oDraggingMenu.drag=false;WatCore.setParameter(A,D,"4005",J);WatCore.setParameter(A,D,"4006",F);top.WatCore.call(A,D,"drag&"+I+"&"+E,H)}}catch(_){}};DxTaskBar.agentForEndDraggingTitleInIE=function(){try{DxTaskBar.endDraggingTitleInIE(window,event)}catch($){MsgConsole.displayErr("agentForEndDraggingTitleInIE:"+$.description)}};DxTaskBar.agentForDraggingTitleInIE=function(){try{DxTaskBar.dragWindow(event,document)}catch($){MsgConsole.displayErr("agentForDraggingTitleInIE:"+$.description)}};DxTaskBar.getMouseCoords=function(B,_){var A=new Object();try{A.x=(!isIE)?B.pageX:B.clientX+_.body.scrollLeft;A.y=(!isIE)?B.pageY:B.clientY+_.body.scrollTop}catch($){}return A};DxTaskBar.dragWindow=function(J,B){var $=B.getElementById("dummyDrag"),I=DxTaskBar.getMouseCoords(J,B).x,F=DxTaskBar.getMouseCoords(J,B).y;try{if(J==null)return;switch(J.type){case"mousedown":if(J.button%2==EVT_LEFT_BUTTON){$.style.zIndex="10000";$.style.top=F;$.style.left=I;oDraggingMenu.orgX=I;oDraggingMenu.orgY=F}break;case"mouseup":var C=parseInt($.style.left)-parseInt(oWrapper.style.left),A=parseInt($.style.top)-parseInt(oWrapper.style.top);if(Math.abs(C)>VALID_RESIZE_OFFSET||Math.abs(A)>VALID_RESIZE_OFFSET);$.style.visibility="hidden";break;case"mousemove":if(J.button%2==EVT_LEFT_BUTTON){if($.style.visibility=="hidden"){var G=parseInt(oDraggingMenu.num);G++;oDraggingMenu.num=G;if(G>=10){oDraggingMenu.drag=true;$.style.visibility="visible";var H=$.ownerDocument.getElementById("dummyDragImg");if(H!=null)if(oDraggingMenu.targetIcon=="")H.src=top.watLocation2+"/resources/component/chuangti.png";else H.src=oDraggingMenu.targetIcon}}var E=parseInt(I)-22;if(E<0)E=0;var D=parseInt(F)-17;if(D<0)D=0;$.style.left=E;$.style.top=D}break;default:break}J.cancelBubble=true}catch(_){window.status="dragWindow:"+_.description}};DxTaskBar.updateData=function(C,D,A,B){var _=B.getElementById(D+"_taskmenu_table_td2");if(_!=null){_.innerHTML="";$(_).html(A)}};DxTaskBar.doAction=function(A,D,$){var _=WatCore.taskbar;if(_!=null){var C=document.getElementById("desktopbar");C.style.zIndex="2";C.style.height="30px";var B=_.taskmenu;if(B!=null&&B.style.visibility!="hidden")B.style.visibility="hidden";if(DxMenu.openMenuList["openmain"])DxMenu.mSetMainMenuItemStyle(DxMenu.openMenuList["openmain"],"outset")}top.WatCore.call(A,D,"menu&"+$,event)};DxTaskBar.taskmenuclick=function(){var $=WatCore.taskbar,_=$.taskmenu;if(_!=null){var A=document.getElementById("desktopbar");if(_.style.visibility=="hidden"){_.style.visibility="visible";A.style.zIndex="100000";A.style.height="100%"}else{_.style.visibility="hidden";A.style.zIndex="2";A.style.height="30px"}}window.clearTimeout(DxMenu.nMenuTimeout);DxMenu.closeAllMenu(true)};DxTaskBar.popwebformshow=function(){var _=$("#popmessageform");_.css("display","block")};DxTaskBar.pushwebformshow=function(){var _=$("#popmessageform");_.css("display","none")};DxTaskBar.closewindow=function(H,B){var D=WatCore.taskbar,A=D.id,E,F=D.showwindows.length;for(var N=0;N<F;N++){var I=D.showwindows[N],J=I.showwindow;if(J==H){E=I;D.showwindows.splice(N,1);break}}E.showwindow="";E.style.width=168+"px";var T=I.ownerDocument.getElementById(E.id+"_center");T.style.width=160+"px";var R=I.ownerDocument.getElementById(E.id+"_right");R.style.left=164+"px";E.style.display="none";E.isuse="false";E.active="false";var M,Q=parseInt(D.showwindows.length);for(N=0;N<Q;N++){I=D.showwindows[N],J=I.showwindow;if(J==B){M=I;M.active="true"}else I.active="false"}if(M==null)return;var $=D.ownerDocument.getElementById(A+"_windowcontainer"),C=parseInt($.clientWidth)-20,_=parseInt(C/Q),O=M.id,P=D.getAttribute("useclass");if(_>=168){_=168;S=20}else var S=parseInt(_/20);for(N=0;N<Q;N++){I=D.showwindows[N],J=I.showwindow;if(J==B&&I.windowstate!=top.WIN_STATE_MIN){I.active="true";var K=I.ownerDocument.getElementById(I.id+"_left");K.className=P+"-taskbutton-use-left";var V=I.ownerDocument.getElementById(I.id+"_center");V.className=P+"-taskbutton-use-center";var G=I.ownerDocument.getElementById(I.id+"_right");G.className=P+"-taskbutton-use-right"}else{I.active="false";DxTaskBar.windowbarout(I.id,P,I)}var L=I.ownerDocument.getElementById(I.id+"_title"),U=I.title;U=top.Desktop.getSltext(U,S);L.innerText=U;I.style.left=N*(_)+"px";I.style.width=_+"px";T=I.ownerDocument.getElementById(I.id+"_center");T.style.width=(_-8)+"px";R=I.ownerDocument.getElementById(I.id+"_right");R.style.left=(_-4)+"px"}};DxTaskBar.openwindow=function(C){var A=C.windowstate;if(A==top.WIN_STATE_MIN){A=C.oldstate;if(A==top.WIN_STATE_MIN)A=top.WIN_STATE_NOR;else if(A==top.WIN_STATE_MAX2)A=top.WIN_STATE_MAX;else if(A==top.WIN_STATE_RES)A=top.WIN_STATE_NOR;else if(A==top.WIN_STATE_NOR)A=top.WIN_STATE_NOR}else if(C.active=="true")A=top.WIN_STATE_MIN;else{top.E_activeWindow(C.showwindow,false);var D=top.DxCache.getAttributeAsBoolean(C.showwindow,"content","windowtaskactivenotify");if(D==true)top.notifyActiveWin(C.showwindow);return}top.updateWindowStateFromServer(C.showwindow,A);D=top.DxCache.getAttributeAsBoolean(C.showwindow,"content","windowtaskactivenotify");if(D==true&&A==top.WIN_STATE_NOR)top.notifyActiveWin(C.showwindow);var _=WatCore.taskbar,G=_.getAttribute("useclass"),F=C.id;if(A==top.WIN_STATE_MIN){C.active="false";DxTaskBar.windowbarout(F,G,C)}else{C.active="true";var $=C.ownerDocument.getElementById(F+"_left");$.className=G+"-taskbutton-use-left";var E=C.ownerDocument.getElementById(F+"_center");E.className=G+"-taskbutton-use-center";var B=C.ownerDocument.getElementById(F+"_right");B.className=G+"-taskbutton-use-right";top.E_activeWindow(C.showwindow,false)}};DxTaskBar.minallwindow=function(B){var _=WatCore.taskbar;if(!_)return;var C=_.id,F=_.getAttribute("useclass"),A=_.showwindows.length;for(var E=0;E<A;E++){var D=_.showwindows[E],$=D.showwindow;if($==B)continue;top.updateWindowStateFromServer(D.showwindow,top.WIN_STATE_MIN)}};DxTaskBar.notifywindowstate=function(D,C,B){var _=WatCore.taskbar,E=_.id,I=_.getAttribute("useclass"),A=_.showwindows.length;for(var H=0;H<A;H++){var G=_.showwindows[H],$=G.showwindow,F=G.id;if($==D){G.windowstate=C;G.oldstate=B;F=G.id;if(G.windowstate==top.WIN_STATE_MIN){G.active="false";DxTaskBar.windowbarout(F,I,G)}break}}};DxTaskBar.activewindowstate=function(A){var F=WatCore.taskbar,B=F.id,C=F.getAttribute("useclass"),G=F.showwindows.length;for(var D=0;D<G;D++){var J=F.showwindows[D],$=J.showwindow,E=J.id;if($==A&&J.windowstate!=top.WIN_STATE_MIN){J.active="true";var _=J.ownerDocument.getElementById(E+"_left");_.className=C+"-taskbutton-use-left";var I=J.ownerDocument.getElementById(E+"_center");I.className=C+"-taskbutton-use-center";var H=J.ownerDocument.getElementById(E+"_right");H.className=C+"-taskbutton-use-right"}else{J.active="false";DxTaskBar.windowbarout(E,C,J)}}};DxTaskBar.addwindow=function(C,F,P,_,O,B){var H=WatCore.taskbar,D=H.id,I,J=H.windows.length;for(var Q=0;Q<J;Q++){var L=H.windows[Q];if(L.isuse!="true"){I=L;break}}if(I==null){top.updateWindowStateFromServer(C,top.WIN_STATE_CLS);return}I.style.display="block";I.isuse="true";I.active="true";I.title=F;I.windowstate=B;I.oldstate=B;I.closebuttonstate=O;I.showwindow=C;I.titlestate=_;var R=I.id,E=I.ownerDocument.getElementById(R+"_img");E.src=P;var S=H.getAttribute("useclass"),M=I.ownerDocument.getElementById(R+"_left");M.className=S+"-taskbutton-use-left";var Y=I.ownerDocument.getElementById(R+"_center");Y.className=S+"-taskbutton-use-center";var K=I.ownerDocument.getElementById(R+"_right");K.className=S+"-taskbutton-use-right";H.showwindows.push(I);var $=H.ownerDocument.getElementById(D+"_windowcontainer"),G=parseInt($.clientWidth)-20,T=parseInt(H.showwindows.length),A=parseInt(G/T);if(A>=168){var N=I.ownerDocument.getElementById(R+"_title");F=top.Desktop.getSltext(F,20);N.innerText=F;A=168;I.style.left=(T-1)*(A)+"px";for(Q=0;Q<T-1;Q++){L=H.showwindows[Q];L.active="false";DxTaskBar.windowbarout(L.id,S,L)}}else{var V=parseInt(A/20);for(Q=0;Q<T;Q++){L=H.showwindows[Q];L.style.left=Q*(A)+"px";L.style.width=A+"px";if(Q<T-1){L.active="false";DxTaskBar.windowbarout(L.id,S,L)}var X=L.ownerDocument.getElementById(L.id+"_center");X.style.width=(A-8)+"px";var U=L.ownerDocument.getElementById(L.id+"_right");U.style.left=(A-4)+"px";var W=L.title;W=top.Desktop.getSltext(W,V);N=L.ownerDocument.getElementById(L.id+"_title");N.innerText=W}}};DxTaskBar.getTime=function(C,E){var K=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,K),J=B.getElementById(E),I=$("#"+E+"_time",J),G=$("#"+E+"_timeshow",J),F=new Date(),M="",L="",O="",P="",D="",H="",A="";M=(F.getYear()<1900)?(1900+F.getYear()):F.getYear();L=F.getMonth()+1;O=F.getDate();P=F.getDay();var _;switch(P){case 0:_="\u661f\u671f\u65e5";break;case 1:_="\u661f\u671f\u4e00";break;case 2:_="\u661f\u671f\u4e8c";break;case 3:_="\u661f\u671f\u4e09";break;case 4:_="\u661f\u671f\u56db";break;case 5:_="\u661f\u671f\u4e94";break;case 6:_="\u661f\u671f\u516d";break}D=DxTaskBar.add_zero(F.getHours());H=DxTaskBar.add_zero(F.getMinutes());A=DxTaskBar.add_zero(F.getSeconds());var N=M+"\u5e74"+L+"\u6708"+O+"\u65e5 "+_+" ";G.text(D+":"+H);I.attr("title",N)};DxTaskBar.add_zero=function($){if($<10)return"0"+$;else return $};DxTaskBar.startbuttonleftin=function(B,C,A){var _=$("#"+B+"_beginbutton_icon",A);_.attr("src",watLocation2+"/resources/core/logo-in.png")};DxTaskBar.startbuttonleftout=function(B,C,A){var _=$("#"+B+"_beginbutton_icon",A);_.attr("src",watLocation2+"/resources/core/logo.png")};DxTaskBar.windowbarin=function(C,D,A){if(A.active!="true"){var $=A.ownerDocument.getElementById(C+"_left");$.className=D+"-taskbutton-in-left";var B=A.ownerDocument.getElementById(C+"_center");B.className=D+"-taskbutton-in-center";var _=A.ownerDocument.getElementById(C+"_right");_.className=D+"-taskbutton-in-right"}};DxTaskBar.windowbarout=function(C,D,A){if(A.active!="true"){var $=A.ownerDocument.getElementById(C+"_left");$.className=D+"-taskbutton-left";var B=A.ownerDocument.getElementById(C+"_center");B.className=D+"-taskbutton-center";var _=A.ownerDocument.getElementById(C+"_right");_.className=D+"-taskbutton-right"}};DxTaskBar.hiddenin=function(_,$){$.className=_+"-in-hiddenwindow"};DxTaskBar.hiddenout=function(_,$){$.className=_+"-hiddenwindow"};DxTaskBar.onpop=function(B,$,A,G,_){var F=document.getElementById("desktopbar");F.style.height="100%";F.style.zIndex="100000";var E=G.windowstate;DxTaskBar.menustate(B,$,1,"true",G);DxTaskBar.menustate(B,$,2,"true",G);DxTaskBar.menustate(B,$,3,"true",G);DxTaskBar.menustate(B,$,5,"true",G);if(G.titlestate==top.TITLE_ONLY_HAS_CLS){DxTaskBar.menustate(B,$,1,"false",G);DxTaskBar.menustate(B,$,2,"false",G);DxTaskBar.menustate(B,$,3,"false",G)}else if(G.titlestate==top.TITLE_ONLY_HAS_MAX){DxTaskBar.menustate(B,$,2,"false",G);DxTaskBar.menustate(B,$,5,"false",G)}else if(G.titlestate==top.TITLE_ONLY_HAS_MIN){DxTaskBar.menustate(B,$,3,"false",G);DxTaskBar.menustate(B,$,5,"false",G)}if(E==top.WIN_STATE_MIN)DxTaskBar.menustate(B,$,2,"false",G);else if(E==top.WIN_STATE_NOR)DxTaskBar.menustate(B,$,1,"false",G);else if(E==top.WIN_STATE_MAX||E==top.WIN_STATE_MAX2)DxTaskBar.menustate(B,$,3,"false",G);if(G.closebuttonstate=="100")DxTaskBar.menustate(B,$,5,"false",G);else DxTaskBar.menustate(B,$,5,"true",G);DxMenu.onpop(B,$,A,_);var C=WatCore.taskbar,D=C.taskmenu;if(D!=null){F=document.getElementById("desktopbar");if(D.style.visibility!="hidden")D.style.visibility="hidden"}EventUtil.stopPropagation(_)};DxTaskBar.onpopmenu=function(A,_,F,G){var H=top.E_clientModel.E_getWindow(A),D=B.getElementById(F+"_list"),B=WatCore.getWindowDoc(A,H),C=WatCore.getWindow(A,H);D.style.visibility="";var I=B.getElementById(F+"_text");I.style.left=0+"px";I.style.top=0+"px";var $=__getAbsoluteCoords(G.srcElement),K=$.w,E=$.h,L=parseInt(G.offsetX)+parseInt($.x)+4-$.sl,J=parseInt(G.offsetY)+parseInt($.y)+2-$.st;if((L+parseInt(D.clientWidth))>K-10);if((J+parseInt(D.clientHeight))>E-10);I.style.zIndex=1000;I.style.left=L+"px";if(parseInt(J)<0)J=4;I.style.top=J+"px";I.onclick()};DxTaskBar.menustate=function(E,B,A,G,H){var F=top.E_clientModel.E_getWindow(E),D=WatCore.getWindowDoc(E,F),C=D.getElementById(B+"_menuitem"+A);C.taskbutton=H;if(G=="true"){$(C).attr("disabled",false);$("#"+B+"_text",C).css("color","")}else{$(C).attr("disabled",true);$("#"+B+"_text",C).css("color","threedshadow");C.signalment="outset";C.style.backgroundColor="transparent";C.style.backgroundImage="";var _=C.ownerDocument.getElementById(C.id+"_image_parent");if(_!=null)_.style.backgroundImage=""}};DxTaskBar.menuAction=function(C,_,$,H){var F=H.getAttribute("disabled");if(F=="disabled")return;var E=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,E),A=B.getElementById(_),G=A.taskbutton;if(G!=null)if($=="1"){var D=G.windowstate;if(D==top.WIN_STATE_MIN)DxTaskBar.openwindow(G);else if(D==top.WIN_STATE_MAX||D==top.WIN_STATE_MAX2){top.updateWindowStateFromServer(G.showwindow,top.WIN_STATE_NOR);top.E_activeWindow(G.showwindow,false)}}else if($=="2")top.updateWindowStateFromServer(G.showwindow,top.WIN_STATE_MIN);else if($=="3"){top.updateWindowStateFromServer(G.showwindow,top.WIN_STATE_MAX);top.E_activeWindow(G.showwindow,false)}else if($=="5")top.updateWindowStateFromServer(G.showwindow,top.WIN_STATE_CLS)};DxTaskBar.clickTaskMenubar=function(){window.clearTimeout(DxMenu.nMenuTimeout);DxMenu.closeAllMenu(true)};DxTaskBar.taskMenuMouseOver=function($){$.className="DxMenuItem-mouseover";$.style.backgroundImage="url('"+watLocation2+"/resources/component/mback.jpg')"};DxTaskBar.taskMenuMouseOut=function($){$.className="DxMenuItem";$.style.backgroundImage=""};DxTaskBar.rightButton=function(B,E,D,_,A){var C=A.getElementById(E+"_rightButtons");if(C!=null){C.innerHTML="";if(D!="0")$(C).html(_);$(C).width(parseInt(D)*24)}};DxTaskBar.addForm=function(A,C,L,I,M){var B=M.split("@"),N=B[0],D=B[1],H=B[2],J=top.E_getObject(A,C,L),G=I.selectSingleNode("server/templates/template[@tid='"+D+"']"),K=top.isIE?G.selectNodes("content")[0].text:G.selectNodes("content")[0].textContent;K=Desktop.getWebFormContent(A,D,K);$("#popmessageform").html(K);if(D)E_watwebformCacheList.push(D);var F=J.ownerDocument.getElementById(C+"img");if(F!=null)F.style.display="none";var E=G.selectNodes("initial");if(E[0]!=null){var _=top.isIE?E[0].text:E[0].textContent;_=Desktop.getWebFormScript(A,D,_);top.WatCore.execInitScript(A,_)}};DxTaskBar.render=function($,I,H,G){var B=H.getAttribute("cid"),_=H.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),K=C,L;if(A>-1){C=K.substring(0,A);L=K.substring(A+1,K.length)}var J=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=J.split("@wat@");if(L=="rendermenu")DxTaskBar.updateData($,B,E[0],I);else if(L=="rightbutton")DxTaskBar.rightButton($,B,E[0],E[1],I);break;case top.DC.TASKBARTITLE:var F=top.E_getObject($,B+"_taskmenu_table_text",I);if(F!=null)F.innerText=J;break;case top.DC.MINALLWINDOW:DxTaskBar.minallwindow();break;case top.DC.WEBTAB_Add_FORM:DxTaskBar.addForm($,B,I,G,J);break;case top.DC.POP:DxTaskBar.popwebformshow();break;case top.DC.PUSH:DxTaskBar.pushwebformshow();break;default:break}}};var buttoncount=0,dragbutton,wsize=0,hsize=0;function DxWatDesktop(){}DxWatDesktop.init=function(D,F){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=B.getElementById(F),E=new Array();A.buttons=E;var _=new E_Map();A.desktopgrid=_;$(A).resize(D,function($){top.DxWatDesktop.resize(A)})};DxWatDesktop.resize=function($){DxWatDesktop.resizechange($)};DxWatDesktop.resizechange=function(H){try{var B=H.buttons,F=H.clientWidth||H.ownerDocument.documentElement.clientWidth,L=parseInt(H.clientHeight||H.ownerDocument.documentElement.clientHeight-30);if(L<0)L=300;$(H).width(F+"px");$(H).height(L+"px");wsize=parseInt(F/80);hsize=parseInt(L/100);var G=0,A=0,J=H.desktopgrid.E_keys.E_list.E_contents.length,K;for(var D=J-1;D>=0;D--){K=H.desktopgrid.E_keys.E_list.E_contents[D];H.desktopgrid.E_remove(K)}for(D=0;D<B.length;D++){var I=B[D],E=parseInt(I.lx),C=parseInt(I.ly);if(I.style.visibility!="hidden")top.DxWatDesktop.setLocation(H,I)}}catch(_){}};DxWatDesktop.locationHasButton=function(B,H,F){var E=0,D=0,$=0,_=0,A=B.clientWidth||B.ownerDocument.documentElement.clientWidth,G=parseInt(B.clientHeight||B.ownerDocument.documentElement.clientHeight-30);if(G<0)G=300;if(H<0)H=0;if(F<0)F=0;if(H>=parseInt(A)-80)H=parseInt(A)-80;if(F>=parseInt(G)-70)F=parseInt(G)-70;E=parseInt(H/100);if(H%100>=50)E++;D=parseInt(F/100);if(F%100>=50)D++;var C=E+","+D;return B.desktopgrid.E_get(C)};DxWatDesktop.setLocation=function(C,B){var I=parseInt(B.lx),G=parseInt(B.ly),F=0,E=0,$=0,_=0,A=C.clientWidth||C.ownerDocument.documentElement.clientWidth,H=parseInt(C.clientHeight||C.ownerDocument.documentElement.clientHeight-30);if(H<0)H=300;if(I<0)I=0;if(G<0)G=0;if(I>=parseInt(A)-80)I=parseInt(A)-80;if(G>=parseInt(H)-70)G=parseInt(H)-70;F=parseInt(I/100);if(I%100>=50)F++;E=parseInt(G/100);if(G%100>=50)E++;if(E>=hsize){E=0;F++}var D=F+","+E;while(C.desktopgrid.E_contains(D)){E++;if(E>=hsize){E=0;F++}D=F+","+E}$=F*100;_=E*100;B.style.left=$+"px";B.style.top=_+"px";C.desktopgrid.E_put(D,B)};DxWatDesktop.updateData=function(A,C,J){var S=top.E_clientModel.E_getWindow(A),L=WatCore.getWindowDoc(A,S),G=L.getElementById(C),N=G.buttons,I=G.desktopgrid.E_keys.E_list.E_contents.length,K;for(var O=I-1;O>=0;O--){K=G.desktopgrid.E_keys.E_list.E_contents[O];G.desktopgrid.E_remove(K)}for(O=0;O<N.length;O++){var T=N[O];T.style.visibility="hidden";T.style.background="transparent";T.style.zIndex="1"}var F=G.clientWidth||G.ownerDocument.documentElement.clientWidth,V=parseInt(G.clientHeight||G.ownerDocument.documentElement.clientHeight-30);if(V<0)V=300;var P=parseInt(F/80),B=parseInt(V/100),Q=N.length,U=J.split("@"),$=0;for(O=0;O<U.length;O++){var R=U[O],M=R.split("$"),H=DxWatDesktop.getNoUseButton(A,C,G,L);H.dimg.src=M[1];H.qxid=M[0];H.dtitle.qxid=M[0];t=top.Desktop.getSltext(M[2],22);H.dtitle.innerText=t;H.dtitle.stitle=M[2];H.candelete=M[3];H.isparent=M[4];var E=parseInt(M[5]),D=parseInt(M[6]);H.lx=E;H.ly=D;H.canmove=M[7];H.systembutton=M[8];H.newcreate=M[9];if(H.dtitle.select==true){var _=top.watLocation2+"/resources/component/dtbbj.png";H.style.backgroundImage="url('"+_+"')"}if(H.style.visibility!="hidden")top.DxWatDesktop.setLocation(G,H)}};DxWatDesktop.desktopclick=function(_){var B=_.buttons;for(var D=0;D<B.length;D++){var A=B[D];A.style.backgroundImage="";A.style.zIndex="1";var $=A.dtitle.stitle;A.dtitle.style.color="white";$=top.Desktop.getSltext($,22);A.dtitle.innerText=$;A.dtitle.select=false;A.dtitle.style.border="1 none #000";A.dtitle.style.background="transparent"}var C=document.selection;if(C!=null)C.empty()};DxWatDesktop.menuAction=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=B.getElementById(E),$=A.currbutton;if($!=null){var _=$.candelete;if(_=="false")alert("\u4e0d\u5141\u8bb8\u5220\u9664");else{$.style.visibility="hidden";$.style.background="transparent";$.style.zIndex="1";DxWatDesktop.resizechange(A);if(A.hasdeletebuttonaction=="true")top.WatCore.call(D,E,"delete&"+$.qxid)}}};DxWatDesktop.buttondblclick=function(){var _=event.srcElement;while(_){if(_.endflag=="true")break;_=_.parentElement}var C=_.wid,D=_.cid,B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),$=A.getElementById(D);if($.getAttribute("hasdblaction")=="true"){WatCore.setParameter(C,D,"4002",_.dtitle.stitle);top.WatCore.call(C,D,"dbl&"+_.qxid+"&"+_.isparent)}};DxWatDesktop.buttonclick=function(){var _=event.srcElement;while(_){if(_.endflag=="true")break;_=_.parentElement}var C=_.wid,D=_.cid,B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),$=A.getElementById(D);DxWatDesktop.gxbutton($,_);top.DxMenu.mDocumentClick();event.cancelBubble=true};DxWatDesktop.gxbutton=function(C,B){var E=C.buttons,A=top.watLocation2+"/resources/component/dtbbj.png";for(var G=0;G<E.length;G++){var D=E[G];if(D==B&&B.dtitle.select==true)continue;D.dtitle.select=false;D.style.backgroundImage="";D.style.zIndex="1";var _=D.dtitle.stitle;D.dtitle.style.color="white";D.dtitle.contentEditable=false;D.dtitle.style.border="1px none #000";D.dtitle.style.background="transparent";_=top.Desktop.getSltext(_,22);D.dtitle.innerText=_}try{B.style.backgroundImage="url('"+A+"')";B.dtitle.style.color="#023D44";if(B.dtitle.select!=true)B.dtitle.innerText=B.dtitle.stitle;B.dtitle.select=true;B.dtitle.style.border="1px none #000";B.dtitle.style.backgroundColor="transparent";B.dtitle.contentEditable=false;var F=document.selection;if(F!=null)F.empty();B.dtitle.blur();B.style.zIndex="100"}catch($){alert($.message)}};DxWatDesktop.popmenu=function(){var _=event.srcElement;while(_){if(_.endflag=="true")break;_=_.parentElement}var C=_.wid,D=_.cid,B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),$=A.getElementById(D);$.currbutton=_;DxWatDesktop.gxbutton($,_);top.DxMenu.onpop(C,D,D+"_menu",event);return false};DxWatDesktop.titleclick=function(){var _=event.srcElement;while(_){if(_.titleendflag=="true")break;_=_.parentElement}if(_.select){if(_.style.backgroundColor!="#FFFFFF"&&_.style.backgroundColor!="#ffffff"){_.contentEditable=true;_.style.border="1 solid #000";_.style.backgroundColor="#FFFFFF";var $=_.parentElement.parentElement.parentElement.parentElement;if($!=null)_.innerText=_.stitle}event.cancelBubble=true}};DxWatDesktop.titlekeydown=function(){var O=event.srcElement;while(O){if(O.titleendflag=="true")break;O=O.parentElement}var H=event.keyCode;if(H==13){var K=O.parentElement.parentElement.parentElement.parentElement;if(K!=null){K.dtitle.style.border="1px none #000";K.dtitle.style.backgroundColor="transparent";K.dtitle.contentEditable=false;if(O!=null){var J=O.stitle,_=document.body.createTextRange();_.moveToElementText(O);var E=_.text;if(E==null||E=="")O.innerText=J;else if(J!=E){var B=O.wid,F=O.cid,M=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,M),L=A.getElementById(F),$=true,C=L.buttons;for(var G=0;G<C.length;G++){var N=C[G];if(N.id==K.id)continue;var I=N.dtitle.stitle;if(I==E){O.innerText=J;$=false}}if($){WatCore.setParameter(B,F,"4003",E);top.WatCore.sendACallToChart(B,F,"titleblur&"+O.qxid,event)}else alert("\u684c\u9762\u5df2\u7ecf\u5305\u542b\u540c\u540d\u529f\u80fd\u5feb\u6377\u65b9\u5f0f")}}var D=document.selection;if(D!=null)D.empty()}window.event.returnValue=false;return false}};DxWatDesktop.titleblur=function(){var M=event.srcElement;while(M){if(M.titleendflag=="true")break;M=M.parentElement}if(M!=null&&M.select==true){var H=M.stitle,_=document.body.createTextRange();_.moveToElementText(M);var D=_.text;if(D.lastIndexOf("...")>=0)return;if(D==null||D=="")M.innerText=H;else if(H!=D){var B=M.wid,E=M.cid,I=M.parentElement.parentElement.parentElement.parentElement,K=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,K),J=A.getElementById(E),$=true,C=J.buttons;for(var F=0;F<C.length;F++){var L=C[F];if(L.id==I.id)continue;var G=L.dtitle.stitle;if(G==D){M.innerText=H;$=false}}if($){WatCore.setParameter(B,E,"4003",D);top.WatCore.sendACallToChart(B,E,"titleblur&"+M.qxid,event)}else alert("\u684c\u9762\u5df2\u7ecf\u5305\u542b\u540c\u540d\u529f\u80fd\u5feb\u6377\u65b9\u5f0f")}}};function selectText(){var $=txtBox.createTextRange();$.moveStart("character",1);$.moveEnd("character",-1);$.select()}DxWatDesktop.agentForBeginDragTitle=function(){var A=event.srcElement;while(A){if(A.endflag=="true")break;A=A.parentElement}var D=A.wid,E=A.cid,C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),_=B.getElementById(E);dragbutton=A;dragbutton.num=0;dragbutton.drag=false;DxWatDesktop.gxbutton(_,A);try{if(A.setCapture)A.setCapture();else if(window.captureEvents)window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);if(window.attachEvent){A.attachEvent("onmousemove",DxWatDesktop.agentForDraggingTitleInIE);A.attachEvent("onmouseup",DxWatDesktop.agentForEndDraggingTitleInIE)}else{A.addEventListener("mousemove",DxWatDesktop.agentForDraggingTitleInIE,false);A.addEventListener("mouseup",DxWatDesktop.agentForEndDraggingTitleInIE,false)}DxWatDesktop.dragWindow(event,B)}catch($){alert($)}};DxWatDesktop.agentForEndDraggingTitleInIE=function(){try{DxWatDesktop.endDraggingTitleInIE(window,event)}catch($){MsgConsole.displayErr("agentForEndDraggingTitleInIE:"+$.description)}};DxWatDesktop.endDraggingTitleInIE=function(C,J){var A=dragbutton.wid,D=dragbutton.cid,I=top.E_clientModel.E_getWindow(A),B=WatCore.getWindowDoc(A,I),G=B.getElementById(D);try{if(top.isIE){dragbutton.detachEvent("onmousemove",DxWatDesktop.agentForDraggingTitleInIE);dragbutton.detachEvent("onmouseup",DxWatDesktop.agentForEndDraggingTitleInIE)}else{dragbutton.removeEventListener("mousemove",DxWatDesktop.agentForDraggingTitleInIE,false);dragbutton.removeEventListener("mouseup",DxWatDesktop.agentForEndDraggingTitleInIE,false)}if(dragbutton.releaseCapture)dragbutton.releaseCapture();else if(window.releaseEvents)window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);var F=parseInt(dragbutton.style.left),E=parseInt(dragbutton.style.top),H=DxWatDesktop.locationHasButton(G,F,E),_=dragbutton.qxid,K=dragbutton.drag;if(H!=null&&H.id!=dragbutton.id&&H.systembutton!="true"&&dragbutton.isparent=="false"){if(H.isparent=="false"){if(window.confirm("\u662f\u5426\u65b0\u5efa\u529f\u80fd\u5939"))top.WatCore.sendACallToChart(A,D,"dragnew&"+H.qxid+"&"+_,J);else top.WatCore.sendACallToChart(A,D,"drag&"+F+"&"+E+"&"+_,J)}else if(H.newcreate=="true")top.WatCore.sendACallToChart(A,D,"dragin&"+H.qxid+"&"+_,J);else top.WatCore.sendACallToChart(A,D,"drag&"+F+"&"+E+"&"+_,J)}else if(K)top.WatCore.sendACallToChart(A,D,"drag&"+F+"&"+E+"&"+_,J);dragbutton.drag=false;dragbutton.num=0;dragbutton=null}catch($){}};DxWatDesktop.agentForEndDraggingTitleInIE=function(){try{DxWatDesktop.endDraggingTitleInIE(window,event)}catch($){MsgConsole.displayErr("agentForEndDraggingTitleInIE:"+$.description)}};DxWatDesktop.agentForDraggingTitleInIE=function(){try{DxWatDesktop.dragWindow(event,document)}catch($){MsgConsole.displayErr("agentForDraggingTitleInIE:"+$.description)}};DxWatDesktop.getMouseCoords=function(B,_){var A=new Object();try{A.x=(!isIE)?B.pageX:B.clientX+_.body.scrollLeft;A.y=(!isIE)?B.pageY:B.clientY+_.body.scrollTop}catch($){}return A};DxWatDesktop.dragWindow=function(G,E){var D=DxWatDesktop.getMouseCoords(G,E).x,_=DxWatDesktop.getMouseCoords(G,E).y;try{if(G==null)return;switch(G.type){case"mousedown":if(G.button%2==EVT_LEFT_BUTTON);break;case"mouseup":var I=parseInt(dragbutton.style.left)-parseInt(oWrapper.style.left),C=parseInt(dragbutton.style.top)-parseInt(oWrapper.style.top);if(Math.abs(I)>VALID_RESIZE_OFFSET||Math.abs(C)>VALID_RESIZE_OFFSET);dragbutton.style.visibility="hidden";break;case"mousemove":var F=dragbutton.canmove;if(F=="false"){if(top.isIE){dragbutton.detachEvent("onmousemove",DxWatDesktop.agentForDraggingTitleInIE);dragbutton.detachEvent("onmouseup",DxWatDesktop.agentForEndDraggingTitleInIE)}else{dragbutton.removeEventListener("mousemove",DxWatDesktop.agentForDraggingTitleInIE,false);dragbutton.removeEventListener("mouseup",DxWatDesktop.agentForEndDraggingTitleInIE,false)}if(dragbutton.releaseCapture)dragbutton.releaseCapture();else if(window.releaseEvents)window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);dragbutton.drag=false;dragbutton=null;alert("\u4e0d\u5141\u8bb8\u79fb\u52a8");return}if(G.button%2==EVT_LEFT_BUTTON){var A=parseInt(dragbutton.num);A++;dragbutton.num=A;if(A>=10){if(!dragbutton.drag)dragbutton.drag=true;if(dragbutton.drag){var J=parseInt(D)-40;if(J<0)J=0;var H=parseInt(_)-35;if(H<0)H=0;$(dragbutton).css({"left":J+"px","top":H+"px"})}}}break;default:break}G.cancelBubble=true}catch(B){window.status="dragWindow:"+B.description}};DxWatDesktop.getNoUseButton=function(C,F,J,A){var D=J.buttons,K,$=J.id+"_button_";for(var G=0;G<D.length;G++){var M=D[G];if(M.style.visibility=="hidden"){K=M;break}}if(K==null){buttoncount++;K=J.ownerDocument.createElement("table");K.id=$+buttoncount;K.wid=C;K.cid=F;if(window.attachEvent){K.attachEvent("oncontextmenu",DxWatDesktop.popmenu);K.attachEvent("onclick",DxWatDesktop.buttonclick);K.attachEvent("ondblclick",DxWatDesktop.buttondblclick);K.attachEvent("onmousedown",DxWatDesktop.agentForBeginDragTitle)}else{K.addEventListener("contextmenu",DxWatDesktop.popmenu,false);K.addEventListener("click",DxWatDesktop.buttonclick,false);K.addEventListener("dblclick",DxWatDesktop.buttondblclick,false)}K.endflag="true";K.border=0;K.cellSpacing="0";K.cellPadding="0";K.style.position="absolute";K.style.left="0px";K.style.top="0px";K.style.cursor="pointer";K.style.width="80px";K.style.height="90px";K.style.tableLayout="fixed";K.style.wordBreak="break-all";K.style.background="transparent";var _=K.insertRow(),E=_.insertCell();_.align="center";E.vAlign="middle";_.height="50px";var H=J.ownerDocument.createElement("span");H.style.position="relative";H.style.width="45px";H.style.height="45px";var B=J.ownerDocument.createElement("img");B.src="";B.style.width="45px";B.style.height="45px";B.id=$+"_img_"+buttoncount;K.dimg=B;H.appendChild(B);E.appendChild(H);var N=K.insertRow(),L=N.insertCell();N.align="center";L.vAlign="top";var I=J.ownerDocument.createElement("span");if(window.attachEvent){I.attachEvent("onclick",DxWatDesktop.titleclick);I.attachEvent("onmousedown",DxWatDesktop.titleclick);I.attachEvent("onblur",DxWatDesktop.titleblur);I.attachEvent("onkeydown",DxWatDesktop.titlekeydown)}else{I.addEventListener("onclick",DxWatDesktop.titleclick,false);I.addEventListener("onmousedown",DxWatDesktop.titleclick,false);I.addEventListener("onblur",DxWatDesktop.titleblur,false);I.addEventListener("onkeydown",DxWatDesktop.titlekeydown,false)}I.style.textOverflow="ellipsis";I.style.border="none";I.style.backgroundColor="transparent";I.style.textAlign="center";I.style.width="80px";I.style.height="20px";I.style.cursor="pointer";I.style.color="white";I.style.font="normal 12px tahoma,arial,verdana,sans-serif";I.titleendflag="true";I.wid=C;I.cid=F;I.style.maxWidth="80px";I.style.wordWrap="break-word";I.id=$+"_text_"+buttoncount;K.dtitle=I;L.appendChild(I);J.appendChild(K);D.push(K)}K.style.visibility="visible";return K};DxWatDesktop.render=function($,C,A){var D=A.getAttribute("cid"),_=A.selectNodes("*");for(var F=0;F<_.length;F++){var E=_[F].nodeName;E=E.substring(1,E.length);var B=top.isIE?_[F].text:_[F].textContent;switch(E){case top.DC.UPDATE_DATA:DxWatDesktop.updateData($,D,B);break;case top.DC.BK_IMG:C.ownerDocument.getElementById(D+"_deskimage").src=B;break;default:break}}};var CreatedOKLodop7766=null,CreatedOKLodopObject,CLodopIsLocal,CLodopJsState;function DxLodopPrinter(){}DxLodopPrinter.needCLodop=function(){try{var B=navigator.userAgent;if(B.match(/Windows\sPhone/i))return true;if(B.match(/iPhone|iPod|iPad/i))return true;if(B.match(/Android/i))return true;if(B.match(/Edge\D?\d+/i))return true;var F=B.match(/Trident\D?\d+/i),_=B.match(/MSIE\D?\d+/i),$=B.match(/OPR\D?\d+/i),D=B.match(/Firefox\D?\d+/i),C=B.match(/x64/i);if((!F)&&(!_)&&(C))return true;else if(D){D=D[0].match(/\d+/);if((D[0]>=41)||(C))return true}else if($){$=$[0].match(/\d+/);if($[0]>=32)return true}else if((!F)&&(!_)){var E=B.match(/Chrome\D?\d+/i);if(E){E=E[0].match(/\d+/);if(E[0]>=41)return true}}return false}catch(A){return true}};DxLodopPrinter.init=function(F,I){try{var C=top.E_clientModel.E_getWindow(F),B=WatCore.getWindowDoc(F,C),_=top.E_getObject(F,I,B),E="<OBJECT id=\""+I+"_obj\" classid=\"clsid:2105C259-1E0C-4534-8141-A753534CB4CA\" width=0 height=0>"+"<embed id=\""+I+"_em\" type=\"application/x-print-lodop\" width=0 height=0></embed>"+"</OBJECT>";_.innerHTML=E}catch($){alert($.message)}if(DxLodopPrinter.needCLodop()){var H=document.head||document.getElementsByTagName("head")[0]||document.documentElement,G=document.createElement("script");G.src="http://localhost:8000/CLodopfuncs.js?priority=1";H.insertBefore(G,H.firstChild);var D=document.createElement("script");D.src="http://localhost:18000/CLodopfuncs.js?priority=0";H.insertBefore(D,H.firstChild);CLodopIsLocal=!!((G.src+D.src).match(/\/\/localho|\/\/127.0.0./i));if(G.attachEvent){CLodopJsState="loading";var A=function(){if(window.event.srcElement.readyState=="loaded")CLodopJsState="complete"};G.attachEvent("onreadystatechange",A);D.attachEvent("onreadystatechange",A)}}};DxLodopPrinter.initshow=function(C,D){try{var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,D,A)}catch($){alert($.message)}};DxLodopPrinter.getLodop=function(F,B,H){var G="<br><font color='#FF00FF'>\u6253\u5370\u63a7\u4ef6\u672a\u5b89\u88c5!\u70b9\u51fb\u8fd9\u91cc<a href='install_lodop32.exe' target='_self'>\u6267\u884c\u5b89\u88c5</a>,\u5b89\u88c5\u540e\u8bf7\u5237\u65b0\u9875\u9762\u6216\u91cd\u65b0\u8fdb\u5165\u3002</font>",E="<br><font color='#FF00FF'>\u6253\u5370\u63a7\u4ef6\u9700\u8981\u5347\u7ea7!\u70b9\u51fb\u8fd9\u91cc<a href='install_lodop32.exe' target='_self'>\u6267\u884c\u5347\u7ea7</a>,\u5347\u7ea7\u540e\u8bf7\u91cd\u65b0\u8fdb\u5165\u3002</font>",J="<br><font color='#FF00FF'>\u6253\u5370\u63a7\u4ef6\u672a\u5b89\u88c5!\u70b9\u51fb\u8fd9\u91cc<a href='install_lodop64.exe' target='_self'>\u6267\u884c\u5b89\u88c5</a>,\u5b89\u88c5\u540e\u8bf7\u5237\u65b0\u9875\u9762\u6216\u91cd\u65b0\u8fdb\u5165\u3002</font>",A="<br><font color='#FF00FF'>\u6253\u5370\u63a7\u4ef6\u9700\u8981\u5347\u7ea7!\u70b9\u51fb\u8fd9\u91cc<a href='install_lodop64.exe' target='_self'>\u6267\u884c\u5347\u7ea7</a>,\u5347\u7ea7\u540e\u8bf7\u91cd\u65b0\u8fdb\u5165\u3002</font>",K="<br><br><font color='#FF00FF'>\uff08\u6ce8\u610f\uff1a\u5982\u66fe\u5b89\u88c5\u8fc7Lodop\u65e7\u7248\u9644\u4ef6npActiveXPLugin,\u8bf7\u5728\u3010\u5de5\u5177\u3011->\u3010\u9644\u52a0\u7ec4\u4ef6\u3011->\u3010\u6269\u5c55\u3011\u4e2d\u5148\u5378\u5b83\uff09</font>",$="<br><br><font color='#FF00FF'>(\u5982\u679c\u6b64\u524d\u6b63\u5e38\uff0c\u4ec5\u56e0\u6d4f\u89c8\u5668\u5347\u7ea7\u6216\u91cd\u5b89\u88c5\u800c\u51fa\u95ee\u9898\uff0c\u9700\u91cd\u65b0\u6267\u884c\u4ee5\u4e0a\u5b89\u88c5\uff09</font>",C="<br><font color='#FF00FF'>CLodop\u4e91\u6253\u5370\u670d\u52a1(localhost\u672c\u5730)\u672a\u5b89\u88c5\u542f\u52a8!\u70b9\u51fb\u8fd9\u91cc<a href='CLodop_Setup_for_Win32NT.exe' target='_self'>\u6267\u884c\u5b89\u88c5</a>,\u5b89\u88c5\u540e\u8bf7\u5237\u65b0\u9875\u9762\u3002</font>",_="<br><font color='#FF00FF'>CLodop\u4e91\u6253\u5370\u670d\u52a1\u9700\u5347\u7ea7!\u70b9\u51fb\u8fd9\u91cc<a href='CLodop_Setup_for_Win32NT.exe' target='_self'>\u6267\u884c\u5347\u7ea7</a>,\u5347\u7ea7\u540e\u8bf7\u5237\u65b0\u9875\u9762\u3002</font>",D;try{var L=(navigator.userAgent.indexOf("MSIE")>=0)||(navigator.userAgent.indexOf("Trident")>=0);if(DxLodopPrinter.needCLodop()){try{D=getCLodop()}catch(I){}if(!D&&document.readyState!=="complete"){alert("C-Lodop\u6ca1\u51c6\u5907\u597d\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01");return}if(!D){if(L);return}else{if(CLODOP.CVERSION<"2.0.6.2")if(L);if(B&&B.parentNode)B.parentNode.removeChild(B);if(F&&F.parentNode)F.parentNode.removeChild(F)}}else{var M=L&&(navigator.userAgent.indexOf("x64")>=0);if(F!=undefined||B!=undefined){if(L)D=F;else D=B}else if(CreatedOKLodop7766==null||CreatedOKLodop7766==undefined){D=document.createElement("object");D.setAttribute("width",0);D.setAttribute("height",0);D.setAttribute("style","position:absolute;left:0px;top:-100px;width:0px;height:0px;");if(L)D.setAttribute("classid","clsid:2105C259-1E0C-4534-8141-A753534CB4CA");else D.setAttribute("type","application/x-print-lodop");document.documentElement.appendChild(D);CreatedOKLodop7766=D}else D=CreatedOKLodop7766;if((D==null)||(typeof(D.VERSION)=="undefined"))return D}if(D.VERSION<"6.1.9.0")return D;D.SET_LICENSES("\u5c71\u4e1c\u7535\u4fe1\u516c\u53f8","47DADCBBE10F6B22F60988D6696B4A70","","");return D}catch(I){top.DxLabel.showLabel_("\u63d0\u793a5:\u6253\u5370\u63a7\u4ef6\u5f02\u5e38,\u8bf7\u91cd\u65b0\u5b89\u88c5Lodop\u6253\u5370\u63a7\u4ef6\u6216\u8005\u8054\u7cfb\u6280\u672f\u4eba\u5458")}};DxLodopPrinter.evalGetCommand=function(strWinID,strCtrID,type,command){var oWin=top.E_clientModel.E_getWindow(strWinID),oDoc=WatCore.getWindowDoc(strWinID,oWin),ob=top.E_getObject(strWinID,strCtrID,oDoc),LODOP=$("#"+strCtrID+"_obj",ob).get(0),LODOPEM=$("#"+strCtrID+"_em",ob).get(0),recontent;try{LODOP=DxLodopPrinter.getLodop(LODOP,LODOPEM,ob);if(LODOP!=null&&(typeof(LODOP.VERSION)!="undefined"))recontent=eval(command)}catch(e){top.DxLabel.showLabel_(e.message)}WatCore.setParameter(strWinID,strCtrID,top.DC.UPDATE_GET_CONTENT,recontent);WatCore.sendACallToChart(strWinID,strCtrID,type)};DxLodopPrinter.evalCommand=function(strWinID,strCtrID,command){var oWin=top.E_clientModel.E_getWindow(strWinID),oDoc=WatCore.getWindowDoc(strWinID,oWin),ob=top.E_getObject(strWinID,strCtrID,oDoc),LODOP=top.E_getObject(strWinID,strCtrID+"_obj",oDoc),LODOPEM=$("#"+strCtrID+"_em",ob).get(0),printresult;try{var strs=command.split("@wat@"),nextpage=strs[0];LODOP=DxLodopPrinter.getLodop(LODOP,LODOPEM,ob);if(LODOP!=null&&(typeof(LODOP.VERSION)!="undefined")){eval(strs[1]);if(parseInt(nextpage)>0)WatCore.sendACallToChart(strWinID,strCtrID,nextpage);else if(printresult!=null&&ob.getAttribute("action")=="true")WatCore.sendACallToChart(strWinID,strCtrID,""+printresult)}else top.DxLabel.showLabel_("\u63d0\u793a4:\u6253\u5370\u63a7\u4ef6\u5f02\u5e38,\u8bf7\u91cd\u65b0\u5b89\u88c5Lodop\u6253\u5370\u63a7\u4ef6\u6216\u8005\u8054\u7cfb\u6280\u672f\u4eba\u5458")}catch(e){top.DxLabel.showLabel_("\u63d0\u793a4:\u6253\u5370\u6570\u636e\u5f02\u5e38,\u8bf7\u91cd\u65b0\u5b89\u88c5Lodop\u6253\u5370\u63a7\u4ef6\u6216\u8005\u8054\u7cfb\u6280\u672f\u4eba\u5458")}};DxLodopPrinter.getPrintControlContent=function(_,A){var $="<style>v:*{behavior:url(#default#VML);}</style><link href='./resources/css/report.css' media='all' rel='stylesheet' type='text/css' />";$+="</head>";$+="<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>";$+=$$(A,_).get(0).outerHTML;$+="</BODY></html>";return $};DxLodopPrinter.clientHeight=function(A){var $=A.parentElement,_=$.clientHeight;return _};DxLodopPrinter.evalCommandshow=function(strWinID,strCtrID,command){var oWin=top.E_clientModel.E_getWindow(strWinID),oDoc=WatCore.getWindowDoc(strWinID,oWin),ob=top.E_getObject(strWinID,strCtrID,oDoc);if(!ob.showal){var html="<OBJECT id=\""+strCtrID+"_obj\" classid=\"clsid:2105C259-1E0C-4534-8141-A753534CB4CA\" width=100% height=100%><embed id=\""+strCtrID+"_em\" type=\"application/x-print-lodop\" width=100% height=100% pluginspage=\"install_lodop.exe\"></embed></OBJECT>";ob.innerHTML=html;ob.showal=true}var LODOP=$("#"+strCtrID+"_obj",ob).get(0),LODOPEM=$("#"+strCtrID+"_em",ob).get(0);try{LODOP=DxLodopPrinter.getLodop(LODOP,LODOPEM,ob);if(LODOP!=null){eval(command);LODOP.SET_SHOW_MODE("HIDE_PAPER_BOARD",true);if(command.indexOf("SET_PREVIEW_WINDOW")<0)LODOP.SET_PREVIEW_WINDOW(1,3,0,0,0,"");LODOP.SET_SHOW_MODE("PREVIEW_IN_BROWSE",true);if(command.indexOf("PRINT_DESIGN")<0&&command.indexOf("PREVIEW")<0&&command.indexOf("LODOP.PRINT()")<0&&command.indexOf("PRINT_SETUP")<0)LODOP.PREVIEW()}}catch(e){top.DxLabel.showLabel_("\u63d0\u793a3:\u6253\u5370\u63a7\u4ef6\u5f02\u5e38,\u8bf7\u91cd\u65b0\u5b89\u88c5Lodop\u6253\u5370\u63a7\u4ef6\u6216\u8005\u8054\u7cfb\u6280\u672f\u4eba\u5458")}};DxLodopPrinter.doAction=function(strWinID,strCtrID,command){var oWin=top.E_clientModel.E_getWindow(strWinID),oDoc=WatCore.getWindowDoc(strWinID,oWin),ob=top.E_getObject(strWinID,strCtrID,oDoc);if(ob.showal){var LODOP=$("#"+strCtrID+"_obj",ob).get(0),LODOPEM=$("#"+strCtrID+"_em",ob).get(0);try{LODOP=DxLodopPrinter.getLodop(LODOP,LODOPEM,ob);if(LODOP!=null)eval(command)}catch(e){alert("\u63d0\u793a2:\u6253\u5370\u63a7\u4ef6\u5f02\u5e38,\u8bf7\u91cd\u65b0\u5b89\u88c5Lodop\u6253\u5370\u63a7\u4ef6\u6216\u8005\u8054\u7cfb\u6280\u672f\u4eba\u5458")}}};DxLodopPrinter.getAllPrinterName=function(E,H,D){var C=top.E_getObject(E,H,D),_=$("#"+H+"_obj",C).get(0),B=$("#"+H+"_em",C).get(0),G="";try{_=DxLodopPrinter.getLodop(_,B,C);if(_!=null){var F=_.GET_PRINTER_COUNT();for(var I=0;I<F;I++){G+=_.GET_PRINTER_NAME(I);if(I<F-1)G+="&"}}}catch(A){watMessage("\u63d0\u793a1:\u6253\u5370\u63a7\u4ef6\u5f02\u5e38,\u8bf7\u91cd\u65b0\u5b89\u88c5Lodop\u6253\u5370\u63a7\u4ef6\u6216\u8005\u8054\u7cfb\u6280\u672f\u4eba\u5458")}WatCore.setParameter(E,H,top.DC.UPDATE_GET_CONTENT,G);WatCore.sendACallToChart(E,H,"press")};DxLodopPrinter.render=function(_,E,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var D=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.UPDATE_DATA:try{top.DxLodopPrinter.evalCommand(_,F,D)}catch($){}break;case top.DC.UPDATE_DATA_SHOW:try{top.DxLodopPrinter.evalCommandshow(_,F,D)}catch($){}break;case top.DC.UPDATE_GET_COMMAND:try{var C=D.split("@");top.DxLodopPrinter.evalGetCommand(_,F,C[0],C[1])}catch($){}break;case top.DC.GET_ALL_PRINTERNAME:try{top.DxLodopPrinter.getAllPrinterName(_,F,E)}catch($){}break;default:break}}};function DxDataCommonFunction(){}DxDataCommonFunction.init=function(B,C){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),$=top.E_getObject(B,C,_);$.dataDom=top.WatCore.createXmlDom("<info/>")};DxDataCommonFunction.updateData=function(F,G,$){var E=top.E_clientModel.E_getWindow(F),D=WatCore.getWindowDoc(F,E),C=D.getElementById(G);if(top.isIE)C.dataDom.loadXML($);else C.dataDom=WatCore.createXmlDom($);C.innerHTML="";var A=C.dataDom.documentElement.selectNodes("cnt"),B="";for(var H=0;H<A.length;H++){if(H==0)B+="<table width=100% border=0 cellpadding='0' cellspacing='0' style='table-layout: fixed;'>";var _=A[H];B+=DxDataCommonFunction.createContent(F,G,C,_,H);if(H==A.length-1)B+="</table>"}insertHTML(C,"BeforeEnd",B)};DxDataCommonFunction.notify=function(A,B,$,_){top.WatCore.call(A,B,_+"&"+$)};DxDataCommonFunction.createContent=function(D,G,J,I,A){var L=I.selectNodes("txt")[0],K=I.selectNodes("icon")[0],E=I.selectNodes("qxid")[0],F=I.selectNodes("delete")[0],B=top.isIE?E.text:E.textContent,$=top.isIE?K.text:K.textContent,H=top.isIE?L.text:L.textContent,C="<tr height='40px' valign='top' style='cursor:pointer' onmouseover=\"top.DxDataCommonFunction.movein(this);\" onclick=\"top.DxDataCommonFunction.notify('"+D+"','"+G+"','"+B+"','action');event.cancelBubble = true;\" onmouseout=\"top.DxDataCommonFunction.moveout(this)\">";C+="<td width='10px'>";C+="<td style='border-bottom:1px solid #B8d7df;text-overflow: ellipsis; /* for IE */ "+" -moz-text-overflow: ellipsis; /* for Firefox,mozilla */ "+" overflow: hidden;"+" white-space: nowrap;"+" border:0px solid;"+" text-align: left'>"+" <div noWrap='true' style=\"border-bottom:1px solid #B8d7df;line-height:40px;height:40px;vertical-align:middle;font-weight:normal;font-size:14px;font-family:Sans-Serif;color:#0B5487;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;\">&nbsp;"+H+"</div>"+" </td>";var _=top.isIE?F.text:F.textContent;if(_=="true")C+="<td vAlign='middle' width='16px' height='40px' >"+"<img onclick=\"top.DxDataCommonFunction.notify('"+D+"','"+G+"','"+B+"','delete');event.cancelBubble = true;\" style='vertical-align:middle;cursor:pointer' src='"+watLocation2+"/resources/core/cycle.png' width=\"12\" height=\"17\" border='0'>"+"</td>";else C+="<td width='16px' height='40px' >"+"</td>";C+="<td width='10px'></td></tr>";return C};DxDataCommonFunction.movein=function(_){_.style.backgroundColor="#c4e0ec";var $=_.ownerDocument.getElementById("qxdelete");if($!=null)$.style.visibility="visible"};DxDataCommonFunction.moveout=function(_){_.style.backgroundColor="transparent";var $=_.ownerDocument.getElementById("qxdelete");if($!=null)$.style.visibility="hidden"};DxDataCommonFunction.clear=function(A,_,B){try{B.dataDom=null}catch($){}};DxDataCommonFunction.render=function($,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.UPDATE_DATA:DxDataCommonFunction.updateData($,E,C);break;case top.DC.WIDTH:var _=top.E_getObject($,E,oDoc);_.style.width=C;break;case top.DC.HEIGHT:_=top.E_getObject($,E,oDoc);_.style.height=C;break;case top.DC.VISIBLE:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.visibility=C;break;case top.DC.X:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.left=C;break;case top.DC.Y:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.top=C;break;default:break}}};function DxHelpTip(){}DxHelpTip.init=function(C,E,D,K,B){var W=top.E_clientModel.E_getWindow(C),O=WatCore.getWindowDoc(C,W),c=top.E_getObject(C,"E_SW_"+E,O),I=$("#"+E,c).get(0),G=I.getAttribute("cookiename");if(G!=null&&G!=""){var L=top.WatCore.getCookie(G);if(L=="true"){c.style.visibility="hidden";return}}I.targetcontrolframeid=D;I.targetControlctrid=K;I.direction=B;var N=$("#"+E+"_em",I).get(0),A=$("#"+E+"_span",I).get(0),P=parseInt(I.style.width),H=parseInt(I.style.height);if(D!=""&&K!=""){var R=top.E_clientModel.E_getWindow(D),M=WatCore.getWindowDoc(D,R),_=M.getElementById(K),V=__getAbsoluteCoords(_),J=parseInt(_.clientWidth),Z=parseInt(_.clientHeight),S=parseInt(V.x),Q=parseInt(V.y),U=parseInt(V.w),b=0,a=0;if(B=="right"){if(S-P-9>0)b=S-P-9;else b=0;a=Z/5+Q;c.style.left=b+"px";c.style.top=a+"px";A.style.left=(P-12)+"px";if(Z<25){A.style.top=2+"px";N.style.top=2+"px"}else{A.style.top=parseInt(H/4+8)+"px";N.style.top=parseInt(H/4+8)+"px"}N.style.left=(P-11)+"px"}else if(B=="left"){var X=S+J+9;if(X+P>U-10)b=U-10-P;else b=X;a=Z/5+Q;c.style.left=b+"px";c.style.top=a+"px";A.style.left=-9+"px";if(Z<25){A.style.top=2+"px";N.style.top=2+"px"}else{A.style.top=parseInt(H/4)+"px";N.style.top=parseInt(H/4)+"px"}N.style.left=-10+"px"}else if(B=="top"){X=S+J/5;if(X>0)b=X;else b=0;if(Z/5>20)a=Q+20;else a=Z+Q+10;c.style.left=b+"px";c.style.top=a+"px";A.style.left=parseInt(P/4)+"px";A.style.top=-9+"px";N.style.left=parseInt(P/4)+"px";N.style.top=-10+"px"}else if(B=="bottom"){X=S+J/5;if(X>0)b=X;else b=0;var T=Z+Q-14-H;if(T<0)a=0;else a=T;c.style.left=b+"px";c.style.top=a+"px";A.style.left=parseInt(P/4)+"px";A.style.top=(H-9)+"px";N.style.left=parseInt(P/4)+"px";N.style.top=(H-8)+"px"}}else{var F=I.getAttribute("windowlocation");if(F==""){if(B=="right"){A.style.left=(P-12)+"px";A.style.top=parseInt(H/4+8)+"px";N.style.left=(P-11)+"px";N.style.top=parseInt(H/4+8)+"px"}else if(B=="left"){A.style.left=-9+"px";A.style.top=parseInt(H/4)+"px";N.style.left=-10+"px";N.style.top=parseInt(H/4)+"px"}else if(B=="top"){A.style.left=parseInt(P/4)+"px";A.style.top=-9+"px";N.style.left=parseInt(P/4)+"px";N.style.top=-10+"px"}else if(B=="bottom"){A.style.left=parseInt(P/4)+"px";A.style.top=(H-9)+"px";N.style.left=parseInt(P/4)+"px";N.style.top=(H-8)+"px"}}else{var V=__getAbsoluteCoords(c),S=parseInt(V.x),Q=parseInt(V.y),U=parseInt(V.w),Y=parseInt(V.h);if(F=="lefttop"){c.style.left=15+"px";c.style.top=10+"px";A.style.left=-9+"px";A.style.top=parseInt(H/2-10)+"px";N.style.left=-10+"px";N.style.top=parseInt(H/2-10)+"px"}else if(F=="leftcenter"){c.style.left=15+"px";c.style.top=Y/2-H/2+"px";A.style.left=-9+"px";A.style.top=parseInt(H/2-10)+"px";N.style.left=-10+"px";N.style.top=parseInt(H/2-10)+"px"}else if(F=="leftbottom"){c.style.left=2+"px";c.style.top=(Y-H-10-30)+"px";A.style.left=4+"px";A.style.top=(H-11)+"px";N.style.left=4+"px";N.style.top=(H-10)+"px"}else if(F=="center"){c.style.left=((U-P)/2)+"px";c.style.top=((Y-H)/2)+"px";A.style.visibility="hidden";N.style.visibility="hidden"}else if(F=="righttop"){c.style.left=(U-P-15)+"px";c.style.top=10+"px";A.style.left=(P-12)+"px";A.style.top=(parseInt(H/2)-10)+"px";N.style.left=(P-11)+"px";N.style.top=(parseInt(H/2)-10)+"px"}else if(F=="rightcenter"){c.style.left=(U-P-15)+"px";c.style.top=(Y/2-H/2)+"px";A.style.left=(P-12)+"px";A.style.top=(parseInt(H/2)-10)+"px";N.style.left=(P-11)+"px";N.style.top=(parseInt(H/2)-10)+"px"}else if(F=="rightbottom"){c.style.left=(U-P-24)+"px";c.style.top=(Y-H-10-30)+"px";A.style.left=(P-48)+"px";A.style.top=(H-11)+"px";N.style.left=(P-48)+"px";N.style.top=(H-10)+"px"}}}};DxHelpTip.imgclick=function(E,F){var D=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,D),G=top.E_getObject(E,"E_SW_"+F,B);G.style.visibility="hidden";var A=$("#"+F,G).get(0),_=A.getAttribute("cookiename");if(_!=null&&_!="")top.WatCore.SetCookie(_,"true");var C=A.getAttribute("action");if(C=="true")WatCore.sendACallToChart(E,F,"click")};DxHelpTip.clear=function(A,_,B){try{B.dataDom=null}catch($){}};DxHelpTip.render=function($,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.UPDATE_DATA:DxHelpTip.updateData($,E,C);break;case top.DC.WIDTH:var _=top.E_getObject($,E,oDoc);_.style.width=C;break;case top.DC.HEIGHT:_=top.E_getObject($,E,oDoc);_.style.height=C;break;case top.DC.VISIBLE:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.visibility=C;break;case top.DC.X:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.left=C;break;case top.DC.Y:_=top.E_getObject($,"E_SW_"+E,oDoc);_.style.top=C;break;default:break}}};function DxCookie(){}DxCookie.init=function(F,A){try{var E=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,E),G=WatCore.getWindow(F,E),B=C.getElementById(A),_=B.getAttribute("cookiename");if(_!=""){var D=top.WatCore.getCookie(_);if(D==null)return;WatCore.setParameter(F,A,top.DC.TEXT,D);WatCore.sendACallToChart(F,A,"enter");WatCore.setActiveState()}}catch($){}};DxCookie.clear=function(_,$,A){};DxCookie.refresh=function(E,A,C){try{var B=C.getElementById(A),_=B.getAttribute("cookiename");if(_!=""){var D=top.WatCore.getCookie(_);if(D==null)return;WatCore.setParameter(E,A,top.DC.TEXT,D);WatCore.sendACallToChart(E,A,"enter");WatCore.setActiveState()}}catch($){}};DxCookie.render=function($,I,H){var B=H.getAttribute("cid"),_=H.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),K=C,L;if(A>-1){C=K.substring(0,A);L=K.substring(A+1,K.length)}var J=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.TEXT:var G=top.E_getObject($,B,I),F=G.getAttribute("cookiename");if(F!="")top.WatCore.SetCookie(F,J);break;case top.DC.UPDATE_DATA:var E=J.split("@wat@");if(L=="refresh")DxCookie.refresh($,B,I);break;default:break}}};function DxFileUploadEx(){}DxFileUploadEx.init=function(D,_,K){var L=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,L),F=WatCore.getWindow(D,L),I=top.E_getObject(D,_,B),M=K.split("@wat@"),G;G=new Array(M.length);for(var H=0;H<M.length;H++){var C=M[H].split("|");if(C.length==2)G[C[0]]=C[1]}var Q=G["script"],P=G["buttonText"],J=G["multi"],O=G["displayData"],E=G["sizeLimit"],N=G["fileExt"],A=G["fileDesc"];I.fileName="";$(B).ready(function(){$$(_+"_uploadify",D,B).uploadify({"uploader":top.watLocation2+"/watscript/uploadify.swf","script":Q,"cancelImg":top.watLocation2+"/watscript/cancel.png","folder":"UploadFile","queueID":_+"_fileQueue","buttonText":P,"auto":true,"multi":J=="true"?true:false,"scriptAccess":"always","displayData":O,"sizeLimit":E,"fileExt":N,"fileDesc":A,"oDoc":B,"oWin":F,"wid":D,onComplete:function(C,E,_,A,B,$,D){top.DxFileUploadEx.completeAction(_,A,$)},onCancel:function(B,E,$,_,A,C,D){top.DxFileUploadEx.clearAction($,_)},onError:function(B,C,$,_,A,D){top.DxFileUploadEx.clearAction($,_)},onAllComplete:function(C,_,A,E,B,$,D){top.DxFileUploadEx.allcompleteAction(_,A)}})})};DxFileUploadEx.clearAction=function($,C){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,$,A);_.fileName=""};DxFileUploadEx.completeAction=function(_,D,$){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,_,B);if(A.fileName!="")A.fileName+="*"+$;else A.fileName+=$};DxFileUploadEx.allcompleteAction=function($,C){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,$,A);if(_.fileName=="")return;top.WatCore.setParameter(C,$,top.DC.FILENAME,_.fileName);_.fileName="";if(_.getAttribute("watevent")=="true")top.WatCore.call(C,$,"press",event);else alert("\u4e0a\u4f20\u6210\u529f")};DxFileUploadEx.create=function(){var $=new Date(),_=""+$.getYear()+$.getMonth()+$.getDate(),A=""+Math.random();A=A.substring(2,A.length);return _+A};DxFileUploadEx.isFileType=function(B,A){var C=B.filetype;if("*.*"==C)return true;var $;if(C!=null&&C!=""){var _=C.indexOf(A.toLowerCase());if(_>=0)$=true;else $=false}else $=true;return $};DxFileUploadEx.execJs=function(paras){var strs=paras.split("@wat@");if(strs.length==4){var strWinId=strs[0],strCtrId=strs[1],action=strs[2],text=strs[3],oWin=top.E_clientModel.E_getWindow(strWinId),ob=top.E_getObject(strWinId,strCtrId,oDoc),oDoc=WatCore.getWindowDoc(strWinId,oWin),win=WatCore.getWindow(strWinId,oWin),jsonobj=eval("("+text+")");$$(strCtrId,strWinId,oDoc).trigger(action,jsonobj)}};DxFileUploadEx.sendFile=function(F,E,A){var K=ob.ownerDocument.getElementById(E+"_uploadify").value;if(A!=null)K=A;if(K==null||K==""){alert("\u8bf7\u8f93\u5165\u4e0a\u4f20\u7684\u5185\u5bb9");return}var B=K.lastIndexOf("\\"),G=K.substring(B+1,K.length);B=G.lastIndexOf(".");if(B<0){alert("\u6587\u4ef6\u540d\u9519\u8bef");return}var $=ob.filepath,C=G.substring(B+1,G.length),_=DxFileUploadEx.isFileType(ob,C);if(!_){alert("\u6240\u9009\u6587\u4ef6\u4e0d\u662f\u5408\u9002\u7c7b\u578b\uff0c\u53ea\u5141\u8bb8\u4e0a\u4f20["+ob.filetype+"]");return}activeState=false;top.WatCore.showLoadingDialog();ob.oldAction=ob.action;var I="";if(ob.useroot=="true"){$="\\";I="&isroot=true"}var D="";if(ob.useabsolute=="true")D="&isabsolute=true";var H=ob.fileserver;if(H==null||H==undefined)H="";var J=encodeURI(G),M=null;if(ob.truename=="true"){M=encodeURI($+G);ob.action=H+ob.action+"?name="+J+"&path="+M+I+D}else{var L=DxFileUploadEx.create();M=encodeURI($+L+"."+C);ob.action=H+ob.action+"?name="+J+"&path="+M+I+D}};DxFileUploadEx.updateSettings=function(B,$,A,_,C){if(_=="displayData")$$($+"_uploadify",B,A).attr("displayData",C);else $$($+"_uploadify",B,A).uploadifySettings(_,C)};DxFileUploadEx.render=function($,F,E){var B=E.getAttribute("cid"),_=E.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),H=C,J;if(A>-1){C=H.substring(0,A);J=H.substring(A+1,H.length)}var G=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.PARAMS:DxFileUploadEx.updateSettings($,B,F,J,G);break;case top.DC.SEND:DxFileUploadEx.init($,B,G);break;case top.DC.TEXT:top.E_getObject($,B,F).ownerDocument.getElementById("u11").value=G;break;case top.DC.FILEPATH:top.E_getObject($,B,F).filepath=G;break;case top.DC.FILE_TYPE:top.E_getObject($,B,F).filetype=G.toLowerCase();break;case top.DC.WIDTH:top.E_getObject($,B,F).style.width=G;break;case top.DC.HEIGHT:top.E_getObject($,B,F).style.height=G;break;case top.DC.VISIBLE:top.E_getObject($,B,F).style.visibility=G;break;case top.DC.BORDERSTYLE:top.E_getObject($,B,F).style.borderStyle=G;break;case top.DC.BORDERWIDTH:top.E_getObject($,B,F).style.borderWidth=G;break;case top.DC.BORDERCOLOR:top.E_getObject($,B,F).style.borderColor=G;break;case top.DC.X:top.E_getObject($,"E_SW_"+B,F).style.left=G;break;case top.DC.Y:top.E_getObject($,"E_SW_"+B,F).style.top=G;break;case top.DC.ENABLED:break;case top.DC.BACKGROUND:top.E_getObject($,B,F).style.backgroundColor=G;break;case top.DC.FOREGROUND:top.E_getObject($,B,F).style.color=G;break;case top.DC.FILE_SERVER:var I=top.E_getObject($,B,F);if(I!=null)I.fileserver=G;break;default:break}}};function DxFlexPaper(){}DxFlexPaper.init=function(D,F){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,F,B);try{var E="SwfFile="+watLocation2+"/flexpaper/blank.swf&Scale=1&ZoomTransition=easeOut&ZoomTime=0.5&ZoomInterval=0.2&PrintEnabled=true&MinZoomSize=0.2&MaxZoomSize=5&InitViewMode=Portrait&ViewModeToolsVisible=true&ZoomToolsVisible=true&NavToolsVisible=true&CursorToolsVisible=true&SearchToolsVisible=true&localeChain=en_US",_="<object id=\""+F+"_doc\" width=\"100%\" height=\"100%\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\">";_+="<param name=\"movie\" value=\""+watLocation2+"/flexpaper/FlexPaperViewer.swf\"/>";_+="<param name=\"allowfullscreen\" value=\"true\" />";_+="<param name=\"wmode\" value=\"opaque\" />";_+="<param name=\"allowscriptaccess\" value=\"always\" />";_+="<param name=\"quality\" value=\"high\" />";_+="<param name=\"flashvars\" value='"+E+"' />";_+="<embed src=\""+watLocation2+"/flexpaper/FlexPaperViewer.swf\" id=\""+F+"_doc2\" flashvars='"+E+"' quality=\"high\" bgcolor=\"#ffffff\" width=\"100%\" height=\"100%\" name=\""+F+"chat\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer_cn\" />";_+="</object>";A.innerHTML=_}catch($){}};DxFlexPaper.renderFlexPaper=function(C,E,B,D){try{var A=top.E_getObject(C,E,B),_="<object id=\""+E+"_doc\" width=\"100%\" height=\"100%\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\">";_+="<param name=\"movie\" value=\""+watLocation2+"/flexpaper/FlexPaperViewer.swf\"/>";_+="<param name=\"allowfullscreen\" value=\"true\" />";_+="<param name=\"wmode\" value=\"opaque\" />";_+="<param name=\"allowscriptaccess\" value=\"always\" />";_+="<param name=\"quality\" value=\"high\" />";_+="<param name=\"flashvars\" value='"+D+"' />";_+="<embed src=\""+watLocation2+"/flexpaper/FlexPaperViewer.swf\" id=\""+E+"_doc2\" flashvars='"+D+"' quality=\"high\" bgcolor=\"#ffffff\" width=\"100%\" height=\"100%\" name=\""+E+"chat\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer_cn\" />";_+="</object>";A.innerHTML=_}catch($){}};DxFlexPaper.loadSwf=function(E,G,B,D){try{var A=top.E_getObject(E,G,B),C;if(top.isIE)C=A.ownerDocument.getElementById(G+"_doc");else C=A.ownerDocument.getElementById(G+"_doc2");if(C!=null)C.loadSwf(D);else{var F="SwfFile="+D+"&Scale=1.0&ZoomTransition=easeOut&ZoomTime=0.5&ZoomInterval=0.2&PrintEnabled=true&MinZoomSize=0.2&MaxZoomSize=5&InitViewMode=Portrait&ViewModeToolsVisible=true&ZoomToolsVisible=true&NavToolsVisible=true&CursorToolsVisible=true&SearchToolsVisible=true&localeChain=en_US",_="<object id=\""+G+"_doc\" width=\"100%\" height=\"100%\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\">";_+="<param name=\"movie\" value=\""+watLocation2+"/flexpaper/FlexPaperViewer.swf\"/>";_+="<param name=\"allowfullscreen\" value=\"true\" />";_+="<param name=\"wmode\" value=\"opaque\" />";_+="<param name=\"allowscriptaccess\" value=\"always\" />";_+="<param name=\"quality\" value=\"high\" />";_+="<param name=\"flashvars\" value='"+F+"' />";_+="<embed src=\""+watLocation2+"/flexpaper/FlexPaperViewer.swf\" id=\""+G+"_doc2\" flashvars='"+F+"' quality=\"high\" bgcolor=\"#ffffff\" width=\"100%\" height=\"100%\" name=\""+G+"chat\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer_cn\" />";_+="</object>";A.innerHTML=_}}catch($){}};DxFlexPaper.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="loadSwf")DxFlexPaper.loadSwf($,B,G,E[0]);else if(J=="renderFlexPaper")DxFlexPaper.renderFlexPaper($,B,G,E[0]);break;default:break}}};if(typeof JSON!=="object")JSON={};(function(){"use strict";function f($){return $<10?"0"+$:$}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var cx,escapable,gap,indent,meta,rep;function quote($){escapable.lastIndex=0;return escapable.test($)?"\""+$.replace(escapable,function(_){var $=meta[_];return typeof $==="string"?$:"\\u"+("0000"+_.charCodeAt(0).toString(16)).slice(-4)})+"\"":"\""+$+"\""}function str(F,_){var G,E,$,B,C=gap,D,A=_[F];if(A&&typeof A==="object"&&typeof A.toJSON==="function")A=A.toJSON(F);if(typeof rep==="function")A=rep.call(_,F,A);switch(typeof A){case"string":return quote(A);case"number":return isFinite(A)?String(A):"null";case"boolean":case"null":return String(A);case"object":if(!A)return"null";gap+=indent;D=[];if(Object.prototype.toString.apply(A)==="[object Array]"){B=A.length;for(G=0;G<B;G+=1)D[G]=str(G,A)||"null";$=D.length===0?"[]":gap?"[\n"+gap+D.join(",\n"+gap)+"\n"+C+"]":"["+D.join(",")+"]";gap=C;return $}if(rep&&typeof rep==="object"){B=rep.length;for(G=0;G<B;G+=1)if(typeof rep[G]==="string"){E=rep[G];$=str(E,A);if($)D.push(quote(E)+(gap?": ":":")+$)}}else for(E in A)if(Object.prototype.hasOwnProperty.call(A,E)){$=str(E,A);if($)D.push(quote(E)+(gap?": ":":")+$)}$=D.length===0?"{}":gap?"{\n"+gap+D.join(",\n"+gap)+"\n"+C+"}":"{"+D.join(",")+"}";gap=C;return $}}if(typeof JSON.stringify!=="function"){escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\"":"\\\"","\\":"\\\\"};JSON.stringify=function(_,$,A){var B;gap="";indent="";if(typeof A==="number"){for(B=0;B<A;B+=1)indent+=" "}else if(typeof A==="string")indent=A;rep=$;if($&&typeof $!=="function"&&(typeof $!=="object"||typeof $.length!=="number"))throw new Error("JSON.stringify");return str("",{"":_})}}if(typeof JSON.parse!=="function"){cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;JSON.parse=function(text,reviver){var j;function walk(_,C){var B,$,A=_[C];if(A&&typeof A==="object")for(B in A)if(Object.prototype.hasOwnProperty.call(A,B)){$=walk(A,B);if($!==undefined)A[B]=$;else delete A[B]}return reviver.call(_,C,A)}text=String(text);cx.lastIndex=0;if(cx.test(text))text=text.replace(cx,function($){return"\\u"+("0000"+$.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());var operate=true;ra_sourceName="";ra_field0="";ra_field1="";ra_field2="";ra_field3="";helpdesk_pid="3001";helpdesk_style="ra_style1";ra_rules="A";serviceDeskIds="3";container="ra";strWin="";helpdesk_online="";function DxYcxzHelpdesk(){}DxYcxzHelpdesk.show=function(_,A,B){var $=document.createElement("script");$.setAttribute("type","text/javascript");$.setAttribute("language","javascript");$.setAttribute("src",B+"/js/ewei_helpdesk.js");$.setAttribute("defer","defer");document.body.appendChild($)};DxYcxzHelpdesk.action=function(strWinId,strConId,serverUrl,f0,f1,f2,f3){eval("requestHelpdesk('"+serverUrl+"','/helpdesk.jhtm?id=5&field0="+f0+"&field1="+f1+"&field2="+f2+"&field3="+f3+"&callback=helpdesk_jsonpCallback');")};DxYcxzHelpdesk.inputTipFocus=function($){if($.value==$.getAttribute("label")){$.value="";$.style.color="#000"}};DxYcxzHelpdesk.inputTipBlur=function($){if($.value==""){$.value=$.getAttribute("label");$.style.color="#AAA"}};DxYcxzHelpdesk.loadAssist2=function(_){var $=document.createElement("script");$.setAttribute("type","text/javascript");$.setAttribute("language","javascript");$.setAttribute("src",_+"/js/ewei_helpdesk.js");$.setAttribute("defer","defer");document.body.appendChild($)};DxYcxzHelpdesk.loadAssist=function(){var A=document.createElement("link");A.setAttribute("rel","stylesheet");A.setAttribute("type","text/css");A.setAttribute("href",ra_websiteRoot+"/css/assist.css");document.body.appendChild(A);var _=document.createElement("script");_.setAttribute("type","text/javascript");_.setAttribute("language","javascript");_.setAttribute("src",ra_websiteRoot+"/js/ajax.js");document.body.appendChild(_);var $=document.createElement("script");if(typeof(ra_rules)=="undefined")ra_rules="A";$.src=ra_websiteRoot+"/ajax/outsideLink.jhtm?providerNo="+helpdesk_pid+"&serviceDeskIds="+serviceDeskIds+"&rules="+ra_rules+"&outsideLinkType=assist&outsideLinkDomain="+window.document.domain+"&callback=top.DxYcxzHelpdesk.ra_jsonpCallback";$.charset="utf-8";document.body.appendChild($)};var count=0;DxYcxzHelpdesk.ra_jsonpCallback=function(C){if(typeof(helpdesk_face)=="undefined")helpdesk_face=ra_websiteRoot+"/images/face/default_50_03.png";operate=C.assistable;var G="";G+="<div id=\"ra_mask\" style=\"display:none;\"></div>";if(C.assistable==true)G+="<div id=\"ra_login\" class=\"ui-dialog ui-widget ui-widget-content\" style=\"display:none;\">";else G+="<div id=\"ra_login\" class=\"ui-dialog ui-widget ui-widget-content\" style=\"display:none;width:470px\">";G+="<div class=\"ui-dialog-titlebar ui-widget-header padding5px\">"+"<a class=\"ui-dialog-titlebar-close ui-corner-all\" onclick=\"top.DxYcxzHelpdesk.ra_closeDialog();\" role=\"button\" unselectable=\"on\" id=\"ra_fnquit\" style=\"-moz-user-select: none;cursor:pointer;\"><span class=\"ui-icon ui-icon-closethick\" unselectable=\"on\" style=\"-moz-user-select: none;\">close</span></a>";if(C.assistable==true)G+="<span class=\"ui-dialog-title\">\u8bf7\u6c42\u534f\u52a9</span></div>";else G+="<span class=\"ui-dialog-title\">\u79bb\u7ebf\u7559\u8a00</span></div>";if(C.assistable==true)G+="<form action=\""+ra_websiteRoot+"/remoteAssistance.jhtm\" method=\"get\" id=\"ra_LoginForm\" name=\"ra_LoginForm\" accept-charset=\"utf-8\">"+"<input type=\"hidden\" name=\"domain\" id=\"domain\"/>"+"<input type=\"hidden\" name=\"providerNo\" id=\"providerNo\"/>"+"<input type=\"hidden\" name=\"sourceName\" id=\"sourceName\"/>"+"<input type=\"hidden\" name=\"serviceDeskIds\" id=\"serviceDeskIds\"/>"+"<table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"10\"><tr>"+"<td colspan=\"3\" class=\"line_dot\" style=\"border-bottom: 1px dotted #CCCCCC;font-size:12px;\">"+"<img src=\""+ra_websiteRoot+"/images/face/default_50.png\" width=\"50\" height=\"50\" style=\"float:left;margin-right:10px;\" />"+"<div><span style=\"color:#999999;line-height:25px\">\u4f60\u6b63\u5728\u8fde\u63a5\u670d\u52a1\u5546</span><br />"+"<strong style=\"line-height:25px;\">"+C.providerName+"</strong></div></td></tr>";else{var $=C.knowledgeUrl;if($!="")$="href="+$;G+="<form action=\""+ra_websiteRoot+"/leaveWordRequestAdd.jhtm\" method=\"post\" id=\"ra_LoginForm\" name=\"ra_LoginForm\" accept-charset=\"utf-8\">"+"<input type=\"hidden\" name=\"providerNo\" id=\"providerNo\"/>"+"<input type=\"hidden\" name=\"sourceName\" id=\"sourceName\"/>"+"<input type=\"hidden\" name=\"serviceDeskIds\" id=\"serviceDeskIds\"/>"+"<div class=\"padding5px\" style=\"border-bottom: 1px dotted #CCCCCC;font-size:12px;\">"+"<img src=\""+helpdesk_face+"\" width=\"50\" height=\"50\" style=\"float:left;margin-right:10px;\" />"+"<div><span style=\"color:#999999;line-height:25px\">\u4f60\u6b63\u5728\u8fde\u63a5\u670d\u52a1\u5546"+C.providerName+"</span><br />"+"<strong style=\"line-height:25px;\">\u5f53\u524d\u65e0\u5de5\u7a0b\u5e08\u5728\u7ebf\uff0c\u8bf7\u7559\u8a00</strong><span class=\"c10\">*</span>\u60a8\u8fd8\u53ef\u4ee5<a target=\"_blank\""+$+">\u81ea\u52a9\u67e5\u8be2</a></div></div>"+"<div class=\"padding5px center\"><textarea name=\"wcNote\" id=\"wc_note\" rows=\"8\" label=\"\u4eb2\uff0c\u7ed9\u6211\u7559\u8a00\uff0c\u7b2c\u4e00\u65f6\u95f4\u4e3a\u4f60\u5904\u7406\u54df\uff01\" style=\"width:440px;padding:5px;font-size:12px;line-height:1.5em;color:#AAA\" onfocus=\"top.DxYcxzHelpdesk.inputTipFocus(this)\" onblur=\"top.DxYcxzHelpdesk.inputTipBlur(this)\">\u4eb2\uff0c\u7ed9\u6211\u7559\u8a00\uff0c\u7b2c\u4e00\u65f6\u95f4\u4e3a\u4f60\u5904\u7406\u54df\uff01</textarea></div>"+"<table border=\"0\" cellpadding=\"0\" cellspacing=\"10\">"}if(ra_rules=="C"){count++;G+="<tr><td class=\"lable\" nowrap=\"nowrap\">\u8bf7\u6c42\u670d\u52a1\u53f0<span class=\"c10 size18\">*</span></td>"+"<td><select id=\"serviceDeskId\" name=\"serviceDeskId\" onkeydown=\"top.DxYcxzHelpdesk.ra_keyDown(event);\"><option value=\"\">--\u8bf7\u9009\u62e9--</option>";if(C.serviceDeskIds!=null&&C.serviceDeskNames!=null){var B=new Array(),A=new Array();B=C.serviceDeskIds.split(",");A=C.serviceDeskNames.split(",");for(i=0;i<B.length;i++)G+="<option value=\""+B[i]+"\">"+A[i]+"</option>"}G+="</select></td></tr>"}if(C.field0!=null&&C.field0.visible==true){count++;G+="<tr><td class=\"lable\" nowrap=\"nowrap\"><input id=\"ra_field0Name\" name=\"field0Name\" type=\"hidden\" value=\""+C.field0.name+"\"/><input id=\"ra_field0Expression\" name=\"field0Expression\" type=\"hidden\" value=\""+C.field0.expression+"\"/>";G+=C.field0.name;if(C.field0.required)G+="<span class=\"c10 size18\">*</span>";G+="</td><td><input id=\"ra_field0\" name=\"field0\" type=\"text\"";if(typeof(ra_field0)!="undefined")G+=" value=\""+ra_field0+"\"";G+=" onkeydown=\"top.DxYcxzHelpdesk.ra_keyDown(event);\"/></td><td><span class=\"c03\">"+C.field0.tip+"</span></td></tr>"}if(C.field1!=null&&C.field1.visible==true){count++;G+="<tr><td class=\"lable\" nowrap=\"nowrap\"><input id=\"ra_field1Name\" name=\"field1Name\" type=\"hidden\" value=\""+C.field1.name+"\"/><input id=\"ra_field1Expression\" name=\"field1Expression\" type=\"hidden\" value=\""+C.field1.expression+"\"/>";G+=C.field1.name;if(C.field1.required)G+="<span class=\"c10 size18\">*</span>";G+="</td><td><input id=\"ra_field1\" name=\"field1\" type=\"text\"";if(typeof(ra_field1)!="undefined")G+=" value=\""+ra_field1+"\"";G+=" onkeydown=\"top.DxYcxzHelpdesk.ra_keyDown(event);\"/></td><td><span class=\"c03\">"+C.field1.tip+"</span></td></tr>"}if(C.field2!=null&&C.field2.visible==true){count++;G+="<tr><td class=\"lable\" nowrap=\"nowrap\"><input id=\"ra_field2Name\" name=\"field2Name\" type=\"hidden\" value=\""+C.field2.name+"\"/><input id=\"ra_field2Expression\" name=\"field2Expression\" type=\"hidden\" value=\""+C.field2.expression+"\"/>";G+=C.field2.name;if(C.field2.required)G+="<span class=\"c10 size18\">*</span>";G+="</td><td><input id=\"ra_field2\" name=\"field2\" type=\"text\"";if(typeof(ra_field2)!="undefined")G+=" value=\""+ra_field2+"\"";G+=" onkeydown=\"top.DxYcxzHelpdesk.ra_keyDown(event);\"/></td><td><span class=\"c03\">"+C.field2.tip+"</span></td></tr>"}if(C.field3!=null&&C.field3.visible==true){count++;G+="<tr><td class=\"lable\" nowrap=\"nowrap\"><input id=\"ra_field3Name\" name=\"field3Name\" type=\"hidden\" value=\""+C.field3.name+"\"/><input id=\"ra_field3Expression\" name=\"field3Expression\" type=\"hidden\" value=\""+C.field3.expression+"\"/>";G+=C.field3.name;if(C.field3.required)G+="<span class=\"c10 size18\">*</span>";G+="</td><td><input id=\"ra_field3\" name=\"field3\" type=\"text\"";if(typeof(ra_field3)!="undefined")G+=" value=\""+ra_field3+"\"";G+=" onkeydown=\"top.DxYcxzHelpdesk.ra_keyDown(event);\"/></td><td><span class=\"c03\">"+C.field3.tip+"</span></td></tr>"}if(C.assistable==true)G+="<tr><td width=\"28%\">&nbsp;</td><td width=\"35%\"><label><input name=\"wc_fnlogin\" type=\"button\" class=\"button_01_01 cursorhand\" id=\"wc_fnlogin\" value=\"\u63d0 \u4ea4\" onclick=\"top.DxYcxzHelpdesk.ra_remoteAssistance();\"/></label></td><td width=\"37%\"></td></tr>";else G+="<tr><td></td><td><input type=\"checkbox\" id=\"isMailNotice\" onclick=\"top.setRaMailNotice(this);\"/>&nbsp;&nbsp;\u63a5\u53d7\u90ae\u4ef6\u901a\u77e5&nbsp;&nbsp;<div id=\"ra_mailInput\" style=\"display:none;\"><input type=\"text\" style=\"font-size: 12px;padding: 3px;\" id=\"mailNotice\" name=\"mailNotice\"/></div></td></tr>"+"<tr><td></td><td><label><input name=\"wc_fnlogin\" type=\"button\" class=\"button_01_01 cursorhand\" id=\"wc_fnlogin\" value=\"\u63d0 \u4ea4\" onclick=\"top.DxYcxzHelpdesk.ra_remoteAssistance();\"/></label></td><td></td></tr>";G+="</table></form>";if(C.assistable==true)G+="<div class=\"box02 padding10px c03\"> <img src=\""+ra_websiteRoot+"/images/icon_info.gif\" width=\"16\" height=\"16\" class=\"v_middle\" /> \u9996\u6b21\u63a5\u53d7\u8fdc\u7a0b\u534f\u52a9\uff0c\u9700\u63a5\u53d7\u5b89\u88c5\u6d4f\u89c8\u5668\u63d2\u4ef6\uff0c\u8bf7\u6ce8\u610f\u9875\u9762\u63d0\u793a</div>";else G+="<div class=\"box02 padding10px c03\"> </div>";G+="</div></div></div>";var E=document.createElement("div");E.innerHTML=G;document.body.appendChild(E);var H;if(C.assistable==true){if(helpdesk_style=="ra_style3")H="<img src=\""+helpdesk_online+"\" id=\"infocareChatFloatDiv\" onclick=\"top.DxYcxzHelpdesk.ra_openDialog();\" style=\"width:90px;position:fixed;right:0;top:104px;z-index:999999;cursor:pointer; _position: absolute; _TOP: expression(documentElement.scrollTop+documentElement.clientHeight-this.offsetHeight-400);\"/>";else H="<img src=\""+helpdesk_online+"\" style=\"cursor:pointer; vertical-align:middle\" name=\"ra_fnbtn\" id=\"ra_online_help_btn\" style=\"cursor:pointer;\" onclick=\"top.DxYcxzHelpdesk.ra_openDialog();\"/>"}else if(helpdesk_style=="ra_style3")H="<img src=\""+helpdesk_online+"\" onclick=\"top.DxYcxzHelpdesk.ra_openDialog();\" id=\"infocareChatFloatDiv\" style=\"width:90px;position:fixed;right:0;top:104px;z-index:999999;cursor:pointer; _position: absolute; _TOP: expression(documentElement.scrollTop+documentElement.clientHeight-this.offsetHeight-400);\" title=\"\u5f53\u524d\u65e0\u5de5\u7a0b\u5e08\u5728\u7ebf\"/>";else H="<img src=\""+helpdesk_online+"\" onclick=\"top.DxYcxzHelpdesk.ra_openDialog();\" style=\"cursor:pointer; vertical-align:middle\" name=\"ra_fnbtn\" id=\"ra_offline_help_btn\" title=\"\u5f53\u524d\u65e0\u5de5\u7a0b\u5e08\u5728\u7ebf\"/>";var F=top.E_clientModel.E_getWindow(strWin),D=WatCore.getWindowDoc(strWin,F),_=top.E_getObject(strWin,container,D);_.innerHTML=H};DxYcxzHelpdesk.ra_show=function(){if(document.all)document.getElementById("ra_mask").innerHTML="<iframe style='width:100%;height:100%;left:0px;top:0px;filter:alpha(opacity=0);z-index:-1;border:0px'/>";document.getElementById("ra_mask").style.display="block";document.getElementById("ra_login").style.display="block"};DxYcxzHelpdesk.ra_hide=function(){document.getElementById("ra_mask").style.display="none";document.getElementById("ra_login").style.display="none"};DxYcxzHelpdesk.ra_openDialog=function(){alert("\u7b2c\u4e00\u6b21\u8fd0\u884c\u8bf7\u4e0b\u8f7d\u5728\u7ebf\u5ba2\u670d\u8d44\u6e90\u5e76\u8fdb\u884c\u5b89\u88c5");if(count==0){if(!operate)top.DxYcxzHelpdesk.ra_show();else top.DxYcxzHelpdesk.ra_remoteAssistance()}else top.DxYcxzHelpdesk.ra_show()};DxYcxzHelpdesk.ra_remoteAssistance=function(){var A="providerNo="+helpdesk_pid,J=typeof(ra_sourceName)=="undefined"?"":ra_sourceName,N=document.getElementById("ra_LoginForm");N.serviceDeskIds.value=serviceDeskIds;if(ra_rules=="C"){var B=N.serviceDeskId.value;if(B==""){alert("\u8bf7\u9009\u62e9\u4e00\u4e2a\u670d\u52a1\u53f0");return false}N.serviceDeskIds.value=B}if(document.getElementById("ra_field0")){var P=document.getElementById("ra_field0").value,C=document.getElementById("ra_field0Name").value,F=new RegExp("^"+document.getElementById("ra_field0Expression").value+"$");if(!F.test(P)){alert("\u201c"+C+"\u201d\u5b57\u6bb5\u683c\u5f0f\u4e0d\u6b63\u786e");return false}else A+="&field0="+encodeURIComponent(P)}if(document.getElementById("ra_field1")){var O=document.getElementById("ra_field1").value,Q=document.getElementById("ra_field1Name").value,G=new RegExp("^"+document.getElementById("ra_field1Expression").value+"$");if(!G.test(O)){alert("\u201c"+Q+"\u201d\u5b57\u6bb5\u683c\u5f0f\u4e0d\u6b63\u786e");return false}else A+="&field1="+encodeURIComponent(O)}if(document.getElementById("ra_field2")){var I=document.getElementById("ra_field2").value,M=document.getElementById("ra_field2Name").value,_=new RegExp("^"+document.getElementById("ra_field2Expression").value+"$");if(!_.test(I)){alert("\u201c"+M+"\u201d\u5b57\u6bb5\u683c\u5f0f\u4e0d\u6b63\u786e");return false}else A+="&field2="+encodeURIComponent(I)}if(document.getElementById("ra_field3")){var H=document.getElementById("ra_field3").value,D=document.getElementById("ra_field3Name").value,$=new RegExp("^"+document.getElementById("ra_field3Expression").value+"$");if(!$.test(H)){alert("\u201c"+D+"\u201d\u5b57\u6bb5\u683c\u5f0f\u4e0d\u6b63\u786e");return false}else A+="&field3="+encodeURIComponent(H)}if(!operate){var L=document.ra_LoginForm.wc_note.value;if(trim(L)==""||trim(L)=="\u4eb2\uff0c\u7ed9\u6211\u7559\u8a00\uff0c\u7b2c\u4e00\u65f6\u95f4\u4e3a\u4f60\u5904\u7406\u54df\uff01"){alert("\u7528\u6237\u7559\u8a00\u4e0d\u80fd\u4e3a\u7a7a");return false}else A+="&leaveWord="+encodeURIComponent(L);var K=document.ra_LoginForm.isMailNotice.checked;if(K){var E=document.ra_LoginForm.mailNotice.value;if(!validEmail(E)){alert("\u63a5\u53d7\u90ae\u4ef6\u901a\u77e5\u683c\u5f0f\u4e0d\u6b63\u786e");return false}A+="&email="+E}A+="&serviceDeskIds="+document.ra_LoginForm.serviceDeskIds.value+"&clientType=CC&sourceName="+encodeURIComponent(J)}if(!operate){top.DxYcxzHelpdesk.ra_hide();verify(ra_websiteRoot+"/leaveWordRequestAdd.jhtm?"+A,"get",null)}else{document.charset="utf-8";N.providerNo.value=helpdesk_pid;N.domain.value=window.document.domain;N.sourceName.value=J;N.target="_blank";N.submit();top.DxYcxzHelpdesk.ra_hide()}};DxYcxzHelpdesk.ra_closeDialog=function(){top.DxYcxzHelpdesk.ra_hide()};DxYcxzHelpdesk.ra_keyDown=function($){$=$?$:(window.event?window.event:null);if($.keyCode==13){$.returnValue=false;$.cancel=true;top.DxYcxzHelpdesk.ra_remoteAssistance()}};DxYcxzHelpdesk.trim=function($){return $.replace(/(^\s*)|(\s*$)/g,"")};DxYcxzHelpdesk.validEmail=function($){var _=/^\s*([A-Za-z0-9_]+[_\-\.\w]*@([_\-\w]+\.)+[_\-\w]{2,3})\s*$/;return _.test($)};DxYcxzHelpdesk.setRaMailNotice=function($){if($.checked)document.getElementById("ra_mailInput").style.display="block";else document.getElementById("ra_mailInput").style.display="none"};DxYcxzHelpdesk.clear=function(_,$,A){};DxYcxzHelpdesk.render=function($,E,D){var A=D.getAttribute("cid"),_=D.selectNodes("*");for(var C=0;C<_.length;C++){var B=_[C].nodeName;B=B.substring(1,B.length);var F=top.isIE?_[C].text:_[C].textContent;switch(B){case top.DC.UPDATE:top.DxYcxzHelpdesk.show($,A,F);break;case top.DC.CHANGE_FLAG:var G=F.split("@"),L=G[0],I=G[1],H=G[2],K=G[3],J=G[4];top.DxYcxzHelpdesk.action($,A,L,I,H,K,J);break;default:break}}};var operate=true;wc_sourceName="";wc_field0="";wc_field1="";wc_field2="";wc_field3="";webchat_pid="3001";webchat_style="wc_style1";wc_rules="A";wc_serviceDeskIds="3";wc_container="wc";wc_websiteRoot="http://telnet.umednet.com";webchat_online="";webchat_face="http://telnet.umednet.com/images/face/default_50_03.png";strWin="";function DxYcxzWebchat(){}DxYcxzWebchat.show=function(_,A,B){var $=document.createElement("script");$.setAttribute("type","text/javascript");$.setAttribute("language","javascript");$.setAttribute("src",B+"/js/ewei_helpdesk.js");$.setAttribute("defer","defer");document.body.appendChild($)};DxYcxzWebchat.action=function(strWinId,strConId,serverUrl,f0,f1,f2,f3){eval("requestHelpdesk('"+serverUrl+"','/helpdesk.jhtm?id=4&field0="+f0+"&field1="+f1+"&field2="+f2+"&field3="+f3+"&callback=helpdesk_jsonpCallback');")};DxYcxzWebchat.inputTipFocus=function($){if($.value==$.getAttribute("label")){$.value="";$.style.color="#000"}};DxYcxzWebchat.inputTipBlur=function($){if($.value==""){$.value=$.getAttribute("label");$.style.color="#AAA"}};DxYcxzWebchat.loadWebchat=function(A,B){var $=document.createElement("link");$.setAttribute("rel","stylesheet");$.setAttribute("type","text/css");$.setAttribute("href",wc_websiteRoot+"/css/webchat.css");document.body.appendChild($);var C=document.createElement("script");C.setAttribute("type","text/javascript");C.setAttribute("language","javascript");C.setAttribute("src",wc_websiteRoot+"/js/ajax.js");document.body.appendChild(C);var _=document.createElement("script");if(typeof(wc_rules)=="undefined")wc_rules="A";_.src=wc_websiteRoot+"/ajax/toChat.jhtm?providerNo="+webchat_pid+"&rules="+wc_rules+"&serviceDeskIds="+wc_serviceDeskIds+"&callback=top.DxYcxzWebchat.wc_jsonpCallback";_.charset="utf-8";document.body.appendChild(_)};var count=0;DxYcxzWebchat.wc_jsonpCallback=function(C){if(typeof(webchat_face)=="undefined")webchat_face=wc_websiteRoot+"/images/face/default_50_03.png";operate=C.assistable;var G="";G+="<div id=\"wc_mask\" style=\"display:none;\"></div>";if(C.assistable==true){G+="<div id=\"wc_login\" class=\"ui-dialog ui-widget ui-widget-content\" style=\"display:none;\">";G+="<div class=\"ui-dialog-titlebar ui-widget-header padding5px\">"+"<a class=\"ui-dialog-titlebar-close ui-corner-all\" onclick=\"top.DxYcxzWebchat.wc_closeDialog();\" role=\"button\" unselectable=\"on\" id=\"wc_fnquit\" style=\"-moz-user-select: none;cursor:pointer;\"><span class=\"ui-icon ui-icon-closethick\" unselectable=\"on\" style=\"-moz-user-select: none;\">close</span></a>"+"<span class=\"ui-dialog-title\">\u5728\u7ebf\u4ea4\u8c08</span></div>"+"<div class=\"line_dot\" style=\"font-size:12px;\"><img src=\""+wc_websiteRoot+"/images/face/default_50.png\" width=\"50\" height=\"50\" style=\"float:left;margin-right:10px;\" /><div><span class=\"c03\" style=\"line-height:25px\">\u4f60\u6b63\u5728\u8fde\u63a5\u670d\u52a1\u5546</span><br /><strong style=\"line-height:25px;\">"+C.providerName+"</strong></div></div>";G+="<form action=\""+wc_websiteRoot+"/chat.jhtm\" method=\"get\" id=\"wc_LoginForm\" name=\"wc_LoginForm\">"+"<input type=\"hidden\" name=\"domain\" id=\"domain\"/>"+"<input type=\"hidden\" name=\"providerNo\" id=\"providerNo\"/>"+"<input type=\"hidden\" name=\"serviceDeskIds\" id=\"serviceDeskIds\"/>"+"<input type=\"hidden\" name=\"sourceName\" id=\"sourceName\"/>"+"<table border=\"0\" align=\"center\" cellspacing=\"10\">"}else{var $=C.knowledgeUrl;if($!="")$="href="+$;G+="<div id=\"wc_login\" class=\"ui-dialog ui-widget ui-widget-content\" style=\"display:none; width:470px\">";G+="<div class=\"ui-dialog-titlebar ui-widget-header padding5px\">"+"<a class=\"ui-dialog-titlebar-close ui-corner-all\" onclick=\"top.DxYcxzWebchat.wc_closeDialog();\" role=\"button\" unselectable=\"on\" id=\"wc_fnquit\" style=\"-moz-user-select: none;cursor:pointer;\"><span class=\"ui-icon ui-icon-closethick\" unselectable=\"on\" style=\"-moz-user-select: none;\">close</span></a>"+"<span class=\"ui-dialog-title\">\u79bb\u7ebf\u7559\u8a00</span></div>";G+="<form action=\""+wc_websiteRoot+"/wcNoteToCase.jhtm\" method=\"post\" id=\"wc_LoginForm\" name=\"wc_LoginForm\">"+"<input type=\"hidden\" name=\"domain\" id=\"domain\"/>"+"<input type=\"hidden\" name=\"providerNo\" id=\"providerNo\"/>"+"<input type=\"hidden\" name=\"serviceDeskIds\" id=\"serviceDeskIds\"/>"+"<div class=\"padding5px\" style=\"border-bottom: 1px dotted #CCCCCC;font-size:12px;\">"+"<img src=\""+webchat_face+"\" width=\"50\" height=\"50\" style=\"float:left;margin-right:10px;\" />"+"<div><span style=\"color:#999999;line-height:25px\">\u4f60\u6b63\u5728\u8fde\u63a5\u670d\u52a1\u5546"+C.providerName+"</span><br />"+"<strong style=\"line-height:25px;\">\u5f53\u524d\u65e0\u5de5\u7a0b\u5e08\u5728\u7ebf\uff0c\u8bf7\u7559\u8a00</strong><span class=\"c10\">*</span>\u60a8\u8fd8\u53ef\u4ee5<a target=\"_blank\""+$+">\u81ea\u52a9\u67e5\u8be2</a></div></div>"+"<div class=\"padding5px center\"><textarea name=\"wcNote\" id=\"wc_note\" rows=\"8\" label=\"\u4eb2\uff0c\u7ed9\u6211\u7559\u8a00\uff0c\u7b2c\u4e00\u65f6\u95f4\u4e3a\u4f60\u5904\u7406\u54df\uff01\" style=\"width:440px;padding:5px;font-size:12px;line-height:1.5em;color:#AAA\" onfocus=\"top.DxYcxzWebchat.inputTipFocus(this)\" onblur=\"top.DxYcxzWebchat.inputTipBlur(this)\">\u4eb2\uff0c\u7ed9\u6211\u7559\u8a00\uff0c\u7b2c\u4e00\u65f6\u95f4\u4e3a\u4f60\u5904\u7406\u54df\uff01</textarea></div>"+"<table border=\"0\" cellpadding=\"0\" cellspacing=\"10\">"}if(wc_rules=="C"){count++;G+="<tr><td class=\"lable\" nowrap=\"nowrap\">\u8bf7\u6c42\u670d\u52a1\u53f0<span class=\"c10 size18\">*</span></td>"+"<td><select id=\"serviceDeskId\" name=\"serviceDeskId\" onkeydown=\"top.DxYcxzWebchat.wc_keyDown(event);\"><option value=\"\">--\u8bf7\u9009\u62e9--</option>";if(C.serviceDeskIds!=null&&C.serviceDeskNames!=null){var B=new Array(),A=new Array();B=C.serviceDeskIds.split(",");A=C.serviceDeskNames.split(",");for(i=0;i<B.length;i++)G+="<option value=\""+B[i]+"\">"+A[i]+"</option>"}G+="</select></td></tr>"}if(C.field0!=null&&C.field0.visible==true){count++;G+="<tr><td class=\"lable\" nowrap=\"nowrap\"><input id=\"wc_field0Name\" name=\"field0Name\" type=\"hidden\" value=\""+C.field0.name+"\"/><input id=\"wc_field0Expression\" name=\"field0Expression\" type=\"hidden\" value=\""+C.field0.expression+"\"/>";G+=C.field0.name;if(C.field0.required)G+="<span class=\"c10 size18\">*</span>";G+="</td><td><input id=\"wc_field0\" name=\"field0\" type=\"text\"";if(typeof(wc_field0)!="undefined")G+=" value=\""+wc_field0+"\"";G+=" onkeydown=\"top.DxYcxzWebchat.wc_keyDown(event);\"/></td><td><span class=\"c03\">"+C.field0.tip+"</span></td></tr>"}if(C.field1!=null&&C.field1.visible==true){count++;G+="<tr><td class=\"lable\" nowrap=\"nowrap\"><input id=\"wc_field1Name\" name=\"field1Name\" type=\"hidden\" value=\""+C.field1.name+"\"/><input id=\"wc_field1Expression\" name=\"field1Expression\" type=\"hidden\" value=\""+C.field1.expression+"\"/>";G+=C.field1.name;if(C.field1.required)G+="<span class=\"c10 size18\">*</span>";G+="</td><td><input id=\"wc_field1\" name=\"field1\" type=\"text\"";if(typeof(wc_field1)!="undefined")G+=" value=\""+wc_field1+"\"";G+=" onkeydown=\"top.DxYcxzWebchat.wc_keyDown(event);\"/></td><td><span class=\"c03\">"+C.field1.tip+"</span></td></tr>"}if(C.field2!=null&&C.field2.visible==true){count++;G+="<tr><td class=\"lable\" nowrap=\"nowrap\"><input id=\"wc_field2Name\" name=\"field2Name\" type=\"hidden\" value=\""+C.field2.name+"\"/><input id=\"wc_field2Expression\" name=\"field2Expression\" type=\"hidden\" value=\""+C.field2.expression+"\"/>";G+=C.field2.name;if(C.field2.required)G+="<span class=\"c10 size18\">*</span>";G+="</td><td><input id=\"wc_field2\" name=\"field2\" type=\"text\"";if(typeof(wc_field2)!="undefined")G+=" value=\""+wc_field2+"\"";G+=" onkeydown=\"top.DxYcxzWebchat.wc_keyDown(event);\"/></td><td><span class=\"c03\">"+C.field2.tip+"</span></td></tr>"}if(C.field3!=null&&C.field3.visible==true){count++;G+="<tr><td class=\"lable\" nowrap=\"nowrap\"><input id=\"wc_field3Name\" name=\"field3Name\" type=\"hidden\" value=\""+C.field3.name+"\"/><input id=\"wc_field3Expression\" name=\"field3Expression\" type=\"hidden\" value=\""+C.field3.expression+"\"/>";G+=C.field3.name;if(C.field3.required)G+="<span class=\"c10 size18\">*</span>";G+="</td><td><input id=\"wc_field3\" name=\"field3\" type=\"text\"";if(typeof(wc_field3)!="undefined")G+=" value=\""+wc_field3+"\"";G+=" onkeydown=\"top.DxYcxzWebchat.wc_keyDown(event);\"/></td><td><span class=\"c03\">"+C.field3.tip+"</span></td></tr>"}if(C.assistable==true)G+="<tr><td width=\"28%\">&nbsp;</td><td width=\"35%\"><label><input name=\"wc_fnlogin\" type=\"button\" class=\"button_01_01 cursorhand\" id=\"wc_fnlogin\" value=\"\u63d0 \u4ea4\" onclick=\"top.DxYcxzWebchat.wc_remoteAssistance();\"/></label></td><td width=\"37%\"></td></tr>";else G+="<tr><td></td><td><input type=\"checkbox\" id=\"isMailNotice\" onclick=\"top.DxYcxzWebchat.setWcMailNotice(this);\"/>&nbsp;&nbsp;\u63a5\u53d7\u90ae\u4ef6\u901a\u77e5&nbsp;&nbsp;<div id=\"wc_mailInput\" style=\"display:none;\"><input type=\"text\" style=\"font-size: 12px;padding: 3px;\" id=\"mailNotice\" name=\"mailNotice\"/></div></td></tr>"+"<tr><td></td><td><label><input name=\"wc_fnlogin\" type=\"button\" class=\"button_01_01 cursorhand\" id=\"wc_fnlogin\" value=\"\u63d0 \u4ea4\" onclick=\"wc_remoteAssistance();\"/></label></td><td></td></tr>";G+="</table>"+"</form>"+"<div class=\"box02 padding10px c03\"> </div>"+"</div>"+"</div>"+"</div>";var E=document.createElement("div");E.innerHTML=G;document.body.appendChild(E);var H;if(C.assistable==true){if(webchat_style=="wc_style3"||webchat_style=="wc_style4"||webchat_style=="wc_style5"||webchat_style=="wc_style6"){H="<img src=\""+webchat_online+"\" id=\"infocareChatFloatDiv\" onclick=\"top.DxYcxzWebchat.wc_openDialog("+count+");\" style=\"width:90px;position:fixed;right:0;top:104px;z-index:999999;cursor:pointer; _position: absolute; _TOP: expression(documentElement.scrollTop+documentElement.clientHeight-this.offsetHeight-400);\"/>";if(webchat_style=="wc_style4")top.DxYcxzWebchat.popupDialog(count)}else H="<img src=\""+webchat_online+"\" style=\"cursor:pointer; vertical-align:middle\" name=\"wc_fnbtn\" id=\"wc_online_help_btn\" style=\"cursor:pointer;\" onclick=\"top.DxYcxzWebchat.wc_openDialog("+count+");\"/>"}else if(webchat_style=="wc_style3"||webchat_style=="wc_style4"||webchat_style=="wc_style5"||webchat_style=="wc_style6")H="<img src=\""+webchat_online+"\" id=\"infocareChatFloatDiv\" onclick=\"top.DxYcxzWebchat.wc_openDialog("+count+");\" style=\"width:90px;position:fixed;right:0;top:104px;z-index:999999;cursor:pointer; _position: absolute; _TOP: expression(documentElement.scrollTop+documentElement.clientHeight-this.offsetHeight-400);\" title=\"\u5f53\u524d\u65e0\u5de5\u7a0b\u5e08\u5728\u7ebf\"/>";else H="<img src=\""+webchat_online+"\" onclick=\"top.DxYcxzWebchat.wc_openDialog("+count+");\" style=\"cursor:pointer; vertical-align:middle\" name=\"wc_fnbtn\" id=\"wc_offline_help_btn\" title=\"\u5f53\u524d\u65e0\u5de5\u7a0b\u5e08\u5728\u7ebf\"/>";var F=top.E_clientModel.E_getWindow(strWin),D=WatCore.getWindowDoc(strWin,F),_=top.E_getObject(strWin,wc_container,D);_.innerHTML=H};DxYcxzWebchat.wc_show=function(){if(document.all)document.getElementById("wc_mask").innerHTML="<iframe style='width:100%;height:100%;left:0px;top:0px;filter:alpha(opacity=0);z-index:-1;border:0px'/>";document.getElementById("wc_mask").style.display="block";document.getElementById("wc_login").style.display="block"};DxYcxzWebchat.wc_hide=function(){document.getElementById("wc_mask").style.display="none";document.getElementById("wc_login").style.display="none"};DxYcxzWebchat.wc_openDialog=function($){alert("\u7b2c\u4e00\u6b21\u8fd0\u884c\u8bf7\u4e0b\u8f7d\u5728\u7ebf\u5ba2\u670d\u8d44\u6e90\u5e76\u8fdb\u884c\u5b89\u88c5");if($==0){if(!operate)top.DxYcxzWebchat.wc_show();else top.DxYcxzWebchat.wc_remoteAssistance()}else top.DxYcxzWebchat.wc_show()};DxYcxzWebchat.wc_remoteAssistance=function(){var A="providerNo="+webchat_pid,J=typeof(wc_sourceName)=="undefined"?"":wc_sourceName,N=document.getElementById("wc_LoginForm");N.serviceDeskIds.value=wc_serviceDeskIds;if(wc_rules=="C"){var B=N.serviceDeskId.value;if(B==""){alert("\u8bf7\u9009\u62e9\u4e00\u4e2a\u670d\u52a1\u53f0");return false}N.serviceDeskIds.value=B}if(document.getElementById("wc_field0")){var P=document.getElementById("wc_field0").value,C=document.getElementById("wc_field0Name").value,F=new RegExp("^"+document.getElementById("wc_field0Expression").value+"$");if(!F.test(P)){alert("\u201c"+C+"\u201d\u5b57\u6bb5\u683c\u5f0f\u4e0d\u6b63\u786e");return false}else A+="&field0="+encodeURIComponent(P)}if(document.getElementById("wc_field1")){var O=document.getElementById("wc_field1").value,Q=document.getElementById("wc_field1Name").value,G=new RegExp("^"+document.getElementById("wc_field1Expression").value+"$");if(!G.test(O)){alert("\u201c"+Q+"\u201d\u5b57\u6bb5\u683c\u5f0f\u4e0d\u6b63\u786e");return false}else A+="&field1="+encodeURIComponent(O)}if(document.getElementById("wc_field2")){var I=document.getElementById("wc_field2").value,M=document.getElementById("wc_field2Name").value,_=new RegExp("^"+document.getElementById("wc_field2Expression").value+"$");if(!_.test(I)){alert("\u201c"+M+"\u201d\u5b57\u6bb5\u683c\u5f0f\u4e0d\u6b63\u786e");return false}else A+="&field2="+encodeURIComponent(I)}if(document.getElementById("wc_field3")){var H=document.getElementById("wc_field3").value,D=document.getElementById("wc_field3Name").value,$=new RegExp("^"+document.getElementById("wc_field3Expression").value+"$");if(!$.test(H)){alert("\u201c"+D+"\u201d\u5b57\u6bb5\u683c\u5f0f\u4e0d\u6b63\u786e");return false}else A+="&field3="+encodeURIComponent(H)}if(!operate){var L=document.wc_LoginForm.wc_note.value;if(top.DxYcxzWebchat.trim(L)==""||top.DxYcxzWebchat.trim(L)=="\u4eb2\uff0c\u7ed9\u6211\u7559\u8a00\uff0c\u7b2c\u4e00\u65f6\u95f4\u4e3a\u4f60\u5904\u7406\u54df\uff01"){alert("\u7528\u6237\u7559\u8a00\u4e0d\u80fd\u4e3a\u7a7a");return false}else A+="&leaveWord="+encodeURIComponent(L);var K=document.wc_LoginForm.isMailNotice.checked;if(K){var E=document.wc_LoginForm.mailNotice.value;if(!top.DxYcxzWebchat.validEmail(E)){alert("\u63a5\u53d7\u90ae\u4ef6\u901a\u77e5\u683c\u5f0f\u4e0d\u6b63\u786e");return false}A+="&email="+E}A+="&serviceDeskIds="+document.wc_LoginForm.serviceDeskIds.value+"&clientType=WC&sourceName="+encodeURIComponent(J)}if(!operate){top.DxYcxzWebchat.wc_hide();verify(wc_websiteRoot+"/leaveWordRequestAdd.jhtm?"+A,"get",null)}else{N.providerNo.value=webchat_pid;N.domain.value=window.document.domain;N.sourceName.value=J;N.target="_blank";N.submit();top.DxYcxzWebchat.wc_hide()}};DxYcxzWebchat.wc_closeDialog=function(){top.DxYcxzWebchat.wc_hide()};DxYcxzWebchat.NeatDialog=function(_){window.neatDialog=null;this.elt=null;if(document.createElement&&document.getElementById){var $=document.createElement("div");$.className="neat-dialog";$.innerHTML=_;var A=document.createElement("div");A.id="popupDiv";A.className="neat-dialog-cont";A.appendChild($);if(document.body.offsetLeft>0)A.style.marginLeft=document.body.offsetLeft+"px";document.body.appendChild(A);document.getElementById("nd-cancel").onclick=function(){window.neatDialog.close()};document.getElementById("btn-cancel").onclick=function(){A.style.display="none"};this.elt=A;window.neatDialog=this}};DxYcxzWebchat.NeatDialog.prototype.close=function(){if(this.elt)this.elt.style.display="none";window.neatDialog=null};DxYcxzWebchat.popupDialog=function(_){var $="<div id=\"wc_popup\" style=\"background: url("+webchat_popup_bg+") no-repeat;width:430px;height:140px;font-size:12px;\">"+"<a href=\"#\" style=\"padding:5px 5px 5px 25px;color:#FFF;font-weight: bold\"><img id=\"nd-cancel\" src=\""+webchat_popup_close+"\" style=\"float:right;margin-right:10px;border:0px;\"/></a>"+"<div style=\"padding:5px 5px 5px 25px; color:#ababab; font-weight: bold; float:left\">"+webchat_popup_title+"</div><br style=\"clear:both\"/>"+"<div style=\"padding:10px 10px 10px 90px;height:65px\">"+webchat_popup_content+"</div>"+"<div style=\"padding:3px;text-align:right\"><a href=\"javascript:wc_openDialog("+_+");\"><img src=\""+webchat_popup_chat+"\" alt=\"\" width=\"89\" height=\"23\" style=\"border:0px;margin:0px;\"/></a> <a href=\"#\" id=\"btn-cancel\"><img src=\""+webchat_popup_cancel+"\" alt=\"\" width=\"89\" height=\"23\" style=\"border:0px;margin:0px;\"/></a></div>"+"</div>";new NeatDialog($);top.DxYcxzWebchat.movePopup()};DxYcxzWebchat.movePopup=function(){var A=document.getElementById("popupDiv"),_=40,$=50;if(window.innerHeight)pos=window.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)pos=document.documentElement.scrollTop;else if(document.body)pos=document.body.scrollTop;pos=pos-A.offsetTop+_;pos=A.offsetTop+pos/10;if(pos<_)pos=_;A.style.top=pos+"px";$=10;setTimeout(top.DxYcxzWebchat.movePopup,$)};DxYcxzWebchat.wc_keyDown=function($){$=$?$:(window.event?window.event:null);if($.keyCode==13){$.returnValue=false;$.cancel=true;top.DxYcxzWebchat.wc_remoteAssistance()}};DxYcxzWebchat.trim=function($){return $.replace(/(^\s*)|(\s*$)/g,"")};DxYcxzWebchat.validEmail=function($){var _=/^\s*([A-Za-z0-9_]+[_\-\.\w]*@([_\-\w]+\.)+[_\-\w]{2,3})\s*$/;return _.test($)};DxYcxzWebchat.setWcMailNotice=function($){if($.checked)document.getElementById("wc_mailInput").style.display="block";else document.getElementById("wc_mailInput").style.display="none"};DxYcxzWebchat.clear=function(_,$,A){};DxYcxzWebchat.render=function($,E,D){var A=D.getAttribute("cid"),_=D.selectNodes("*");for(var C=0;C<_.length;C++){var B=_[C].nodeName;B=B.substring(1,B.length);var F=top.isIE?_[C].text:_[C].textContent;switch(B){case top.DC.UPDATE:top.DxYcxzWebchat.show($,A,F);break;case top.DC.CHANGE_FLAG:var G=F.split("@"),L=G[0],I=G[1],H=G[2],K=G[3],J=G[4];top.DxYcxzWebchat.action($,A,L,I,H,K,J);break;default:break}}};function DxIDCard4GT(){}DxIDCard4GT.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id=\""+_+"_rd\" CODEBASE=\"./IdrOcx.cab#version=1,0,1,2\" width=\""+A.width+"\" height=\""+A.height+"\" classid=\"CLSID:220C3AD1-5E9D-4B06-870F-E34662E2DFEA\"></OBJECT>";A.innerHTML=D}catch($){alert($)}};DxIDCard4GT.read=function(H,B,F,E,Q){var R,N,I,O=top.E_getObject(H,B,F),J=F.getElementById(B+"_rd");J.PhotoPath="c:";if(J.GetState()==0)J.ReadCard();else{alert("\u56fd\u817e"+J.ErrMsg);return}var P=J.NameL,A=J.SexL,K=J.NationL,_=J.BornL,M=J.Address,G=J.CardNo,D=J.Police,$=J.ActivityLTo,C=J.GetPhotoBuffer();J.Stop();var L=P+"&"+A+"&"+K+"&"+_+"&"+M+"&"+G+"&"+D+"&"+$+"&"+C;WatCore.setParameter(H,B,top.DC.TEXT,L);WatCore.sendACallToChart(H,B,"enter")};DxIDCard4GT.clear=function(A,_,C){try{var B=_.getElementById(C.id+"_rd");if(B!=null)B.Stop()}catch($){}};DxIDCard4GT.print=function(C,$,A,B){var _=top.E_getObject(C,$,A),D=A.getElementById($+"_rd");D.PrintFaceImage(B,30,10)};DxIDCard4GT.cardInit=function(C,_,B,A,H){var I,F,D,G=top.E_getObject(C,_,B),E=B.getElementById(_+"_rd"),J=false;try{if(E.GetState()==0)J=true;else{alert(E.ErrMsg);J=false}E.Stop()}catch($){}return J};DxIDCard4GT.render=function(_,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.UPDATE_DATA:var $=C.split("$");DxIDCard4GT.read(_,E,D,$[0],$[1]);break;case top.DC.CARD_INIT:$=C.split("$");DxIDCard4GT.cardInit(_,E,D,$[0],$[1]);break;case top.DC.PRINT:DxIDCard4GT.print(_,E,D,C);break;default:break}}};function DxJustGage(){}DxJustGage.init=function(E,A){try{var D=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,D),F=WatCore.getWindow(E,D),B=top.E_getObject(E,A,C);$(B).unbind("resize");$(B).bind("resize",E,function($){top.DxJustGage.resize(E,A)})}catch(_){alert(_)}};DxJustGage.dblAction=function(C,$){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,$,A);top.WatCore.call(C,$,"dbl",event)};DxJustGage.doAction=function(C,$){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,$,A);top.WatCore.call(C,$,"click",event)};DxJustGage.resize=function(D,A,O){try{var P=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,P),E=WatCore.getWindow(D,P),N=top.E_getObject(D,A,C),K=$("#"+A+"_content",N).get(0),G=WatCore.getClientRect(N),F=N.params;if(N.g==null&&G.h>20){var L=G.w,J=G.h,I=parseInt(parseInt(G.w)*0.8);if(I>parseInt(J)){L=parseInt(parseInt(J)/0.8);I=J}K.style.width=L+"px";K.style.height=I+"px";var H=(J-I)/2;if(H<0)H=0;K.style.top=H+"px";var B=F["levelcolor"],M=B.split(","),Q=new JustGage({id:A+"_content",value:parseInt(F["value"]),min:parseInt(F["min"]),max:parseInt(F["max"]),title:F["title"],label:F["label"],levelColors:["#336600"],shadowOpacity:0.6,shadowSize:10,shadowVerticalOffset:100,showMinMax:F["showminmax"]=="true"?true:false,levelColorsGradient:true,startAnimationTime:2000,startAnimationType:">",refreshAnimationTime:1000,refreshAnimationType:"bounce"},C,P);N.g=Q}O.cancelBubble=true}catch(_){}};DxJustGage.update=function(E,B,Q,R){try{var T=R.split("|"),F,A;F=new Array(T.length-1);for(var I=0;I<T.length;I++){var D=T[I].split(":");F[D[0]]=D[1]}var S=top.E_clientModel.E_getWindow(E),G=WatCore.getWindow(E,S),P=top.E_getObject(E,B,Q),N=$("#"+B+"_content",P).get(0),H=WatCore.getClientRect(P);P.params=F;if(P.g==null&&H.h>20){var M=P.clientWidth,L=P.clientHeight,K=parseInt(parseInt(P.clientWidth)*0.8);if(K>parseInt(L)){M=parseInt(parseInt(L)/0.8);K=L}N.style.width=M;N.style.height=K;var J=(L-K)/2;if(J<0)J=0;N.style.top=J+"px";var C=F["levelcolor"],O=C.split(","),U=new JustGage({id:B+"_content",value:parseInt(F["value"]),min:parseInt(F["min"]),max:parseInt(F["max"]),title:F["title"],label:F["label"],shadowOpacity:0.6,shadowSize:10,shadowVerticalOffset:100,levelColors:["#00FF00","#FFCC00","#0000FF","#FF0000"],levelColorsGradient:true,showMinMax:F["showminmax"]=="true"?true:false},Q,S);P.g=U}else P.g.refresh(F["value"])}catch(_){}};DxJustGage.render=function($,C,A){var D=A.getAttribute("cid"),_=A.selectNodes("*");for(var F=0;F<_.length;F++){var E=_[F].nodeName;E=E.substring(1,E.length);var B=top.isIE?_[F].text:_[F].textContent;switch(E){case top.DC.UPDATE_DATA:DxJustGage.update($,D,C,B);break;default:break}}};var sMenuHr="<tr><td align=center valign=middle height=2px><TABLE border=0 cellpadding=0 cellspacing=0 width=128px height=2px><tr><td height=1px class=HrShadow></td></tr><tr><td height=1px class=HrHighLight></td></tr></TABLE></td></tr>",sMenu1="<TABLE border=0 cellpadding=0 cellspacing=0 class=Menu width=150px><tr><td width=18px valign=bottom align=center style='background-color:#91bbe0;'></td><td width=132px class=RightBg><TABLE border=0 cellpadding=0 cellspacing=0>",sMenu2="</TABLE></td></tr></TABLE>",oldcontentbackgroundcolor,tdmovebegin=0,ermpopnum=6;function DxEMREditor(){}DxEMREditor.init=function(X,b,_,D,L,V,J,a,K,B,I,Q){try{var g=top.E_clientModel.E_getWindow(X),W=WatCore.getWindowDoc(X,g),Y=WatCore.getWindow(X,g),H=top.E_getObject(X,b,W),R=H.ownerDocument.getElementById(b+"wrap");H.wrap=R;H.oWin=Y;var e=H.ownerDocument.getElementById(b+"content"),c=H.ownerDocument.getElementById(b+"header");H.content=e;H.header=c;H.hashdymenu=J;H.hastimer=B;H.timernum=I;H.issampletoolbar=Q;H.oldwidth=0;H.mpx=parseInt(e.style.width)/parseInt(e.clientWidth);var O=H.watstyle;H.tablelock=false;if(O!="1")H.tablelock=true;$(H).unbind("resize");$(H).bind("resize",X,function($){top.DxEMREditor.resizeChange(X,b)});if(B=="true")H.interval=Y.setInterval("top.DxEMREditor.timer('"+X+"','"+b+"','"+I+"')",I);var f=H.ownerDocument.getElementById(b+"footer");H.footer=f;var N=H.ownerDocument.getElementById(b+"headerleft");H.headerleft=N;var S=H.ownerDocument.getElementById(b+"headerright");H.headerright=S;var F=H.ownerDocument.getElementById(b+"headermask");H.headermask=F;var A=H.ownerDocument.getElementById(b+"footerleft");H.footerleft=A;var h=H.ownerDocument.getElementById(b+"footerright");H.footerright=h;var M=H.ownerDocument.getElementById(b+"footermask");H.footermask=M;var C=H.ownerDocument.getElementById(b+"contentmask");H.contentmask=C;var E=new Array();H.toolbars=E;var d=new Object;d.data=[];d.position=0;d.bookmark=[];d.headerdata=[];d.headerposition=0;d.headerbookmark=[];d.footerdata=[];d.footerposition=0;d.footerbookmark=[];d.saved=false;H.history=d;H.selelen=0;var Z=new Array();H.pagelines=Z;H.actionscript=K;DxEMREditor.createToolBar(X,b,_,D,L,V,a,K);DxEMREditor.initWidths(X,b,W);if(top.isIE)e.document.oncontextmenu=new Function("return false;");else e.ownerDocument.oncontextmenu=new Function("return false;");e.oncontextmenu=new Function("top.DxEMREditor.showContextMenu('"+X+"','"+b+"');return false;");var G=H.ownerDocument.getElementById(b+"headercontent");H.headercontent=G;G.oncontextmenu=new Function("top.DxEMREditor.showContextMenu('"+X+"','"+b+"');return false;");var P=H.ownerDocument.getElementById(b+"footercontent");H.footercontent=P;P.oncontextmenu=new Function("top.DxEMREditor.showContextMenu('"+X+"','"+b+"');return false;");try{var U=$("<span id='tip' style='z-index:1000;position:absolute;background-color:lightyellow;font-size:12;BORDER:1 SOLID black'></span>").appendTo(W.body);U.hide()}catch(T){}$$(b+"content",X,W).delegate("ins,del","mouseover",function(_){if(!_.cancelBubble){var A=(this.attributes["oldhj"]==null?"":"<span style='color:red'>"+this.attributes["oldhj"].nodeValue+this.innerText+"</span><br>")+this.attributes["cite"].nodeValue+",<span>"+this.getAttribute("datetime")+"</span> "+(this.tagName=="INS"?"\u63d2\u5165":"\u5220\u9664")+"\u7684\u5185\u5bb9<cite>"+this.innerText+"</cite>";U.html(A).css({left:Math.min(_.pageX+3,document.body.clientWidth-250),top:_.pageY-$("#tip").height()-30}).show();_.cancelBubble=true;_.preventDefault()}else{_.cancelBubble=true;_.preventDefault()}}).delegate("ins,del","mouseout",function(){U.hide()});$$(b+"headercontent",X,W).delegate("ins,del","mouseover",function(_){if(!_.cancelBubble){var A=(this.attributes["oldhj"]==null?"":"<span style='color:red'>"+this.attributes["oldhj"].nodeValue+this.innerText+"</span><br>")+this.attributes["cite"].nodeValue+",<span>"+this.getAttribute("datetime")+"</span> "+(this.tagName=="INS"?"\u63d2\u5165":"\u5220\u9664")+"\u7684\u5185\u5bb9<cite>"+this.innerText+"</cite>";U.html(A).css({left:Math.min(_.pageX,document.body.clientWidth-250),top:_.pageY-$("#tip").height()-30}).show();_.cancelBubble=true;_.preventDefault()}else{_.cancelBubble=true;_.preventDefault()}}).delegate("ins,del","mouseout",function(){U.hide()});$$(b+"footercontent",X,W).delegate("ins,del","mouseover",function(_){if(!_.cancelBubble){var A=(this.attributes["oldhj"]==null?"":"<span style='color:red'>"+this.attributes["oldhj"].nodeValue+this.innerText+"</span><br>")+this.attributes["cite"].nodeValue+",<span>"+this.getAttribute("datetime")+"</span> "+(this.tagName=="INS"?"\u63d2\u5165":"\u5220\u9664")+"\u7684\u5185\u5bb9<cite>"+this.innerText+"</cite>";U.html(A).css({left:Math.min(_.pageX,document.body.clientWidth-250),top:_.pageY-$("#tip").height()-30}).show();_.cancelBubble=true;_.preventDefault()}else{_.cancelBubble=true;_.preventDefault()}}).delegate("ins,del","mouseout",function(){U.hide()});$$(b+"content",X,W).delegate("span[wattype$='s2'],span[wattype$='s1']","mouseover",function(B){if(!B.cancelBubble){if($(this).attr("wattype")=="["||$(this).attr("wattype")=="]"){B.cancelBubble=true;B.preventDefault();return}if($(this).attr("watsuntype")!="t11"){if($(this).attr("oldbk")==null)$(this).attr("oldbk",this.style.backgroundColor);this.style.backgroundColor="#A5D3E2";return}if($(this).attr("watsuntype")=="t11"){var _=$("span:first-child",this);if(_[0]==null||(_.attr("wattype")!="["))$(this).html("<span wattype='[' style='color:red;background:white'>[</span>"+$(this).html());var A=$("span:last-child",this);if(A[0]==null||(A.attr("wattype")!="]"))$(this).html($(this).html()+"<span wattype=']' style='color:red;background:white'>]</span>")}}}).delegate("span[wattype$='s2'],span[wattype$='s1']","mouseout",function(){if($(this).attr("watsuntype")!="t11"){$(this).css("backgroundColor",$(this).attr("oldbk"));$(this).removeAttr("oldbk")}if($(this).attr("watsuntype")=="t11"){var _=$("span:first-child",this);if(_[0]!==null&&_.attr("wattype")=="[")_.remove();var A=$("span:last-child",this);if(A[0]!==null&&A.attr("wattype")=="]")A.remove()}});$$(b+"content",X,W).delegate("span[type$='swrap']","mouseover",function(A){if(!A.cancelBubble){var B=$("span[wattype$='s1'][watsuntype$='t7']",this);B.css("color","red");var _=$("span[wattype$='s1'][watsuntype$='t8']",this);_.css("color","red");A.cancelBubble=true;A.preventDefault()}else{A.cancelBubble=true;A.preventDefault()}}).delegate("span[type$='swrap']","mouseout",function(){var A=$("span[wattype$='s1'][watsuntype$='t7']",this);A.css("color","#000000");var _=$("span[wattype$='s1'][watsuntype$='t8']",this);_.css("color","#000000")});$$(b+"content",X,W).delegate("span[watflag $='true'][wattype !='static']","click",function(_){if(!_.cancelBubble){if($(this).attr("watsuntype")=="t7"||$(this).attr("watsuntype")=="t8"){_.cancelBubble=true;_.preventDefault();return}DxEMREditor.coverstarclick3(this,$(this).attr("id"),"mouse");_.cancelBubble=true;_.preventDefault()}else{_.cancelBubble=true;_.preventDefault()}});$(e).bind("mousemove",function(B){var _=this.parentElement;if(_.draging=="row"&&B.originalEvent.srcElement.tagName!="TD"){var A=DxEMREditor.findTable(B.originalEvent.srcElement);if(A==null){$("#rowline",_).css({"left":_.scrollLeft,"top":$(this).offset().top-$(_).offset().top+B.offsetY+_.scrollTop});B.cancelBubble=true;B.preventDefault()}}else if(_.draging=="col"&&B.originalEvent.srcElement.tagName!="TD"&&B.originalEvent.srcElement.tagName!="P"&&B.originalEvent.srcElement.tagName!="FONT"&&B.originalEvent.srcElement.tagName!="SPAN"){$("#colline",_).css({"top":_.scrollTop,"left":$(this).offset().left-$(_).offset().left+B.offsetX+_.scrollLeft+parseInt($(this).css("borderLeftWidth"))});B.cancelBubble=true;B.preventDefault()}});$(R).bind("mouseup",[H,e,X,b],function(L){var Q=e.parentElement,F=Q.dragtd;tdmovebegin=0;if(H.tablelock)return;if(F!=null){var U=DxEMREditor.findTableByTd(F),T=DxEMREditor.findParentByTd(F);if(U==null||T==null){Q.dragtd=null;Q.draging=null;$("#rowline",Q).css({"display":"none"});$("#colline",Q).css({"display":"none"});return}$td=$(F);var _=$(T).find("tr"),Z;if(Q.draging=="col"||Q.draging=="row"){$(U).removeAttr("width");Z=DxEMREditor.createTableCellArray(T)}if(Q.draging=="col"){DxEMREditor.saveHistory(H,e);var a=$td.parent()[0].rowIndex,R=$td.get(0).cellIndex,C=Z[a];if(C==null){Q.dragtd=null;Q.draging=null;$("#rowline",Q).css({"display":"none"});$("#colline",Q).css({"display":"none"});return}var h=DxEMREditor.findTrueCellIndex(C,R);if(h[0]<0){Q.dragtd=null;Q.draging=null;$("#rowline",Q).css({"display":"none"});$("#colline",Q).css({"display":"none"});return}var d=h[0],w=h[1],o,s;for(var x=0;x<Z.length;x++){var K=0,C=Z[x];for(var v=0;v<C.length;v++){K+=C[v].colspan;if(K==w){if(o==null){o=C[v].td;break}else{var I=parseInt(o.attr("colspan")==null?"1":o.attr("colspan"));if(I>C[v].colspan){o=C[v].td;break}}}else if(K>w)break}if(o!=null){I=parseInt(o.attr("colspan")==null?"1":o.attr("colspan"));if(I==1)break}}for(x=0;x<Z.length;x++){var C=Z[x],c=C[d+1];if(c!=null&&c.iscell==true)if(s==null)s=c.td;else{var n=parseInt(s.attr("colspan")==null?"1":s.attr("colspan"));if(n>c.colspan)s=c.td}if(s!=null){n=parseInt(s.attr("colspan")==null?"1":s.attr("colspan"));if(n==1)break}}var A=$("#colline",Q).offset().left,k=A-o.offset().left,m;if(s!=null){m=o.width()+s.width();if(k>m-5||k<5){Q.dragtd=null;Q.draging=null;$("#rowline",Q).css({"display":"none"});$("#colline",Q).css({"display":"none"});return}}else{var P=$(e).width(),J=o.parent().width(),B=o.width(),z=k-B;if(z>0){if(J+z>P){z=P-J;A=B+z+o.offset().left}}else if(k<5){Q.dragtd=null;Q.draging=null;$("#rowline",Q).css({"display":"none"});$("#colline",Q).css({"display":"none"});return}k=A-o.offset().left;if(k<5){Q.dragtd=null;Q.draging=null;$("#rowline",Q).css({"display":"none"});$("#colline",Q).css({"display":"none"});return}}for(x=0;x<Z.length;x++){K=0,C=Z[x];for(v=0;v<C.length;v++){K+=C[v].colspan;if(K==w){c=C[d+1];k=A-C[v].td.offset().left;if(c!=null&&c.iscell==true){m=C[v].td.width()+c.td.width();var D=m-k-2;if(C[v].iscell==true)C[v].td.attr("twidth",k);c.td.attr("twidth",D)}else if(C[v].iscell==true)C[v].td.attr("twidth",k)}else if(K>w)break}}for(x=0;x<_.length;x++){var y=$(_.get(x)).children("td[twidth]");for(v=0;v<y.length;v++){var G=$(y.get(v));G.attr("width",G.attr("twidth"));G.removeAttr("twidth");G.css("width","")}}var W=$(e).width(),g=$(U).width(),M=parseInt((g/W)*100);M+=1;M+="%";$(U).attr("width",M);$(U).css("width","");$(U).removeAttr("height");$(U).css("height","")}else if(Q.draging=="row"){DxEMREditor.saveHistory(H,e);a=$td.parent()[0].rowIndex,R=$td.get(0).cellIndex,C=Z[a];if(C==null)return;var i=a+parseInt($td.attr("rowspan")==null?"1":$td.attr("rowspan"))-1;for(x=0;x<Z.length;x++){C=Z[x];C["height"]=0;var E;for(v=0;v<C.length;v++){var Y=C[v],V=Y.rowspan;if(!Y.iscell){var j=Y.td.parent()[0].rowIndex;if(j+V-1==x&&V>1)E=Y;continue}if(V==1)C["height"]=Y.td.height()}if(C["height"]==0&&E!=null){var f=E.td.height(),q=0;for(var u=E.td.parent()[0].rowIndex;u<x;u++)q+=Z[u]["height"];C["height"]=f-q}}var r=$("#rowline",Q).offset().top-$(F).offset().top,l=0;for(x=a;x<i;x++)l+=Z[x]["height"];if(l==0)l==23;if(r-l<23)r=l+23;var S=Z[i],O;for(x=0;x<S.length;x++){Y=S[x];if(Y.iscell){O=Y;break}}if(O!=null){var p=O.td.parent();S["height"]=r-l;for(x=0;x<Z.length;x++){var C=Z[x],N=0;for(v=0;v<C.length;v++){Y=C[v];if(Y.iscell){V=Y.rowspan;if(N==0||V<N)N=V}}for(v=0;v<C.length;v++){Y=C[v];if(Y.iscell){V=Y.rowspan;Y.td.attr("theight","");if(V==N){var t=0;for(u=x;u<x+V;u++)t+=Z[u]["height"];Y.td.attr("theight",t);if(C["tr"]==null)C["tr"]=Y.td.parent()}}}}y=$(U).find("td[theight]");for(v=0;v<y.length;v++){G=$(y.get(v)),t=G.attr("theight");if(t=="")G.removeAttr("height");else G.attr("height",t);G.removeAttr("theight");G.css("height","")}for(x=0;x<Z.length;x++){C=Z[x];if(C["tr"]!=null)C["tr"].css("height",C["height"])}}else{p=$td.parent(),_=p.children("td");for(x=0;x<_.length;x++)$(_.get(x)).removeAttr("height");p.css("height",r-l)}W=$(e).width(),g=$(U).width(),M=parseInt((g/W)*100);M+=1;M+="%";$(U).attr("width",M);$(U).css("width","");$(U).removeAttr("height");$(U).css("height","")}DxEMREditor.blurText(X,b,e)}Q.dragtd=null;Q.draging=null;$("#rowline",Q).css({"display":"none"});$("#colline",Q).css({"display":"none"})});$$(b+"content",X,W).delegate("td","mousemove",[H,e],function(C){if(H.tablelock)return;if(!C.cancelBubble){var _=e.parentElement;if(_.draging=="row")$("#rowline",_).css({"left":_.scrollLeft,"top":$(this).offset().top-$(_).offset().top+C.offsetY+_.scrollTop});else if(_.draging=="col")$("#colline",_).css({"top":_.scrollTop,"left":$(this).offset().left-$(_).offset().left+C.offsetX+_.scrollLeft});var F=DxEMREditor.findTableByTd(this),G=$(F).attr("border");if(G=="0")return;if(_.draging!="row"&&_.draging!="col")if(C.offsetX>this.offsetWidth-5){this.style.cursor="col-resize";A=_.$colline;if(A==null||A.get(0)==undefined){var D=W.createElement("div");D.id="colline";D.style.marginTop="1px";D.style.borderLeft="1px solid #5757ff";D.style.borderRight="1px none #CCCCCC";D.style.zIndex=1000;D.style.fontSize=1;D.style.width="10px";D.style.top="0px";D.style.position="absolute";D.style.background="transparent";D.style.height="100%";D.style.overflowX="hidden";D.style.color="#66ff00";D.style.textAlign="left";D.style.display="none";D.style.cursor="col-resize";if(top.isIE)_.insertBefore(D);else _.appendChild(D);_.$colline=$("#colline",_);A=_.$colline;var E=this;_.$colline.bind("mousedown",[e,E],function(A){var _=e.parentElement;_.dragtd=E;_.draging="col";$(this).css({"display":"block","height":$(_).height()-23,"top":_.scrollTop})})}if(A.css("display")!="block")if(F!=null)A.css({"display":"block","height":$(F).height(),"top":_.scrollTop+$(F).offset().top-$(_).offset().top-2,"left":$(this).offset().left+$(this).width()-$(_).offset().left+_.scrollLeft-2})}else if(C.offsetY>this.offsetHeight-5){this.style.cursor="row-resize";B=_.$rowline;if(B==null||B.get(0)==undefined){D=W.createElement("div");D.id="rowline";D.style.marginTop="1px";D.style.borderTop="1px solid #5757ff";D.style.borderBottom="1px none #CCCCCC";D.style.zIndex=1000;D.style.fontSize=1;D.style.width="100%";D.style.left=0+"px";D.style.top=C.offsetY+"px";D.style.position="absolute";D.style.background="transparent";D.style.height="0px";D.style.overflowX="hidden";D.style.color="#66ff00";D.style.textAlign="left";D.style.display="none";D.style.cursor="row-resize";if(top.isIE)_.insertBefore(D);else _.appendChild(D);E=this;_.$rowline=$("#rowline",_);B=_.$rowline;_.$rowline.bind("mousedown",[e,E],function(A){var _=e.parentElement;_.dragtd=E;_.draging="col";$(this).css({"display":"block","width":"100%","left":_.scrollLeft})})}if(B.css("display")!="block")if(F!=null)B.css({"display":"block","width":$(F).width(),"top":$(this).offset().top-$(_).offset().top+_.scrollTop+$(this).height()-1,"left":_.scrollLeft+$(F).offset().left-$(_).offset().left-1})}else{this.style.cursor="default";if(_.draging!="row"&&_.draging!="col"){var B=_.$rowline;if(B!=null&&B.css("display")=="block")B.css({"display":"none"});var A=_.$colline;if(A!=null&&A.css("display")=="block")A.css({"display":"none"})}}}}).delegate("td","mouseout",e,function(){tdmovebegin=0;var _=e.parentElement;this.style.cursor="default";if(_.draging!="row"&&_.draging!="col"){$("#rowline",_).css({"display":"none"});$("#colline",_).css({"display":"none"})}}).delegate("td","mousedown",e,function(A){var _=e.parentElement;_.dragtd=this;tdmovebegin=0;if(this.style.cursor=="col-resize"){if($("#colline",_).get(0)==undefined){var B=W.createElement("div");B.id="colline";B.style.marginTop="1px";B.style.borderLeft="1px solid #5757ff";B.style.borderRight="1px none #CCCCCC";B.style.zIndex=1000;B.style.fontSize=1;B.style.width="10px";B.style.top="0px";B.style.position="absolute";B.style.background="transparent";B.style.height="100%";B.style.overflowX="hidden";B.style.color="#66ff00";B.style.textAlign="left";B.style.display="none";if(top.isIE)_.insertBefore(B);else _.appendChild(B)}_.draging="col";this.focus();var C=_.scrollTop;$("#colline",_).css({"display":"block","height":$(_).height()-23,"top":_.scrollTop,"left":$(this).offset().left-$(_).offset().left+A.offsetX+_.scrollLeft});_.scrollTop=C;$("#colline",_).get(0).setFocus()}else if(this.style.cursor=="row-resize"){if($("#rowline",_).get(0)==undefined){B=W.createElement("div");B.id="rowline";B.style.marginTop="1px";B.style.borderTop="1px solid #5757ff";B.style.borderBottom="1px none #CCCCCC";B.style.zIndex=1000;B.style.fontSize=1;B.style.width="100%";B.style.left=0+"px";B.style.top=A.offsetY+"px";B.style.position="absolute";B.style.background="transparent";B.style.height="0px";B.style.overflowX="hidden";B.style.color="#66ff00";B.style.textAlign="left";B.style.display="none";if(top.isIE)_.insertBefore(B);else _.appendChild(B)}_.draging="row";this.focus();C=_.scrollTop;$("#rowline",_).css({"display":"block","width":"100%","left":_.scrollLeft,"top":$(this).offset().top-$(_).offset().top+A.offsetY+_.scrollTop});_.scrollTop=C;$("#rowline",_).get(0).setFocus()}}).delegate("td","mouseup",e,function($){tdmovebegin=0});W.onreadystatechange=function(){top.DxEMREditor.initEdit(X,b)}}catch(T){alert(T.message)}};DxEMREditor.findTrueCellIndex=function(B,A){var D=-1,$=-1,_=0;for(var E=0;E<B.length;E++){var C=B[E];_+=C.colspan;if(C.iscell==true){$++;if($==A){D=E+C.colspan-1;break}}}return[D,_]};DxEMREditor.createTableCellArray=function(E){var L=new Array(),_=$(E).find("tr");for(var I=0;I<_.length;I++){var K=$(_.get(I)).children("td");for(var G=0;G<K.length;G++){var M=$(K.get(G)),B=parseInt(M.attr("colspan")==null?"1":M.attr("colspan")),F=parseInt(M.attr("rowspan")==null?"1":M.attr("rowspan")),C=L[I];if(C==null){C=new Array();L[I]=C}for(var J=0;J<B;J++){var A=DxEMREditor.findArrayCell(C),H=new Object();H.td=M;H.rowspan=F;if(J==0){H.colspan=B;H.iscell=true}else{H.colspan=0;H.iscell=false}C[""+A]=H;for(var N=1;N<F;N++){var D=L[I+N];if(D==null){D=new Array();L[I+N]=D}H=new Object();H.td=M;H.rowspan=F;if(J==0)H.colspan=B;else H.colspan=0;H.iscell=false;D[""+A]=H}}}}return L};DxEMREditor.findTable=function(A){try{var C;if(A.tagName=="TD"||A.tagName=="TR"||A.tagName=="TABLE")return A;var D=0,B=A;while($(B).attr("watend")!="true"&&$(B).attr("watflag")!="true"&&B.tagName!="TABLE"&&B.tagName!="TR"&&B.tagName!="TD"){B=B.parentElement;if(B.tagName=="TD"||B.tagName=="TR"||B.tagName=="TABLE"){C=B;break}D++;if(D>10)break}return C}catch(_){}};DxEMREditor.findArrayCell=function(_){var $=0;while(_[""+$]!=null)$++;return $};DxEMREditor.findTableByTd=function(B){var A,$=0,_=B.parentElement;while(_!="TABLE"&&$<10){_=_.parentElement;if(_.tagName=="TABLE"){A=_;break}$++}return A};DxEMREditor.findParentByTd=function(B){var A,$=0,_=B.parentElement;while(_!="TABLE"&&_!="TBODY"&&$<10){_=_.parentElement;if(_.tagName=="TABLE"||_.tagName=="TBODY"){A=_;break}$++}return A};DxEMREditor.timer=function(G,I,B){try{var N=top.E_clientModel.E_getWindow(G);if(N==null)return;var D=WatCore.getWindowDoc(G,N),H=WatCore.getWindow(G,N),L=top.E_getObject(G,I,D),K=$("#"+I+"content",L).get(0),E=K.innerHTML,M=$("#"+I+"headercontent",L).get(0),J=M.innerHTML,_=$("#"+I+"footercontent",L).get(0),C=_.innerHTML,F=false;if(L.oldcontent!=E){F=true;L.oldcontent=E}if(L.oldheadercontent!=J){F=true;L.oldheadercontent=J}if(L.oldfootercontent!=C){F=true;L.oldfootercontent=C}if(F)top.WatCore.sendACallToEmrTimerMessage(G,I,"emrtimer",J,E,C,event)}catch(A){alert(A)}};DxEMREditor.getEditArea=function(B,A){var _=A.wrap,$=_.getAttribute("editarea");if($=="content")return A.content;else if($=="header")return A.headercontent;else if($=="footer")return A.footercontent};DxEMREditor.showContextMenu=function(I,L){var S=top.E_clientModel.E_getWindow(I),E=WatCore.getWindowDoc(I,S),J=WatCore.getWindow(I,S),P=top.E_getObject(I,L,E),T=DxEMREditor.getEditArea(L,P);DxEMREditor.doclick(T);var Q=J.event,A=$("#"+L+"wrap",P).get(0),K=A.scrollTop,V=$(P).attr("watstyle"),F=150,O=0,R=Q.clientX,_=Q.clientY,C=oPopupMenu.document,H=oPopupMenu.document.body,B="";if(Q!=null&&Q.srcElement.tagName=="IMG"){B+=DxEMREditor.getWatCellMenuRow(P,T,"imageedit");P.imageElement=Q.srcElement;O+=22}else if(DxEMREditor.isWatCellSelected(P,T)){if(V=="1"){var N=DxEMREditor.isWatCellSunType(P,T);if(N=="t3"){B+=DxEMREditor.getWatCellMenuRow(P,T,"cellPropandgl");O+=46}else{B+=DxEMREditor.getWatCellMenuRow(P,T,"cellProp");O+=22}}else if(V=="2"){N=DxEMREditor.isWatCellSunType(P,T);if(N=="t10"){B+=DxEMREditor.getWatCellMenuRow(P,T,"returngjc");O+=22}}}else if(DxEMREditor.isSelectedHasWatcell(P,T)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}else if(!DxEMREditor.isControlSelected(P,T,"TABLE")){if(!DxEMREditor.isCursorInTableCell(P,T)){if(V=="1"){if(P.hashdymenu=="true"){B+=DxEMREditor.getWatCellMenuRow(P,T,"cellInserthashdy");O+=272}else{B+=DxEMREditor.getWatCellMenuRow(P,T,"cellInsert");O+=250}}else if(V=="2"||V=="3"||V=="4"){B+=DxEMREditor.getWatCellMenuRow(P,T,"copypaste");O+=44;var D=P.popmenustr;if(D!=null&&D!=""){var M=D.split("&");if(M.length>0){B+=sMenuHr;O+=22*M.length;for(var U=0;U<M.length;U++){var G=M[U].split("|");if(G.length==3)B+=DxEMREditor.getMenuRow2("","top.DxEMREditor.popmenuaction('"+I+"','"+L+"','"+G[1]+"')",""+G[2]+"",""+G[0]+"")}}}}}else if(V=="1"){if(P.hashdymenu=="true"){B+=DxEMREditor.getTableMenuRow(P,T,"TableProp");B+=sMenuHr;B+=DxEMREditor.getTableMenuRow(P,T,"TableCell");B+=sMenuHr;B+=DxEMREditor.getWatCellMenuRow(P,T,"cellInserthashdy");O+=558}else{B+=DxEMREditor.getTableMenuRow(P,T,"TableProp");B+=sMenuHr;B+=DxEMREditor.getTableMenuRow(P,T,"TableCell");B+=sMenuHr;B+=DxEMREditor.getWatCellMenuRow(P,T,"cellInsert");O+=536}}else if(V=="2"){B+=DxEMREditor.getTableMenuRow(P,T,"TableProp");B+=sMenuHr;B+=DxEMREditor.getTableMenuRow(P,T,"TableCell");O+=300;B+=sMenuHr;B+=DxEMREditor.getWatCellMenuRow(P,T,"copypaste");O+=44;D=P.popmenustr;if(D!=null&&D!=""){M=D.split("&");if(M.length>0){B+=sMenuHr;O+=22*M.length;for(U=0;U<M.length;U++){G=M[U].split("|");if(G.length==3)B+=DxEMREditor.getMenuRow2("","top.DxEMREditor.popmenuaction('"+I+"','"+L+"','"+G[1]+"')",""+G[2]+"",""+G[0]+"")}}}}}if(O==0)return false;B=sMenu1+B+sMenu2;if(top.isIE){C.open();C.write(StyleMenuHeader+B);C.close()}else H.innerHTML=StyleMenuHeader+B;if(R+F>document.body.clientWidth)R=R-F;if(_+O>document.body.clientHeight)_=_-O;if(parseInt(_)<0)_=0;if(top.isIE)oPopupMenu.show(R,_,F,O,T.document.body);else oPopupMenu.show(R,_,F,O,document.body);A.scrollTop=K;return false};DxEMREditor.createToolBar=function(F,I,B,G,O,C,H,P){var Q=top.E_clientModel.E_getWindow(F),D=WatCore.getWindowDoc(F,Q),R=top.E_getObject(F,I+"toolbarwrap",D);if(R!=null){var M=top.E_getObject(F,I,D),S=M.getAttribute("watstyle"),E="",A=false,K="";if(M.tablelock)K="<DIV class=Btn style='width:20px;' title=\u8868\u683c\u62d6\u62fd\u9501\u5b9a><IMG onclick=\"top.DxEMREditor.lock(this)\" class=Ico src=\""+top.watLocation2+"/images/emr/lock.png\"></DIV>";else K="<DIV class=Btn style='width:20px;' title=\u8868\u683c\u62d6\u62fd\u89e3\u9501><IMG onclick=\"top.DxEMREditor.lock(this)\" class=Ico src=\""+top.watLocation2+"/images/emr/unlock.png\"></DIV>";var _=M.issampletoolbar;if(S=="1"||S=="2"){if(O=="true"){A=true;E+="<DIV class=Btn style='width:20px;' title=\u65b0\u5efa\u7a7a\u767d\u75c5\u5386><IMG class=Ico onclick=\"top.DxEMREditor.saveContent('"+F+"','"+I+"','openblank');\" src=\""+top.watLocation2+"/images/emr/openblank.png\"></DIV>"}if(G=="true"){A=true;E+="<DIV class=Btn style='width:20px;' title=\u6253\u5f00\u75c5\u5386\u6a21\u677f\u5e93><IMG class=Ico onclick=\"top.DxEMREditor.saveContent('"+F+"','"+I+"','open');\" src=\""+top.watLocation2+"/images/emr/open.png\"></DIV>"}if(B=="true"){A=true;E+="<DIV class=Btn style='width:20px;' title=\u4fdd\u5b58><IMG class=Ico onclick=\"top.DxEMREditor.saveContent('"+F+"','"+I+"','save');\" src=\""+top.watLocation2+"/images/emr/save.png\"></DIV>"}if(C=="true"){A=true;E+="<DIV class=Btn style='width:20px;' title=\u53e6\u5b58\u4e3a><IMG class=Ico onclick=\"top.DxEMREditor.saveContent('"+F+"','"+I+"','saveas');\" src=\""+top.watLocation2+"/images/emr/saveas.png\"></DIV>"}if(H=="true"){A=true;E+="<DIV class=Btn style='width:20px;' title=\u6253\u5370><IMG class=Ico onclick=\"top.DxEMREditor.saveContent('"+F+"','"+I+"','printer');\" src=\""+top.watLocation2+"/images/emr/print.png\"></DIV>"}if(A&&P!=""){var $=P.split("&");if($.length>0){E+="<DIV class=TBSep style='width:0px;' ></DIV>";for(var J=0;J<$.length;J++){var N=$[J].split("|");if(N.length==3)E+="<DIV class=Btn style='width:20px;' title="+N[0]+"><IMG class=Ico onclick=\"top.DxEMREditor.saveContent('"+F+"','"+I+"','"+N[1]+"');\" src=\""+N[2]+"\"></DIV>"}}}var L="<TABLE class='emr_Toolbar' wid='"+F+"' sid='"+I+"' endflag='true' border=0 cellSpacing=0 cellPadding=0 width='100%'><TBODY>";if(_=="true")L+="<TR><TD><DIV id='"+I+"_yToolbar' class=yToolbar><DIV class=TBHandle style='width:0px;' ></DIV>"+E+"<DIV class=TBSep style='width:0px;' ></DIV><SELECT onchange=\"top.DxEMREditor.formatName(this,'fontname',this[this.selectedIndex].value);this.selectedIndex=0\" style='width:70px' class=TBGen><OPTION selected>\u5b57\u4f53</OPTION><OPTION value=\u5b8b\u4f53>\u5b8b\u4f53</OPTION><OPTION value=\u9ed1\u4f53>\u9ed1\u4f53</OPTION><OPTION value=\u6977\u4f53_GB2312>\u6977\u4f53</OPTION><OPTION value=\u4eff\u5b8b_GB2312>\u4eff\u5b8b</OPTION><OPTION value=\u96b6\u4e66>\u96b6\u4e66</OPTION><OPTION value=\u5e7c\u5706>\u5e7c\u5706</OPTION><OPTION value=Tahoma>Tahoma</OPTION><OPTION value=Arial>Arial</OPTION><OPTION value=\"Arial Black\">Arial Black</OPTION><OPTION value=\"Arial Narrow\">Arial Narrow</OPTION><OPTION value=\"Brush Script MT\">Brush Script MT</OPTION><OPTION value=\"Century Gothic\">Century Gothic</OPTION><OPTION value=\"Comic Sans MS\">Comic Sans MS</OPTION><OPTION value=Courier>Courier</OPTION><OPTION value=\"Courier New\">Courier New</OPTION><OPTION value=\"MS Sans Serif\">MS Sans Serif</OPTION><OPTION value=Script>Script</OPTION><OPTION value=System>System</OPTION><OPTION value=\"Times New Roman\">Times New Roman</OPTION><OPTION value=Verdana>Verdana</OPTION><OPTION value=\"Wide Latin\">Wide Latin</OPTION><OPTION value=Wingdings>Wingdings</OPTION></SELECT><SELECT onchange=\"top.DxEMREditor.formatFont(this,'fontsize',this[this.selectedIndex].value);\" id='fontsizeselect' style='width:70px' class=TBGen><OPTION selected>\u5b57\u53f7</OPTION><OPTION value='1.84mm'>\u516b\u53f7</OPTION><OPTION value='2.12mm'>\u4e03\u53f7</OPTION><OPTION value='2.45mm'>\u5c0f\u516d</OPTION><OPTION value='2.81mm'>\u516d\u53f7</OPTION><OPTION value='3.15mm'>\u5c0f\u4e94</OPTION><OPTION value='3.7mm'>\u4e94\u53f7</OPTION><OPTION value='4.25mm'>\u5c0f\u56db</OPTION><OPTION value='4.93mm'>\u56db\u53f7</OPTION><OPTION value='5.23mm'>\u5c0f\u4e09</OPTION><OPTION value='5.55mm'>\u4e09\u53f7</OPTION><OPTION value='6.37mm'>\u5c0f\u4e8c</OPTION><OPTION value='7.8mm'>\u4e8c\u53f7</OPTION><OPTION value='8.42mm'>\u5c0f\u4e00 </OPTION><OPTION value='9.66mm'>\u4e00\u53f7</OPTION><OPTION value='11.1mm'>\u5c0f\u521d</OPTION><OPTION value='12.7mm'>\u521d\u53f7</OPTION></SELECT>"+K+"<DIV class=Btn style='width:20px;' title=\u7c97\u4f53><IMG onclick=\"top.DxEMREditor.format(this,'Bold')\" class=Ico src=\""+top.watLocation2+"/images/emr/bold.png\"></DIV><DIV class=Btn style='width:20px;' title=\u659c\u4f53 ><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'italic')\" src=\""+top.watLocation2+"/images/emr/italic.png\"></DIV><DIV class=Btn style='width:20px;' title=\u4e0b\u5212\u7ebf ><IMG onclick=\"top.DxEMREditor.format(this,'Underline')\" class=Ico src=\""+top.watLocation2+"/images/emr/underline.png\"></DIV><DIV class=Btn style='width:20px;' title=\u4e0a\u6807 ><IMG onclick=\"top.DxEMREditor.format(this,'superscript')\" class=Ico src=\""+top.watLocation2+"/images/emr/superscript.png\"></DIV><DIV class=Btn style='width:20px;' title=\u4e0b\u6807 ><IMG onclick=\"top.DxEMREditor.format(this,'subscript')\" class=Ico src=\""+top.watLocation2+"/images/emr/subscript.png\"></DIV><DIV class=TBSep></DIV><DIV class=Btn style='width:20px;' title=\u9996\u884c\u7f29\u8fdb ><IMG onclick=\"top.DxEMREditor.format(this,'shsj')\" class=Ico src=\""+top.watLocation2+"/images/emr/shsj.png\"></DIV><DIV class=Btn style='width:20px;' title=\u63d2\u5165\u7279\u6b8a\u5b57\u7b26 ><IMG class=Ico onclick=top.DxEMREditor.fnLaunch(this) src=\""+top.watLocation2+"/images/emr/symbol.png\"></DIV></DIV></TD></TR>";else L+="<TR><TD><DIV id='"+I+"_yToolbar' class=yToolbar><DIV class=TBHandle style='width:0px;' ></DIV>"+E+"<DIV class=TBSep style='width:0px;' ></DIV><SELECT onchange=\"top.DxEMREditor.formatName(this,'fontname',this[this.selectedIndex].value);this.selectedIndex=0\" style='width:70px' class=TBGen><OPTION selected>\u5b57\u4f53</OPTION><OPTION value=\u5b8b\u4f53>\u5b8b\u4f53</OPTION><OPTION value=\u9ed1\u4f53>\u9ed1\u4f53</OPTION><OPTION value=\u6977\u4f53_GB2312>\u6977\u4f53</OPTION><OPTION value=\u4eff\u5b8b_GB2312>\u4eff\u5b8b</OPTION><OPTION value=\u96b6\u4e66>\u96b6\u4e66</OPTION><OPTION value=\u5e7c\u5706>\u5e7c\u5706</OPTION><OPTION value=Tahoma>Tahoma</OPTION><OPTION value=Arial>Arial</OPTION><OPTION value=\"Arial Black\">Arial Black</OPTION><OPTION value=\"Arial Narrow\">Arial Narrow</OPTION><OPTION value=\"Brush Script MT\">Brush Script MT</OPTION><OPTION value=\"Century Gothic\">Century Gothic</OPTION><OPTION value=\"Comic Sans MS\">Comic Sans MS</OPTION><OPTION value=Courier>Courier</OPTION><OPTION value=\"Courier New\">Courier New</OPTION><OPTION value=\"MS Sans Serif\">MS Sans Serif</OPTION><OPTION value=Script>Script</OPTION><OPTION value=System>System</OPTION><OPTION value=\"Times New Roman\">Times New Roman</OPTION><OPTION value=Verdana>Verdana</OPTION><OPTION value=\"Wide Latin\">Wide Latin</OPTION><OPTION value=Wingdings>Wingdings</OPTION></SELECT><SELECT onchange=\"top.DxEMREditor.formatFont(this,'fontsize',this[this.selectedIndex].value);\" id='fontsizeselect' style='width:70px' class=TBGen><OPTION selected>\u5b57\u53f7</OPTION><OPTION value='1.84mm'>\u516b\u53f7</OPTION><OPTION value='2.12mm'>\u4e03\u53f7</OPTION><OPTION value='2.45mm'>\u5c0f\u516d</OPTION><OPTION value='2.81mm'>\u516d\u53f7</OPTION><OPTION value='3.15mm'>\u5c0f\u4e94</OPTION><OPTION value='3.7mm'>\u4e94\u53f7</OPTION><OPTION value='4.25mm'>\u5c0f\u56db</OPTION><OPTION value='4.93mm'>\u56db\u53f7</OPTION><OPTION value='5.23mm'>\u5c0f\u4e09</OPTION><OPTION value='5.55mm'>\u4e09\u53f7</OPTION><OPTION value='6.37mm'>\u5c0f\u4e8c</OPTION><OPTION value='7.8mm'>\u4e8c\u53f7</OPTION><OPTION value='8.42mm'>\u5c0f\u4e00 </OPTION><OPTION value='9.66mm'>\u4e00\u53f7</OPTION><OPTION value='11.1mm'>\u5c0f\u521d</OPTION><OPTION value='12.7mm'>\u521d\u53f7</OPTION></SELECT>"+K+"<DIV class=Btn style='width:20px;' title=\u7c97\u4f53><IMG onclick=\"top.DxEMREditor.format(this,'Bold')\" class=Ico src=\""+top.watLocation2+"/images/emr/bold.png\"></DIV><DIV class=Btn style='width:20px;' title=\u659c\u4f53 ><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'italic')\" src=\""+top.watLocation2+"/images/emr/italic.png\"></DIV><DIV class=Btn style='width:20px;' title=\u4e0b\u5212\u7ebf ><IMG onclick=\"top.DxEMREditor.format(this,'Underline')\" class=Ico src=\""+top.watLocation2+"/images/emr/underline.png\"></DIV><DIV class=Btn style='width:20px;' title=\u4e0a\u6807 ><IMG onclick=\"top.DxEMREditor.format(this,'superscript')\" class=Ico src=\""+top.watLocation2+"/images/emr/superscript.png\"></DIV><DIV class=Btn style='width:20px;' title=\u4e0b\u6807 ><IMG onclick=\"top.DxEMREditor.format(this,'subscript')\" class=Ico src=\""+top.watLocation2+"/images/emr/subscript.png\"></DIV><DIV class=TBSep></DIV><DIV class=Btn style='width:20px;' title=\u9996\u884c\u7f29\u8fdb ><IMG onclick=\"top.DxEMREditor.format(this,'shsj')\" class=Ico src=\""+top.watLocation2+"/images/emr/shsj.png\"></DIV> <DIV class=Btn style='width:20px;' title=\u5de6\u5bf9\u9f50 ><IMG onclick=\"top.DxEMREditor.format(this,'justifyleft')\" class=Ico src=\""+top.watLocation2+"/images/emr/justifyleft.png\"></DIV><DIV class=Btn style='width:20px;' title=\u5c45\u4e2d\u5bf9\u9f50 ><IMG onclick=\"top.DxEMREditor.format(this,'justifycenter')\" class=Ico src=\""+top.watLocation2+"/images/emr/justifycenter.png\"></DIV><DIV class=Btn style='width:20px;' title=\u53f3\u5bf9\u9f50 ><IMG onclick=\"top.DxEMREditor.format(this,'justifyright')\" class=Ico src=\""+top.watLocation2+"/images/emr/justifyright.png\"></DIV><DIV class=Btn style='width:20px;' title=\u4e24\u7aef\u5bf9\u9f50 ><IMG onclick=\"top.DxEMREditor.format(this,'JustifyFull')\" class=Ico src=\""+top.watLocation2+"/images/emr/justifyfull.png\"></DIV><DIV class=TBSep></DIV><DIV class=Btn style='width:20px;' title=\u526a\u5207 ><IMG class=Ico onclick=\"top.DxEMREditor.format_xz(this,'cut')\" src=\""+top.watLocation2+"/images/emr/cut.png\"></DIV><DIV class=Btn style='width:20px;' title=\u590d\u5236 ><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'copy')\" src=\""+top.watLocation2+"/images/emr/copy.png\"></DIV><DIV class=Btn style='width:20px;' title=\u7c98\u8d34 ><IMG class=Ico onclick=\"top.DxEMREditor.onPaste_(this)\" src=\""+top.watLocation2+"/images/emr/paste.png\"></DIV><DIV class=Btn style='width:20px;' title=\u67e5\u627e\u66ff\u6362... ><IMG class=Ico onclick=top.DxEMREditor.findReplace(this) src=\""+top.watLocation2+"/images/emr/findreplace.png\"></DIV><DIV class=Btn style='width:20px;' title=\u5220\u9664><IMG class=Ico onclick=\"top.DxEMREditor.format_xz(this,'delete')\" src=\""+top.watLocation2+"/images/emr/delete.png\"></DIV><DIV class=Btn style='width:20px;' title=\u5220\u9664\u6587\u5b57\u683c\u5f0f><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'RemoveFormat')\" src=\""+top.watLocation2+"/images/emr/removeformat.png\"></DIV><DIV class=TBSep></DIV><DIV class=Btn style='width:20px;' title=\u64a4\u6d88 ><IMG class=Ico onclick=top.DxEMREditor.goHistory(this,-1) src=\""+top.watLocation2+"/images/emr/undo.png\"></DIV><DIV class=Btn style='width:20px;' title=\u6062\u590d ><IMG class=Ico onclick=top.DxEMREditor.goHistory(this,1) src=\""+top.watLocation2+"/images/emr/redo.png\"></DIV><DIV class=TBSep></DIV><DIV class=Btn style='width:20px;' title=\u7f16\u53f7 ><IMG onclick=\"top.DxEMREditor.format(this,'insertorderedlist')\" class=Ico src=\""+top.watLocation2+"/images/emr/insertorderedlist.png\"></DIV><DIV class=Btn style='width:20px;' title=\u9879\u76ee\u7b26\u53f7 ><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'insertunorderedlist')\" src=\""+top.watLocation2+"/images/emr/insertunorderedlist.png\"></DIV><DIV class=Btn style='width:20px;' title=\u589e\u52a0\u7f29\u8fdb\u91cf ><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'indent')\" src=\""+top.watLocation2+"/images/emr/indent.png\"></DIV><DIV class=Btn style='width:20px;' title=\u51cf\u5c11\u7f29\u8fdb\u91cf ><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'outdent')\" src=\""+top.watLocation2+"/images/emr/outdent.png\"></DIV><DIV class=TBSep></DIV><DIV class=Btn style='width:20px;' title=\u8868\u683c\u83dc\u5355><IMG class=Ico onclick=\"top.DxEMREditor.showToolMenu(this,'table');\" src=\""+top.watLocation2+"/images/emr/tablemenu.png\"></DIV><DIV class=Btn style='width:20px;' title=\u63d2\u5165\u5206\u9875\u7b26><IMG class=Ico onclick=\"top.DxEMREditor.fyf(this);\" width=20 height=20 src=\""+top.watLocation2+"/images/emr/fyf.png\"></DIV><DIV class=Btn style='width:20px;' title=\u63d2\u5165\u6c34\u5e73\u5c3a><IMG class=Ico onclick=\"top.DxEMREditor.spc_(this);\" src=\""+top.watLocation2+"/images/emr/inserthorizontalrule.png\"></DIV><DIV class=Btn style='width:20px;' title=\u63d2\u5165\u98ce\u683c\u7ebf><IMG class=Ico onclick=\"top.DxEMREditor.setstyleline_(this);\" src=\""+top.watLocation2+"/images/emr/justifyfull.png\"></DIV><DIV class=Btn style='width:20px;' title=\u63d2\u5165\u7279\u6b8a\u5b57\u7b26 ><IMG class=Ico onclick=top.DxEMREditor.fnLaunch(this) src=\""+top.watLocation2+"/images/emr/symbol.png\"></DIV><DIV class=Btn style='width:20px;' title=\u63d2\u5165\u5f53\u524d\u65e5\u671f ><IMG class=Ico onclick=\"top.DxEMREditor.insert(this,'nowdate')\" src=\""+top.watLocation2+"/images/emr/date.png\"></DIV><DIV class=Btn style='width:20px;' title=\u63d2\u5165\u5f53\u524d\u65f6\u95f4 ><IMG class=Ico onclick=\"top.DxEMREditor.insert(this,'nowtime')\" src=\""+top.watLocation2+"/images/emr/time.png\"></DIV></DIV></TD></TR>";L+="</TBODY></TABLE>"}else if(S=="3"||S=="4"){if(B=="true"){A=true;E+="<DIV class=Btn style='width:20px;' title=\u4fdd\u5b58><IMG class=Ico onclick=\"top.DxEMREditor.saveContent('"+F+"','"+I+"','save');\" src=\""+top.watLocation2+"/images/emr/save.png\"></DIV>"}if(H=="true"){A=true;E+="<DIV class=Btn style='width:20px;' style='width:20px;' style='width:20px;' title=\u6253\u5370><IMG class=Ico onclick=\"top.DxEMREditor.saveContent('"+F+"','"+I+"','printer');\" src=\""+top.watLocation2+"/images/emr/print.png\"></DIV>"}if(A&&P!=""){$=P.split("&");if($.length>0){E+="<DIV class=TBSep></DIV>";for(J=0;J<$.length;J++){N=$[J].split("|");if(N.length==3)E+="<DIV class=Btn style='width:20px;' title="+N[0]+"><IMG class=Ico onclick=\"top.DxEMREditor.saveContent('"+F+"','"+I+"','"+N[1]+"');\" src=\""+N[2]+"\"></DIV>"}}}L="<TABLE class='emr_Toolbar' wid='"+F+"' sid='"+I+"' endflag='true' border=0 cellSpacing=0 cellPadding=0 width='100%'><TBODY>";L+="<TR><TD><DIV id='"+I+"_yToolbar' class=yToolbar><DIV class=TBHandle></DIV>"+E+"<SELECT onchange=\"top.DxEMREditor.formatName(this,'fontname',this[this.selectedIndex].value);this.selectedIndex=0\" style='width:70px' class=TBGen><OPTION selected>\u5b57\u4f53</OPTION><OPTION value=\u5b8b\u4f53>\u5b8b\u4f53</OPTION><OPTION value=\u9ed1\u4f53>\u9ed1\u4f53</OPTION><OPTION value=\u6977\u4f53_GB2312>\u6977\u4f53</OPTION><OPTION value=\u4eff\u5b8b_GB2312>\u4eff\u5b8b</OPTION><OPTION value=\u96b6\u4e66>\u96b6\u4e66</OPTION><OPTION value=\u5e7c\u5706>\u5e7c\u5706</OPTION><OPTION value=Tahoma>Tahoma</OPTION><OPTION value=Arial>Arial</OPTION><OPTION value=\"Arial Black\">Arial Black</OPTION><OPTION value=\"Arial Narrow\">Arial Narrow</OPTION><OPTION value=\"Brush Script MT\">Brush Script MT</OPTION><OPTION value=\"Century Gothic\">Century Gothic</OPTION><OPTION value=\"Comic Sans MS\">Comic Sans MS</OPTION><OPTION value=Courier>Courier</OPTION><OPTION value=\"Courier New\">Courier New</OPTION><OPTION value=\"MS Sans Serif\">MS Sans Serif</OPTION><OPTION value=Script>Script</OPTION><OPTION value=System>System</OPTION><OPTION value=\"Times New Roman\">Times New Roman</OPTION><OPTION value=Verdana>Verdana</OPTION><OPTION value=\"Wide Latin\">Wide Latin</OPTION><OPTION value=Wingdings>Wingdings</OPTION></SELECT><SELECT onchange=\"top.DxEMREditor.formatFont(this,'fontsize',this[this.selectedIndex].value);\" id='fontsizeselect' style='width:70px' class=TBGen><OPTION selected>\u5b57\u53f7</OPTION><OPTION value='1.84mm'>\u516b\u53f7</OPTION><OPTION value='2.12mm'>\u4e03\u53f7</OPTION><OPTION value='2.45mm'>\u5c0f\u516d</OPTION><OPTION value='2.81mm'>\u516d\u53f7</OPTION><OPTION value='3.15mm'>\u5c0f\u4e94</OPTION><OPTION value='3.7mm'>\u4e94\u53f7</OPTION><OPTION value='4.25mm'>\u5c0f\u56db</OPTION><OPTION value='4.93mm'>\u56db\u53f7</OPTION><OPTION value='5.23mm'>\u5c0f\u4e09</OPTION><OPTION value='5.55mm'>\u4e09\u53f7</OPTION><OPTION value='6.37mm'>\u5c0f\u4e8c</OPTION><OPTION value='7.8mm'>\u4e8c\u53f7</OPTION><OPTION value='8.42mm'>\u5c0f\u4e00 </OPTION><OPTION value='9.66mm'>\u4e00\u53f7</OPTION><OPTION value='11.1mm'>\u5c0f\u521d</OPTION><OPTION value='12.7mm'>\u521d\u53f7</OPTION></SELECT>"+K+"<DIV class=Btn style='width:20px;' title=\u7c97\u4f53><IMG onclick=\"top.DxEMREditor.format(this,'Bold')\" class=Ico src=\""+top.watLocation2+"/images/emr/bold.png\"></DIV><DIV style='width:20px;' class=Btn title=\u659c\u4f53 ><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'italic')\" src=\""+top.watLocation2+"/images/emr/italic.png\"></DIV><DIV class=Btn style='width:20px;' title=\u4e0b\u5212\u7ebf ><IMG onclick=\"top.DxEMREditor.format(this,'Underline')\" class=Ico src=\""+top.watLocation2+"/images/emr/underline.png\"></DIV><DIV class=Btn style='width:20px;' title=\u4e0a\u6807 ><IMG onclick=\"top.DxEMREditor.format(this,'superscript')\" class=Ico src=\""+top.watLocation2+"/images/emr/superscript.png\"></DIV><DIV class=Btn style='width:20px;' title=\u4e0b\u6807 ><IMG onclick=\"top.DxEMREditor.format(this,'subscript')\" class=Ico src=\""+top.watLocation2+"/images/emr/subscript.png\"></DIV><DIV class=Btn style='width:20px;' title=\u9996\u884c\u7f29\u8fdb ><IMG onclick=\"top.DxEMREditor.format(this,'shsj')\" class=Ico src=\""+top.watLocation2+"/images/emr/shsj.png\"></DIV><DIV class=TBSep></DIV><DIV class=Btn style='width:20px;' title=\u5de6\u5bf9\u9f50 ><IMG onclick=\"top.DxEMREditor.format(this,'justifyleft')\" class=Ico src=\""+top.watLocation2+"/images/emr/justifyleft.png\"></DIV><DIV class=Btn style='width:20px;' title=\u5c45\u4e2d\u5bf9\u9f50 ><IMG onclick=\"top.DxEMREditor.format(this,'justifycenter')\" class=Ico src=\""+top.watLocation2+"/images/emr/justifycenter.png\"></DIV><DIV class=Btn style='width:20px;' title=\u53f3\u5bf9\u9f50 ><IMG onclick=\"top.DxEMREditor.format(this,'justifyright')\" class=Ico src=\""+top.watLocation2+"/images/emr/justifyright.png\"></DIV><DIV class=Btn style='width:20px;' title=\u4e24\u7aef\u5bf9\u9f50 ><IMG onclick=\"top.DxEMREditor.format(this,'JustifyFull')\" class=Ico src=\""+top.watLocation2+"/images/emr/justifyfull.png\"></DIV><DIV class=TBSep></DIV><DIV class=Btn style='width:20px;' title=\u590d\u5236 ><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'copy')\" src=\""+top.watLocation2+"/images/emr/copy.png\"></DIV><DIV class=Btn style='width:20px;' title=\u7c98\u8d34 ><IMG class=Ico onclick=\"top.DxEMREditor.onPaste_(this)\" src=\""+top.watLocation2+"/images/emr/paste.png\"></DIV><DIV class=TBSep></DIV><DIV class=Btn style='width:20px;' title=\u64a4\u6d88 ><IMG class=Ico onclick=top.DxEMREditor.goHistory(this,-1) src=\""+top.watLocation2+"/images/emr/undo.png\"></DIV><DIV class=Btn style='width:20px;' title=\u6062\u590d ><IMG class=Ico onclick=top.DxEMREditor.goHistory(this,1) src=\""+top.watLocation2+"/images/emr/redo.png\"></DIV><DIV class=TBSep></DIV><DIV class=Btn style='width:20px;' title=\u7f16\u53f7 ><IMG onclick=\"top.DxEMREditor.format(this,'insertorderedlist')\" class=Ico src=\""+top.watLocation2+"/images/emr/insertorderedlist.png\"></DIV><DIV class=Btn style='width:20px;' title=\u9879\u76ee\u7b26\u53f7 ><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'insertunorderedlist')\" src=\""+top.watLocation2+"/images/emr/insertunorderedlist.png\"></DIV><DIV class=Btn style='width:20px;' title=\u589e\u52a0\u7f29\u8fdb\u91cf ><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'indent')\" src=\""+top.watLocation2+"/images/emr/indent.png\"></DIV><DIV style='width:20px;' class=Btn title=\u51cf\u5c11\u7f29\u8fdb\u91cf ><IMG class=Ico onclick=\"top.DxEMREditor.format(this,'outdent')\" src=\""+top.watLocation2+"/images/emr/outdent.png\"></DIV><DIV class=TBSep></DIV><DIV class=Btn style='width:20px;' title=\u63d2\u5165\u7279\u6b8a\u5b57\u7b26 ><IMG class=Ico onclick=top.DxEMREditor.fnLaunch(this) src=\""+top.watLocation2+"/images/emr/symbol.png\"></DIV><DIV class=Btn style='width:20px;' title=\u63d2\u5165\u5f53\u524d\u65e5\u671f ><IMG class=Ico onclick=\"top.DxEMREditor.insert(this,'nowdate')\" src=\""+top.watLocation2+"/images/emr/date.png\"></DIV><DIV class=Btn style='width:20px;' title=\u63d2\u5165\u5f53\u524d\u65f6\u95f4 ><IMG class=Ico onclick=\"top.DxEMREditor.insert(this,'nowtime')\" src=\""+top.watLocation2+"/images/emr/time.png\"></DIV></DIV></TD></TR>";L+="</TBODY></TABLE>"}R.innerHTML=L}};DxEMREditor.doit=function(J){var A=DxEMREditor.getContainer(J);if(A==null)return;var I=A.id,D=$(A).attr("wid"),C=DxEMREditor.getEditArea(I,A);C.focus();var G=C.document.selection,B=G.createRange(),E=B.text.length,F=B.offsetLeft,_=B.offsetTop,H=B.boundingHeight;H=parseInt(_)+parseInt(H);A.rng=B;WatCore.call(D,I,"dblenter&"+F+"&"+H)};DxEMREditor.actionit=function(C,D,_){var $=top.E_getObject(C,D,_);if($==null)return;var B=DxEMREditor.getEditArea(D,$);B.focus();var A=$.rng;DxEMREditor.select($,B,A);DxEMREditor.insertHTML(B,"\u63d2\u5165\u6d4b\u8bd5")};DxEMREditor.processPageLine=function(C,E,M){var J=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,J),I=top.E_getObject(C,E,B),_=I.wrap,G=I.content,A=G.clientHeight,H=parseInt(A)*I.mpx,O=I.pageheight-I.pt-I.pb,L=parseInt((A+15)/(O/I.mpx)),N=parseInt((L+1)*(O)/I.mpx)-(L)*(2/I.mpx);if(A>N)L++;var D=I.pagelines,$=D.length,K=0;if(L<$||M){DxEMREditor.clearPageLine(I,_);for(var F=0;F<L;F++){K=parseInt(parseInt(I.pt)/I.mpx+(F+1)*(O)/I.mpx);DxEMREditor.createPageLine(I,_,B,K)}}else if(L>$)for(F=$;F<L;F++){K=parseInt(parseInt(I.pt)/I.mpx+(F+1)*(O)/I.mpx);DxEMREditor.createPageLine(I,_,B,K)}};DxEMREditor.clearPageLine=function(_,$){var A=_.pagelines;for(var B=0;B<A.length;B++)$.removeChild(A[B]);_.pagelines=[]};DxEMREditor.createPageLine=function(B,_,C,A){var D=C.createElement("div");D.style.marginTop="1px";D.style.borderTop="1px dashed #ff0033";D.style.borderBottom="1px none #CCCCCC";D.style.zIndex=-1;D.style.fontSize=13;D.style.width="100%";D.style.left=0+"px";D.style.top=A+"px";D.style.position="absolute";D.style.background="transparent";D.style.height="0px";D.style.overflowX="hidden";D.style.color="#66ff00";D.style.textAlign="left";$(D).text("\u7b2c"+(parseInt(B.pagelines.length)+1)+"\u9875");if(top.isIE)_.insertBefore(D);else _.appendChild(D);B.pagelines[B.pagelines.length]=D};DxEMREditor.resizetimer=function(D,H){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,H,B);if(top.isIE){var _=A.wrap,G=A.header,F=parseInt(_.scrollTop),E=parseInt($(G).height());if(F-E<=1){_.scrollTop=E+1;_.scrollTop=F}}};DxEMREditor.resizeChange=function(C,F){try{var J=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,J),D=WatCore.getWindow(C,J),H=top.E_getObject(C,F,B),I=parseInt(H.clientWidth);if(I>0&&I==H.oldwidth){if(top.isIE){var _=H.wrap,G=H.header,E=parseInt(_.scrollTop),K=parseInt($(G).height());if(E-K<=1){_.scrollTop=K+1;_.scrollTop=E}}return}H.oldwidth=I;top.DxEMREditor.initEdit(C,F)}catch(A){}};DxEMREditor.initEdit=function(N,Q){try{var Z=top.E_clientModel.E_getWindow(N),M=WatCore.getWindowDoc(N,Z),V=top.E_getObject(N,Q,M),I=$("#"+Q+"footercontent",V).get(0),_=$("#"+Q+"footerleft",V).get(0),b=$("#"+Q+"footerright",V).get(0),F=$("#"+Q+"footermask",V).get(0),A=$("#"+Q+"contentmask",V).get(0),J=V.wrap;if(!top.isIE){if(!top.isSafari)J.style.height=J.parentElement.clientHeight}var T=V.content,R=V.header,U=V.footer,D=V.headercontent,G=V.headerleft,K=V.headerright,B=V.headermask,W=parseInt(V.clientWidth)-22,E=$(T).width(),S=parseInt(parseInt(T.style.width)/V.mpx);if(W<S-50)W=S;var c=parseInt(W)-parseInt(E),c=c/2;if(c<0)c=0;var a=parseInt(V.pl),d=parseInt(V.pr),Y=parseInt(V.pt),X=parseInt(V.pb),P=parseInt(T.style.width);if(!top.isIE)P+=a+d;R.style.width=P+"mm";R.style.height=parseInt(Y)+"mm";G.style.right=P-a+"mm";K.style.left=P-d+"mm";D.style.height=Y+"mm";D.style.left=a+"mm";D.style.width=P-a-d+"mm";B.style.height=Y+"mm";B.style.left=a+"mm";B.style.width=P-a-d+"mm";A.style.height=T.clientHeight;A.style.width=P+"mm";U.style.width=P+"mm";U.style.height=parseInt(X)+"mm";_.style.right=P-a+"mm";b.style.left=P-d+"mm";var C=X-1;if(C<0)C=0;I.style.height=C+"mm";I.style.left=a+"mm";I.style.width=P-a-d+"mm";F.style.height=C+"mm";F.style.left=a+"mm";F.style.width=P-a-d+"mm";T.ownerDocument.execCommand("2D-Position",true,true);T.ownerDocument.execCommand("MultipleSelection",true,true);T.ownerDocument.execCommand("LiveResize",true,true);D.ownerDocument.execCommand("2D-Position",true,true);D.ownerDocument.execCommand("MultipleSelection",true,true);D.ownerDocument.execCommand("LiveResize",true,true);I.ownerDocument.execCommand("2D-Position",true,true);I.ownerDocument.execCommand("MultipleSelection",true,true);I.ownerDocument.execCommand("LiveResize",true,true);if(top.isIE){var O=parseInt(J.scrollTop),H=parseInt($(R).height());if(O-H<=1){J.scrollTop=H+1;J.scrollTop=O}}}catch(L){}};DxEMREditor.headerclick=function(E,G,H){tdmovebegin=0;var B=H.parentElement.parentElement,A=$("#"+G+"content",B).get(0),F=$("#"+G+"headercontent",B).get(0),C=$("#"+G+"contentmask",B).get(0),_=$("#"+G+"footercontent",B).get(0),D=$("#"+G+"footercontent",B).get(0);F.contentEditable="true";A.contentEditable="false";_.contentEditable="false";F.style.border="1px dashed #000";_.style.border="1px none #000";H.style.visibility="hidden";C.style.visibility="visible";D.style.visibility="visible";C.style.height=A.clientHeight+"px";C.style.width=(A.clientWidth-2)+"px";C.style.top=A.offsetTop+"px";C.style.left=(A.offsetLeft+1)+"px";B.editarea="header";DxEMREditor.doclick(F)};DxEMREditor.footerclick=function(D,F,H){tdmovebegin=0;var B=H.parentElement.parentElement,A=$("#"+F+"content",B).get(0),E=$("#"+F+"headercontent",B).get(0),C=$("#"+F+"contentmask",B).get(0),G=$("#"+F+"headermask",B).get(0),_=$("#"+F+"footercontent",B).get(0);E.contentEditable="false";A.contentEditable="false";_.contentEditable="true";_.style.border="1px dashed #000";E.style.border="1px none #000";H.style.visibility="hidden";C.style.visibility="visible";G.style.visibility="visible";if(top.isIE)C.style.height=(A.clientHeight)+"px";else C.style.height=(A.clientHeight-E.clientHeight)+"px";C.style.width=(A.clientWidth-2)+"px";C.style.top=A.offsetTop+"px";C.style.left=(A.offsetLeft+1)+"px";B.editarea="footer";DxEMREditor.doclick(_)};DxEMREditor.contentclick=function(D,F,H){tdmovebegin=0;var B=H.parentElement,A=$("#"+F+"content",B).get(0),E=$("#"+F+"headercontent",B).get(0),G=$("#"+F+"headermask",B).get(0),_=$("#"+F+"footercontent",B).get(0),C=$("#"+F+"footermask",B).get(0);A.contentEditable="true";_.contentEditable="false";E.contentEditable="false";E.style.border="1px none #000";_.style.border="1px none #000";G.style.visibility="visible";C.style.visibility="visible";H.style.visibility="hidden";B.editarea="content";DxEMREditor.doclick(A)};DxEMREditor.getHeadContentheight=function(A,C,J){try{var D=0,H=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,H),G=top.E_getObject(A,C,_),F=G.content,E=G.header;if(F!=null&&E!=null){var B=parseInt(E.clientHeight),I=parseInt(F.clientHeight);D=B+I}return D}catch($){}};DxEMREditor.initWidths=function(D,F,C){var B=top.E_clientModel.E_getWindow(D),G,A,_=top.E_getObject(D,F,C),E=_.toolbars;A=$("#"+F+"_yToolbar",_).get(0);if(A!=null){DxEMREditor.InitTB(A);A.style.display="block";A.style.visibility="visible";E[E.length]=A}};DxEMREditor.getEvent=function(B){var $;while(B){if(B.getAttribute("endflag")=="true"){$=B.getAttribute("wid");break}B=B.parentElement}if($!=""){var _=top.E_clientModel.E_getWindow($),A=WatCore.getWindow($,_);return A.event}else return null};DxEMREditor.getContainer=function(D){var B,C;while(D){if(D.getAttribute("endflag")=="true"){B=D.getAttribute("wid");C=D.getAttribute("sid");break}D=D.parentElement}if(B!=undefined&&B!=""){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),$=top.E_getObject(B,C,_);return $}else return null};DxEMREditor.BtnMouseOver=function(){var _=DxEMREditor.getEvent(this);if(_==null)return false;if(_.srcElement.tagName!="IMG")return false;var A=_.srcElement,$=A.parentElement;if(A.className=="Ico")$.className="BtnMouseOverUp";else if(A.className=="IcoDown")$.className="BtnMouseOverDown";_.cancelBubble=true};DxEMREditor.BtnMouseOut=function(){var _=DxEMREditor.getEvent(this);if(_==null)return false;if(_.srcElement.tagName!="IMG"){_.cancelBubble=true;return false}var A=_.srcElement,$=A.parentElement;yRaisedElement=null;$.className="Btn";A.className="Ico";_.cancelBubble=true};DxEMREditor.BtnMouseDown=function(){var _=DxEMREditor.getEvent(this);if(_==null)return false;if(_.srcElement.tagName!="IMG"){_.cancelBubble=true;_.returnValue=false;return false}var A=_.srcElement,$=A.parentElement;$.className="BtnMouseOverDown";A.className="IcoDown";_.cancelBubble=true;_.returnValue=false;return false};DxEMREditor.BtnMouseUp=function(){try{var event=DxEMREditor.getEvent(this);if(event==null)return false;if(event.srcElement.tagName!="IMG"){event.cancelBubble=true;return false}var image=event.srcElement,element=image.parentElement;if(element.YUSERONCLICK){try{eval(element.YUSERONCLICK+"anonymous()")}catch(e){eval(element.YUSERONCLICK)}}element.className="BtnMouseOverUp";image.className="Ico";event.cancelBubble=true;return false}catch(e){}};DxEMREditor.YCancelEvent=function(){var $=DxEMREditor.getEvent(this);if($==null)return false;$.returnValue=false;$.cancelBubble=true;return false};DxEMREditor.InitBtn=function($){if(window.attachEvent){$.onmouseover=DxEMREditor.BtnMouseOver;$.onmouseout=DxEMREditor.BtnMouseOut;$.onmousedown=DxEMREditor.BtnMouseDown;$.onmouseup=DxEMREditor.BtnMouseUp;$.ondragstart=DxEMREditor.YCancelEvent;$.onselectstart=DxEMREditor.YCancelEvent;$.onselect=DxEMREditor.YCancelEvent;$.onclick=DxEMREditor.YCancelEvent}else{$.addEventListener("mouseover",top.DxEMREditor.BtnMouseOver,false);$.addEventListener("mouseout",top.DxEMREditor.BtnMouseOut,false);$.addEventListener("mousedown",top.DxEMREditor.BtnMouseDown,false);$.addEventListener("mouseup",top.DxEMREditor.BtnMouseUp,false);$.addEventListener("dragstart",top.DxEMREditor.YCancelEvent,false);$.addEventListener("selectstart",top.DxEMREditor.YCancelEvent,false);$.addEventListener("select",top.DxEMREditor.YCancelEvent,false);$.addEventListener("click",top.DxEMREditor.YCancelEvent,false)}$.YINITIALIZED=true;return true};DxEMREditor.InitTB=function($){$.TBWidth=0;if(!DxEMREditor.PopulateTB($))return false;$.style.width=$.TBWidth+"px";return true};DxEMREditor.PopulateTB=function(A){var B,_,$;_=A.children;for(B=0;B<_.length;B++){$=_[B];if($.tagName=="SCRIPT"||$.tagName=="!")continue;switch($.className){case"Btn":if($.YINITIALIZED==null)if(!DxEMREditor.InitBtn($)){alert("Problem initializing:"+$.id);return false}$.style.left=A.TBWidth+"px";if($.style.width!="")A.TBWidth+=parseInt($.style.width)+1;else A.TBWidth+=$.offsetWidth+1;break;case"Btntszf":if($.YINITIALIZED==null)if(!DxEMREditor.InitBtn($)){alert("Problem initializing:"+$.id);return false}$.style.left=A.TBWidth+"px";A.TBWidth+=$.offsetWidth+1;break;case"TBGen":$.style.left=A.TBWidth+"px";if($.style.width!="")A.TBWidth+=parseInt($.style.width)+1;else A.TBWidth+=$.offsetWidth+1;break;case"TBSep":$.style.left=(A.TBWidth+2)+"px";A.TBWidth+=5;break;case"TBHandle":$.style.left=2+"px";A.TBWidth+=$.offsetWidth+7;break;default:return false}}A.TBWidth+=1;return true};DxEMREditor.formatName=function(F,B,_){var A=DxEMREditor.getContainer(F);if(A==null)return;var $=A.id,C=DxEMREditor.getEditArea($,A);DxEMREditor.saveHistory(A,C);var D=DxEMREditor.isWatCellSelectedObj(A,C);if(D!=null){DxEMREditor.setStyleValue(D,B,"");DxEMREditor.setStyleValue(D,B,_)}else if(top.isIE){var E=C.document.selection.createRange();E.execCommand(B,false,_)}else C.ownerDocument.execCommand(B,false,_);DxEMREditor.saveHistory(A,C)};DxEMREditor.formatFont=function(H,C,_){var B=DxEMREditor.getContainer(H);if(B==null)return;var $=B.id,E=DxEMREditor.getEditArea($,B);DxEMREditor.saveHistory(B,E);var F=DxEMREditor.isWatCellSelectedObj(B,E);if(F!=null){DxEMREditor.setStyleValue(F,C,"");DxEMREditor.setStyleValue(F,C,_)}else{if(top.isIE)E.document.execCommand("fontname","","eWebEditor_Temp_FontName");else E.ownerDocument.execCommand("fontname","","eWebEditor_Temp_FontName");var A;if(top.isIE)A=E.document.body.getElementsByTagName("FONT");else A=E.ownerDocument.body.getElementsByTagName("FONT");for(var G=0;G<A.length;G++){var D=A[G];if(D.getAttribute("face")=="eWebEditor_Temp_FontName"){DxEMREditor.delInFont(D,C);DxEMREditor.setInFont(D,C,_);D.removeAttribute("face")}}}DxEMREditor.saveHistory(B,E)};DxEMREditor.delInFont=function(A,_){DxEMREditor.setStyleValue(A,_,"");var $=A.children;for(var B=0;B<$.length;B++){DxEMREditor.delInFont($[B],_);if(($[B].tagName=="FONT")||($[B].tagName=="SPAN"))if(($[B].style.cssText=="")||($[B].innerHTML==""))$[B].outerHTML=$[B].innerHTML}};DxEMREditor.setInFont=function(B,A,$){DxEMREditor.setStyleValue(B,A,$);var _=B.children;for(var C=0;C<_.length;C++)if(_[C].innerHTML!="")DxEMREditor.setInFont(_[C],A,$)};DxEMREditor.setStyleValue=function(B,A,$){try{switch(A){case"fontname":B.style.fontFamily=$;break;case"fontsize":B.style.fontSize=$;break;default:break}}catch(_){}};DxEMREditor.menuformat=function(D,F,_,E){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),$=top.E_getObject(D,F,A);if($==null)return;var C=DxEMREditor.getEditArea(F,$);if(C==null)return;DxEMREditor.format(C,_,E)};DxEMREditor.findPbyRng=function(B){try{var A;if(B.commonAncestorContainer){A=B.commonAncestorContainer;if(A.nodeName=="#text")A=A.parentElement}else if(B.parentElement)A=B.parentElement();var C;if(A.tagName=="P"||A.tagName=="DIV")return A;var D=0;while($(A).attr("watend")!="true"&&$(A).attr("watflag")!="true"&&A.tagName!="P"&&A.tagName!="DIV"){A=A.parentElement;if(A.tagName=="P"||A.tagName=="DIV"){C=A;break}D++;if(D>100)break}if(C==null)C=A;return C}catch(_){}};DxEMREditor.lock=function(_){var $=DxEMREditor.getContainer(_);if($==null)return;if(!$.tablelock){$.tablelock=true;_.src=top.watLocation2+"/images/emr/lock.png";_.parentElement.title="\u8868\u683c\u62d6\u62fd\u9501\u5b9a"}else{$.tablelock=false;_.src=top.watLocation2+"/images/emr/unlock.png";_.parentElement.title="\u8868\u683c\u62d6\u62fd\u89e3\u9501"}};DxEMREditor.format=function(O,H,N){var I=DxEMREditor.getContainer(O);if(I==null)return;var F=I.id,K=DxEMREditor.getEditArea(F,I),_=$("#"+F+"wrap",I).get(0),C=_.scrollTop;DxEMREditor.doclick(K);DxEMREditor.saveHistory(I,K);var L=DxEMREditor.isWatCellSelectedObj(I,K);if(N=="RemoveFormat"){H=N;N=null}if(N==null){var G="";H=H.toLowerCase();switch(H.toLowerCase()){case"justifyleft":G="left";break;case"justifycenter":G="center";break;case"justifyright":G="right";break;case"shsj":G="shsj";break;case"justifyfull":G="JustifyFull";break}var B=false;if(G){var M=DxEMREditor.getSelection(I,K),J=DxEMREditor.getRange(M),D=DxEMREditor.findPbyRng(J);if(D!=null)$(D).attr("align","");if(top.isIE)if(M.type=="Control"){var E=M.item(0);try{E.align=G;B=true}catch(A){}}if(D!=null)if(H=="shsj"){if($(D).css("text-indent")==""||$(D).css("text-indent")=="0px")$(D).css("text-indent","2em");else $(D).css("text-indent","")}else if(H=="justifyfull"){$(D).css({"text-align":"justify","text-align-last":"left","-moz-text-align-last":"justify","-webkit-text-align-last":"justify","text-justify":"inter-ideograph"});$(D).css("text-align-last","left")}else if(H=="justifyleft")$(D).attr({"align":"left"});else if(H=="justifycenter")$(D).attr({"align":"center"});else if(H=="justifyright")$(D).attr({"align":"right"});B=true}if(!B)if(L!=null){M=DxEMREditor.getSelection(I,K),J=DxEMREditor.getRange(M);if(top.isIE){J.moveToElementText(L);J.select();J.execCommand(H)}}else if(top.isIE)K.document.execCommand(H);else if(H=="insertorderedlist");else if(H=="insertunorderedlist");else if(H=="indent");else if(H=="outdent");else K.ownerDocument.execCommand(H)}else if(L!=null){M=DxEMREditor.getSelection(I,K),J=DxEMREditor.getRange(M);if(top.isIE){J.moveToElementText(L);J.select();J.execCommand(H,"",N)}}else if(top.isIE)K.document.execCommand(H,"",N);else K.ownerDocument.execCommand(H,"",N);DxEMREditor.saveHistory(I,K);_.scrollTop=C};DxEMREditor.format_xz=function(G,C,F){var B=DxEMREditor.getContainer(G);if(B==null)return;var _=B.id,E=DxEMREditor.getEditArea(_,B);DxEMREditor.doclick(E);var D=B.rng;if(D==null)return;if(DxEMREditor.isWatCellSelected3(D)){DxEMREditor.select(B,E,D);alert("\u4e0d\u80fd\u9009\u62e9\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}else if(DxEMREditor.isSelectedHasWatcell2(B,E,D)){DxEMREditor.select(B,E,D);alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}var A=$("#"+_+"wrap",B).get(0);DxEMREditor.saveHistory(B,E);DxEMREditor.pdblqh(D,B,E);if(F=="RemoveFormat"){C=F;F=null}if(F==null){if(top.isIE)D.execCommand(C);else E.ownerDocument.execCommand(C)}else if(top.isIE)D.execCommand(C,"",F);else E.ownerDocument.execCommand(C,"",F);DxEMREditor.saveHistory(B,E)};DxEMREditor.menuonPaste_=function(C,D){var A=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,A),$=top.E_getObject(C,D,_);if($==null)return;var B=DxEMREditor.getEditArea(D,$);if(B==null)return;DxEMREditor.onPaste_(B)};DxEMREditor.onPaste_=function(G){var B=DxEMREditor.getContainer(G);if(B==null)return;var A=$(B).attr("wid"),_=B.id,E=DxEMREditor.getEditArea(_,B),F=DxEMREditor.getSelection(B,E),C=DxEMREditor.getRange(F);B.rng=C;var D=clipboardData.getData("Text");D=D.replace(/<\/?SPAN[^>]*>/gi,"");D=D.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi,"<$1$3");D=D.replace(/<(\w[^>]*) style="([^"]*)"([^>]*)/gi,"<$1$3");D=D.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi,"<$1$3");D=D.replace(/<\\?\?xml[^>]*>/gi,"");D=D.replace(/<\/?\w+:[^>]*>/gi,"");D=D.replace(/&nbsp;/," ");DxEMREditor.inputTextFormServer__(A,_,B,E,D)};DxEMREditor.HTMLEncode=function($){if($!=null&&$!=undefined){$=$.replace(/&/g,"&amp;");$=$.replace(/"/g,"&quot;");$=$.replace(/</g,"&lt;");$=$.replace(/>/g,"&gt;");$=$.replace(/\ /g,"&nbsp;");$=$.replace(/\n/g,"<br>");$=$.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;");return $}};DxEMREditor.onPaste=function(P){try{var I=DxEMREditor.getContainer(P);if(I==null)return;var H=I.id,L=DxEMREditor.getEditArea(H,I);if(DxEMREditor.isWatCellSelected(I,L)){alert("\u4e0d\u80fd\u9009\u62e9\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}else if(DxEMREditor.isSelectedHasWatcell(I,L)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}var O=I.watstyle;if(DxEMREditor.getSelectedText(I,L)&&O=="3"){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}DxEMREditor.doclick(L);DxEMREditor.saveHistory(I,L);var N=DxEMREditor.getSelection(I,L),J=DxEMREditor.getRange(N);DxEMREditor.pdblqh(J,I,L);if(O=="3")DxEMREditor.inputtxt_(I,L,J);var M=clipboardData.getData("Text"),K="<span>"+M+"</span>",A=$(K).find("span[watflag='true']"),C=new Array();for(var E=0;E<A.length;E++)C.push($(A[E]).attr("id"));J.pasteHTML(M);if(C.length>=0)for(E=0;E<C.length;E++){var D=C[E],G=$("span[id=\""+D+"\"]",L);if(G.length>1)for(var B=1;B<G.length;B++){var F=createGuid();$(G[B]).attr("id",F);if($(G[B]).attr("watsuntype")!="t7"&&$(G[B]).attr("watsuntype")!="t8")$(G[B]).attr("watid",F)}}DxEMREditor.saveHistory(I,L)}catch(_){}return false};DxEMREditor.GetClipboardHTML=function(A){var _=$("#"+A.id+"Temp_HTML",A).get(0);_.innerHTML="";var B=A.document.body.createTextRange();B.moveToElementText(_);B.execCommand("Paste");var C=_.innerHTML;_.innerHTML="";return C};DxEMREditor.cleanAndPaste=function(_,$){$=$.replace(/<\/?SPAN[^>]*>/gi,"");$=$.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi,"<$1$3");$=$.replace(/<(\w[^>]*) style="([^"]*)"([^>]*)/gi,"<$1$3");$=$.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi,"<$1$3");$=$.replace(/<\\?\?xml[^>]*>/gi,"");$=$.replace(/<\/?\w+:[^>]*>/gi,"");$=$.replace(/&nbsp;/," ");DxEMREditor.insertHTML(_,$)};DxEMREditor.insertHTML=function(A,_){var $=A.parentElement;DxEMREditor.doclick(A);if(A.document.selection.type.toLowerCase()!="none")A.document.selection.clear();A.document.selection.createRange().pasteHTML(_)};DxEMREditor.fnLaunch=function(K){var F=DxEMREditor.getContainer(K);if(F==null)return;var E=F.id,I=DxEMREditor.getEditArea(E,F);DxEMREditor.doclick(I);var G=F.rng;if(G==null)return;if(DxEMREditor.isWatCellSelected3(G)){DxEMREditor.select(F,I,G);alert("\u4e0d\u80fd\u9009\u62e9\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}else if(DxEMREditor.isSelectedHasWatcell2(F,I,G)){G.select();alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}var J=F.watstyle;if(DxEMREditor.getSelectedText2(F,I,G)&&J=="3"){DxEMREditor.select(F,I,G);alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}var _=$("#"+E+"wrap",F).get(0),D=_.scrollTop;DxEMREditor.saveHistory(F,I);var A=$(F).attr("wid"),H=top.E_clientModel.E_getWindow(A),B=WatCore.getWindow(A,H),C=new Array();C[0]=F;C[1]=B;DxEMREditor.select(F,I,G);window.showModalDialog(top.watLocation2+"/emr/symbol.htm",C,"dialogHeight:300px; dialogLeft:200px;");_.scrollTop=D};DxEMREditor.fnLaunch_doit=function(A,_,B,$){DxEMREditor.pdblqh(A,_,B);var C=_.watstyle;if(C=="3")DxEMREditor.inputtxt_(_,B,A);A.pasteHTML($)};DxEMREditor.pdblqh=function(D,C,F){try{var B=DxEMREditor.GetCursorPsn(C,F),H=DxEMREditor.crxq4(false,C,F),_=H[0],E=H[1];if(E.parentElement().watflag=="true"&&B==0){E.moveStart("character",-1);E.moveEnd("character",0);E.collapse(true);E.select();D.select();D.text="";var G=$("<span>&ensp;</span>");G.insertBefore($(D.parentElement()).closest("span"));D.moveToElementText(G[0]);G=$("<span>&ensp;</span>");G.insertAfter($(D.parentElement()).closest("span"));D.moveToElementText(G[0])}else{E.moveStart("character",-1);E.moveEnd("character",0);E.collapse(true);E.select()}}catch(A){}};DxEMREditor.findReplace=function(F){var B=DxEMREditor.getContainer(F);if(B==null)return;var _=B.id,C=DxEMREditor.getEditArea(_,B),A=$("#"+_+"wrap",B).get(0),D=A.scrollTop;DxEMREditor.saveHistory(B,C);DxEMREditor.doclick(C);var E=C.document.selection.createRange();window.showModalDialog(top.watLocation2+"/emr/findreplace.htm",C,"dialogHeight:300px; dialogLeft:200px;");A.scrollTop=D};DxEMREditor.showDialog=function(_,B,E,A){var D,C=E.indexOf(".");if(C<0){D=E;E=E+".htm"}else D=E.substring(0,C);E=top.watLocation2+"/emr/"+E;D=D.toLowerCase();E=E.toLowerCase();DxEMREditor.doclick(B);var $=window.showModalDialog(E,B,"dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no");DxEMREditor.saveHistory(_,B);DxEMREditor.doclick(B)};DxEMREditor.showDialog2=function(_,B,D,G,A){var F,E=G.indexOf(".");if(E<0){F=G;G=G+".htm"}else F=G.substring(0,E);G=top.watLocation2+"/emr/"+G;F=F.toLowerCase();G=G.toLowerCase();DxEMREditor.doclick(B);var C=new Array();C[0]=_;C[1]=D;var $=window.showModalDialog(G,C,"dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no");DxEMREditor.saveHistory(_,B);DxEMREditor.doclick(B)};DxEMREditor.insert=function(O,F){var G=DxEMREditor.getContainer(O);if(G==null)return;var E=G.id,J=DxEMREditor.getEditArea(E,G);DxEMREditor.doclick(J);var I=G.rng;if(I==null)return;if(DxEMREditor.isWatCellSelected3(I)){DxEMREditor.select(G,J,I);alert("\u4e0d\u80fd\u9009\u62e9\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}else if(DxEMREditor.isSelectedHasWatcell2(G,J,I)){DxEMREditor.select(G,J,I);alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}var N=$(G).attr("watstyle");if(DxEMREditor.getSelectedText2(G,J,I)&&N=="3"){I.select();alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}var _=$("#"+E+"wrap",G).get(0),B=_.scrollTop;DxEMREditor.saveHistory(G,J);DxEMREditor.pdblqh(I,G,J);if(N=="3")DxEMREditor.inputtxt_(G,J,I);var M=DxEMREditor.getSelection(G,J);switch(F){case"excel":DxEMREditor.pasteHTML(M,I,"<object classid='clsid:0002E510-0000-0000-C000-000000000046' id='Spreadsheet1' codebase='file:\\Bobsoftwareoffice2000msowc.cab' width='100%' height='250'><param name='HTMLURL' value><param name='HTMLData' value='&lt;html xmlns:x=&quot;urn:schemas-microsoft-com:office:excel&quot;xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;&lt;head&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;!--tr{mso-height-source:auto;}td{black-space:nowrap;}.wc4590F88{black-space:nowrap;font-family:Verdana,Arial,Helvetica,sans-serif;mso-number-format:General;font-size:auto;font-weight:auto;font-style:auto;text-decoration:auto;mso-background-source:auto;mso-pattern:auto;mso-color-source:auto;text-align:general;vertical-align:bottom;border-top:none;border-left:none;border-right:none;border-bottom:none;mso-protection:locked;}--&gt;&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;x:ExcelWorkbook&gt;&lt;x:ExcelWorksheets&gt;&lt;x:ExcelWorksheet&gt;&lt;x:OWCVersion&gt;9.0.0.2710&lt;/x:OWCVersion&gt;&lt;x:Label Style='border-top:solid .5pt silver;border-left:solid .5pt silver;border-right:solid .5pt silver;border-bottom:solid .5pt silver'&gt;&lt;x:Caption&gt;Microsoft Office Spreadsheet&lt;/x:Caption&gt; &lt;/x:Label&gt;&lt;x:Name&gt;Sheet1&lt;/x:Name&gt;&lt;x:WorksheetOptions&gt;&lt;x:Selected/&gt;&lt;x:Height&gt;7620&lt;/x:Height&gt;&lt;x:Width&gt;15240&lt;/x:Width&gt;&lt;x:TopRowVisible&gt;0&lt;/x:TopRowVisible&gt;&lt;x:LeftColumnVisible&gt;0&lt;/x:LeftColumnVisible&gt; &lt;x:ProtectContents&gt;False&lt;/x:ProtectContents&gt; &lt;x:DefaultRowHeight&gt;210&lt;/x:DefaultRowHeight&gt; &lt;x:StandardWidth&gt;2389&lt;/x:StandardWidth&gt; &lt;/x:WorksheetOptions&gt; &lt;/x:ExcelWorksheet&gt;&lt;/x:ExcelWorksheets&gt; &lt;x:MaxHeight&gt;80%&lt;/x:MaxHeight&gt;&lt;x:MaxWidth&gt;80%&lt;/x:MaxWidth&gt;&lt;/x:ExcelWorkbook&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;table class=wc4590F88 x:str&gt;&lt;col width=&quot;56&quot;&gt;&lt;tr height=&quot;14&quot;&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;'> <param name='DataType' value='HTMLDATA'> <param name='AutoFit' value='0'><param name='DisplayColHeaders' value='-1'><param name='DisplayGridlines' value='-1'><param name='DisplayHorizontalScrollBar' value='-1'><param name='DisplayRowHeaders' value='-1'><param name='DisplayTitleBar' value='-1'><param name='DisplayToolbar' value='-1'><param name='DisplayVerticalScrollBar' value='-1'> <param name='EnableAutoCalculate' value='-1'> <param name='EnableEvents' value='-1'><param name='MoveAfterReturn' value='-1'><param name='MoveAfterReturnDirection' value='0'><param name='RightToLeft' value='0'><param name='ViewableRange' value='1:65536'></object>");break;case"nowdate":var C=new Date(),K=C.getFullYear(),H=C.getMonth();if(H<9)H="0"+(H+1);else H+=1;var L=C.getDate();if(L<=9)L="0"+L;DxEMREditor.pasteHTML(M,I,K+"-"+H+"-"+L);break;case"nowtime":var A=new Date();DxEMREditor.pasteHTML(M,I,A.toLocaleTimeString());break;case"br":DxEMREditor.pasteHTML(M,I,"<br>");break;case"code":DxEMREditor.pasteHTML(M,I,"<table width=95% border=\"0\" align=\"Center\" cellpadding=\"6\" cellspacing=\"0\" style=\"border: 1px Dotted #CCCCCC; TABLE-LAYOUT: fixed\"><tr><td bgcolor=#FDFDDF style=\"WORD-WRAP: break-word\"><font style=\"color: #990000;font-weight:bold\">\u4ee5\u4e0b\u662f\u4ee3\u7801\u7247\u6bb5\uff1a</font><br>"+DxEMREditor.HTMLEncode(I.text)+"</td></tr></table>");break;case"quote":DxEMREditor.pasteHTML(M,I,"<table width=95% border=\"0\" align=\"Center\" cellpadding=\"6\" cellspacing=\"0\" style=\"border: 1px Dotted #CCCCCC; TABLE-LAYOUT: fixed\"><tr><td bgcolor=#F3F3F3 style=\"WORD-WRAP: break-word\"><font style=\"color: #990000;font-weight:bold\">\u4ee5\u4e0b\u662f\u5f15\u7528\u7247\u6bb5\uff1a</font><br>"+DxEMREditor.HTMLEncode(I.text)+"</td></tr></table>");break;case"big":var D;if(top.isIE)D=I.text;else D=I.toString();DxEMREditor.pasteHTML(M,I,"<big>"+D+"</big>");break;case"small":D;if(top.isIE)D=I.text;else D=I.toString();DxEMREditor.pasteHTML(M,I,"<small>"+D+"</small>");break;default:alert("\u9519\u8bef\u53c2\u6570\u8c03\u7528\uff01");break}DxEMREditor.select(G,J,I);_.scrollTop=B};DxEMREditor.printxd=function(C,E,F){var H=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,H),D=WatCore.getWindow(C,H),G=top.E_getObject(C,E,B),J=DxEMREditor.getEditArea(E,G);DxEMREditor.doclick(J);if(DxEMREditor.isWatCellSelected(G,J)){alert("\u4e0d\u80fd\u9009\u62e9\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}else if(DxEMREditor.isSelectedHasWatcell(G,J)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}DxEMREditor.doclick(J);var L=G.watstyle;if(DxEMREditor.getSelectedText(G,J)&&L=="3"){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}var K=J.document.selection;if(K.type=="Control"){alert("\u8bf7\u9009\u62e9\u6587\u5b57");return false}var I=K.createRange(),A=I.getBookmark(),$=J.innerHTML;DxEMREditor.pdblqh(I,G,J);I.pasteHTML("watxd");var _=J.innerHTML;J.innerHTML=$;I.moveToBookmark(A);DxEMREditor.select(G,J,I);WatCore.setParameter(C,E,top.DC.EMR_XDTEXT,_);WatCore.call(C,E,F)};DxEMREditor.saveContent=function(D,G,F){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),E=WatCore.getWindow(D,B),_=top.E_getObject(D,G,A),C=$("#"+G+"content",_).get(0);WatCore.setParameter(D,G,top.DC.EMR_TEXT,C.innerHTML);WatCore.call(D,G,F)};DxEMREditor.popmenuaction=function(C,E,F){var H=top.E_clientModel.E_getWindow(C);if(H==null)return;var A=WatCore.getWindowDoc(C,H),D=WatCore.getWindow(C,H),G=top.E_getObject(C,E,A);if(G.rng!=null){var I=G.rng,K=DxEMREditor.text(I),M=$(G).attr("watstyle");if(M=="2"){var B,_=false,L=DxEMREditor.getEditArea(E,G),J=DxEMREditor.findInSection(G,L,I);B=J.zsdid;_=J.inSection;if(_)WatCore.setParameter(C,E,top.DC.EMR_DESIGN_ZSDID,B)}WatCore.setParameter(C,E,top.DC.SELECTTEXT,K)}WatCore.call(C,E,F)};DxEMREditor.inserttszf=function(F,_){var A=DxEMREditor.getContainer(F);if(A==null)return;var $=A.id,C=DxEMREditor.getEditArea($,A);if(DxEMREditor.isWatCellSelected(A,C)){alert("\u4e0d\u80fd\u9009\u62e9\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}else if(DxEMREditor.isSelectedHasWatcell(A,C)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}var E=A.watstyle;if(DxEMREditor.getSelectedText(A,C)&&E=="3"){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}DxEMREditor.doclick(C);DxEMREditor.saveHistory(A,C);var D=C.document.selection,B=D.createRange();DxEMREditor.pdblqh(B,A,C);if(E=="3")DxEMREditor.inputtxt_(A,C,B);B.pasteHTML(_)};DxEMREditor.saveHistory=function(A,B){var _=B.id,$=_.indexOf("header");if($>=0)DxEMREditor.saveheaderHistory(A,B);else{$=_.indexOf("footer");if($>=0)DxEMREditor.savefooterHistory(A,B);else DxEMREditor.savecontentHistory(A,B)}};DxEMREditor.savefooterHistory=function(B,F){var $=B.history;$.saved=true;var E=DxEMREditor.getHTML(F);if($.footerdata[$.footerposition]!=E){var I=$.footerdata.length,D=$.footerdata.length-$.footerposition;for(var H=1;H<D;H++){$.footerdata.pop();$.footerbookmark.pop()}$.footerdata[$.footerdata.length]=E;if(top.isIE){if(F.document.selection.type!="Control"){try{$.footerbookmark[$.footerbookmark.length]=F.document.selection.createRange().getBookmark()}catch(_){alert(_.message);$.footerbookmark[$.footerbookmark.length]=""}}else{try{var C=F.document.selection.createRange(),A=C(0);if(A!=null&&DxEMREditor.getElementTagIndex(B,F,A)!=null)$.footerbookmark[$.footerbookmark.length]="[object]|"+A.tagName+"|"+DxEMREditor.getElementTagIndex(B,F,A)}catch(_){alert(_.message)}}}else{var G=DxEMREditor.getSelection(B,F);try{$.footerbookmark[$.footerbookmark.length]=G.getRangeAt(0)}catch(_){alert(_.message);$.footerbookmark[$.footerbookmark.length]=""}}if(I!=0)$.footerposition++}};DxEMREditor.saveheaderHistory=function(B,F){var $=B.history;$.saved=true;var E=DxEMREditor.getHTML(F);if($.headerdata[$.headerposition]!=E){var I=$.headerdata.length,D=$.headerdata.length-$.headerposition;for(var H=1;H<D;H++){$.headerdata.pop();$.headerbookmark.pop()}$.headerdata[$.headerdata.length]=E;if(top.isIE){if(F.document.selection.type!="Control"){try{$.headerbookmark[$.headerbookmark.length]=F.document.selection.createRange().getBookmark()}catch(_){alert(_.message);$.headerbookmark[$.headerbookmark.length]=""}}else{try{var C=F.document.selection.createRange(),A=C(0);if(A!=null&&DxEMREditor.getElementTagIndex(B,F,A)!=null)$.headerbookmark[$.headerbookmark.length]="[object]|"+A.tagName+"|"+DxEMREditor.getElementTagIndex(B,F,A)}catch(_){alert(_.message)}}}else{var G=DxEMREditor.getSelection(B,F);try{$.headerbookmark[$.headerbookmark.length]=G.getRangeAt(0)}catch(_){alert(_.message);$.headerbookmark[$.headerbookmark.length]=""}}if(I!=0)$.headerposition++}};DxEMREditor.savecontentHistory=function(G,J){var E=G.history;E.saved=true;var K=DxEMREditor.getHTML(J);if(E.data[E.position]!=K){var C=E.data.length,I=E.data.length-E.position;for(var D=1;D<I;D++){E.data.pop();E.bookmark.pop()}E.data[E.data.length]=K;if(top.isIE){if(J.document.selection.type!="Control"){try{E.bookmark[E.bookmark.length]=J.document.selection.createRange().getBookmark()}catch($){alert($.message);E.bookmark[E.bookmark.length]=""}}else{try{var H=J.document.selection.createRange(),F=H(0);if(F!=null&&DxEMREditor.getElementTagIndex(G,J,F)!=null)E.bookmark[E.bookmark.length]="[object]|"+F.tagName+"|"+DxEMREditor.getElementTagIndex(G,J,F)}catch($){alert($.message)}}}else{var A=DxEMREditor.getSelection(G,J);try{if(A.rangeCount>0){var _=A.getRangeAt(0),B=_.cloneRange();E.bookmark[E.bookmark.length]=B}else E.bookmark[E.bookmark.length]=""}catch($){alert($.message);E.bookmark[E.bookmark.length]=""}}if(C!=0)E.position++}};DxEMREditor.getElementTagIndex=function(_,A,$){var B=A.document.body.getElementsByTagName($.tagName);for(var C=0;C<B.length;C++)if(B[C]==$)return C;return null};DxEMREditor.getHTML=function($){var _;_=$.innerHTML;if((_.toLowerCase()=="<p>&ensp;</p>")||(_.toLowerCase()=="<p></p>"))_="";return _};DxEMREditor.setHTML=function(A,C,B){DxEMREditor.doclick(C);var _=A.history;$(C).html(B)};DxEMREditor.goHistory=function(A,_){var $=DxEMREditor.getContainer(A);if($==null)return;DxEMREditor.goHistory_($,_)};DxEMREditor.goHistory_=function(D,E){var _=D.id,F=DxEMREditor.getEditArea(_,D),A=D.wrap,G=parseInt(A.scrollTop);DxEMREditor.doclick(F);DxEMREditor.saveHistory(D,F);var $=D.history,C=F.id,B=C.indexOf("header");if(B>=0){if($.headerdata.length>0)if(E==-1){if($.headerposition>0){$.headerposition=$.headerposition-1;DxEMREditor.setHTML(D,F,$.headerdata[$.headerposition],true);DxEMREditor.setHistoryCursor(D,F)}}else if($.headerposition<$.headerdata.length-1&&$.headerposition>=0){$.headerposition=$.headerposition+1;DxEMREditor.setHTML(D,F,$.headerdata[$.headerposition],true);DxEMREditor.setHistoryCursor(D,F)}}else{B=C.indexOf("footer");if(B>=0){if($.footerdata.length>0)if(E==-1){if($.footerposition>0){$.footerposition=$.footerposition-1;DxEMREditor.setHTML(D,F,$.footerdata[$.footerposition],true);DxEMREditor.setHistoryCursor(D,F)}}else if($.footerposition<$.footerdata.length-1&&$.footerposition>=0){$.footerposition=$.footerposition+1;DxEMREditor.setHTML(D,F,$.footerdata[$.footerposition],true);DxEMREditor.setHistoryCursor(D,F)}}else if($.data.length>0)if(E==-1){if($.position>0){$.position=$.position-1;DxEMREditor.setHTML(D,F,$.data[$.position],true);DxEMREditor.setHistoryCursor(D,F)}}else if($.position<$.data.length-1&&$.position>=0){$.position=$.position+1;DxEMREditor.setHTML(D,F,$.data[$.position],true);DxEMREditor.setHistoryCursor(D,F)}}A.scrollTop=G};DxEMREditor.setHistoryCursor=function(D,F){var $=D.history,C=F.id,_=C.indexOf("header");if(_>=0){var B=$.headerbookmark[$.headerposition];if(B){DxEMREditor.doclick(F);if(top.isIE){if(B.substring(0,8)!="[object]"){r=F.document.body.createTextRange();if(r.moveToBookmark($.headerbookmark[$.headerposition]))r.select()}else{r=F.document.body.createControlRange();var E=B.split("|"),H=F.document.body.getElementsByTagName(E[1]),A=H[E[2]];r.addElement(A);r.select()}}else{var G=DxEMREditor.getSelection(D,F);G.removeAllRanges();G.addRange(B)}}}else{_=C.indexOf("footer");if(_>=0){B=$.footerbookmark[$.footerposition];if(B){DxEMREditor.doclick(F);if(top.isIE){if(B.substring(0,8)!="[object]"){r=F.document.body.createTextRange();if(r.moveToBookmark($.footerbookmark[$.footerposition]))r.select()}else{r=F.document.body.createControlRange();E=B.split("|"),H=F.document.body.getElementsByTagName(E[1]),A=H[E[2]];r.addElement(A);r.select()}}else{G=DxEMREditor.getSelection(D,F);G.removeAllRanges();G.addRange(B)}}}else{B=$.bookmark[$.position];if(B){DxEMREditor.doclick(F);if(top.isIE){if(B.substring(0,8)!="[object]"){r=F.document.body.createTextRange();if(r.moveToBookmark($.bookmark[$.position]))r.select()}else{r=F.document.body.createControlRange();E=B.split("|"),H=F.document.body.getElementsByTagName(E[1]),A=H[E[2]];r.addElement(A);r.select()}}else{G=DxEMREditor.getSelection(D,F);G.removeAllRanges();G.addRange($.bookmark[$.position])}}}}};DxEMREditor.setEMRStyle=function(B,C,$,A){var _=top.E_getObject(B,C,A);_.watstyle=$;if($=="3")_.isMasterUser="1";else if($=="4")_.isMasterUser="2"};DxEMREditor.onKeyDown=function(D,G,J){try{tdmovebegin=0;var K=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,K),I=top.E_getObject(D,G,C),M=$(I).attr("watstyle"),H=J.keyCode;J.cancelBubble=true;if(J.ctrlKey&&H=="83"){top.DxEMREditor.saveContent(D,G,"save");return false}if(J.keyCode==116){top.WatCore.onF5Click(J);return false}var L=DxEMREditor.getEditArea(G,I),_=L.parentElement,F=_.scrollTop,A;if(M=="1")A=top.DxEMREditor.designKeyDown(D,G,H,I,J);else if(M=="2")A=top.DxEMREditor.editKeyDown(D,G,H,I,J);else if(M=="3")A=top.DxEMREditor.editKeyDownScar(D,G,H,I,J);else if(M=="4")A=top.DxEMREditor.editKeyDownScartwo(D,G,H,I,J);_.scrollTop=F;var E=WatCore.getWindow(D,K);E.setTimeout("top.DxEMREditor.processPageLine('"+D+"','"+G+"')",20);return A}catch(B){}};DxEMREditor.onKeyUp=function(D,E,_){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),$=top.E_getObject(D,E,A),C=DxEMREditor.getEditArea(E,$);DxEMREditor.clickAction(D,E,$,C,A);return false};DxEMREditor.getSelectedText=function(_,B){var $="",C=DxEMREditor.getSelection(_,B),A=DxEMREditor.getRange(C);if(A!=null){if(top.isIE){if(C.type=="Text"||C.type=="None")if(A.text.length>0)$=A.text}else $=A.toString();_.selelen=$.length}return $};DxEMREditor.getSelectedText2=function(_,B,A){var $="",C=DxEMREditor.getSelection(_,B);if(A!=null)if(top.isIE){if(C.type=="Text"||C.type=="None")if(A.text.length>0)$=A.text}else $=A.toString();return $};DxEMREditor.back_keydown=function(A,C,B){try{var _=true;_=DxEMREditor.txtdel(DxEMREditor.crxq3(true,A,C).createRange(),true,A,C,B);if(_)return true;else return false}catch($){}};DxEMREditor.back_keydownscar=function(A,C,B){try{var _=true;_=DxEMREditor.txtdelscar(DxEMREditor.crxq3(true,A,C).createRange(),true,A,C,B);if(_)return false;else return false}catch($){}};DxEMREditor.del_keydown=function(A,C,B){try{var _=true;_=DxEMREditor.txtdel(DxEMREditor.crxq3(false,A,C).createRange(),false,A,C,B);if(_)return true;else return false}catch($){}};DxEMREditor.del_keydownscar=function(A,C,B){try{var _=true;_=DxEMREditor.txtdelscar(DxEMREditor.crxq3(false,A,C).createRange(),false,A,C,B);if(_)return false;else return false}catch($){}};DxEMREditor.inputtxt_=function(B,E,D){var _=B.username,F=(new Date()).toLocaleString(),C=B.isMasterUser,A;if(D.commonAncestorContainer){A=D.commonAncestorContainer;if(A.nodeName=="#text")A=A.parentElement}else if(D.parentElement)A=D.parentElement();if(top.isIE){if(A.tagName=="DEL"){var G=$("<INS masterid='"+C+"' cite='"+_+"' datetime='"+F+"'"+(C=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");G.insertAfter($(A).closest("del"));D.moveToElementText(G[0]);D.select()}if(A.tagName!="INS"||(A.tagName=="INS"&&A.attributes["cite"].nodeValue!=_)){D.pasteHTML("<INS masterid='"+C+"' cite='"+_+"' datetime='"+F+"'"+(C=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");D.moveStart("character",-1);D.pasteHTML("\ufe3b");D.select();D.parentElement().innerHTML=A.innerHTML.replace("\ufe3b","")}}return true};DxEMREditor.inputtxt=function(B,E,C){var _=B.username,F=(new Date()).toLocaleString(),D=B.isMasterUser,A=E.document.selection,G=A.createRange();if(G.parentElement().tagName=="DEL"){var H=$("<INS masterid='"+D+"' cite='"+_+"' datetime='"+F+"'"+(D=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");H.insertAfter($(G.parentElement()).closest("del"));G.moveToElementText(H[0]);G.select()}if(G.parentElement().tagName!="INS"||(G.parentElement().tagName=="INS"&&G.parentElement().attributes["cite"].nodeValue!=_)){G.pasteHTML("<INS masterid='"+D+"' cite='"+_+"' datetime='"+F+"'"+(D=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");G.moveStart("character",-1);G.pasteHTML("\ufe3b");G.select();G.parentElement().innerHTML=G.parentElement().innerHTML.replace("\ufe3b","")}else if(C.keyCode==32){G.pasteHTML("&ensp;");return false}return true};DxEMREditor.crxq=function(D,B,C){try{var A=C.document.selection.createRange(),$=C.document.body.createTextRange();$.moveToPoint(A.offsetLeft,A.offsetTop);if(D){$.moveStart("character",-1);$.moveEnd("character",0);$.rng.collapse(true)}else{$.moveStart("character",0);$.moveEnd("character",1);$.collapse(false)}$.select();B.selelen=1;return C.document.selection.createRange()}catch(_){}};DxEMREditor.crxq4=function(E,B,D){try{var G=DxEMREditor.getSelection(B,D),$=DxEMREditor.getRange(G);if(top.isIE){try{if(E){$.moveStart("character",-1);$.moveEnd("character",0)}else{$.moveStart("character",1);$.moveEnd("character",0)}}catch(_){}$.select()}else{var C=$.startContainer,A=$.startOffset;if(E)$.setStart(C,A-1);else $.setStart(C,A+1)}B.selelen=1;var F=new Array();F[0]=G;F[1]=$;return F}catch(_){}};DxEMREditor.crxq2=function(D,B,C){try{var A=C.document.selection.createRange(),$=C.document.body.createTextRange();try{$.moveToPoint(A.offsetLeft,A.offsetTop);if(D){$.moveStart("character",-1);$.moveEnd("character",0);$.collapse(true)}else{$.moveStart("character",0);$.moveEnd("character",1);$.collapse(false)}}catch(_){alert(_.message)}$.select();B.selelen=1;var E=C.document.selection;return E}catch(_){}};DxEMREditor.crxq3=function(C,A,B){try{var D=B.document.selection,$=D.createRange();try{if(C){$.moveStart("character",-1);$.moveEnd("character",0)}else{$.moveStart("character",0);$.moveEnd("character",1)}}catch(_){}$.select();return D}catch(_){}};DxEMREditor.txtdel=function(A,M,G,N,H){var D=G.username,O=(new Date()).toLocaleString(),J=G.isMasterUser,C=A.htmlText.replace(/^<([\S]+).*?>(.*)<\/\1>$/,"$2");if(C==" ")C="&ensp;";if(C=="")G.selelen=0;var E=DxEMREditor.getDelOrInsElement(A);try{if(E.tagName=="INS"){if(E.attributes["cite"].nodeValue!=D){var L=E.attributes["masterid"].nodeValue;if(parseInt(J)>parseInt(L)){if(C=="<BR>"){H.returnValue=true;return false}else{var F=A.text,B=E.attributes["cite"].nodeValue+" "+E.attributes["dateTime"].nodeValue+" \u63d2\u5165\u7684\u5185\u5bb9";A.pasteHTML("<DEL oldhj='"+B+"' masterid='"+J+"' cite='"+D+"' datetime='"+O+"'"+(J=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+F+"</DEL>");var K=N.document.selection.createRange();if(M){K.moveStart("character",-1);K.collapse(true);K.select()}else{K.moveStart("character",0);K.collapse(true);K.select()}}}else{alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u7528\u6237\u7684\u7559\u75d5\u4fe1\u606f");K=N.document.selection.createRange();if(M){K.moveStart("character",1);K.collapse(true);K.select()}else{K.moveStart("character",0);K.collapse(true);K.select()}}}else{G.selelen=0;A.pasteHTML("")}}else if(E.tagName=="DEL"){if(E.attributes["cite"].nodeValue!=D){K=N.document.selection.createRange();if(M){K.moveStart("character",1);K.collapse(true);K.select()}else{K.moveStart("character",0);K.collapse(true);K.select()}alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u7528\u6237\u7684\u7559\u75d5\u4fe1\u606f");return false}else{var I=$(E.childNodes[0]);if(I.parent().is("del"))I.unwrap()}K=N.document.selection.createRange();if(M){K.moveStart("character",0);K.collapse(true);K.select()}else{K.moveStart("character",1);K.collapse(true);K.select()}return false}else if(C=="<BR>"){K=N.document.selection.createRange();if(M){K.moveStart("character",1);K.collapse(true);K.select()}else{K.moveStart("character",0);K.collapse(true);K.select()}H.returnValue=true;return false}else{A.pasteHTML("<DEL masterid='"+J+"' cite='"+D+"' datetime='"+O+"'"+(J=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+C+"</DEL>");K=N.document.selection.createRange();if(M){K.moveStart("character",-1);K.collapse(true);K.select()}else{K.moveStart("character",0);K.collapse(true);K.select()}}return true}catch(_){}};DxEMREditor.getDelElement=function(C){try{var B=DxEMREditor.rngDocument(C),D=0,A=false;while($(B).attr("watend")!="true"&&$(B).attr("watflag")!="true"){if(B.tagName=="DEL"){A=true;break}B=B.parentElement;D++;if(D>100)break}if(A)return B;else return DxEMREditor.rngDocument(C)}catch(_){}};DxEMREditor.getPElement=function(C){try{var B=DxEMREditor.rngDocument(C),D=0,A=false;while($(B).attr("watend")!="true"&&$(B).attr("watflag")!="true"){if(B.tagName=="P"){A=true;break}B=B.parentElement;D++;if(D>100)break}if(A)return B;else return null}catch(_){}};DxEMREditor.getInsElement=function(C){try{var B=DxEMREditor.rngDocument(C),D=0,A=false;while($(B).attr("watend")!="true"&&$(B).attr("watflag")!="true"){if(B.tagName=="INS"){A=true;break}B=B.parentElement;D++;if(D>100)break}if(A)return B;else return DxEMREditor.rngDocument(C)}catch(_){}};DxEMREditor.getDelOrInsElement=function(C){try{var B=DxEMREditor.rngDocument(C),D=0,A=false;while($(B).attr("watend")!="true"&&$(B).attr("watflag")!="true"){if(B.tagName=="INS"||B.tagName=="DEL"){A=true;break}B=B.parentElement;D++;if(D>100)break}if(A)return B;else return DxEMREditor.rngDocument(C)}catch(_){}};DxEMREditor.txtdelscar=function(_,K,F,L,G){var C=F.username,M=(new Date()).toLocaleString(),H=F.isMasterUser,B=_.text.replace(/^<([\S]+).*?>(.*)<\/\1>$/,"$2");if(B==" ")B="&ensp;";if(B=="")selelen=0;var D=DxEMREditor.getDelOrInsElement(_);if(D.tagName=="INS"){if(D.attributes["cite"].nodeValue!=C){var J=D.attributes["masterid"].nodeValue;if(parseInt(H)>parseInt(J)){if(B=="<BR>"){G.returnValue=true;return false}else{var E=_.text;if(E==" ")E="&ensp;";var A=D.attributes["cite"].nodeValue+" "+D.attributes["dateTime"].nodeValue+" \u63d2\u5165\u7684\u5185\u5bb9";_.pasteHTML("<DEL oldhj='"+A+"' masterid='"+H+"' cite='"+C+"' datetime='"+M+"'"+(H=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+E+"</DEL>");var I=L.document.selection.createRange();if(K){I.moveStart("character",-1);I.collapse(true);I.select()}else{I.moveStart("character",0);I.collapse(true);I.select()}}}else{alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u7528\u6237\u7684\u7559\u75d5\u4fe1\u606f");I=L.document.selection.createRange();if(K){I.moveStart("character",1);I.collapse(true);I.select()}else{I.moveStart("character",0);I.collapse(true);I.select()}}}else{F.selelen=0;_.pasteHTML("")}}else if(D.tagName=="DEL"){if(D.attributes["cite"].nodeValue!=C){alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u7528\u6237\u7684\u7559\u75d5\u4fe1\u606f");I=L.document.selection.createRange();if(K){I.moveStart("character",1);I.collapse(true);I.select()}else{I.moveStart("character",0);I.collapse(true);I.select()}return false}else $(D.childNodes[0]).unwrap();I=L.document.selection.createRange();if(K){I.moveStart("character",0);I.collapse(true);I.select()}else{I.moveStart("character",1);I.collapse(true);I.select()}return false}else if(B=="<BR>"){I=L.document.selection.createRange();if(K){I.moveStart("character",1);I.collapse(true);I.select()}else{I.moveStart("character",0);I.collapse(true);I.select()}G.returnValue=true;return false}else{_.pasteHTML("<DEL masterid='"+H+"' cite='"+C+"' datetime='"+M+"'"+(H=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+B+"</DEL>");I=L.document.selection.createRange();if(K){I.moveStart("character",-1);I.collapse(true);I.select()}else{I.moveStart("character",0);I.collapse(true);I.select()}}return true};DxEMREditor.getWatId=function(_){if(_==undefined)return"";else return $(_).attr("watid")};DxEMREditor.designKeyDown=function(R,S,E,F,G){try{F.rng=null;var Z=DxEMREditor.getEditArea(S,F),c=DxEMREditor.getSelection(F,Z),H=DxEMREditor.getRange(c);DxEMREditor.saveHistory(F,Z);if(top.isIE&&c.type=="Control"){if(H(0).wattype=="gdbt")return true}else if(c.type=="None"||c.type=="Text"||!top.isIE)if(E==13){if(DxEMREditor.isSelectedHasWatcell(F,Z)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(F,Z)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}var W=DxEMREditor.getwatdocument(H);if($(W).attr("watflag")=="true"&&!($(W).attr("wattype")=="s2"&&($(W).attr("watsuntype")=="t10"||$(W).attr("watsuntype")=="t11"))){var Y=DxEMREditor.getWatId(W),A=DxEMREditor.decideCursorLocationInEmrElement(F,Z,W);if(A=="-1"){var D=$("<br><span></span>");D.insertBefore($(W).closest("span"));if(top.isIE){H.moveToElementText(D[1]);H.collapse(false);H.select()}else{H.selectNodeContents(D[1]);H.setEnd(H.endContainer,H.endOffset);H.setStart(H.startContainer,H.endOffset)}return false}else if(A=="1"){D=$("<span></span><br><p></p>");D.insertAfter($(W).closest("span"));if(top.isIE){H.moveToElementText(D[2]);H.collapse(false);H.select()}else{H.selectNodeContents(D[2]);H.setEnd(H.endContainer,H.endOffset);H.setStart(H.startContainer,H.endOffset)}return false}else if(A=="0")if($(W).attr("wattype")=="s1"&&($(W).attr("watsuntype")=="t7"||$(W).attr("watsuntype")=="t8")){if($(W).attr("watsuntype")=="t7"){D=$("<span></span><br><p></p>");D.insertAfter($(W).closest("span"));if(top.isIE){H.moveToElementText(D[2]);H.collapse(false);H.select()}else{H.selectNodeContents(D[2]);H.setEnd(H.endContainer,H.endOffset);H.setStart(H.startContainer,H.endOffset)}return false}else if($(W).attr("watsuntype")=="t8"){D=$("<br><span></span>");D.insertBefore($(W).closest("span"));if(top.isIE){H.moveToElementText(D[1]);H.collapse(false);H.select()}else{H.selectNodeContents(D[1]);H.setEnd(H.endContainer,H.endOffset);H.setStart(H.startContainer,H.endOffset)}return false}}else{if(top.isIE)H.select();else{H.setEnd(H.endContainer,H.endOffset);H.setStart(H.startContainer,H.endOffset)}return false}}else{if(false){var e=DxEMREditor.crxq4(true,F,Z),L=e[0],X=e[1],O=DxEMREditor.getwatdocument(X);if(!DxEMREditor.isWatCellSelected(F,O)){X.moveStart("character",1);X.collapse(true);X.select();X.text=X.text+" ";DxEMREditor.crxq4(true,F,Z)}else{X.moveStart("character",1);X.collapse(true);X.select();D=$("<span></span>");D.insertAfter($(O).closest("span"));X.moveToElementText(D[0]);X.select()}}return true}}else if(E==32){if(DxEMREditor.isSelectedHasWatcell(F,Z)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(F,Z)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}W=DxEMREditor.getwatdocument(H);if($(W).attr("watflag")=="true"&&$(W).attr("wattype")!="s2"&&$(W).attr("wattype")!="yjs"){Y=DxEMREditor.getWatId(W),A=DxEMREditor.decideCursorLocationInEmrElement(F,Z,W);if(A=="-1"){D=$("<span>&ensp;</span>");D.insertBefore($(W).closest("span"));if(top.isIE){H.moveToElementText(D[0]);H.collapse(false);H.select()}else{H.selectNodeContents(D[0]);H.setEnd(H.endContainer,H.endOffset);H.setStart(H.startContainer,H.endOffset)}return false}else if(A=="1"){D=$("<span>&ensp;</span>");D.insertAfter($(W).closest("span"));if(top.isIE){H.moveToElementText(D[0]);H.collapse(false);H.select()}else{H.selectNodeContents(D[0]);H.setEnd(H.endContainer,H.endOffset);H.setStart(H.startContainer,H.endOffset)}return false}else if(A=="0")if($(W).attr("wattype")=="s1"&&($(W).attr("watsuntype")=="t7"||$(W).attr("watsuntype")=="t8")){if($(W).attr("watsuntype")=="t7"){D=$("<span>&ensp;</span>");D.insertAfter($(W).closest("span"));if(top.isIE){H.moveToElementText(D[0]);H.collapse(false);H.select()}else{H.selectNodeContents(D[0]);H.setEnd(H.endContainer,H.endOffset)}return false}else if($(W).attr("watsuntype")=="t8"){D=$("<span>&ensp;</span>");D.insertBefore($(W).closest("span"));if(top.isIE){H.moveToElementText(D[0]);H.collapse(false);H.select()}else{H.selectNodeContents(D[0]);H.setEnd(H.endContainer,H.endOffset)}return false}}else return false}else if($(W).attr("watflag")=="true"&&$(W).attr("wattype")=="s2"){A=DxEMREditor.decideCursorLocationInEmrElement(F,Z,W),Y=DxEMREditor.getWatId(W);if(A=="-1"){D=$("<span>&ensp;</span>");D.insertBefore($(W).closest("span"));if(top.isIE){H.moveToElementText(D[0]);H.collapse(false);H.select()}else{H.selectNodeContents(D[0]);H.setEnd(H.endContainer,H.endOffset)}return false}else if(A=="1"){D=$("<span>&ensp;</span>");D.insertAfter($(W).closest("span"));if(top.isIE){H.moveToElementText(D[0]);H.collapse(false);H.select()}else{H.selectNodeContents(D[0]);H.setEnd(H.endContainer,H.endOffset)}return false}}else{DxEMREditor.pasteHTML(c,H,"&ensp;");return false}}else if(E==46){if(DxEMREditor.isSelectedHasWatcell(F,Z)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(F,Z))return true;if(top.isIE){e=DxEMREditor.crxq4(false,F,Z),L=e[0],X=e[1];if(L.type=="Control")L.clear();else if(L.type=="Text"||L.type=="None"){O=DxEMREditor.getwatdocument(X);if(O==undefined){H.moveStart("character",0);H.moveEnd("character",0);H.collapse(true);H.select();DxEMREditor.doclick(Z);return false}if(O.wattype=="gdbt"){X.moveStart("character",-1);X.moveEnd("character",0);X.collapse(true);X.select();return true}else if(O.wattype=="s1"||O.wattype=="static"||O.watdelete=="false")if(H.offsetTop==X.offsetTop){var K=O;K.outerHTML="";X.moveStart("character",0);X.moveEnd("character",0);X.collapse(true);X.select();return false}}X.moveStart("character",-1);X.moveEnd("character",0);X.collapse(true);X.select()}else{W=DxEMREditor.getwatdocument(H);if($(W).attr("watflag")=="true"){A=DxEMREditor.decideCursorLocationInEmrElement(F,Z,W);if(A==-1||A==0){H.selectNode(W);H.deleteContents();H.collapse(true);return false}else{var a=DxEMREditor.findRangeNextObj(false,H),I=a.nextobj;if(I==undefined)return true;else if(I.tagName=="DIV"||I.tagName=="P"){D=$("<span>"+I.innerHTML+"</span>");$(a.obj).append(D);$(I).remove();return false}else{var d=DxEMREditor.findFirstSonNode(I);if($(d).attr("watflag")=="true"){H.selectNode(I);H.deleteContents();H.collapse(true);return false}else return true}return false}}else if(H.startContainer.nodeName=="#text"){var M=DxEMREditor.GetRangeCursor_(F,Z),J=M.length,_=M.cursor;if(_<J)return true;else{a=DxEMREditor.findRangeNextObj(false,H),I=a.nextobj;if(I==undefined)return true;else if(I.tagName=="DIV"||I.tagName=="P"){D=$("<span>"+I.innerHTML+"</span>");$(a.obj).append(D);$(I).remove();return false}else{d=DxEMREditor.findFirstSonNode(I);if($(d).attr("watflag")=="true"){H.selectNode(I);H.deleteContents();H.collapse(true);return false}else return true}}}else{var B=H.startContainer.childNodes,P=H.startOffset;if(P>=B.length){a=DxEMREditor.findRangeNextObj(false,H),I=a.nextobj;if(I==undefined)return true;else if(I.tagName=="DIV"||I.tagName=="P"){D=$("<span>"+I.innerHTML+"</span>");$(a.obj).append(D);$(I).remove();return false}else{d=DxEMREditor.findFirstSonNode(I);if($(d).attr("watflag")=="true"){H.selectNode(I);H.deleteContents();H.collapse(true);return false}else return true}}else{d=B[P];d=DxEMREditor.findLastSonNode(d);if($(d).attr("watflag")=="true"){H.selectNode(d);H.deleteContents();H.collapse(true);return false}else return true}}}}else if(E==8){if(DxEMREditor.isSelectedHasWatcell(F,Z)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(F,Z))return true;if(top.isIE){e=DxEMREditor.crxq4(true,F,Z),L=e[0],X=e[1],O=DxEMREditor.getwatdocument(X);if(O==undefined||O.contentendflag=="true"){X.moveStart("character",1);X.moveEnd("character",0);X.collapse(true);X.select();return false}if(L.type=="Control"){if(X(0).wattype=="gdbt"){X.moveStart("character",1);X.collapse(true);X.select();return true}}else if(L.type=="Text"||L.type=="None")if(O.wattype=="gdbt"){X.moveStart("character",1);X.moveEnd("character",0);X.collapse(true);X.select();return false}else if(O.wattype=="s1"||O.wattype=="static"||O.watdelete=="false"){X.moveStart("character",1);X.moveEnd("character",0);X.collapse(true);X.select();K=O;K.outerHTML="";return false}else if(O.wattype=="content")return true;X.moveStart("character",1);X.moveEnd("character",0);X.collapse(true);X.select()}else{W=DxEMREditor.getwatdocument(H);if($(W).attr("watflag")=="true"){A=DxEMREditor.decideCursorLocationInEmrElement(F,Z,W);if(A==1||A==0){H.selectNode(W);H.deleteContents();H.collapse(false);return false}else{a=DxEMREditor.findRangeNextObj(true,H),I=a.nextobj;if(I==undefined)return true;else if(I.tagName=="DIV"||I.tagName=="P"){var U=DxEMREditor.findLastSonNode(I),D=$("<span>"+a.obj.innerHTML+"</span>");$(I).append(D);$(a.obj).remove();H.selectNode(U);H.collapse(false);return false}else if($(I).attr("watflag")=="true"){H.selectNode(I);H.deleteContents();H.collapse(false);return false}else return true;return false}}else if(H.startContainer.nodeName=="#text"){M=DxEMREditor.GetRangeCursor_(F,Z),J=M.length,_=M.cursor;if(_!=0)return true;else{a=DxEMREditor.findRangeNextObj(true,H),I=a.nextobj;if(I==undefined)return true;else if(I.tagName=="DIV"||I.tagName=="P"){U=DxEMREditor.findLastSonNode(I),D=$("<span>"+a.obj.innerHTML+"</span>");$(I).append(D);$(a.obj).remove();H.selectNode(U);H.collapse(false);return false}else if($(I).attr("watflag")=="true"){H.selectNode(I);H.deleteContents();H.collapse(false);return false}else return true}}else{B=H.startContainer.childNodes,P=H.startOffset;P-=1;if(P<0)P=0;else if(P>=B.length)P=B.length-1;d=B[P];d=DxEMREditor.findLastSonNode(d);if($(d).attr("watflag")=="true"){H.selectNode(d);H.deleteContents();H.collapse(false);return false}else return true}}}else{if(G.ctrlKey&&E==86){if(DxEMREditor.isSelectedHasWatcell(F,Z)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}DxEMREditor.onPaste(Z);return false}else if(G.ctrlKey&&E==67){var Q=H.htmlText;Q=Q.replaceAll("\r\n","");var C=$("<span>"+Q+"</span>").find("span[watsuntype='t7'],[watsuntype='t8']");for(var T=0;T<C.length;T++){var Y=$(C[T]).attr("watid"),V=$("<span>"+Q+"</span>").find("span[watid='"+Y+"']");if(V.length!=2){alert("\u62f7\u8d1d\u6bb5\u843d\u7b26\u53f7\u8981\u5b8c\u6574");return false}}clipboardData.setData("Text",Q);return false}else if(G.ctrlKey&&E==90){top.DxEMREditor.goHistory_(F,-1);return false}else if(E>47){if(DxEMREditor.isSelectedHasWatcell(F,Z)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}W=DxEMREditor.getwatdocument(H);if($(W).attr("watflag")=="true")if($(W).attr("wattype")!="s2"&&$(W).attr("wattype")!="yjs"){A=DxEMREditor.decideCursorLocationInEmrElement(F,Z,W);if(A=="-1"){D=$("<span>&ensp;</span>");D.insertBefore($(W).closest("span"));if(top.isIE){H.moveToElementText(D[0]);H.collapse(false);H.select()}else{H.selectNodeContents(D[0]);H.setEnd(H.endContainer,H.endOffset);H.setStart(H.startContainer,H.endOffset)}}else if(A=="1"){D=$("<span>&ensp;</span>");D.insertAfter($(W).closest("span"));if(top.isIE){H.moveToElementText(D[0]);H.collapse(false);H.select()}else{H.selectNode(D[0]);H.setEnd(H.endContainer,H.endOffset);H.setStart(H.startContainer,H.endOffset)}return true}else if(A=="0")if($(W).attr("wattype")=="s1"&&($(W).attr("watsuntype")=="t7"||$(W).attr("watsuntype")=="t8")){if($(W).attr("watsuntype")=="t7"){D=$("<span>&ensp;</span>");D.insertAfter($(W).closest("span"));if(top.isIE){H.moveToElementText(D[0]);H.collapse(false);H.select()}else{H.selectNodeContents(D[0]);H.setEnd(H.endContainer,H.endOffset);H.setStart(H.startContainer,H.endOffset)}return true}else if($(W).attr("watsuntype")=="t8"){D=$("<span>&ensp;</span>");D.insertBefore($(W).closest("span"));if(top.isIE){H.moveToElementText(D[0]);H.collapse(true);H.select()}else{H.selectNodeContents(D[0]);H.setEnd(H.endContainer,H.endOffset);H.setStart(H.startContainer,H.endOffset)}return true}}else return false}else{var Y=H.parentElement().watid,e=DxEMREditor.crxq4(false,F,Z),L=e[0],X=e[1],O=DxEMREditor.getwatdocument(X),b=DxEMREditor.getWatId(O);X.moveStart("character",-1);X.moveEnd("character",0);X.collapse(true);X.select();if(Y==b)return true;else if(W.wattype=="s2"){X.moveStart("character",0);X.moveEnd("character",0);X.collapse(true);X.select();return true}else{D=$("<span>&ensp;</span>");D.insertAfter($(W).closest("span"));H.moveToElementText(D[0]);H.collapse(false);H.select()}}}return true}return true}catch(N){H.select()}};DxEMREditor.editKeyDown=function(T,U,F,G,H){try{G.rng=null;var b=DxEMREditor.getEditArea(U,G),e=DxEMREditor.getSelection(G,b),I=DxEMREditor.getRange(e);DxEMREditor.saveHistory(G,b);if(top.isIE&&e.type=="Control"){if(I(0).wattype=="gdbt")return false}else if(e.type=="None"||e.type=="Text"||!top.isIE)if(F==13){try{if(DxEMREditor.isSelectedHasWatcell(G,b)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(G,b)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}var Y=DxEMREditor.getwatdocument(I);if($(Y).attr("watflag")=="true"&&!($(Y).attr("wattype")=="s2"&&($(Y).attr("watsuntype")=="t10"||$(Y).attr("watsuntype")=="t11"))){var a=DxEMREditor.getWatId(Y),B=DxEMREditor.decideCursorLocationInEmrElement(G,b,Y);if(B=="-1"){var E=$("<br><span></span>");E.insertBefore($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[1]);I.collapse(false);I.select()}else{I.selectNodeContents(E[1]);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}return false}else if(B=="1"){if(($(Y).attr("wattype")=="s1"||$(Y).attr("wattype")=="s2")&&($(Y).attr("watsuntype")!="t7"&&$(Y).attr("watsuntype")!="t8"&&$(Y).attr("watsuntype")!="t9"&&$(Y).attr("watsuntype")!="t10"&&$(Y).attr("watsuntype")!="t11"))top.DxEMREditor.enterAction(G,a);else{E=$("<span></span><br><p></p>");E.insertAfter($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[2]);I.collapse(false);I.select()}else{I.selectNodeContents(E[2]);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}}return false}else if(B=="0")if($(Y).attr("wattype")=="s1"&&($(Y).attr("watsuntype")=="t7"||$(Y).attr("watsuntype")=="t8")){if($(Y).attr("watsuntype")=="t7"){E=$("<span></span><br><p></p>");E.insertAfter($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[2]);I.collapse(false);I.select()}else{I.selectNodeContents(E[2]);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}return false}else if($(Y).attr("watsuntype")=="t8"){E=$("<br><span></span>");E.insertBefore($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[1]);I.collapse(false);I.select()}else{I.selectNodeContents(E[1]);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}return false}}else{DxEMREditor.select(G,b,I);if(($(Y).attr("wattype")=="s1"||$(Y).attr("wattype")=="s2")&&($(Y).attr("watsuntype")!="t7"&&$(Y).attr("watsuntype")!="t8"&&$(Y).attr("watsuntype")!="t9"&&$(Y).attr("watsuntype")!="t10"&&$(Y).attr("watsuntype")!="t11"))top.DxEMREditor.enterAction(G,a);return false}}else{if(false){var g=DxEMREditor.crxq4(true,G,b),N=g[0],Z=g[1],Q=DxEMREditor.getwatdocument(Z);if(!DxEMREditor.isWatCellSelected(G,Q)){Z.moveStart("character",1);Z.collapse(true);Z.select();Z.text=Z.text+" ";DxEMREditor.crxq4(true,G,b)}else{Z.moveStart("character",1);Z.collapse(true);Z.select();E=$("<span></span>");E.insertAfter($(Q).closest("span"));Z.moveToElementText(E[0]);Z.select()}}return true}}catch(P){alert(P.message)}}else if(F==37){try{Y=DxEMREditor.getwatdocument(I);if($(Y).attr("watflag")=="true"&&!($(Y).attr("wattype")=="s2"&&($(Y).attr("watsuntype")=="t10"||$(Y).attr("watsuntype")=="t11"))){a=DxEMREditor.getWatId(Y),B=DxEMREditor.decideCursorLocationInEmrElement(G,b,Y);if(B=="1"){if(($(Y).attr("wattype")=="s1"||$(Y).attr("wattype")=="s2")&&($(Y).attr("watsuntype")!="t7"&&$(Y).attr("watsuntype")!="t8"&&$(Y).attr("watsuntype")!="t9"&&$(Y).attr("watsuntype")!="t10"&&$(Y).attr("watsuntype")!="t11")){top.DxEMREditor.localKeyLocation(G,b,a,false);return false}}else if(B=="0"){DxEMREditor.select(G,b,I);if(($(Y).attr("wattype")=="s1"||$(Y).attr("wattype")=="s2")&&($(Y).attr("watsuntype")!="t7"&&$(Y).attr("watsuntype")!="t8"&&$(Y).attr("watsuntype")!="t9"&&$(Y).attr("watsuntype")!="t10"&&$(Y).attr("watsuntype")!="t11")){top.DxEMREditor.localKeyLocation(G,b,a,false);return false}}}else return true}catch(P){alert(P.message)}}else if(F==32){if(DxEMREditor.isSelectedHasWatcell(G,b)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(G,b)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}Y=DxEMREditor.getwatdocument(I);if($(Y).attr("watflag")=="true"&&$(Y).attr("wattype")!="s2"&&$(Y).attr("wathdychange")!="true"&&$(Y).attr("wattype")!="yjs"){a=DxEMREditor.getWatId(Y),B=DxEMREditor.decideCursorLocationInEmrElement(G,b,Y);if(B=="-1"){E=$("<span>&ensp;</span>");E.insertBefore($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[0]);I.collapse(false);I.select()}else{I.selectNodeContents(E[0]);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}return false}else if(B=="1"){E=$("<span>&ensp;</span>");E.insertAfter($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[0]);I.collapse(false);I.select()}else{I.selectNodeContents(E[0]);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}return false}else if(B=="0")if($(Y).attr("wattype")=="s1"&&($(Y).attr("watsuntype")=="t7"||$(Y).attr("watsuntype")=="t8")){if($(Y).attr("watsuntype")=="t7"){E=$("<span>&ensp;</span>");E.insertAfter($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[0]);I.collapse(false);I.select()}else{I.selectNodeContents(E[0]);I.setEnd(I.endContainer,I.endOffset)}return false}else if($(Y).attr("watsuntype")=="t8"){E=$("<span>&ensp;</span>");E.insertBefore($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[0]);I.collapse(false);I.select()}else{I.selectNodeContents(E[0]);I.setEnd(I.endContainer,I.endOffset)}return false}}else return false}else if($(Y).attr("watflag")=="true"&&$(Y).attr("wattype")=="s2"){B=DxEMREditor.decideCursorLocationInEmrElement(G,b,Y),a=DxEMREditor.getWatId(Y);if(B=="-1"){E=$("<span>&ensp;</span>");E.insertBefore($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[0]);I.collapse(false);I.select()}else{I.selectNodeContents(E[0]);I.setEnd(I.endContainer,I.endOffset)}return false}else if(B=="1"){E=$("<span>&ensp;</span>");E.insertAfter($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[0]);I.collapse(false);I.select()}else{I.selectNodeContents(E[0]);I.setEnd(I.endContainer,I.endOffset)}return false}}else{DxEMREditor.pasteHTML(e,I,"&ensp;");return false}}else if(F==46){if(DxEMREditor.isSelectedHasWatcell(G,b)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(G,b))return true;if(top.isIE){g=DxEMREditor.crxq4(false,G,b),N=g[0],Z=g[1],Q=DxEMREditor.getwatdocument(Z);if(Q==undefined){I.moveStart("character",0);I.moveEnd("character",0);I.collapse(true);I.select();DxEMREditor.doclick(b);return false}if(N.type=="Control"){if(Z(0).wattype=="gdbt"){Z.moveStart("character",-1);Z.moveEnd("character",0);Z.collapse(true);Z.select();return false}}else if(N.type=="Text"||N.type=="None")if(Q.wattype=="gdbt"){Z.moveStart("character",-1);Z.moveEnd("character",0);Z.collapse(true);Z.select();return false}else if(Q.watdelete=="false"){if(I.offsetTop==Z.offsetTop){Z.moveStart("character",-1);Z.moveEnd("character",0);Z.collapse(true);Z.select();return false}}else if(Q.wattype=="s1")if(I.offsetTop==Z.offsetTop){var M=Q;M.outerHTML="";Z.moveStart("character",0);Z.moveEnd("character",0);Z.collapse(true);Z.select();return false}Z.moveStart("character",-1);Z.moveEnd("character",0);Z.collapse(true);Z.select()}else{Y=DxEMREditor.getwatdocument(I);if($(Y).attr("watflag")=="true"){B=DxEMREditor.decideCursorLocationInEmrElement(G,b,Y);if(B==-1||B==0){if($(Y).attr("watdelete")=="false")return false;else return true}else{var c=DxEMREditor.findRangeNextObj(false,I),J=c.nextobj;if(J==undefined)return true;else if(J.tagName=="DIV"||J.tagName=="P"){E=$("<span>"+J.innerHTML+"</span>");$(c.obj).append(E);$(J).remove();return false}else{var f=DxEMREditor.findFirstSonNode(J);if($(f).attr("watflag")=="true"){if($(f).attr("watdelete")=="false")return false;else return true}else return true}return false}}else if(I.startContainer.nodeName=="#text"){var O=DxEMREditor.GetRangeCursor_(G,b),K=O.length,_=O.cursor;if(_<K)return true;else{c=DxEMREditor.findRangeNextObj(false,I),J=c.nextobj;if(J==undefined)return true;else if(J.tagName=="DIV"||J.tagName=="P"){E=$("<span>"+J.innerHTML+"</span>");$(c.obj).append(E);$(J).remove();return false}else{f=DxEMREditor.findFirstSonNode(J);if($(f).attr("watflag")=="true"){if($(f).attr("watdelete")=="false")return false;else return true}else return true}}}else{var C=I.startContainer.childNodes,R=I.startOffset;if(R>=C.length){c=DxEMREditor.findRangeNextObj(false,I),J=c.nextobj;if(J==undefined)return true;else if(J.tagName=="DIV"||J.tagName=="P"){E=$("<span>"+J.innerHTML+"</span>");$(c.obj).append(E);$(J).remove();return false}else{f=DxEMREditor.findFirstSonNode(J);if($(f).attr("watflag")=="true"){if($(f).attr("watdelete")=="false")return false;else return true}else return true}}else{f=C[R];f=DxEMREditor.findLastSonNode(f);if($(f).attr("watflag")=="true"){if($(f).attr("watdelete")=="false")return false;else return true}else return true}}}}else if(F==8){if(DxEMREditor.isSelectedHasWatcell(G,b)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(G,b))return true;if(top.isIE){g=DxEMREditor.crxq4(true,G,b),N=g[0],Z=g[1],Q=DxEMREditor.getwatdocument(Z);if(Q==undefined||Q.contentendflag=="true"){I.select();return true}if(N.type=="Control"){if(Z(0).wattype=="gdbt"){Z.moveStart("character",1);Z.moveEnd("character",0);Z.collapse(true);Z.select();return false}}else if(N.type=="Text"||N.type=="None")if(Q.wattype=="gdbt"){Z.moveStart("character",1);Z.moveEnd("character",0);Z.collapse(true);Z.select();return false}else if(Q.watdelete=="false"){Z.moveStart("character",1);Z.moveEnd("character",0);Z.collapse(true);Z.select();return false}else if(Q.wattype=="s1"){Z.moveStart("character",1);Z.moveEnd("character",0);Z.collapse(true);Z.select();M=Q;M.outerHTML="";return false}else if(Q.wattype=="content")return true;Z.moveStart("character",1);Z.moveEnd("character",0);Z.collapse(true);Z.select()}else{Y=DxEMREditor.getwatdocument(I);if($(Y).attr("watflag")=="true"){B=DxEMREditor.decideCursorLocationInEmrElement(G,b,Y);if(B==1||B==0)return false;else{c=DxEMREditor.findRangeNextObj(true,I),J=c.nextobj;if(J==undefined)return true;else if(J.tagName=="DIV"||J.tagName=="P"){var W=DxEMREditor.findLastSonNode(J),E=$("<span>"+c.obj.innerHTML+"</span>");$(J).append(E);$(c.obj).remove();I.selectNode(W);I.collapse(false);return false}else if($(J).attr("watflag")=="true"){if($(J).attr("watdelete")=="false")return false;else return true}else return true;return false}}else if(I.startContainer.nodeName=="#text"){O=DxEMREditor.GetRangeCursor_(G,b),K=O.length,_=O.cursor;if(_!=0)return true;else{c=DxEMREditor.findRangeNextObj(true,I),J=c.nextobj;if(J==undefined)return true;else if(J.tagName=="DIV"||J.tagName=="P"){W=DxEMREditor.findLastSonNode(J),E=$("<span>"+c.obj.innerHTML+"</span>");$(J).append(E);$(c.obj).remove();I.selectNode(W);I.collapse(false);return false}else if($(J).attr("watflag")=="true"){if($(J).attr("watdelete")=="false")return false;else return true}else return true}}else{C=I.startContainer.childNodes,R=I.startOffset;R-=1;if(R<0)R=0;else if(R>=C.length)R=C.length-1;f=C[R];f=DxEMREditor.findLastSonNode(f);if($(f).attr("watflag")=="true"){if($(f).attr("watdelete")=="false")return false;else return true}else return true}}}else{if(H.ctrlKey&&F==86){if(DxEMREditor.isSelectedHasWatcell(G,b)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}DxEMREditor.onPaste(b);return false}else if(H.ctrlKey&&F==67){var S=I.htmlText;S=S.replaceAll("\r\n","");var D=$("<span>"+S+"</span>").find("span[watsuntype='t7'],[watsuntype='t8']");for(var V=0;V<D.length;V++){var a=$(D[V]).attr("watid"),X=$("<span>"+S+"</span>").find("span[watid='"+a+"']");if(X.length!=2){alert("\u62f7\u8d1d\u6bb5\u843d\u7b26\u53f7\u8981\u5b8c\u6574");return false}}clipboardData.setData("Text",S);return false}else if(H.ctrlKey&&F==90){if(DxEMREditor.isSelectedHasWatcell(G,b)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}top.DxEMREditor.goHistory_(G,-1);return false}else if(F==9){try{if(DxEMREditor.isSelectedHasWatcell(G,b)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(G,b)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}Y=DxEMREditor.getwatdocument(I);if($(Y).attr("watflag")=="true"&&!($(Y).attr("wattype")=="s2"&&($(Y).attr("watsuntype")=="t10"||$(Y).attr("watsuntype")=="t11"))){a=$(Y).attr("watid"),B=DxEMREditor.decideCursorLocationInEmrElement(G,b,Y);if(B=="1"){if(($(Y).attr("wattype")=="s1"||$(Y).attr("wattype")=="s2")&&($(Y).attr("watsuntype")!="t7"&&$(Y).attr("watsuntype")!="t8"&&$(Y).attr("watsuntype")!="t9"&&$(Y).attr("watsuntype")!="t10"&&$(Y).attr("watsuntype")!="t11"))DxEMREditor.localKeyLocation(G,b,a,true)}else if(B=="0")if(($(Y).attr("wattype")=="s1"||$(Y).attr("wattype")=="s2")&&($(Y).attr("watsuntype")!="t7"&&$(Y).attr("watsuntype")!="t8"&&$(Y).attr("watsuntype")!="t9"&&$(Y).attr("watsuntype")!="t10"&&$(Y).attr("watsuntype")!="t11"))DxEMREditor.localKeyLocation(G,b,a,true)}}catch(P){alert(P.message)}return false}else if(F>47){if(DxEMREditor.isSelectedHasWatcell(G,b)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}Y=DxEMREditor.getwatdocument(I);if($(Y).attr("watflag")=="true")if($(Y).attr("wattype")!="s2"&&$(Y).attr("wattype")!="yjs"&&$(Y).attr("wathdychange")!="true"){B=DxEMREditor.decideCursorLocationInEmrElement(G,b,Y);if(B=="-1"){E=$("<span>&ensp;</span>");E.insertBefore($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[0]);I.collapse(false);I.select()}else{I.selectNodeContents(E[0]);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}}else if(B=="1"){E=$("<span>&ensp;</span>");E.insertAfter($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[0]);I.collapse(false);I.select()}else{I.selectNode(E[0]);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}return true}else if(B=="0")if($(Y).attr("wattype")=="s1"&&($(Y).attr("watsuntype")=="t7"||$(Y).attr("watsuntype")=="t8")){if($(Y).attr("watsuntype")=="t7"){E=$("<span>&ensp;</span>");E.insertAfter($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[0]);I.collapse(false);I.select()}else{I.selectNodeContents(E[0]);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}return true}else if($(Y).attr("watsuntype")=="t8"){E=$("<span>&ensp;</span>");E.insertBefore($(Y).closest("span"));if(top.isIE){I.moveToElementText(E[0]);I.collapse(true);I.select()}else{I.selectNodeContents(E[0]);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}return true}}else return false}else if(top.isIE){var a=$(Y).attr("watid"),g=DxEMREditor.crxq4(false,G,b),N=g[0],Z=g[1],Q=DxEMREditor.getwatdocument(Z),d=DxEMREditor.getWatId(Q),L=Q.wattype,A=Q.watsuntype;Z.moveStart("character",-1);Z.moveEnd("character",0);Z.collapse(true);Z.select();if(a==d){if(Y.watsuntype=="t1"&&(Y.wattype=="s1"||Y.wattype=="s2"))Y.className="Emr_singleselect_edit";else if(emrob.watsuntype=="t2"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))Y.className="Emr_multiselect_edit";else if(emrob.watsuntype=="t3"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))Y.className="Emr_hasnoselect_edit";return true}else if(Y.wattype=="s2"){if(d!=null&&d!=""&&d!=undefined){E=$("<span>&ensp;</span>");E.insertBefore($(Q).closest("span"));I.moveToElementText(E[0]);I.collapse(false);I.select();return true}else{if(Y.watsuntype=="t1"&&(Y.wattype=="s1"||Y.wattype=="s2"))Y.className="Emr_singleselect_edit";else if(emrob.watsuntype=="t2"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))Y.className="Emr_multiselect_edit";else if(emrob.watsuntype=="t3"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))Y.className="Emr_hasnoselect_edit";I.moveStart("character",0);I.moveEnd("character",0);I.collapse(true);I.select();return true}}else{E=$("<span>&ensp;</span>");E.insertAfter($(Y).closest("span"));I.moveToElementText(E[0]);I.collapse(false);I.select();if(d!=null&&d!=""&&d!=undefined){E=$("<span>&ensp;</span>");E.insertBefore($(Q).closest("span"));I.moveToElementText(E[0]);I.collapse(false);I.select()}}}else if(I.startContainer.nodeName=="#text"){O=DxEMREditor.GetRangeCursor_(G,b),K=O.length,_=O.cursor;if(_<K)return true;else{c=DxEMREditor.findRangeNextObj(false,I),J=c.nextobj;if(J==undefined)return true;else if(J.tagName=="DIV"||J.tagName=="P")return true;else{f=DxEMREditor.findFirstSonNode(J);if($(f).attr("watflag")=="true"){if($(f).attr("watdelete")=="false")return false;else return true}else return true}}}else{C=I.startContainer.childNodes,R=I.startOffset;if(R>=C.length){c=DxEMREditor.findRangeNextObj(false,I),J=c.nextobj;if(J==undefined)return true;else if(J.tagName=="DIV"||J.tagName=="P")return true;else{f=DxEMREditor.findFirstSonNode(J);if($(f).attr("watflag")=="true"){if($(f).attr("watdelete")=="false")return false;else return true}else return true}}else{f=C[R];f=DxEMREditor.findLastSonNode(f);if($(f).attr("watflag")=="true"){if($(f).attr("watdelete")=="false")return false;else return true}else return true}}}return true}return true}catch(P){}};DxEMREditor.editInput=function(D,F,G,K,H){try{var O=K.document.selection;if(DxEMREditor.isSelectedHasWatcell(G,K)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(O.type=="Control"){if(H(0).wattype=="gdbt")return false}else if(O.type=="None"||O.type=="Text"){var I=DxEMREditor.getwatdocument(H);if(I.watflag=="true")if(I.wattype!="s2"&&I.wattype!="yjs"&&I.wathdychange!="true"){var L=I.watid,Q=DxEMREditor.crxq4(false,G,K),_=Q[0],J=Q[1],B=DxEMREditor.getwatdocument(J),N=DxEMREditor.getWatId(B);J.moveStart("character",-1);J.moveEnd("character",0);J.collapse(true);J.select();if(L==N){Q=DxEMREditor.crxq4(true,G,K);_=Q[0];J=Q[1];var B=DxEMREditor.getwatdocument(J),P=DxEMREditor.getWatId(B);J.moveStart("character",1);J.moveEnd("character",0);J.collapse(true);J.select();if(L==P){if(I.wattype=="s1"&&(I.watsuntype=="t7"||I.watsuntype=="t8")){if(I.watsuntype=="t7"){var E=$("<span> \u3000</span>");E.insertAfter($(I).closest("span"));H.moveToElementText(E[0]);H.select();return true}else if(I.watsuntype=="t8"){E=$("<span> \u3000</span>");E.insertBefore($(I).closest("span"));H.moveToElementText(E[0]);H.select();return true}}else return false}else{E=$("<span>&ensp;</span>");E.insertBefore($(I).closest("span"));H.moveToElementText(E[0]);H.select();return true}}else{E=$("<span> \u3000</span>");E.insertAfter($(I).closest("span"));H.moveToElementText(E[0]);H.select()}}else{var L=I.watid,Q=DxEMREditor.crxq4(false,G,K),_=Q[0],J=Q[1],B=DxEMREditor.getwatdocument(J),N=DxEMREditor.getWatId(B),M=B.wattype,C=B.watsuntype;J.moveStart("character",-1);J.moveEnd("character",0);J.collapse(true);J.select();if(L==N)return true;else if(I.wattype=="s2"){if(N!=null&&N!=""&&N!=undefined){E=$("<span></span>");E.insertBefore($(B).closest("span"));H.moveToElementText(E[0]);H.select();return true}else{H.moveStart("character",0);H.moveEnd("character",0);H.collapse(true);H.select();return true}}else{E=$("<span> \u3000</span>");E.insertAfter($(I).closest("span"));H.moveToElementText(E[0]);H.select();if(N!=null&&N!=""&&N!=undefined){E=$("<span></span>");E.insertBefore($(B).closest("span"));H.moveToElementText(E[0]);H.select()}}}return true}}catch(A){}};DxEMREditor.getwatdocument=function(B){try{var A;if(B.commonAncestorContainer){A=B.commonAncestorContainer;if(A.nodeName=="#text")A=A.parentElement}else if(B.parentElement)A=B.parentElement();var C=0;while($(A).attr("watend")!="true"&&$(A).attr("watflag")!="true"){A=A.parentElement;C++;if(C>100)break}return A}catch(_){}};DxEMREditor.editKeyDownScar=function(Y,b,E,I,J){try{I.rng=null;var g=DxEMREditor.getEditArea(b,I),k=DxEMREditor.getSelection(I,g),O=DxEMREditor.getRange(k);DxEMREditor.saveHistory(I,g);var H=I.username,P=(new Date()).toLocaleString(),K=I.isMasterUser;DxEMREditor.saveHistory(I,g);if(top.isIE&&k.type=="Control")if(O(0).wattype=="gdbt")return false;else return false;if(E==46){if(DxEMREditor.isSelectedHasWatcell(I,g)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(top.isIE){var m=DxEMREditor.crxq4(false,I,g),R=m[0],e=m[1];if(R.type=="Control"){if(e(0).wattype=="gdbt")return false}else if(R.type=="Text"||R.type=="None"){var T=DxEMREditor.getwatdocument(e);if(T==undefined){O.moveStart("character",0);O.moveEnd("character",0);O.collapse(true);O.select();DxEMREditor.doclick(g);return false}if(T.wattype=="gdbt"){e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();return false}else if(T.watdelete=="false"){if(O.offsetTop==e.offsetTop){e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();return false}else{e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();return true}}else if(T.wattype=="s1"){if(O.offsetTop==e.offsetTop){var F=T.getElementsByTagName("del");if(F==null||F.length==0){var W=T.innerHTML;T.innerHTML="<DEL masterid='1' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+W+"</DEL>";e.moveToElementText(T);e.collapse(false);e.select();return false}else{for(var c=0;c<F.length;c++){var X=F[c];if(X.attributes["cite"].nodeValue!=H){e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u7528\u6237\u7684\u7559\u75d5\u4fe1\u606f");return false}}var A=T.getElementsByTagName("ins");for(c=0;c<A.length;c++){X=A[c];X.outerHTML=""}var L=0;for(c=0;c<F.length;c++){X=F[c];L+=parseInt(X.innerText.length);$(X.childNodes[0]).unwrap()}e.moveToElementText(T);e.collapse(false);e.select();return false}}else{e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();return true}}else if(T.wattype=="s2"||T.wathdychange=="true"){e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();var G=O.text.replace(/^<([\S]+).*?>(.*)<\/\1>$/,"$2");if(G!=""){alert("\u4e0d\u80fd\u9009\u62e9\u6587\u5b57\u8fdb\u884c\u5220\u9664");return false}else{DxEMREditor.del_keydown(I,g,J);return false}}else if(T.wattype=="content"){e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();if(!DxEMREditor.del_keydown(I,g,J))return false;else return false}}if(false){e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();G=O.text.replace(/^<([\S]+).*?>(.*)<\/\1>$/,"$2");if(G!=""){alert("\u4e0d\u80fd\u9009\u62e9\u6587\u5b57\u8fdb\u884c\u5220\u9664");return false}DxEMREditor.del_keydown(I,g,J);return false}else{e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();if(!DxEMREditor.del_keydown(I,g,J))return false;else return false}}else{var d=DxEMREditor.getwatdocument(O);if($(d).attr("watflag")=="true"){var B=DxEMREditor.decideCursorLocationInEmrElement(I,g,d);if(B==-1||B==0){if($(d).attr("watdelete")=="false")return false;else return true}else{var h=DxEMREditor.findRangeNextObj(false,O),N=h.nextobj;if(N==undefined)return true;else if(N.tagName=="DIV"||N.tagName=="P"){var D=$("<span>"+N.innerHTML+"</span>");$(h.obj).append(D);$(N).remove();return false}else{var j=DxEMREditor.findFirstSonNode(N);if($(j).attr("watflag")=="true"){if($(j).attr("watdelete")=="false")return false;else return true}else return true}return false}}else if(O.startContainer.nodeName=="#text"){var Q=DxEMREditor.GetRangeCursor_(I,g),M=Q.length,_=Q.cursor;if(_<M)return true;else{h=DxEMREditor.findRangeNextObj(false,O),N=h.nextobj;if(N==undefined)return true;else if(N.tagName=="DIV"||N.tagName=="P"){D=$("<span>"+N.innerHTML+"</span>");$(h.obj).append(D);$(N).remove();return false}else{j=DxEMREditor.findFirstSonNode(N);if($(j).attr("watflag")=="true"){if($(j).attr("watdelete")=="false")return false;else return true}else return true}}}else{var C=O.startContainer.childNodes,V=O.startOffset;if(V>=C.length){h=DxEMREditor.findRangeNextObj(false,O),N=h.nextobj;if(N==undefined)return true;else if(N.tagName=="DIV"||N.tagName=="P"){D=$("<span>"+N.innerHTML+"</span>");$(h.obj).append(D);$(N).remove();return false}else{j=DxEMREditor.findFirstSonNode(N);if($(j).attr("watflag")=="true"){if($(j).attr("watdelete")=="false")return false;else return true}else return true}}else{j=C[V];j=DxEMREditor.findLastSonNode(j);if($(j).attr("watflag")=="true"){if($(j).attr("watdelete")=="false")return false;else return true}else return true}}}}if(E==8){if(DxEMREditor.isSelectedHasWatcell(I,g)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}m=DxEMREditor.crxq4(true,I,g),R=m[0],e=m[1],T=DxEMREditor.getwatdocument(e);if(T==undefined||T.contentendflag=="true"){DxEMREditor.doclick(g);return false}if(R.type=="Control"){if(e(0).wattype=="gdbt")return false}else if(R.type=="Text"||R.type=="None")if(T.wattype=="gdbt"){e.moveStart("character",1);e.moveEnd("character",0);e.collapse(true);e.select();return false}else if(T.watdelete=="false"){e.moveStart("character",1);e.moveEnd("character",0);e.collapse(true);e.select();return false}else if(T.wattype=="s1"){F=T.getElementsByTagName("del");if(F==null||F.length==0){var W=T.innerHTML,Z=T.innerText.length;T.innerHTML="";T.innerHTML="<DEL masterid='1' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+W+"</DEL>";e.moveToElementText(T);e.collapse(true);e.select();return false}else{for(c=0;c<F.length;c++){X=F[c];if(X.attributes["cite"].nodeValue!=H){e.moveStart("character",1);e.moveEnd("character",0);e.collapse(true);e.select();alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u7528\u6237\u7684\u7559\u75d5\u4fe1\u606f");return false}}A=T.getElementsByTagName("ins");for(c=0;c<A.length;c++){X=A[c];X.outerHTML=""}for(c=0;c<F.length;c++){X=F[c];$(X.childNodes[0]).unwrap()}e.moveToElementText(T);e.collapse(true);e.select();return false}}else if(T.wattype=="s2"||T.wathdychange=="true"){e.moveStart("character",1);e.moveEnd("character",0);e.collapse(true);e.select();G=O.text.replace(/^<([\S]+).*?>(.*)<\/\1>$/,"$2");if(G!=""){alert("\u4e0d\u80fd\u9009\u62e9\u6587\u5b57\u8fdb\u884c\u5220\u9664");return false}else{DxEMREditor.back_keydown(I,g,J);return false}}if(false){e.moveStart("character",1);e.moveEnd("character",0);e.collapse(true);e.select();G=O.text.replace(/^<([\S]+).*?>(.*)<\/\1>$/,"$2");if(G!=""){alert("\u4e0d\u80fd\u9009\u62e9\u6587\u5b57\u8fdb\u884c\u5220\u9664");return false}DxEMREditor.back_keydown(I,g,J);return false}else{e.moveStart("character",1);e.moveEnd("character",0);e.collapse(true);e.select();if(!DxEMREditor.back_keydown(I,g,J))return false;else return false}}if(E==32){if(DxEMREditor.isSelectedHasWatcell(I,g)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(I,g)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}d=DxEMREditor.getwatdocument(O);if(d.watflag=="true"&&d.wattype!="s2"&&d.wathdychange!="true"&&d.wattype!="yjs"){var f=d.watid,m=DxEMREditor.crxq4(false,I,g),R=m[0],e=m[1],T=DxEMREditor.getwatdocument(e),i=DxEMREditor.getWatId(T);e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();if(f==i){_=DxEMREditor.GetCursorPsn(I,g);if(_==0){D=$("<INS masterid='1' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">&ensp;</INS>");D.insertBefore($(d).closest("span"));O.moveToElementText(D[0]);O.collapse(false);O.select();return false}else if(d.wattype=="s1"&&(d.watsuntype=="t7"||d.watsuntype=="t8")){if(d.watsuntype=="t7"){D=$("<span>&ensp;</span>");D.insertAfter($(d).closest("span"));O.moveToElementText(D[0]);O.collapse(false);O.select();return false}else if(d.watsuntype=="t8"){D=$("<span>&ensp;</span>");D.insertBefore($(d).closest("span"));O.moveToElementText(D[0]);O.collapse(false);O.select();return false}}else return false}else{D=$("<INS masterid='1' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">&ensp;</INS>");D.insertAfter($(d).closest("span"));O.moveToElementText(D[0]);O.collapse(false);O.select();return false}}else if(d.watflag=="true"&&d.wattype=="s2"){f=d.watid,m=DxEMREditor.crxq4(false,I,g),R=m[0],e=m[1],T=DxEMREditor.getwatdocument(e),i=DxEMREditor.getWatId(T);e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();if(f!=i){D=$("<INS masterid='1' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">&ensp;</INS>");D.insertAfter($(d).closest("span"));O.moveToElementText(D[0]);O.collapse(false);O.select();return false}}return DxEMREditor.inputtxt(I,g,J)}if(E==13){if(DxEMREditor.isSelectedHasWatcell(I,g)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(I,g)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}d=DxEMREditor.getwatdocument(O);if(d.watflag=="true"&&!(d.wattype=="s2"&&(d.watsuntype=="t10"||d.watsuntype=="t11"))){f=d.watid,B=DxEMREditor.decideCursorLocationInEmrElement(I,g,d);if(B=="-1"){D=$("<br><span></span>");D.insertBefore($(d).closest("span"));O.moveToElementText(D[1]);O.select();return false}else if(B=="1"){if((d.wattype=="s1"||d.wattype=="s2")&&(d.watsuntype!="t7"&&d.watsuntype!="t8"&&d.watsuntype!="t9"&&d.watsuntype!="t10"&&d.watsuntype!="t11"))top.DxEMREditor.enterAction(I,f);else{D=$("<span></span><br><p></p>");D.insertAfter($(d).closest("span"));O.moveToElementText(D[2]);O.select()}return false}else if(B=="0")if(d.wattype=="s1"&&(d.watsuntype=="t7"||d.watsuntype=="t8")){if(d.watsuntype=="t7"){D=$("<span></span><br><p></p>");D.insertAfter($(d).closest("span"));O.moveToElementText(D[2]);O.select();return false}else if(d.watsuntype=="t8"){D=$("<br><span></span>");D.insertBefore($(d).closest("span"));O.moveToElementText(D[1]);O.select();return false}}else{O.select();if((d.wattype=="s1"||d.wattype=="s2")&&(d.watsuntype!="t7"&&d.watsuntype!="t8"&&d.watsuntype!="t9"&&d.watsuntype!="t10"&&d.watsuntype!="t11"))top.DxEMREditor.enterAction(I,f);return false}}else{if(false){m=DxEMREditor.crxq4(true,I,g),R=m[0],e=m[1],T=DxEMREditor.getwatdocument(e);if(!DxEMREditor.isWatCellSelected(I,T)){e.moveStart("character",1);e.collapse(true);e.select();e.text=e.text+" ";DxEMREditor.crxq4(true,I,g)}else{e.moveStart("character",1);e.collapse(true);e.select();D=$("<span>&ensp;</span>");D.insertAfter($(T).closest("span"));e.moveToElementText(D[0]);e.select()}}return true}}else if(E==9){try{if(DxEMREditor.isSelectedHasWatcell(I,g)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(I,g)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}d=DxEMREditor.getwatdocument(O);if(d.watflag=="true"&&!(d.wattype=="s2"&&(d.watsuntype=="t10"||d.watsuntype=="t11"))){f=d.watid,B=DxEMREditor.decideCursorLocationInEmrElement(I,g,d);if(B=="1"){if((d.wattype=="s1"||d.wattype=="s2")&&(d.watsuntype!="t7"&&d.watsuntype!="t8"&&d.watsuntype!="t9"&&d.watsuntype!="t10"&&d.watsuntype!="t11"))DxEMREditor.localKeyLocation(I,g,f,true)}else if(B=="0")if((d.wattype=="s1"||d.wattype=="s2")&&(d.watsuntype!="t7"&&d.watsuntype!="t8"&&d.watsuntype!="t9"&&d.watsuntype!="t10"&&d.watsuntype!="t11"))DxEMREditor.localKeyLocation(I,g,f,true)}}catch(S){alert(S.message)}return false}else if(E==37){try{d=DxEMREditor.getwatdocument(O);if(d.watflag=="true"&&!(d.wattype=="s2"&&(d.watsuntype=="t10"||d.watsuntype=="t11"))){f=d.watid,B=DxEMREditor.decideCursorLocationInEmrElement(I,g,d);if(B=="1"){if((d.wattype=="s1"||d.wattype=="s2")&&(d.watsuntype!="t7"&&d.watsuntype!="t8"&&d.watsuntype!="t9"&&d.watsuntype!="t10"&&d.watsuntype!="t11")){top.DxEMREditor.localKeyLocation(I,g,f,false);return false}}else if(B=="0"){O.select();if((d.wattype=="s1"||d.wattype=="s2")&&(d.watsuntype!="t7"&&d.watsuntype!="t8"&&d.watsuntype!="t9"&&d.watsuntype!="t10"&&d.watsuntype!="t11")){top.DxEMREditor.localKeyLocation(I,g,f,false);return false}}}else return true}catch(S){alert(S.message)}}if(J.ctrlKey&&E==67&&DxEMREditor.getSelectedText(I,g))return;if(J.ctrlKey&&E==88){if(DxEMREditor.isSelectedHasWatcell(I,g)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(I,g)){alert("\u4e0d\u5141\u8bb8\u526a\u5207\u64cd\u4f5c\uff01");return false}}if(J.ctrlKey&&E==90){if(DxEMREditor.isSelectedHasWatcell(I,g)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(I,g)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57\uff01");return false}DxEMREditor.goHistory(g,-1);return false}if(J.ctrlKey&&E==86){if(DxEMREditor.isSelectedHasWatcell(I,g)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(I,g)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57\uff01");return false}else{DxEMREditor.onPaste_(g);return false}}if(E>47){if(DxEMREditor.isSelectedHasWatcell(I,g)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(I,g)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57\uff0c\u8bf7\u5148\u5220\u9664\u5185\u5bb9\u518d\u6dfb\u52a0");return false}else{d=DxEMREditor.getwatdocument(O);if(d.watflag=="true")if(d.wattype!="s2"&&d.wathdychange!="true"){_=DxEMREditor.GetCursorPsn(I,g);if(_==0){D=$("<INS masterid='1' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");D.insertBefore($(d).closest("span"));O.moveToElementText(D[0]);O.select();return true}var f=d.watid,m=DxEMREditor.crxq4(false,I,g),R=m[0],e=m[1],a=DxEMREditor.getwatdocument(e),i=DxEMREditor.getWatId(a);e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();if(f==i){m=DxEMREditor.crxq4(true,I,g);R=m[0];e=m[1];var T=DxEMREditor.getwatdocument(e),l=DxEMREditor.getWatId(T);e.moveStart("character",1);e.moveEnd("character",0);e.collapse(true);e.select();if(f==l){if(d.wattype=="s1"&&(d.watsuntype=="t7"||d.watsuntype=="t8")){if(d.watsuntype=="t7"){D=$("<INS masterid='1' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");D.insertAfter($(d).closest("span"));O.moveToElementText(D[0]);O.collapse(false);O.select();return true}else if(d.watsuntype=="t8"){D=$("<INS masterid='1' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");D.insertBefore($(d).closest("span"));O.moveToElementText(D[0]);O.collapse(true);O.select();return true}}else return false}else{D=$("<INS masterid='1' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");D.insertBefore($(d).closest("span"));O.moveToElementText(D[0]);O.collapse(true);O.select();return true}}else{D=$("<INS masterid='1' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");D.insertAfter($(d).closest("span"));O.moveToElementText(D[0]);O.collapse(false);O.select();return true}}else{f=d.watid;m=DxEMREditor.crxq4(false,I,g);R=m[0];e=m[1];var U=DxEMREditor.getwatdocument(e),i=DxEMREditor.getWatId(U);e.moveStart("character",-1);e.moveEnd("character",0);e.collapse(true);e.select();if(f==i){if(d.watsuntype=="t1"&&(d.wattype=="s1"||d.wattype=="s2"))d.className="Emr_singleselect_edit";else if(emrob.watsuntype=="t2"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))d.className="Emr_multiselect_edit";else if(emrob.watsuntype=="t3"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))d.className="Emr_hasnoselect_edit";return DxEMREditor.inputtxt(I,g,J)}else if(d.wattype=="s2"){if(d.watsuntype=="t1"&&(d.wattype=="s1"||d.wattype=="s2"))d.className="Emr_singleselect_edit";else if(emrob.watsuntype=="t2"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))d.className="Emr_multiselect_edit";else if(emrob.watsuntype=="t3"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))d.className="Emr_hasnoselect_edit";e.moveStart("character",0);e.moveEnd("character",0);e.collapse(true);e.select();return DxEMREditor.inputtxt(I,g,J)}else{D=$("<INS masterid='1' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");D.insertAfter($(d).closest("span"));O.moveToElementText(D[0]);O.collapse(false);O.select();return true}}return DxEMREditor.inputtxt(I,g,J)}}return true}catch(S){return false}};DxEMREditor.editKeyDownScartwo=function(Y,b,F,K,L){try{K.rng=null;var h=DxEMREditor.getEditArea(b,K),j=h.document.selection,O=j.createRange();DxEMREditor.saveHistory(K,h);var I=K.username,P=(new Date()).toLocaleString(),M=K.isMasterUser;DxEMREditor.saveHistory(K,h);if(j.type=="Control")if(O(0).wattype=="gdbt")return false;else return false;if(F==46){if(DxEMREditor.isSelectedHasWatcell(K,h)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}l=DxEMREditor.crxq4(false,K,h);Q=l[0];f=l[1];var T=DxEMREditor.getwatdocument(f);if(Q.type=="Control"){if(f(0).wattype=="gdbt")return false}else if(Q.type=="Text"||Q.type=="None"){if(T==undefined){O.moveStart("character",0);O.moveEnd("character",0);O.collapse(true);O.select();DxEMREditor.doclick(h);return false}if(T.wattype=="gdbt"){f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();return false}else if(T.watdelete=="false"){if(O.offsetTop==f.offsetTop){f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();return false}else{f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();return true}}else if(T.wattype=="s1"){if(O.offsetTop==f.offsetTop){var G=T.getElementsByTagName("del");if(G==null||G.length==0){var W=T.innerHTML;T.innerHTML="<DEL masterid='2' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+W+"</DEL>";f.moveToElementText(T);f.collapse(false);f.select();return false}else{var _=true;for(var c=0;c<G.length;c++){var X=G[c],D=X.attributes["masterid"].nodeValue;if(parseInt(M)>=parseInt(D))if(parseInt(M)>parseInt(D))_=false;else if(X.attributes["cite"].nodeValue!=I){f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u7528\u6237\u7684\u7559\u75d5\u4fe1\u606f");return false}}if(_){var B=T.getElementsByTagName("ins");for(c=0;c<B.length;c++){X=B[c];X.outerHTML=""}var N=0;for(c=0;c<G.length;c++){X=G[c];N+=parseInt(X.innerText.length);$(X.childNodes[0]).unwrap()}f.moveToElementText(T);f.collapse(false);f.select()}else{B=T.getElementsByTagName("ins");if(B.length==0){f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u7528\u6237\u7684\u5220\u9664\u7559\u75d5\u4fe1\u606f");return false}for(c=0;c<B.length;c++){X=B[c];if(parseInt(M)==parseInt(X.masterid)&&X.cite==I)X.outerHTML="";else{var V=X.getElementsByTagName("del");if(V.length==0){var R=X.innerText,Z=X.cite+" "+X.dateTime+" \u63d2\u5165\u7684\u5185\u5bb9";X.innerHTML="<DEL oldhj='"+Z+"' masterid='"+M+"' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+R+"</DEL>"}else for(var d=0;d<V.length;d++){var J=V[d];$(J.childNodes[0]).unwrap()}}}f.moveToElementText(T);f.collapse(false);f.select()}return false}}else{f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();return true}}else if(T.wattype=="s2"||T.wathdychange=="true"){f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();var H=O.text.replace(/^<([\S]+).*?>(.*)<\/\1>$/,"$2");if(H!=""){alert("\u4e0d\u80fd\u9009\u62e9\u6587\u5b57\u8fdb\u884c\u5220\u9664");return false}else{DxEMREditor.del_keydown(K,h,L);return false}}}if(false){f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();H=O.text.replace(/^<([\S]+).*?>(.*)<\/\1>$/,"$2");if(H!=""){alert("\u4e0d\u80fd\u9009\u62e9\u6587\u5b57\u8fdb\u884c\u5220\u9664");return false}DxEMREditor.del_keydown(K,h,L);return false}else{f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();DxEMREditor.del_keydown(K,h,L);return false}}if(F==8){if(DxEMREditor.isSelectedHasWatcell(K,h)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}var l=DxEMREditor.crxq4(true,K,h),Q=l[0],f=l[1],T=DxEMREditor.getwatdocument(f);if(T==undefined||T.contentendflag=="true"){DxEMREditor.doclick(h);return false}if(Q.type=="Control"){if(f(0).wattype=="gdbt")return false}else if(Q.type=="Text"||Q.type=="None")if(T.wattype=="gdbt"){f.moveStart("character",1);f.moveEnd("character",0);f.collapse(true);f.select();return false}else if(T.watdelete=="false"){f.moveStart("character",1);f.moveEnd("character",0);f.collapse(true);f.select();return false}else if(T.wattype=="s1"){G=T.getElementsByTagName("del");if(G==null||G.length==0){W=T.innerHTML;T.innerHTML="";T.innerHTML="<DEL masterid='2' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+W+"</DEL>";f.moveToElementText(T);f.collapse(true);f.select();return false}else{_=true;for(c=0;c<G.length;c++){X=G[c],D=X.attributes["masterid"].nodeValue;if(parseInt(M)>=parseInt(D))if(parseInt(M)>parseInt(D))_=false;else if(X.attributes["cite"].nodeValue!=I){f.moveStart("character",1);f.moveEnd("character",0);f.collapse(true);f.select();alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u7528\u6237\u7684\u7559\u75d5\u4fe1\u606f");return false}}if(_){B=T.getElementsByTagName("ins");for(c=0;c<B.length;c++){X=B[c];X.outerHTML=""}for(c=0;c<G.length;c++){X=G[c];$(X.childNodes[0]).unwrap()}f.moveToElementText(T);f.collapse(true);f.select()}else{B=T.getElementsByTagName("ins");if(B.length==0){f.moveStart("character",1);f.moveEnd("character",0);f.collapse(true);f.select();alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u7528\u6237\u7684\u5220\u9664\u7559\u75d5\u4fe1\u606f");return false}var A=DxEMREditor.GetCursorPsn(K,h),N=0;for(c=0;c<B.length;c++){X=B[c];if(parseInt(M)==parseInt(X.masterid)&&X.cite==I)X.outerHTML="";else{N+=parseInt(X.innerText.length);V=X.getElementsByTagName("del");if(V.length==0){R=X.innerText,Z=X.cite+" "+X.dateTime+" \u63d2\u5165\u7684\u5185\u5bb9";X.innerHTML="<DEL oldhj='"+Z+"' masterid='"+M+"' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+R+"</DEL>"}else for(d=0;d<V.length;d++){J=V[d];$(J.childNodes[0]).unwrap()}}}f.moveToElementText(T);f.collapse(true);f.select()}return false}}else if(T.wattype=="s2"||T.wathdychange=="true"){f.moveStart("character",1);f.moveEnd("character",0);f.collapse(true);f.select();H=O.text.replace(/^<([\S]+).*?>(.*)<\/\1>$/,"$2");if(H!=""){alert("\u4e0d\u80fd\u9009\u62e9\u6587\u5b57\u8fdb\u884c\u5220\u9664");return false}else{DxEMREditor.back_keydown(K,h,L);return false}}if(false){f.moveStart("character",1);f.moveEnd("character",0);f.collapse(true);f.select();H=O.text.replace(/^<([\S]+).*?>(.*)<\/\1>$/,"$2");if(H!=""){alert("\u4e0d\u80fd\u9009\u62e9\u6587\u5b57\u8fdb\u884c\u5220\u9664");return false}DxEMREditor.back_keydown(K,h,L);return false}else{f.moveStart("character",1);f.moveEnd("character",0);f.collapse(true);f.select();DxEMREditor.back_keydown(K,h,L);return false}}if(F==32){if(DxEMREditor.isSelectedHasWatcell(K,h)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(K,h)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}var e=DxEMREditor.getwatdocument(O);if(e.watflag=="true"&&e.wattype!="s2"&&e.wathdychange!="true"&&e.wattype!="yjs"){var g=e.watid;l=DxEMREditor.crxq4(false,K,h);Q=l[0];f=l[1];var T=DxEMREditor.getwatdocument(f),i=DxEMREditor.getWatId(T);f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();if(g==i){A=DxEMREditor.GetCursorPsn(K,h);if(A==0){var E=$("<INS masterid='2' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">&ensp;</INS>");E.insertBefore($(e).closest("span"));O.moveToElementText(E[0]);O.collapse(false);O.select();return false}else if(e.wattype=="s1"&&(e.watsuntype=="t7"||e.watsuntype=="t8")){if(e.watsuntype=="t7"){E=$("<span>&ensp;</span>");E.insertAfter($(e).closest("span"));O.moveToElementText(E[0]);O.collapse(false);O.select();return false}else if(e.watsuntype=="t8"){E=$("<span>&ensp;</span>");E.insertBefore($(e).closest("span"));O.moveToElementText(E[0]);O.collapse(false);O.select();return false}}else return false}else{E=$("<INS masterid='2' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">&ensp;</INS>");E.insertAfter($(e).closest("span"));O.moveToElementText(E[0]);O.collapse(false);O.select();return false}}else if(e.watflag=="true"&&e.wattype=="s2"){g=e.watid,l=DxEMREditor.crxq4(false,K,h),Q=l[0],f=l[1],T=DxEMREditor.getwatdocument(f),i=DxEMREditor.getWatId(T);f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();if(g!=i){E=$("<INS masterid='2' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">&ensp;</INS>");E.insertAfter($(e).closest("span"));O.moveToElementText(E[0]);O.collapse(false);O.select();return false}}return DxEMREditor.inputtxt(K,h,L)}else if(F==9){try{if(DxEMREditor.isSelectedHasWatcell(K,h)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(K,h)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}e=DxEMREditor.getwatdocument(O);if(e.watflag=="true"&&!(e.wattype=="s2"&&(e.watsuntype=="t10"||e.watsuntype=="t11"))){var g=e.watid,C=DxEMREditor.decideCursorLocationInEmrElement(K,h,e);if(C=="1"){if((e.wattype=="s1"||e.wattype=="s2")&&(e.watsuntype!="t7"&&e.watsuntype!="t8"&&e.watsuntype!="t9"&&e.watsuntype!="t10"&&e.watsuntype!="t11"))DxEMREditor.localKeyLocation(K,h,g,true)}else if(C=="0")if((e.wattype=="s1"||e.wattype=="s2")&&(e.watsuntype!="t7"&&e.watsuntype!="t8"&&e.watsuntype!="t9"&&e.watsuntype!="t10"&&e.watsuntype!="t11"))DxEMREditor.localKeyLocation(K,h,g,true)}}catch(S){alert(S.message)}return false}if(F==13){if(DxEMREditor.isSelectedHasWatcell(K,h)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(K,h)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57");return false}e=DxEMREditor.getwatdocument(O);if(e.watflag=="true"&&!(e.wattype=="s2"&&(e.watsuntype=="t10"||e.watsuntype=="t11"))){g=e.watid,C=DxEMREditor.decideCursorLocationInEmrElement(K,h,e);if(C=="-1"){E=$("<br><span></span>");E.insertBefore($(e).closest("span"));O.moveToElementText(E[1]);O.select();return false}else if(C=="1"){if((e.wattype=="s1"||e.wattype=="s2")&&(e.watsuntype!="t7"&&e.watsuntype!="t8"&&e.watsuntype!="t9"&&e.watsuntype!="t10"&&e.watsuntype!="t11"))top.DxEMREditor.enterAction(K,g);else{E=$("<span></span><br><p></p>");E.insertAfter($(e).closest("span"));O.moveToElementText(E[2]);O.select()}return false}else if(C=="0")if(e.wattype=="s1"&&(e.watsuntype=="t7"||e.watsuntype=="t8")){if(e.watsuntype=="t7"){E=$("<span></span><br><p></p>");E.insertAfter($(e).closest("span"));O.moveToElementText(E[2]);O.select();return false}else if(e.watsuntype=="t8"){E=$("<br><span></span>");E.insertBefore($(e).closest("span"));O.moveToElementText(E[1]);O.select();return false}}else{O.select();if((e.wattype=="s1"||e.wattype=="s2")&&(e.watsuntype!="t7"&&e.watsuntype!="t8"&&e.watsuntype!="t9"&&e.watsuntype!="t10"&&e.watsuntype!="t11"))top.DxEMREditor.enterAction(K,g);return false}}else{if(false){l=DxEMREditor.crxq4(true,K,h),Q=l[0],f=l[1],T=DxEMREditor.getwatdocument(f);if(!DxEMREditor.isWatCellSelected(K,T)){f.moveStart("character",1);f.collapse(true);f.select();f.text=f.text+" ";DxEMREditor.crxq4(true,K,h)}else{f.moveStart("character",1);f.collapse(true);f.select();E=$("<span>12&ensp;</span>");E.insertAfter($(T).closest("span"));f.moveToElementText(E[0]);f.select()}}return true}}else if(F==37){try{e=DxEMREditor.getwatdocument(O);if(e.watflag=="true"&&!(e.wattype=="s2"&&(e.watsuntype=="t10"||e.watsuntype=="t11"))){g=e.watid,C=DxEMREditor.decideCursorLocationInEmrElement(K,h,e);if(C=="1"){if((e.wattype=="s1"||e.wattype=="s2")&&(e.watsuntype!="t7"&&e.watsuntype!="t8"&&e.watsuntype!="t9"&&e.watsuntype!="t10"&&e.watsuntype!="t10")){top.DxEMREditor.localKeyLocation(K,h,g,false);return false}}else if(C=="0"){O.select();if((e.wattype=="s1"||e.wattype=="s2")&&(e.watsuntype!="t7"&&e.watsuntype!="t8"&&e.watsuntype!="t9"&&e.watsuntype!="t10"&&e.watsuntype!="t10")){top.DxEMREditor.localKeyLocation(K,h,g,false);return false}}}else return true}catch(S){alert(S.message)}}if(L.ctrlKey&&F==67&&DxEMREditor.getSelectedText(K,h))return;if(L.ctrlKey&&F==88){if(DxEMREditor.isSelectedHasWatcell(K,h)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(K,h)){alert("\u4e0d\u5141\u8bb8\u526a\u5207\u64cd\u4f5c\uff01");return false}}if(L.ctrlKey&&F==90){if(DxEMREditor.isSelectedHasWatcell(K,h)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(K,h)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57\uff01");return false}DxEMREditor.goHistory(h,-1);return false}if(L.ctrlKey&&F==86){if(DxEMREditor.isSelectedHasWatcell(K,h)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(K,h)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57\uff01");return false}else{DxEMREditor.onPaste_(h);return false}}if(F>47){if(DxEMREditor.isSelectedHasWatcell(K,h)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}if(DxEMREditor.getSelectedText(K,h)){alert("\u8bf7\u4e0d\u8981\u9009\u62e9\u6587\u5b57\uff0c\u8bf7\u5148\u5220\u9664\u5185\u5bb9\u518d\u6dfb\u52a0");return false}else{e=DxEMREditor.getwatdocument(O);if(e.watflag=="true")if(e.wattype!="s2"&&e.wathdychange!="true"){A=DxEMREditor.GetCursorPsn(K,h);if(A==0){E=$("<INS masterid='2' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");E.insertBefore($(e).closest("span"));O.moveToElementText(E[0]);O.select();return true}var g=e.watid,l=DxEMREditor.crxq4(false,K,h),Q=l[0],f=l[1],a=DxEMREditor.getwatdocument(f),i=DxEMREditor.getWatId(a);f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();if(g==i){l=DxEMREditor.crxq4(true,K,h);Q=l[0];f=l[1];var T=DxEMREditor.getwatdocument(f),k=DxEMREditor.getWatId(T);f.moveStart("character",1);f.moveEnd("character",0);f.collapse(true);f.select();if(g==k){if(e.wattype=="s1"&&(e.watsuntype=="t7"||e.watsuntype=="t8")){if(e.watsuntype=="t7"){E=$("<INS masterid='2' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");E.insertAfter($(e).closest("span"));O.moveToElementText(E[0]);O.select();return true}else if(e.watsuntype=="t8"){E=$("<INS masterid='2' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");E.insertBefore($(e).closest("span"));O.moveToElementText(E[0]);O.select();return true}}else return false}else{E=$("<INS masterid='2' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");E.insertBefore($(e).closest("span"));O.moveToElementText(E[0]);O.select();return true}}else{E=$("<INS masterid='2' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");E.insertAfter($(e).closest("span"));O.moveToElementText(E[0]);O.select();return true}}else{var g=e.watid,l=DxEMREditor.crxq4(false,K,h),Q=l[0],f=l[1],U=DxEMREditor.getwatdocument(f),i=DxEMREditor.getWatId(U);f.moveStart("character",-1);f.moveEnd("character",0);f.collapse(true);f.select();if(g==i){if(e.watsuntype=="t1"&&(e.wattype=="s1"||e.wattype=="s2"))e.className="Emr_singleselect_edit";else if(emrob.watsuntype=="t2"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))e.className="Emr_multiselect_edit";else if(emrob.watsuntype=="t3"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))e.className="Emr_hasnoselect_edit";return DxEMREditor.inputtxt(K,h,L)}else if(e.wattype=="s2"){if(e.watsuntype=="t1"&&(e.wattype=="s1"||e.wattype=="s2"))e.className="Emr_singleselect_edit";else if(emrob.watsuntype=="t2"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))e.className="Emr_multiselect_edit";else if(emrob.watsuntype=="t3"&&(emrob.wattype=="s1"||emrob.wattype=="s2"))e.className="Emr_hasnoselect_edit";f.moveStart("character",0);f.moveEnd("character",0);f.collapse(true);f.select();return DxEMREditor.inputtxt(K,h,L)}else{E=$("<INS masterid='2' cite='"+I+"' datetime='"+P+"'"+(M=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">\u3000</INS>");E.insertAfter($(e).closest("span"));O.moveToElementText(E[0]);O.select();return true}}return DxEMREditor.inputtxt(K,h,L)}}return true}catch(S){return false}};DxEMREditor.setEMRPageWidth=function(C,D,A,_){var $=top.E_getObject(C,D,_),B=$.content;B.style.width=A+"mm";$.pagewidth=A};DxEMREditor.setEMRPageHeight=function(C,D,A,_){var $=top.E_getObject(C,D,_),B=$.content;if(top.isIE)B.style.height=A+"mm";else B.style.height="auto";B.style.maxHeight=A+"mm";$.pageheight=A;DxEMREditor.initEdit(C,D);DxEMREditor.processPageLine(C,D,true)};DxEMREditor.setEMRLineHeight=function(B,D,J,A){var I=top.E_getObject(B,D,A),K=I.content,E=I.headercontent,G=I.footercontent;if(I.styleline!="true")K.style.lineHeight=J;E.style.lineHeight="1.5";G.style.lineHeight="1.5";var H=false,_=$("table",K);for(var F=0;F<_.size();F++){var C=_.get(F);if(C!=null)if(C.style.lineHeight!=J){C.style.lineHeight=J;H=true}}if(H)WatCore.setParameter(B,D,top.DC.EMR_TEXT,K.innerHTML);H=false;_=$("table",E);for(F=0;F<_.size();F++){C=_.get(F);if(C!=null)if(C.style.lineHeight!=J){C.style.lineHeight=J;H=true}}if(H)WatCore.setParameter(B,D,top.DC.EMR_HEADER_TEXT,E.innerHTML);H=false;_=$("table",G);for(F=0;F<_.size();F++){C=_.get(F);if(C!=null)if(C.style.lineHeight!=J){C.style.lineHeight=J;H=true}}if(H)WatCore.setParameter(B,D,top.DC.EMR_FOOTER_TEXT,G.innerHTML)};DxEMREditor.setEMRLetterSpacing=function(D,F,B,A){var _=top.E_getObject(D,F,A),C=_.content,E=_.headercontent,$=_.footercontent;C.style.letterSpacing=B+"mm";E.style.letterSpacing=B+"mm";$.style.letterSpacing=B+"mm"};DxEMREditor.setEMRContent=function(D,G,L,C){var J=top.E_getObject(D,G,C),M=J.content;$(M).html(L);var A=$("table",M),B=M.style.lineHeight,I=false;for(var H=0;H<A.size();H++){var E=A.get(H);if(E!=null){if(E.style.fontFamily==""){E.style.fontFamily="\u5b8b\u4f53";I=true}if(E.style.fontSize==""){E.style.fontSize="3.7mm";I=true}if(E.style.lineHeight==""){E.style.lineHeight=B;I=true}if(E.style.backgroundColor=="#FFFFFF"&&J.styleline!="true"){E.style.backgroundColor="transparent";I=true}if(E.bgColor=="#FFFFFF"||E.bgColor=="#ffffff"&&J.styleline!="true"){E.bgColor="transparent";I=true}if($(E).attr("border")=="0"){E.className="Emr_table_dotted";$("tr",E).attr("class","Emr_table_dotted");$("td",E).attr("class","Emr_table_dotted")}else{$(E).removeAttr("class");$("tr",E).removeAttr("class");$("td",E).removeAttr("class")}var F=$(M).width(),N=$(E).width(),K=parseInt((N/F)*100)+"%"}}if(I)WatCore.setParameter(D,G,top.DC.EMR_TEXT,M.innerHTML);var _=J.wrap;if(_!=null)_.scrollTop=0;DxEMREditor.processInputKeyObj(D,G,J);DxEMREditor.processPageLine(D,G,true)};DxEMREditor.processInputKeyObj=function(E,G,C){try{var B=$("span[wattype='s1'],span[wattype='s2']",C.content),F=new Array();for(var H=0;H<B.length;H++){var D=B[H],_=$(D).attr("watsuntype");if(_!="t7"&&_!="t8"&&_!="t9"&&_!="t10")F.push($(D).attr("id"))}C.kjjkeys=F}catch(A){}};DxEMREditor.enterAction=function(_,B){var A=$("#"+B,_.content).get(0);if(A!=null)top.DxEMREditor.coverstarclick3(A,"01DFF835-C889-AB67-97E1-3CC4E50B28EC","key")};DxEMREditor.localKeyLocation=function(A,C,D,_){var F=A.kjjkeys;if(F==null||F==undefined)return-1;var $=-1;for(var H=0;H<F.length;H++)if(D==F[H]){$=H;break}if($>-1){var E=DxEMREditor.getSelection(A,C),B=DxEMREditor.getRange(E),G=DxEMREditor.findNextKeyObj(F,$,C,_);if(G!=null)if(top.isIE){B.moveToElementText(G);B.collapse(false);B.select()}else{B.selectNodeContents(G);B.setEnd(B.endContainer,B.endOffset);B.setStart(B.startContainer,B.endOffset)}}};DxEMREditor.findNextKeyObj=function(D,_,B,A){if(A){_++;if(_<D.length){var C=D[_],E=$("#"+C,B).get(0);if(E==null)return DxEMREditor.findNextKeyObj(D,_,B,A);else return E}else return null}else{_--;if(_>=0){C=D[_],E=$("#"+C,B).get(0);if(E==null)return DxEMREditor.findNextKeyObj(D,_,B,A);else return E}else return null}};DxEMREditor.setEMRHeaderContent=function(G,I,E,D){var B=top.E_getObject(G,I,D),F=B.headercontent;F.innerHTML=E;var _=$("table",F),C=F.style.lineHeight,A=false;for(var J=0;J<_.size();J++){var H=_.get(J);if(H!=null){if(H.style.fontFamily==""){H.style.fontFamily="\u5b8b\u4f53";A=true}if(H.style.fontSize==""){H.style.fontSize="3.7mm";A=true}if(H.style.lineHeight==""){H.style.lineHeight=C;A=true}}}if(A)WatCore.setParameter(G,I,top.DC.EMR_HEADER_TEXT,F.innerHTML)};DxEMREditor.setEMRFooterContent=function(G,I,E,D){var B=top.E_getObject(G,I,D),F=B.footercontent;F.innerHTML=E;var _=$("table",F),C=F.style.lineHeight,A=false;for(var J=0;J<_.size();J++){var H=_.get(J);if(H!=null){if(H.style.fontFamily==""){H.style.fontFamily="\u5b8b\u4f53";A=true}if(H.style.fontSize==""){H.style.fontSize="3.7mm";A=true}if(H.style.lineHeight==""){H.style.lineHeight=C;A=true}}}if(A)WatCore.setParameter(G,I,top.DC.EMR_FOOTER_TEXT,F.innerHTML)};DxEMREditor.doclick=function($){if(top.isIE){$.setActive();$.ownerDocument.selection.createRange().select()}else $.focus()};DxEMREditor.fontclickprocess=function(D,E,H,G,B){try{var C;if(H.commonAncestorContainer){C=H.commonAncestorContainer;if(C.nodeName=="#text")C=C.parentElement}else if(H.parentElement)C=H.parentElement();var J=C.style.fontSize;if(J!="");else while($(doc).attr("watend")!="true"&&$(doc).attr("watflag")!="true"&&J==""){C=C.parentElement;if(C==null){J="";break}J=C.style.fontSize}var I=top.E_getObject(D,E+"toolbarwrap",B),_=$("#fontsizeselect",I).get(0);if(_!=null){_.selectedIndex=0;var K=_.options;for(var F=0;F<K.length;F++)if(K[F].value==J){K[F].selected=true;break}}}catch(A){}};DxEMREditor.clickAction=function(F,H,A,E,B){var G=DxEMREditor.getSelection(A,E),C=DxEMREditor.getRange(G),D=H+"_panel_template",_=$("#"+D,A.wrap);if(_.css("display")!="none")_.css("display","none");A.rng=C;DxEMREditor.fontclickprocess(F,H,C,A,B);if(oPopupMenu.isShow)oPopupMenu.hide()};DxEMREditor.doclickit=function(D,F,G){try{tdmovebegin=0;var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),E=WatCore.getWindow(D,B),_=top.E_getObject(D,F,A),C=DxEMREditor.getEditArea(F,_);DxEMREditor.clickAction(D,F,_,C,A)}catch($){}};DxEMREditor.dblClick=function(D,F,O){try{tdmovebegin=0;var H=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,H),E=WatCore.getWindow(D,H),G=top.E_getObject(D,F,C),L=DxEMREditor.getEditArea(F,G),M=DxEMREditor.getSelection(G,L),I=DxEMREditor.getRange(M);G.rng=I;var N=$(G).attr("watstyle");if(N=="2"){var I=G.rng,K=DxEMREditor.text(I),B,_=false,J=DxEMREditor.findInSection(G,L,I);B=J.zsdid;_=J.inSection;if(_){I.collapse(true);I.select();WatCore.setParameter(D,F,top.DC.SELECTTEXT,"");WatCore.setParameter(D,F,top.DC.EMR_DESIGN_ZSDID,B);WatCore.call(D,F,"sectionclick")}}}catch(A){}};DxEMREditor.findInSection=function(D,U,G){var T=$("span[watsuntype$='t7']",U),H=$("span[watsuntype$='t8']",U),L=new E_Map();for(var P=0;P<H.length;P++){var O=H[P],K=$(O).attr("watzsdid");L.E_put(K,O)}var G=D.rng,K,J=false;if(top.isIE){var B=new Array(),V=G.offsetLeft,I=G.offsetTop;for(P=0;P<T.length;P++){var A=T[P],N=$(A).offset();if(I>=N.top){K=$(A).attr("watzsdid");O=L.E_get(K);if(O!=null){var _=$(O).offset();if(I<=_.top)if(I==N.top){if(V>N.left)if(I==_.top){if(V<=_.left){J=true;B.push(A)}}else{J=true;B.push(A)}}else if(I==_.top){if(V<=_.left){J=true;B.push(A)}}else{J=true;B.push(A)}}}}var M,C=0,S=0;if(B.length>0){M=B[0];var W=$(M).offset();C=W.left;S=W.top}for(P=1;P<B.length;P++){var R=B[P],F=$(R).offset(),E=F.left,Q=F.top;if(Q>S||(Q==S&&E>C)){M=R;C=E;S=Q}}if(M!=null){J=true;K=$(M).attr("watzsdid")}return{inSection:J,zsdid:K}}else return{inSection:null,zsdid:null}};DxEMREditor.blurText_=function(B,C,A){var _=top.E_clientModel.E_getWindow(B);if(_==null)return;var $=A.getAttribute("wattype");if($=="header")WatCore.setParameter(B,C,top.DC.EMR_HEADER_TEXT,A.innerHTML);else if($=="content")WatCore.setParameter(B,C,top.DC.EMR_TEXT,A.innerHTML);else if($=="footer")WatCore.setParameter(B,C,top.DC.EMR_FOOTER_TEXT,A.innerHTML)};DxEMREditor.getSelectedText_=function(F,_,B){var $="",E=top.E_getObject(F,_,B);if(top.isIE){var G=E.ownerDocument.selection,D=G.createRange();D.colapse;if((G.type=="Text"||G.type=="None")&&D!=null)if(D.text.length>0)$=D.text;$=D.text.toString().length;WatCore.setParameter(F,_,top.DC.SELECTTEXT,D.text.toString())}else{if(browserVersion.indexOf("FIREFOX")>-1){var A=0,H=0,C=0;if(typeof(E.selectionStart)=="number"){A=E.selectionStart;H=E.selectionEnd;if(H>A)C=H-A}$=E.value.substr(A,C)}else{G=E.ownerDocument.getSelection();$=G.toString()}WatCore.setParameter(F,_,top.DC.SELECTTEXT,$)}};DxEMREditor.blurText=function(C,E,B){var A=top.E_clientModel.E_getWindow(C);if(A==null)return;var _=WatCore.getWindowDoc(C,A),D=WatCore.getWindow(C,A),$=top.E_getObject(C,E,_);if($.rng==null);else WatCore.setParameter(C,E,top.DC.SELECTTEXT,$.rng.text);WatCore.setParameter(C,E,top.DC.EMR_STYLE_LINE,$.styleline);WatCore.setParameter(C,E,top.DC.EMR_TEXT,B.innerHTML)};DxEMREditor.headerblurText=function(C,E,B){var A=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,A),D=WatCore.getWindow(C,A),$=top.E_getObject(C,E,_);if($.rng==null);WatCore.setParameter(C,E,top.DC.EMR_HEADER_TEXT,B.innerHTML)};DxEMREditor.footerblurText=function(C,E,B){var A=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,A),D=WatCore.getWindow(C,A),$=top.E_getObject(C,E,_);if($.rng==null);WatCore.setParameter(C,E,top.DC.EMR_FOOTER_TEXT,B.innerHTML)};DxEMREditor.actionnotify=function(E,H){var B=top.E_clientModel.E_getWindow(E),_=WatCore.getWindowDoc(E,B),F=WatCore.getWindow(E,B),$=top.E_getObject(E,H,_),D=DxEMREditor.getEditArea(H,$);if($.rng==null){DxEMREditor.doclick(D);var G=D.document.selection,A=G.createRange();if(!DxEMREditor.isWatCellSelected2($,D)&&!DxEMREditor.isSelectedHasWatcell($,D))$.rng=A}if(DxEMREditor.isSelectedHasWatcell($,D)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}var C=$.rng.text;WatCore.setParameter(E,H,top.DC.EMR_TEXT,D.innerHTML);WatCore.setParameter(E,H,top.DC.SELECTTEXT,C);return true};var oPopupMenu=window.createPopup();DxEMREditor.showToolMenu=function(P,C){var I=DxEMREditor.getContainer(P);if(I==null)return;var F=I.id,L=DxEMREditor.getEditArea(F,I),A="",D=150,G=0,J=DxEMREditor.getEvent(P),B=oPopupMenu.document,E=oPopupMenu.document.body;switch(C){case"table":A+=DxEMREditor.getTableMenuRow(I,L,"TableInsert");A+=DxEMREditor.getTableMenuRow(I,L,"TableProp");A+=sMenuHr;A+=DxEMREditor.getTableMenuRow(I,L,"TableCell");G=306;break}A=sMenu1+A+sMenu2;if(top.isIE){B.open();B.write(top.StyleMenuHeader+A);B.close()}else $(E).html(top.StyleMenuHeader+A);G+=2;var _=DxEMREditor.__getAbsoluteCoords(J.srcElement),N=_.w,H=_.h,O=parseInt(J.offsetX)+parseInt(_.x)+4-_.sl,M=parseInt(J.offsetY)+parseInt(_.y)+2-_.st;if((O+parseInt(D))>N-10)O-=parseInt(D);if((M+parseInt(G))>H-10)M-=parseInt(G);var K=top.E_clientModel.E_getWindow($(I).attr("wid"));if(K.bHasMenubar==true)M=M+44;if(parseInt(M)<0)M=4;oPopupMenu.show(O,M,D,G,document.body);return false};DxEMREditor.__getAbsoluteCoords=function(_){var A=new Object();A.x=0;A.y=0;A.w=0;A.h=0;A.sl=0;A.st=0;try{while(_){A.x+=parseInt(_.offsetLeft);A.y+=parseInt(_.offsetTop);A.sl+=parseInt(_.scrollLeft);A.st+=parseInt(_.scrollTop);if(_.getAttribute("watform")){A.w=_.clientWidth;A.h=_.clientHeight;break}_=_.offsetParent}}catch($){}return A};DxEMREditor.isTableSelected=function($,A){DxEMREditor.doclick(A);if(top.isIE)if(A.document.selection.type=="Control"){var _=A.document.selection.createRange();if(_(0).tagName.toUpperCase()=="TABLE"){selectedTable=A.document.selection.createRange()(0);return true}}return false};DxEMREditor.isControlSelected=function($,_){DxEMREditor.doclick(_);if(top.isIE)if(_.document.selection.type=="Control")return true;return false};DxEMREditor.isControlSelected=function($,B,A){DxEMREditor.doclick(B);if(A)if(top.isIE)if(B.document.selection.type=="Control"){var _=B.document.selection.createRange();if(_(0).tagName.toUpperCase()==A)return true}return false};DxEMREditor.isCursorInTableCell=function(B,D){DxEMREditor.doclick(D);var E=false,_;if(top.isIE){if(D.document.selection.type!="Control")_=D.document.selection.createRange().parentElement()}else var C=B.oWin.getSelection(),A=C.getRangeAt(0),_=DxEMREditor.rngDocument(A);if(_!=null&&_.tagName!=null){if(_.tagName.toUpperCase()=="TD"||_.tagName.toUpperCase()=="TH")E=true;while(_.tagName!=null&&_.tagName.toUpperCase()!="TD"&&_.tagName.toUpperCase()!="TH"&&$(_).attr("watend")!="true"&&$(_).attr("watflag")!="true"){_=_.parentElement;if(_.tagName.toUpperCase()=="TD"||_.tagName.toUpperCase()=="TH"){E=true;break}if(_==null||$(_).attr("watend")=="true"){E=false;break}}if(_&&E){B.selectedTD=_;B.selectedTR=B.selectedTD.parentElement;B.selectedTBODY=B.selectedTR.parentElement;B.selectedTable=B.selectedTBODY.parentElement;return true}}return E};DxEMREditor.isWatCellSelected=function(B,E){var F=false;if(top.isIE){if(E.document.selection.type!="Control"){var _=E.document.selection.createRange().parentElement();if($(_).attr("watflag")=="true")F=true;while($(_).attr("watend")!="true"&&$(_).attr("watflag")!="true"){_=_.parentElement;if(_==null||$(_).attr("watend")=="true"){F=false;break}if($(_).attr("watflag")=="true"){F=true;break}}if(F)return true}else{var C=E.document.selection.createRange();if($(C(0)).attr("watflag")=="true"||$(C(0).parentElement).attr("watflag")=="true")return true}}else{var D=B.oWin.getSelection(),A=D.getRangeAt(0),_=DxEMREditor.rngDocument(A);if($(_).attr("watflag")=="true")F=true;while($(_).attr("watend")!="true"&&$(_).attr("watflag")){_=_.parentElement;if(_==null||$(_).attr("watend")=="true"){F=false;break}if($(_).attr("watflag")=="true"){F=true;break}}if(F)return true}return false};DxEMREditor.isWatCellAndNormalSelected=function(A,D){if(D.document.selection.type!="Control"){var C=D.document.selection.createRange(),_=C.parentElement();if($(_).attr("watflag"))return false;else{var B=C.htmlText;if(B.indexOf("watflag")>=0)return true}}else return false};DxEMREditor.isWatCellSelectedObj=function(B,D){var F=false,E;if(top.isIE){if(D.document.selection.type!="Control"){var _=D.document.selection.createRange().parentElement();if($(_).attr("watflag")){F=true;E=_}while($(_).attr("watend")!="true"&&$(_).attr("watflag")!="true"){_=_.parentElement;if(_==null||$(_).attr("watend")=="true"){F=false;break}if($(_).attr("watflag")=="true"){E=_;F=true;break}}if(F)return E}}else{var C=B.oWin.getSelection(),A=C.getRangeAt(0),_=DxEMREditor.rngDocument(A);if($(_).attr("watflag")=="true"){F=true;E=_}while($(_).attr("watflag")&&$(_).attr("watend")!="true"){_=_.parentElement;if(_==null||$(_).attr("watend")=="true"){F=false;break}if($(_).attr("watflag")=="true"){F=true;E=_;break}}if(F)return E}return E};DxEMREditor.isWatCellSelected3=function(B){var C=false;try{var _;if(B.commonAncestorContainer){_=B.commonAncestorContainer;if(_.nodeName=="#text")_=_.parentElement}else if(B.parentElement)_=B.parentElement();if($(_).attr("watflag")=="true")C=true;if(!C)while($(_).attr("watflag")!="true"&&$(_).attr("watend")!="true"){_=_.parentElement;if(_==null||$(_).attr("watend")=="true"){C=false;break}if($(_).attr("watflag")=="true"){C=true;break}}}catch(A){}return C};DxEMREditor.isWatCellSelected4=function(A){var B=false,_;if(A.commonAncestorContainer){_=A.commonAncestorContainer;if(_.nodeName=="#text")_=_.parentElement}else if(A.parentElement)_=A.parentElement();if($(_).attr("watflag")=="true"&&!(_.wattype=="s2"&&(_.watsuntype=="t10"||_.watsuntype=="t11")))B=true;if(!B)while($(_).attr("watflag")!="true"&&$(_).attr("watend")!="true"){_=_.parentElement;if(_==null||$(_).attr("watend")=="true"){B=false;break}if($(_).attr("watflag")=="true"&&!(_.wattype=="s2"&&(_.watsuntype=="t10"||_.watsuntype=="t11"))){B=true;break}}if(B)return true;return false};DxEMREditor.isWatCellSelected2=function(B,E){DxEMREditor.doclick(E);var F=false;if(top.isIE){if(E.document.selection.type!="Control"){var _=E.document.selection.createRange().parentElement();if($(_).attr("watflag")=="true")F=true;while($(_).attr("watflag")!="true"&&$(_).attr("watend")!="true"){_=_.parentElement;if(_==null||$(_).attr("watend")=="true"){F=false;break}if($(_).attr("watflag")=="true"&&!(_.wattype=="s2"&&(_.watsuntype=="t10"||_.watsuntype=="t11"))){F=true;break}}if(F)return true}else{var C=E.document.selection.createRange();if($(C(0)).attr("watflag")=="true"||$(C(0).parentElement).attr("watflag")=="true")return true}}else{var D=B.oWin.getSelection(),A=D.getRangeAt(0),_=DxEMREditor.rngDocument(A);if($(_).attr("watflag")=="true")F=true;while($(_).attr("watflag")!="true"&&$(_).attr("watend")!="true"){_=_.parentElement;if(_==null||$(_).attr("watend")=="true"){F=false;break}if($(_).attr("watflag")=="true"&&!(_.wattype=="s2"&&(_.watsuntype=="t10"||_.watsuntype=="t11"))){F=true;break}}if(F)return true}return false};DxEMREditor.isWatCellSunType=function(B,E){DxEMREditor.doclick(E);if(top.isIE){var A=DxEMREditor.GetCursorPsn(B,E);if(A==0){if(E.document.selection.type=="Control"){var D=E.document.selection.createRange();if($(D(0)).attr("watflag")=="true"||$(D(0).parentElement).attr("watflag")=="true")return""}return""}var G=false;if(E.document.selection.type!="Control"){var _=E.document.selection.createRange().parentElement();if($(_).attr("watflag")=="true")G=true;while($(_).attr("watflag")!="true"&&$(_).attr("watend")!="true"){_=_.parentElement;if($(_).attr("watflag")=="true"){G=true;break}if(_==null||$(_).attr("watend")=="true"){G=false;break}}if(G)return $(_).attr("watsuntype")}else{D=E.document.selection.createRange();if($(D(0)).attr("watflag")=="true"||$(D(0).parentElement).attr("watflag")=="true")return""}}else{var F=DxEMREditor.Range(B,E),C=DxEMREditor.getwatdocument(F.range);return $(C).attr("watsuntype")}return""};DxEMREditor.getCursorPos_=function(B){var $=B.document.selection.createRange(),A=B.document.body.createTextRange(),_=$.getBookmark();A.collapse();A.moveToBookmark(_);A.moveStart("character",-B.innerText.length);str=A.text.replace(/\r\n/g,"");return(str.length)};DxEMREditor.GetCursorPsn=function(C,D){var A=0;if(top.isIE){var E=D.document.selection;if(E.type!="Control"){var B=E.createRange(),$=B.parentElement(),F=D.document.body.createTextRange();F.moveToElementText($);for(A=0;F.compareEndPoints("StartToStart",B)<0;A++)F.moveStart("character",1);if(F.compareEndPoints("StartToStart",B)!=0)A--;return A}else return A}else{var B=C.oWin.getSelection().getRangeAt(0),_=B.cloneRange();_.selectNodeContents(B.commonAncestorContainer);_.setEnd(B.endContainer,B.endOffset);A=_.toString().length;return A}};DxEMREditor.GetCursorPsn2=function(E,D){var C=0;try{if(D.commonAncestorContainer){var _=DxEMREditor.rngDocument(D),A=D.cloneRange();A.selectNodeContents(D.commonAncestorContainer);A.setEnd(D.endContainer,D.endOffset);C=A.toString().length;return C}else{var $=D.parentElement(),F=E.document.body.createTextRange();F.moveToElementText($);for(C=0;F.compareEndPoints("StartToStart",D)<0;C++)F.moveStart("character",1);if(F.compareEndPoints("StartToStart",D)!=0)C--}}catch(B){}return C};DxEMREditor.GetRangeCursor_=function(B,D){var _=0,C=0,A=B.oWin.getSelection().getRangeAt(0),$=A.cloneRange();$.selectNodeContents(A.commonAncestorContainer);$.setEnd(A.endContainer,A.endOffset);_=$.toString().length;return{cursor:_,length:A.endContainer.length}};DxEMREditor.isSelectedHasWatcell=function(E,H){if(true)return false;try{var C=DxEMREditor.GetCursorPsn(E,H);if(C==0&&!DxEMREditor.getSelectedText(E,H))return false;var F=H.document.selection.createRange(),D=F.htmlText;if(D==undefined||D=="")return false;else{var A=D.indexOf("watflag");if(A>=0){A=D.indexOf("watdelete=\"false\"");if(A>=0)return true}}var I=false;if(H.document.selection.type!="Control"){var _=F.parentElement();if($(_).attr("watflag")=="true"&&_.watdelete=="false")I=true;while($(_).attr("watflag")!="true"&&$(_).attr("watend")!="true"){_=_.parentElement;if($(_).attr("watflag")=="true"&&_.watdelete=="false"){I=true;break}if(_==null||$(_).attr("watend")=="true"){I=false;break}}}else{var G=H.document.selection.createRange();if($(G(0)).attr("watflag")=="true")I=true}return I}catch(B){}};DxEMREditor.isSelectedHasWatcell2=function(E,G,F){try{var C=DxEMREditor.GetCursorPsn2(G,F);if(C==0&&!DxEMREditor.getSelectedText2(E,G,F))return false;var D=F.htmlText;if(D==undefined)return false;else{var A=D.indexOf("watflag");if(A>=0)return true;else return false}var H=false;if(G.document.selection.type!="Control"){var _=F.parentElement();if($(_).attr("watflag")=="true")H=true;while($(_).attr("watflag")!="true"&&$(_).attr("watend")!="true"){_=_.parentElement;if($(_).attr("watflag")=="true"){H=true;break}if(_==null||$(_).attr("watend")=="true"){H=false;break}}}else{var F=G.document.selection.createRange();if($(F(0)).attr("watflag")=="true")H=true}return H}catch(B){}};DxEMREditor.getTableMenuRow=function(A,C,_){var D="",B="disabled";switch(_){case"TableInsert":if(!DxEMREditor.isTableSelected(A,C)&&!DxEMREditor.isControlSelected(A,C)&&!DxEMREditor.isWatCellSelected(A,C))B="";D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableInsert('"+$(A).attr("wid")+"','"+A.id+"')","tableinsert.gif","\u63d2\u5165\u8868\u683c...");break;case"TableProp":if((DxEMREditor.isTableSelected(A,C)||DxEMREditor.isCursorInTableCell(A,C))&&!DxEMREditor.isWatCellSelected(A,C))B="";D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableProp('"+$(A).attr("wid")+"','"+A.id+"')","tableprop.gif","\u8868\u683c\u5c5e\u6027...");break;case"TableCell":if(DxEMREditor.isCursorInTableCell(A,C)&&!DxEMREditor.isWatCellSelected(A,C))B="";D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableCellProp('"+$(A).attr("wid")+"','"+A.id+"')","tablecellprop.gif","\u8868\u683c\u5355\u5143\u5c5e\u6027...");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableCellSplit('"+$(A).attr("wid")+"','"+A.id+"')","tablecellsplit.gif","\u62c6\u5206\u5355\u5143\u683c...");D+=sMenuHr;D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableRowProp('"+$(A).attr("wid")+"','"+A.id+"')","tablerowprop.gif","\u8868\u683c\u884c\u5c5e\u6027...");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableRowInsertAbove('"+$(A).attr("wid")+"','"+A.id+"')","tablerowinsertabove.gif","\u63d2\u5165\u884c\uff08\u5728\u4e0a\u65b9\uff09");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableRowInsertBelow('"+$(A).attr("wid")+"','"+A.id+"')","tablerowinsertbelow.gif","\u63d2\u5165\u884c\uff08\u5728\u4e0b\u65b9\uff09");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableRowMerge('"+$(A).attr("wid")+"','"+A.id+"')","tablerowmerge.gif","\u5408\u5e76\u884c\uff08\u5411\u4e0b\u65b9\uff09");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableRowSplit('"+$(A).attr("wid")+"','"+A.id+"',2)","tablerowsplit.gif","\u62c6\u5206\u884c");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableRowDelete('"+$(A).attr("wid")+"','"+A.id+"')","tablerowdelete.gif","\u5220\u9664\u884c");D+=sMenuHr;D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableColInsertLeft('"+$(A).attr("wid")+"','"+A.id+"')","tablecolinsertleft.gif","\u63d2\u5165\u5217\uff08\u5728\u5de6\u4fa7\uff09");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableColInsertRight('"+$(A).attr("wid")+"','"+A.id+"')","tablecolinsertright.gif","\u63d2\u5165\u5217\uff08\u5728\u53f3\u4fa7\uff09");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableColMerge('"+$(A).attr("wid")+"','"+A.id+"')","tablecolmerge.gif","\u5408\u5e76\u5217\uff08\u5411\u53f3\u4fa7\uff09");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableColSplit('"+$(A).attr("wid")+"','"+A.id+"',2)","tablecolsplit.gif","\u62c6\u5206\u5217");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.TableColDelete('"+$(A).attr("wid")+"','"+A.id+"')","tablecoldelete.gif","\u5220\u9664\u5217");break}return D};DxEMREditor.EmrGdbt=function(E,I,H){var B=top.E_clientModel.E_getWindow(E),_=WatCore.getWindowDoc(E,B),F=WatCore.getWindow(E,B),$=top.E_getObject(E,I,_),D=DxEMREditor.getEditArea(I,$),G=DxEMREditor.getSelection($,D),A=DxEMREditor.getRange(G);$.rng=A;var C=DxEMREditor.htmlText(A);WatCore.setParameter(E,I,top.DC.SELECTTEXT,C);WatCore.call(E,I,H)};DxEMREditor.Emrsetup=function(R,W,B){var a=top.E_clientModel.E_getWindow(R),P=WatCore.getWindowDoc(R,a),U=WatCore.getWindow(R,a),D=top.E_getObject(R,W,P),d=DxEMREditor.getEditArea(W,D),g=DxEMREditor.getSelection(D,d),F=DxEMREditor.getRange(g);D.rng=F;var Z;if(g.type=="Control"){Z=F(0).parentElement;if(Z.watflag!="true"){var h=F(0).parentElement.children;for(var X=0;X<h.length;X++){var b=h[X];if(b.watflag=="true"){Z=b;break}}}}else Z=DxEMREditor.getwatdocument(F);var S=$(Z).attr("watflag");if(S=="true"){var Q=$(Z).attr("wattype"),C=$(Z).attr("watsuntype"),G=$(Z).attr("watzskid"),c=$(Z).attr("watzsdid");if(c==undefined||c==null)c="";var T=$(Z).attr("wathdychange");if(T==undefined||T==null)T="";var N=$(Z).attr("watencryptshow");if(N==undefined||N==null)N="";var K=$(Z).attr("watvalue"),e=$(Z).attr("watid"),I=Z.innerText,V=$(Z).attr("watvisibletype"),H=$(Z).attr("watactionid"),M="content";if(W+"headercontent"==d.id)M="header";else if(W+"footercontent"==d.id)M="footer";WatCore.setParameter(R,W,top.DC.SELECTTEXT,I);WatCore.setParameter(R,W,top.DC.EMR_DESIGN_TYPE,Q);WatCore.setParameter(R,W,top.DC.EMR_DESIGN_SUNTYPE,C);WatCore.setParameter(R,W,top.DC.EMR_DESIGN_ZSKID,G);WatCore.setParameter(R,W,top.DC.EMR_DESIGN_ZSDID,c);WatCore.setParameter(R,W,top.DC.EMR_DESIGN_ID,e);WatCore.setParameter(R,W,top.DC.EMR_DESIGN_HONGEDIT,T);WatCore.setParameter(R,W,top.DC.EMR_DESIGN_ENCRYPT,N);WatCore.setParameter(R,W,top.DC.EMR_DESIGN_VALUE,K);WatCore.setParameter(R,W,top.DC.EMR_VISIBLE_TYPE,V);WatCore.setParameter(R,W,top.DC.EMR_ACTION_ID,H);WatCore.setParameter(R,W,top.DC.EMR_EDITOR_TYPE,M);if(Q=="img"){var J=$("#watimg",Z).get(0);if(J==null)J=Z;var L=parseInt(J.width),O=parseInt(J.height),E=parseInt(J.offsetLeft),_=parseInt(J.offsetTop);WatCore.setParameter(R,W,top.DC.EMR_IMG_WIDTH,L);WatCore.setParameter(R,W,top.DC.EMR_IMG_HEIGHT,O);var A=Z.watvalue;WatCore.setParameter(R,W,top.DC.SELECTTEXT,A);WatCore.setParameter(R,W,top.DC.EMR_FILESERVER,Z.watfileserver);WatCore.setParameter(R,W,top.DC.EMR_WAT_LEFT,E);WatCore.setParameter(R,W,top.DC.EMR_WAT_TOP,_)}else if(Q=="pagenumber"){var L=parseInt(Z.watwidth),O=parseInt(Z.watheight),E=parseInt(Z.watleft),_=parseInt(Z.wattop),Y=parseInt(Z.watpntype),f=parseInt(Z.watpnalign);WatCore.setParameter(R,W,top.DC.EMR_IMG_WIDTH,L);WatCore.setParameter(R,W,top.DC.EMR_IMG_HEIGHT,O);WatCore.setParameter(R,W,top.DC.EMR_WAT_LEFT,E);WatCore.setParameter(R,W,top.DC.EMR_WAT_TOP,_);WatCore.setParameter(R,W,top.DC.EMR_PAGENUMBER_TYPE,Y);WatCore.setParameter(R,W,top.DC.EMR_PAGENUMBER_ALIGN,f)}WatCore.call(R,W,B)}};DxEMREditor.getWatCellMenuRow=function(A,C,_){var D="",B="";switch(_){case"cellInserthashdy":D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.EmrGdbt('"+$(A).attr("wid")+"','"+A.id+"','d_hdy')","tableinsert.gif","\u5b8f\u5b9a\u4e49");case"cellInsert":D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.EmrGdbt('"+$(A).attr("wid")+"','"+A.id+"','d_gdbt')","tableinsert.gif","\u56fa\u5b9a\u6807\u9898");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.EmrGdbt('"+$(A).attr("wid")+"','"+A.id+"','d_gdwb')","tableinsert.gif","\u56fa\u5b9a\u6587\u672c");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.EmrGdbt('"+$(A).attr("wid")+"','"+A.id+"','d_danxuan')","tableinsert.gif","\u5355\u9009");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.EmrGdbt('"+$(A).attr("wid")+"','"+A.id+"','d_duoxuan')","tableinsert.gif","\u591a\u9009");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.EmrGdbt('"+$(A).attr("wid")+"','"+A.id+"','d_hasnoxuan')","tableinsert.gif","\u6709\u65e0\u9009\u62e9");D+=sMenuHr;D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.EmrGdbt('"+$(A).attr("wid")+"','"+A.id+"','d_img')","tableinsert.gif","\u56fe\u50cf");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.fyf_('"+$(A).attr("wid")+"','"+A.id+"')","tableinsert.gif","\u5206\u9875\u7b26");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.spc('"+$(A).attr("wid")+"','"+A.id+"')","tableinsert.gif","\u6c34\u5e73\u5c3a");D+=sMenuHr;D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.EmrGdbt('"+$(A).attr("wid")+"','"+A.id+"','d_number')","tableinsert.gif","\u6570\u5b57\u8f93\u5165");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.EmrGdbt('"+$(A).attr("wid")+"','"+A.id+"','d_char')","tableinsert.gif","\u5b57\u7b26\u6821\u9a8c\u8f93\u5165");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.EmrGdbt('"+$(A).attr("wid")+"','"+A.id+"','d_time')","tableinsert.gif","\u65e5\u671f\u65f6\u95f4");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.EmrGdbt('"+$(A).attr("wid")+"','"+A.id+"','d_yjs')","tableinsert.gif","\u6708\u7ecf\u53f2\u516c\u5f0f");break;case"cellProp":D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.Emrsetup('"+$(A).attr("wid")+"','"+A.id+"','property')","tableprop.gif","\u75c5\u5386\u5143\u7d20\u5c5e\u6027");break;case"returngjc":D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.Emrsetup('"+$(A).attr("wid")+"','"+A.id+"','returngjc')","tableprop.gif","\u6062\u590d\u521d\u59cb\u5173\u952e\u8bcd");break;case"cellPropandgl":D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.Emrsetup('"+$(A).attr("wid")+"','"+A.id+"','property')","tableprop.gif","\u75c5\u5386\u5143\u7d20\u5c5e\u6027");D+=sMenuHr;D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.Emrsetup('"+$(A).attr("wid")+"','"+A.id+"','relation')","tableprop.gif","\u5143\u7d20\u5173\u8054\u8bbe\u7f6e");break;case"edit":D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.printxd('"+$(A).attr("wid")+"','"+A.id+"','print_xd_qj')","tableprop.gif","\u6e05\u6d01\u7eed\u6253");break;case"editscar":D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.printxd('"+$(A).attr("wid")+"','"+A.id+"','print_xd_qj')","tableprop.gif","\u6e05\u6d01\u7eed\u6253");D+=sMenuHr;D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.printxd('"+$(A).attr("wid")+"','"+A.id+"','print_xd_lh')","tableprop.gif","\u7559\u75d5\u7eed\u6253");break;case"copypaste":D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.menuformat('"+$(A).attr("wid")+"','"+A.id+"','copy')","copy.gif","\u590d\u5236");D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.menuonPaste_('"+$(A).attr("wid")+"','"+A.id+"')","paste.gif","\u7c98\u8d34");break;case"imageedit":D+=DxEMREditor.getMenuRow(B,"top.DxEMREditor.imageEdit('"+$(A).attr("wid")+"','"+A.id+"')","copy.gif","\u56fe\u7247\u7f16\u8f91");break}return D};DxEMREditor.imageEdit=function(D,F){var C=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,C),_=top.E_getObject(D,F,A),$=_.imageElement;if($!=null&&$.tagName=="IMG"){var B=createRandom();$.id=B;var E=B+"|"+$.getAttribute("img-original")+"|"+$.src;WatCore.setParameter(D,F,top.DC.IMAGE,E);WatCore.call(D,F,"imageEdit")}else alert("\u8bf7\u9009\u62e9\u9700\u8981\u7f16\u8f91\u7684\u56fe\u7247")};DxEMREditor.imageEditResult=function(C,F,B,A){var _=top.E_getObject(C,F,A),D=B.split("|"),E=$("#"+D[0],_);if(E.get(0)!=null&&E.get(0).tagName=="IMG"){E.attr("src",D[1]);E.attr("img-original",D[2])}else alert("\u7f16\u8f91\u7684\u56fe\u7247\u4fdd\u5b58\u5931\u8d25")};DxEMREditor.getMenuRow=function(A,B,_,$){var C="";C="<tr><td align=center valign=middle><TABLE border=0 cellpadding=0 cellspacing=0 width=132><tr "+A+"><td valign=middle height=20 class=MouseOut onMouseOver=this.className='MouseOver'; onMouseOut=this.className='MouseOut';";if(A=="")C+=" onclick=\"parent."+B+";parent.oPopupMenu.hide();\"";C+=">";if(_!="")C+="&ensp;<img border=0 src='"+top.watLocation2+"/images/emr/"+_+"' width=20 height=20 align=absmiddle "+A+">&ensp;";else C+="&ensp;";C+=$+"</td></tr></TABLE></td></tr>";return C};DxEMREditor.getMenuRow2=function(A,B,_,$){var C="";C="<tr><td align=center valign=middle><TABLE border=0 cellpadding=0 cellspacing=0 width=132><tr "+A+"><td valign=middle height=20 class=MouseOut onMouseOver=this.className='MouseOver'; onMouseOut=this.className='MouseOut';";if(A=="")C+=" onclick=\"parent."+B+";parent.oPopupMenu.hide();\"";C+=">";if(_!="")C+="&ensp;<img border=0 src='"+_+"' width=20 height=20 align=absmiddle "+A+">&ensp;";else C+="&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;";C+=$+"</td></tr></TABLE></td></tr>";return C};DxEMREditor.DataTableInsert=function(D,E){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),_=top.E_getObject(D,E,A),C=DxEMREditor.getEditArea(E,_);if(!DxEMREditor.isTableSelected(_,C)&&!DxEMREditor.isControlSelected(_,C)&&!DxEMREditor.isWatCellSelected(_,C))DxEMREditor.showDialog(_,C,"table.htm?datatable=true&clientwidth="+$(C).width(),true)};DxEMREditor.TableInsert=function(D,E){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),_=top.E_getObject(D,E,A),C=DxEMREditor.getEditArea(E,_);if(!DxEMREditor.isTableSelected(_,C)&&!DxEMREditor.isControlSelected(_,C)&&!DxEMREditor.isWatCellSelected(_,C))DxEMREditor.showDialog(_,C,"table.htm?clientwidth="+$(C).width(),true)};DxEMREditor.TableProp=function(C,D){var A=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,A),$=top.E_getObject(C,D,_),B=DxEMREditor.getEditArea(D,$);if(DxEMREditor.isTableSelected($,B)||DxEMREditor.isCursorInTableCell($,B))DxEMREditor.showDialog($,B,"table.htm?action=modify",true)};DxEMREditor.TableCellProp=function(C,D){var A=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,A),$=top.E_getObject(C,D,_),B=DxEMREditor.getEditArea(D,$);if(DxEMREditor.isCursorInTableCell($,B))DxEMREditor.showDialog($,B,"tablecell.htm",true)};DxEMREditor.TableCellSplit=function(C,E){var A=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,A),D=WatCore.getWindow(C,A),$=top.E_getObject(C,E,_),B=DxEMREditor.getEditArea(E,$);if(DxEMREditor.isCursorInTableCell($,B))DxEMREditor.showDialog2($,B,D,"tablecellsplit.htm",true)};DxEMREditor.TableColSplit=function(F,H,U){var R=top.E_clientModel.E_getWindow(F),D=WatCore.getWindowDoc(F,R),G=WatCore.getWindow(F,R),N=top.E_getObject(F,H,D),T=DxEMREditor.getEditArea(H,N);if(!DxEMREditor.isCursorInTableCell(N,T))return;if(U<2)return;var O=N.selectedTD,C=N.selectedTR,K=N.selectedTBODY,B=N.selectedTable,Q="0",A=U-1,P=A,L,_=0,M=0;for(var I=0;I<O.cellIndex;I++){_+=C.cells[I].colSpan;if(C.cells[I].rowSpan>1)M+=1}var J=B.rows;while(O.colSpan>1&&P>0){L=C.insertCell(O.cellIndex+1);L.innerHTML="";L.width=20;if(Q=="yes")L.runtimeStyle.border="1px dotted #BFBFBF";O.colSpan-=1;P-=1}for(I=0;I<J.length;I++){var S=0,$=-1;for(var E=0;E<J[I].cells.length;E++){S+=J[I].cells[E].getAttribute("colSpan");if(S+M>_){$=E;break}}if(C.rowIndex!=I){if($!=-1)J[I].cells[$+M].colSpan+=P}else for(E=0;E<P;E++){L=J[I].insertCell(O.cellIndex+1);L.innerHTML="";L.rowSpan=O.rowSpan;L.width=20;if(Q=="yes")L.runtimeStyle.border="1px dotted #BFBFBF"}}};DxEMREditor.TableRowSplit=function(N,R,B){var W=top.E_clientModel.E_getWindow(N),K=WatCore.getWindowDoc(N,W),O=WatCore.getWindow(N,W),F=top.E_getObject(N,R,K),Y=DxEMREditor.getEditArea(R,F);if(!DxEMREditor.isCursorInTableCell(F,Y))return;if(B<2)return;var V=F.selectedTD,J=F.selectedTR,U=F.selectedTBODY,I=F.selectedTable,G="0",L=B-1,A=L,H=0;for(var T=0;T<V.cellIndex;T++)H+=J.cells[T].colSpan;var E=I.rows;while(V.rowSpan>1&&A>0){var D=E[J.rowIndex+V.rowSpan-1];V.rowSpan-=1;var X=0,$=-1;for(var M=0;M<D.cells.length;M++){X+=D.cells[M].getAttribute("colSpan");if(X>H){$=M;break}}var C=D.insertCell($);C.innerHTML="";if(G=="yes")C.runtimeStyle.border="1px dotted #BFBFBF";A-=1}for(M=0;M<A;M++){var S=0;allCells=J.cells;for(T=0;T<allCells.length;T++)S=S+allCells[T].getAttribute("colSpan");var _=I.insertRow(J.rowIndex+1);for(var P=0;P<J.rowIndex;P++)for(var Q=0;Q<E[P].cells.length;Q++)if((E[P].cells[Q].rowSpan>1)&&(E[P].cells[Q].rowSpan>=J.rowIndex-E[P].rowIndex+1))E[P].cells[Q].rowSpan+=1;for(T=0;T<allCells.length;T++)if(T!=V.cellIndex)J.cells[T].rowSpan+=1;else{C=_.insertCell();C.colSpan=V.colSpan;C.innerHTML="";if(G=="yes")C.runtimeStyle.border="1px dotted #BFBFBF"}}};DxEMREditor.TableRowProp=function(C,E){var A=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,A),D=WatCore.getWindow(C,A),$=top.E_getObject(C,E,_),B=DxEMREditor.getEditArea(E,$);if(DxEMREditor.isCursorInTableCell($,B))DxEMREditor.showDialog($,B,"tablecell.htm?action=row",true)};DxEMREditor.TableRowInsertAbove=function(C,E){var L=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,L),D=WatCore.getWindow(C,L),I=top.E_getObject(C,E,B),M=DxEMREditor.getEditArea(E,I);if(DxEMREditor.isCursorInTableCell(I,M)){var F=0,J=I.selectedTD,A=I.selectedTR,H=I.selectedTBODY,_=I.selectedTable,K="0";allCells=A.cells;for(var G=0;G<allCells.length;G++)F=F+allCells[G].getAttribute("colSpan");var $=_.insertRow(A.rowIndex);for(G=0;G<F;G++){newTD=$.insertCell();newTD.innerHTML="";if(K=="yes")newTD.runtimeStyle.border="1px dotted #BFBFBF"}}};DxEMREditor.TableRowInsertBelow=function(C,E){var L=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,L),D=WatCore.getWindow(C,L),I=top.E_getObject(C,E,B),M=DxEMREditor.getEditArea(E,I);if(DxEMREditor.isCursorInTableCell(I,M)){var F=0,J=I.selectedTD,A=I.selectedTR,H=I.selectedTBODY,_=I.selectedTable,K="0";allCells=A.cells;for(var G=0;G<allCells.length;G++)F=F+allCells[G].getAttribute("colSpan");var $=_.insertRow(A.rowIndex+1);for(G=0;G<F;G++){newTD=$.insertCell();newTD.innerHTML="";if(K=="yes")newTD.runtimeStyle.border="1px dotted #BFBFBF"}}};DxEMREditor.TableRowMerge=function(L,O){var T=top.E_clientModel.E_getWindow(L),J=WatCore.getWindowDoc(L,T),M=WatCore.getWindow(L,T),B=top.E_getObject(L,O,J),U=DxEMREditor.getEditArea(O,B);if(DxEMREditor.isCursorInTableCell(B,U)){var R=B.selectedTD,I=B.selectedTR,P=B.selectedTBODY,H=B.selectedTable,D="0";DxEMREditor.saveHistory(B,U);var Q=DxEMREditor.createTableCellArray(H),S=I.rowIndex,G=R.cellIndex,A=Q[S];if(A==null)return;var _=DxEMREditor.findTrueCellIndex(A,G);if(_[0]<0)return;var V=_[0],F=parseInt($(R).attr("colspan")==null?"1":$(R).attr("colspan")),N=parseInt($(R).attr("rowspan")==null?"1":$(R).attr("rowspan")),C=S+N;if(C<Q.length){var X=Q[C][V];if(X==null||!X.iscell||X.colspan!=F){alert("\u4e0d\u5141\u8bb8\u5408\u5e76\u884c");return}var K=parseInt(X.td.attr("rowspan")==null?"1":X.td.attr("rowspan")),E=X.td.get(0).cellIndex,W=X.td.parent().get(0);N+=K;R.rowSpan=N;W.deleteCell(E)}else alert("\u4e0d\u5141\u8bb8\u5408\u5e76\u884c")}};DxEMREditor.TableRowDelete=function(B,D){var H=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,H),C=WatCore.getWindow(B,H),F=top.E_getObject(B,D,A),J=DxEMREditor.getEditArea(D,F);if(DxEMREditor.isCursorInTableCell(F,J)){var G=F.selectedTD,_=F.selectedTR,E=F.selectedTBODY,$=F.selectedTable,I="0";$.deleteRow(_.rowIndex)}};DxEMREditor.TableColInsertLeft=function(B,D){var H=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,H),C=WatCore.getWindow(B,H),F=top.E_getObject(B,D,A),J=DxEMREditor.getEditArea(D,F);if(DxEMREditor.isCursorInTableCell(F,J)){var G=F.selectedTD,_=F.selectedTR,E=F.selectedTBODY,$=F.selectedTable,I="0";moveFromEnd=(_.cells.length-1)-(G.cellIndex);allRows=$.rows;for(i=0;i<allRows.length;i++){rowCount=allRows[i].cells.length-1;position=rowCount-moveFromEnd;if(position<0)position=0;newCell=allRows[i].insertCell(position);newCell.innerHTML="&ensp;";if(I=="yes")newCell.runtimeStyle.border="1px dotted #BFBFBF"}}};DxEMREditor.TableColInsertRight=function(B,D){var H=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,H),C=WatCore.getWindow(B,H),F=top.E_getObject(B,D,A),J=DxEMREditor.getEditArea(D,F);if(DxEMREditor.isCursorInTableCell(F,J)){var G=F.selectedTD,_=F.selectedTR,E=F.selectedTBODY,$=F.selectedTable,I="0";moveFromEnd=(_.cells.length-1)-(G.cellIndex);allRows=$.rows;for(i=0;i<allRows.length;i++){rowCount=allRows[i].cells.length-1;position=rowCount-moveFromEnd;if(position<0)position=0;newCell=allRows[i].insertCell(position+1);newCell.innerHTML="&ensp;";if(I=="yes")newCell.runtimeStyle.border="1px dotted #BFBFBF"}}};DxEMREditor.TableColMerge=function(L,O){var U=top.E_clientModel.E_getWindow(L),J=WatCore.getWindowDoc(L,U),M=WatCore.getWindow(L,U),C=top.E_getObject(L,O,J),V=DxEMREditor.getEditArea(O,C);if(DxEMREditor.isCursorInTableCell(C,V)){var S=C.selectedTD,I=C.selectedTR,P=C.selectedTBODY,H=C.selectedTable,D="0";DxEMREditor.saveHistory(C,V);var R=DxEMREditor.createTableCellArray(H),T=I.rowIndex,G=S.cellIndex,A=R[T];if(A==null)return;var _=DxEMREditor.findTrueCellIndex(A,G);if(_[0]<0)return;var W=_[0],F=parseInt($(S).attr("colspan")==null?"1":$(S).attr("colspan")),N=parseInt($(S).attr("rowspan")==null?"1":$(S).attr("rowspan")),K=$(S).width(),Y=A[W+1];if(Y==null||!Y.iscell||Y.rowspan!=N){alert("\u4e0d\u5141\u8bb8\u5408\u5e76\u5217");return}var B=Y.td.width();K+=B;var Q=parseInt(Y.td.attr("colspan")==null?"1":Y.td.attr("colspan"));F+=Q;var X=Y.td.parent().get(0),E=Y.td.get(0).cellIndex;S.width=K;S.colSpan=F;X.deleteCell(E)}};DxEMREditor.TableColDelete=function(B,D){var I=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,I),C=WatCore.getWindow(B,I),G=top.E_getObject(B,D,A),K=DxEMREditor.getEditArea(D,G);if(DxEMREditor.isCursorInTableCell(G,K)){var H=G.selectedTD,_=G.selectedTR,F=G.selectedTBODY,$=G.selectedTable,J="0";moveFromEnd=(_.cells.length-1)-(H.cellIndex);allRows=$.rows;for(var E=0;E<allRows.length;E++){endOfRow=allRows[E].cells.length-1;position=endOfRow-moveFromEnd;if(position<0)position=0;allCellsInRow=allRows[E].cells;if(allCellsInRow[position].colSpan>1)allCellsInRow[position].colSpan=allCellsInRow[position].colSpan-1;else allRows[E].deleteCell(position)}}};DxEMREditor.setEMRDesignContent=function(A,B,_,$){DxEMREditor.inputTextFormServer(A,B,$,_)};DxEMREditor.setEMRDesignContentToLocation=function(H,J,E,_,C){var B=top.E_getObject(H,J,C),G=DxEMREditor.getEditArea(J,B);DxEMREditor.doclick(G);var D=B.rng;if(D==null)return;if(DxEMREditor.isWatCellSelected3(D)){D.select();alert("\u4e0d\u80fd\u9009\u62e9\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}else if(DxEMREditor.isSelectedHasWatcell2(B,G,D)){D.select();alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}var A=DxEMREditor.GetCursorPsn2(G,D);DxEMREditor.saveHistory(B,G);if(DxEMREditor.isWatCellSelected2(B,G)&&A==0){D.select();D.text="";var I=$("<span>&ensp;</span>");I.insertBefore($(D.parentElement()).closest("span"));D.moveToElementText(I[0]);I=$("<span>&ensp;</span>");I.insertAfter($(D.parentElement()).closest("span"));D.moveToElementText(I[0]);D.pasteHTML(E);D.collapse(false);D.select();return}D.text="";D.pasteHTML(E);D.moveStart("character",0);D.moveEnd("character",0);D.collapse(true);D.select();var F=G.document.getElementById(_);if(F!=null)DxEMREditor.moveend(F);DxEMREditor.processPageLine(H,J,false)};DxEMREditor.setEMRDesignSectionContent=function(C,D,G,B){var F=top.E_getObject(C,D,B),J=DxEMREditor.getEditArea(D,F);DxEMREditor.doclick(J);var H=F.rng;if(H==null)return;H.select();var A=DxEMREditor.GetCursorPsn(F,J),K=DxEMREditor.crxq4(false,F,J),_=K[0],I=K[1];DxEMREditor.saveHistory(F,J);if(I.parentElement().watflag=="true"&&A==0){I.moveStart("character",-1);I.moveEnd("character",0);I.collapse(true);I.select();H.select();H.text="";var E=$("<span>&ensp;</span>");E.insertBefore($(H.parentElement()).closest("span"));H.moveToElementText(E[0]);E=$("<span>&ensp;</span>");E.insertAfter($(H.parentElement()).closest("span"));H.moveToElementText(E[0]);H.pasteHTML(G);return}else{I.moveStart("character",-1);I.moveEnd("character",0);I.collapse(true);I.select()}if(H.parentElement().watend!="true"){E=$("</br>");E.appendChild($(H.parentElement()).closest("span"));H.moveToElementText(E[0])}H.select();H.text="";H.pasteHTML(G);_.clear();DxEMREditor.processPageLine(C,D,false)};DxEMREditor.coverstarclick2=function(N,D){var G=DxEMREditor.getContainer(N);if(G==null)return;var Y=G.id,S=$(G).attr("wid"),k=DxEMREditor.getEditArea(Y,G);DxEMREditor.doclick(k);var n=k.document.selection,I=n.createRange(),V=0,L=0,_=0,X=0;G.rng=I;var h;if(n.type=="Control"){h=I(0).parentElement;if(h.watflag!="true"){var p=I(0).parentElement.children;for(var a=0;a<p.length;a++){var i=p[a];if(i.watflag=="true"){h=i;break}}}}else{h=DxEMREditor.getwatdocument(I);L=I.offsetLeft;_=I.offsetTop;X=I.boundingHeight;V=I.text.length;X=parseInt(_)+parseInt(X)}var T=h.watflag,M=G.watstyle;if(T=="true"&&M!="1"||(N.wattype=="yjs"&&M!="1")||(N.wattype=="qcgs"&&M!="1")){var R=N.wattype,E=N.watsuntype,J=N.watzskid,l=N.watid,j=N.watzsdid,O=N.watvalue,W=N.watvisibletype,K=N.watactionid;WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_TYPE,R);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSDID,j);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ID,l);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_VALUE,O);WatCore.setParameter(S,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(S,Y,top.DC.EMR_TOP,X);WatCore.setParameter(S,Y,top.DC.EMR_VISIBLE_TYPE,W);WatCore.setParameter(S,Y,top.DC.EMR_ACTION_ID,K);if(R=="yjs"||N.wattype=="yjs"){if(R=="yjs"){var P=$("#yjsccnl",N).get(0),d=$("#yjsjjnl",N).get(0),B=$("#yjsjq",N).get(0),o=$("#yjszq",N).get(0),H=P.innerText,e=d.innerText,C=B.innerText,F=o.innerText,g=h.watyjstype;WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_TYPE,R);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSDID,j);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ID,l);WatCore.setParameter(S,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(S,Y,top.DC.EMR_TOP,X);WatCore.setParameter(S,Y,top.DC.EMR_YJS_CONTENT,H+"@wat@"+e+"@wat@"+C+"@wat@"+F+"@wat@"+g)}else if(N.wattype=="yjs"){P=$("#yjsccnl",N).get(0),d=$("#yjsjjnl",N).get(0),B=$("#yjsjq",N).get(0),o=$("#yjsjq",N).get(0),H=P.innerText,e=d.innerText,C=B.innerText,F=o.innerText,g=N.watyjstype;R=N.wattype;E=N.watsuntype;J=N.watzskid;l=N.watid;j=N.watzsdid;WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_TYPE,R);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSDID,j);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ID,l);WatCore.setParameter(S,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(S,Y,top.DC.EMR_TOP,X);WatCore.setParameter(S,Y,top.DC.EMR_YJS_CONTENT,H+"@wat@"+e+"@wat@"+C+"@wat@"+F+"@wat@"+g)}}else if(R=="qcgs"||N.wattype=="qcgs")if(R=="qcgs"){var A=$("#qclu",N).get(0),c=$("#qcru",N).get(0),Z=$("#qcld",N).get(0),b=$("#qcrd",N).get(0),Q="&ensp;",U="&ensp;",f="&ensp;",m="&ensp;";if(A!=null)Q=A.innerText;if(c!=null)U=c.innerText;if(Z!=null)f=Z.innerText;if(b!=null)m=b.innerText;WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_TYPE,R);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSDID,j);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ID,l);WatCore.setParameter(S,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(S,Y,top.DC.EMR_TOP,X);WatCore.setParameter(S,Y,top.DC.EMR_QCGS_CONTENT,l+"@wat@"+Q+"@wat@"+U+"@wat@"+f+"@wat@"+m)}else if(N.wattype=="qcgs"){A=$("#qclu",N).get(0),c=$("#qcru",N).get(0),Z=$("#qcld",N).get(0),b=$("#qcrd",N).get(0),Q="&ensp;",U="&ensp;",f="&ensp;",m="&ensp;";if(A!=null)Q=A.innerText;if(c!=null)U=c.innerText;if(Z!=null)f=Z.innerText;if(b!=null)m=b.innerText;R=N.wattype;E=N.watsuntype;J=N.watzskid;l=N.watid;j=N.watzsdid;WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_TYPE,R);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSDID,j);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ID,l);WatCore.setParameter(S,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(S,Y,top.DC.EMR_TOP,X);WatCore.setParameter(S,Y,top.DC.EMR_QCGS_CONTENT,l+"@wat@"+Q+"@wat@"+U+"@wat@"+f+"@wat@"+m)}WatCore.call(S,Y,"select")}};DxEMREditor.processEmrDataElement=function(C,D,A,_,$,B,H,K,E){var F=top.E_getObject(C,D,A),I=DxEMREditor.getEditArea(D,F),G=F.rng;if(G==null)return;var J=JSON.parse(_)["rows"];E_emrdataelement.E_put($,J);DxEMREditor.popEmrDataElementSelector(C,D,E,$,B,H,K,0)};DxEMREditor.emrpopaction=function(G,J,I){var F=J+"_panel_template",D=top.E_clientModel.E_getWindow(G),C=WatCore.getWindowDoc(G,D),B=top.E_getObject(G,J,C),E=DxEMREditor.getEditArea(J,B),_=B.wrap,A=$("#"+F,_);if(A!=null&&A.get(0)!=null&&A.css("display")!="none")if(I=="cancel"){A.css("display","none");DxEMREditor.doclick(E)}else if(I=="ok"){var H=parseInt(A.attr("currow"));if(A.attr("emrsuntype")=="t1")A.find("[_rownum="+H+"]").click();else A.find("[_rownum="+H+"]").dblclick()}};DxEMREditor.popEmrDataElementSetContent=function(U,Y,M){var T=Y+"_panel_template",c=top.E_clientModel.E_getWindow(U),S=WatCore.getWindowDoc(U,c),I=top.E_getObject(U,Y,S),d=DxEMREditor.getEditArea(Y,I),P=I.wrap,H=$("#"+T,P);if(H!=null&&H.get(0)!=null&&H.css("display")!="none"){var F=H.attr("emrid"),_=H.attr("emrzskid"),E=H.attr("emrvalue"),j=H.attr("emrsuntype"),G=parseInt(H.attr("currpage")),W=H.attr("totalpage"),Q=H.attr("multiinfo").split(",");if(j=="t2"||j=="t3"){var f=H.find("tr[meta=row]"),A=G=="0"?0:parseInt(G)*ermpopnum;for(var Z=0;Z<f.length;Z++){var N=$(f[Z]).find("input[type='checkbox']");if(N.prop("checked"))Q[A+Z]="1";else Q[A+Z]=""}}if(M=="prev"||M=="up"){if(G<=0)return;G-=1}else if(M=="next"||M=="down"){if(G>=W-1)return;G+=1}var B,J;if(j=="t1"){B="<table style='border:1 solid #999999' onclick='event.cancelBubble = true;'><thead><tr style='height:20px;'><td colspan='2' style='background:#91c9f7;COLOR:#525252;text-align:center;font-size:14px'><input type='button' style='width:14px;height:18px;cursor:pointer;border:1px none red;background:url("+top.watLocation2+"/resources/core/prePage.png)' onclick='top.DxEMREditor.popEmrDataElementSetContent(\""+U+"\",\""+Y+"\",\"prev\");event.cancelBubble = true;return false;'></input><span height=20px;>&ensp;&ensp;\u6309\u952e\u76d8\u4e0a\u4e0b\u952e\u9009\u62e9\uff0c\u6309\u5de6\u53f3\u952e\u7ffb\u9875&ensp;&ensp;</span><input type='button' style='width:14px;height:18px;cursor:hand;border:1px none red;background:url("+top.watLocation2+"/resources/core/nextPage.png)' onclick='top.DxEMREditor.popEmrDataElementSetContent(\""+U+"\",\""+Y+"\",\"next\");event.cancelBubble = true;return false;'></input></td></tr><TR class=DxPopGridText-divListTitle style='HEIGHT: 20px'><TD class=DxPopGridText-divList style='FONT-SIZE: 14px; BACKGROUND: #91c9f7; COLOR: #525252; TEXT-ALIGN: center' colSpan=3><SPAN height='20px;'>\u6309\u56de\u8f66\u952e\u786e\u5b9a,\u6309ESC\u53d6\u6d88</SPAN></TD></TR><tr style='font-size:14px;text-align:center;background:#E4E6D8;color:#0D8BA4;height:20px;'><td head='\u7f16\u7801'>\u7f16\u7801</td><td head='\u540d\u79f0'>\u540d\u79f0</td></tr></thead><tbody><tr meta='row'><td style='font-size:14px' meta='\u7f16\u7801'></td><td style='font-size:14px' meta='\u540d\u79f0'></td></tr></tbody><tfoot><TR class=DxPopGridText-divListTitle style='HEIGHT: 20px'><TD class=DxPopGridText-divList style='FONT-SIZE: 14px; BACKGROUND: #91c9f7; COLOR: #525252;text-align:right' colSpan=2><button onclick='top.DxEMREditor.emrpopaction(\""+U+"\",\""+Y+"\",\"cancel\");'>\u53d6\u6d88</button>&ensp;&ensp;</TD></TR></tfoot></table>";J="<tr meta='row'><td style='font-size:14px' meta='\u7f16\u7801'></td><td style='font-size:14px' meta='\u540d\u79f0'></td></tr>"}else if(j=="t2"||j=="t3"){B="<table style='border:1 solid #999999' onclick='event.cancelBubble = true;'><thead><tr style='height:20px;'><td colspan='3' style='background:#91c9f7;COLOR:#525252;text-align:center;font-size:14px'><input type='button' style='width:14px;height:18px;cursor:pointer;border:1px none red;background:url("+top.watLocation2+"/resources/core/prePage.png)' onclick='top.DxEMREditor.popEmrDataElementSetContent(\""+U+"\",\""+Y+"\",\"prev\");event.cancelBubble = true;return false;'></input><span height=20px;>&ensp;&ensp;\u6309\u952e\u76d8\u4e0a\u4e0b\u952e\u9009\u62e9\uff0c\u6309\u5de6\u53f3\u952e\u7ffb\u9875&ensp;&ensp;</span><input type='button' style='width:14px;height:18px;cursor:hand;border:1px none red;background:url("+top.watLocation2+"/resources/core/nextPage.png)' onclick='top.DxEMREditor.popEmrDataElementSetContent(\""+U+"\",\""+Y+"\",\"next\");event.cancelBubble = true;return false;'></input></td></tr><TR class=DxPopGridText-divListTitle style='HEIGHT: 20px'><TD class=DxPopGridText-divList style='FONT-SIZE: 14px; BACKGROUND: #91c9f7; COLOR: #525252; TEXT-ALIGN: center' colSpan=3><SPAN height='20px;'>\u6309\u7a7a\u683c\u9009\u62e9,\u6309\u56de\u8f66\u952e\u786e\u5b9a,\u6309ESC\u53d6\u6d88</SPAN></TD></TR><tr style='font-size:14px;text-align:center;background:#E4E6D8;color:#0D8BA4;height:20px;'><TD class=DxPopGridText-divList head='\u7f16\u7801'>\u9009\u62e9</TD><td head='\u7f16\u7801'>\u7f16\u7801</td><td head='\u540d\u79f0'>\u540d\u79f0</td></tr></thead><tbody><tr meta='row'><td style='font-size:14px' meta='\u7f16\u7801' align=center><input type=checkbox></input></td><td style='font-size:14px' meta='\u7f16\u7801'></td><td style='font-size:14px' meta='\u540d\u79f0'></td></tr></tbody><tfoot><TR class=DxPopGridText-divListTitle style='HEIGHT: 20px'><TD class=DxPopGridText-divList style='FONT-SIZE: 14px; BACKGROUND: #91c9f7; COLOR: #525252;text-align:right' colSpan=3><button onclick='top.DxEMREditor.emrpopaction(\""+U+"\",\""+Y+"\",\"ok\");'>\u786e\u5b9a</button>&ensp;&ensp;&ensp;<button onclick='top.DxEMREditor.emrpopaction(\""+U+"\",\""+Y+"\",\"cancel\");'>\u53d6\u6d88</button>&ensp;&ensp;</TD></TR></tfoot></table>";J="<tr meta='row'><td style='font-size:14px' meta='\u7f16\u7801' align=center><input type=checkbox></input></td><td style='font-size:14px' meta='\u7f16\u7801'></td><td style='font-size:14px' meta='\u540d\u79f0'></td></tr>"}H.find("tbody").html(J);var O=H.children();$(O[0]).addClass("DxPopGridText-divList");var i=O.find("thead");i.addClass("DxPopGridText-divList");i.find("tr").addClass("DxPopGridText-divListTitle");i.find("td").addClass("DxPopGridText-divList");var e=O.find("tbody");e.addClass("DxPopGridText-divList");e.find("td").addClass("DxPopGridText-divList");var h=H.get(0).rowdata;if(h!=null){var X=$(O).find("tr[meta=row]"),L=DxEMREditor.findPageLocation(h,G,"");H.attr("rowcount",L[4]);H.attr("currpage",G);H.attr("totalpage",L[2]);H.attr("multiinfo",Q);if(M=="up")H.attr("currow",parseInt(L[4])-1);else H.attr("currow",0);H.focus();var g=L[0],D=L[1],K=null;for(var Z=g,a=0;Z<D;++Z,a++){var R=h[Z],b=X[0].cloneNode(true),C=$(b).children("td");for(var V=0;V<R.length;V++)if(j=="t1"){$(C.get(V)).html(R[V]);$(C.get(V)).css("color","#000")}else if(j=="t2"||j=="t3"){$(C.get(V+1)).html(R[V]);$(C.get(V+1)).css("color","#000")}if(j=="t2"||j=="t3")if(Q[Z]=="1"){N=$(b).find("input[type='checkbox']");N.attr("checked",true)}X[0].parentNode.insertBefore(b,X[0]);if(!K)K=b;$(b).attr("_rownum",a);$(b).attr("_container",T);$(b).attr("_input",Y);$(b).attr("_winId",U);$(b).attr("emrsuntype",j);$(b).removeClass();if(a%2==0)$(b).addClass("DxPopGridText-repList1");else $(b).addClass("DxPopGridText-repList2");$(b).mouseover(function(){$(this).css("background-color","#CCCCFF")});$(b).mouseout(function(){$(this).css("background-color","")});$(b).click(function(){if(j=="t1"){var B=top.E_clientModel.E_getWindow(U),_=WatCore.getWindowDoc(U,B),D=$(this).children("td"),C=$(D.get(0)).text(),A=$(D.get(1)).text();DxEMREditor.setEMRSelectValue(U,Y,F,C,A,_);H.css("display","none")}});$(b).dblclick(function(){if(j=="t2"||j=="t3"){var E=top.E_clientModel.E_getWindow(U),C=WatCore.getWindowDoc(U,E),K=$(this).children("td"),B=H.attr("multiinfo").split(","),I=H.find("tr[meta=row]"),A=G=="0"?0:parseInt(G)*ermpopnum;for(var L=0;L<I.length;L++){var _=$(I[L]).find("input[type='checkbox']");if(_.prop("checked"))B[A+L]="1";else B[A+L]=""}var J="",D="";for(L=0;L<B.length;L++)if(B[L]=="1")if(J==""){J+=h[L][0];D+=h[L][1]}else{J+="\u3001"+h[L][0];D+="\u3001"+h[L][1]}DxEMREditor.setEMRSelectValue(U,Y,F,J,D,C);H.css("display","none")}})}if(M=="up"){H.attr("currow",parseInt(L[4])-1);H.find("[_rownum="+(parseInt(L[4])-1)+"]").mouseover()}else H.find("[_rownum=0]").mouseover();X.remove()}}};DxEMREditor.emrpopfilter=function(E,H,D,M){var F=H+"_panel_template",N=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,N),L=top.E_getObject(E,H,B),A=L.wrap,J=$("#"+F,A);if(J==null||J.get(0)==null)return true;var I=M.keyCode;if(I==40)J.focus();else{var K=D.value,_=J.attr("emrzskid"),Q=E_emrdataelement.E_get(_),R=J.attr("emrsuntype"),C=J.attr("emrvalue"),G=J.attr("emrid"),O=J.attr("emrtype"),P;if(K==""||K==null)P=Q;else P=DxEMREditor.createFilterInfo(Q,K);DxEMREditor.popEmrDataElementSelector(E,H,G,_,C,O,R,0,P)}return true};DxEMREditor.popEmrDataElementSelector=function(Z,d,G,B,E,N,q,H,P){var A,J;if(q=="t1"){A="<table style='border:1 solid #999999' onclick='event.cancelBubble = true;'><thead><tr style='height:20px;'><td colspan='2' style='background:#91c9f7;COLOR:#525252;text-align:center;font-size:14px'><input type='button' id='popbuttontemplate' style='width:14px;height:18px;cursor:pointer;border:1px none red;background:url("+top.watLocation2+"/resources/core/prePage.png)' onclick='top.DxEMREditor.popEmrDataElementSetContent(\""+Z+"\",\""+d+"\",\"prev\");event.cancelBubble = true;return false;'></input><span height=20px;>&ensp;&ensp;\u6309\u952e\u76d8\u4e0a\u4e0b\u952e\u9009\u62e9\uff0c\u6309\u5de6\u53f3\u952e\u7ffb\u9875&ensp;&ensp;</span><input type='button' style='width:14px;height:18px;cursor:hand;border:1px none red;background:url("+top.watLocation2+"/resources/core/nextPage.png)' onclick='top.DxEMREditor.popEmrDataElementSetContent(\""+Z+"\",\""+d+"\",\"next\");event.cancelBubble = true;return false;'></input></td></tr><TR class=DxPopGridText-divListTitle style='HEIGHT: 20px'><TD class=DxPopGridText-divList style='FONT-SIZE: 14px; BACKGROUND: #91c9f7; COLOR: #525252; TEXT-ALIGN: center' colSpan=3><SPAN height='20px;'>\u6309\u56de\u8f66\u952e\u786e\u5b9a,\u6309ESC\u53d6\u6d88</SPAN></TD></TR><TR class=DxPopGridText-divListTitle style='HEIGHT: 20px'><TD class=DxPopGridText-divList style='FONT-SIZE: 14px; BACKGROUND: #91c9f7; COLOR: #525252; TEXT-ALIGN: left' colSpan=3><span>\u8bf7\u8f93\u5165\u8fc7\u6ee4\u4fe1\u606f:</span><input meta='input' onkeydown='event.cancelBubble=true;return true;' onkeyup='event.cancelBubble=true;return top.DxEMREditor.emrpopfilter(\""+Z+"\",\""+d+"\",this,event);' style='width:100px;'></input></TD></TR><tr style='font-size:14px;text-align:center;background:#E4E6D8;color:#0D8BA4;height:20px;'><td head='\u7f16\u7801'>\u7f16\u7801</td><td head='\u540d\u79f0'>\u540d\u79f0</td></tr></thead><tbody><tr meta='row'><td style='font-size:14px' meta='\u7f16\u7801'></td><td style='font-size:14px' meta='\u540d\u79f0'></td></tr></tbody><tfoot><TR class=DxPopGridText-divListTitle style='HEIGHT: 20px'><TD class=DxPopGridText-divList style='FONT-SIZE: 14px; BACKGROUND: #91c9f7; COLOR: #525252;text-align:right' colSpan=2><button onclick='top.DxEMREditor.emrpopaction(\""+Z+"\",\""+d+"\",\"cancel\");'>\u53d6\u6d88</button>&ensp;&ensp;</TD></TR></tfoot></table>";J="<tr meta='row'><td style='font-size:14px' meta='\u7f16\u7801'></td><td style='font-size:14px' meta='\u540d\u79f0'></td></tr>"}else if(q=="t2"||q=="t3"){A="<table style='border:1 solid #999999' onclick='event.cancelBubble = true;'><thead><tr style='height:20px;'><td colspan='3' style='background:#91c9f7;COLOR:#525252;text-align:center;font-size:14px'><input type='button' style='width:14px;height:18px;cursor:pointer;border:1px none red;background:url("+top.watLocation2+"/resources/core/prePage.png)' onclick='top.DxEMREditor.popEmrDataElementSetContent(\""+Z+"\",\""+d+"\",\"prev\");event.cancelBubble = true;return false;'></input><span height=20px;>&ensp;&ensp;\u6309\u952e\u76d8\u4e0a\u4e0b\u952e\u9009\u62e9\uff0c\u6309\u5de6\u53f3\u952e\u7ffb\u9875&ensp;&ensp;</span><input type='button' style='width:14px;height:18px;cursor:hand;border:1px none red;background:url("+top.watLocation2+"/resources/core/nextPage.png)' onclick='top.DxEMREditor.popEmrDataElementSetContent(\""+Z+"\",\""+d+"\",\"next\");event.cancelBubble = true;return false;'></input></td></tr><TR class=DxPopGridText-divListTitle style='HEIGHT: 20px'><TD class=DxPopGridText-divList style='FONT-SIZE: 14px; BACKGROUND: #91c9f7; COLOR: #525252; TEXT-ALIGN: center' colSpan=3><SPAN height='20px;'>\u6309\u7a7a\u683c\u9009\u62e9,\u6309\u56de\u8f66\u952e\u786e\u5b9a,\u6309ESC\u53d6\u6d88</SPAN></TD></TR><TR class=DxPopGridText-divListTitle style='HEIGHT: 20px'><TD class=DxPopGridText-divList style='FONT-SIZE: 14px; BACKGROUND: #91c9f7; COLOR: #525252; TEXT-ALIGN: left' colSpan=3><span>\u8bf7\u8f93\u5165\u8fc7\u6ee4\u4fe1\u606f:</span><input meta='input' onkeydown='event.cancelBubble=true;return true;' onkeyup='event.cancelBubble=true;return top.DxEMREditor.emrpopfilter(\""+Z+"\",\""+d+"\",this,event);' style='width:100px;'></input></TD></TR><tr style='font-size:14px;text-align:center;background:#E4E6D8;color:#0D8BA4;height:20px;'><TD class=DxPopGridText-divList head='\u7f16\u7801'>\u9009\u62e9</TD><td head='\u7f16\u7801'>\u7f16\u7801</td><td head='\u540d\u79f0'>\u540d\u79f0</td></tr></thead><tbody><tr meta='row'><td style='font-size:14px' meta='\u7f16\u7801' align=center><input type=checkbox></input></td><td style='font-size:14px' meta='\u7f16\u7801'></td><td style='font-size:14px' meta='\u540d\u79f0'></td></tr></tbody><tfoot><TR class=DxPopGridText-divListTitle style='HEIGHT: 20px'><TD class=DxPopGridText-divList style='FONT-SIZE: 14px; BACKGROUND: #91c9f7; COLOR: #525252;text-align:right' colSpan=3><button onclick='top.DxEMREditor.emrpopaction(\""+Z+"\",\""+d+"\",\"ok\");'>\u786e\u5b9a</button>&ensp;&ensp;&ensp;<button onclick='top.DxEMREditor.emrpopaction(\""+Z+"\",\""+d+"\",\"cancel\");'>\u53d6\u6d88</button>&ensp;&ensp;</TD></TR></tfoot></table>";J="<tr meta='row'><td style='font-size:14px' meta='\u7f16\u7801' align=center><input type=checkbox></input></td><td style='font-size:14px' meta='\u7f16\u7801'></td><td style='font-size:14px' meta='\u540d\u79f0'></td></tr>"}var Y=d+"_panel_template",i=top.E_clientModel.E_getWindow(Z),X=WatCore.getWindowDoc(Z,i),K=top.E_getObject(Z,d,X),j=DxEMREditor.getEditArea(d,K),V=K.wrap,I=$("#"+Y,V),p=false;if(I==null||I.get(0)==null){var h=X.createElement("div"),F=$(h);F.attr("id",Y);F.css({border:"solid yellow 0px",position:"absolute","display":"none","z-index":"1000",background:"white"});$(V).append(F);I=$("#"+Y,V);I.keyup(function(E){var D=$(this),F=parseInt(D.attr("currow")),B=E.keyCode;if(B==40||B==38){var C=parseInt(D.attr("rowcount"));D.find("[_rownum="+F+"]").mouseout();var A=I.attr("currpage"),G=I.attr("totalpage");if(B==40){if(++F>=C)if(A>=G-1)F--;else{DxEMREditor.popEmrDataElementSetContent(Z,d,"down");return}}else if(--F<=-1)if(A<=0)F++;else{DxEMREditor.popEmrDataElementSetContent(Z,d,"up");return}D.find("[_rownum="+F+"]").mouseover();D.attr("currow",F)}else if(B==13){if(D.attr("first")=="true")D.removeAttr("first");else if(D.attr("emrsuntype")=="t1")D.find("[_rownum="+F+"]").click();else D.find("[_rownum="+F+"]").dblclick()}else if(B==37)DxEMREditor.popEmrDataElementSetContent(Z,d,"prev");else if(B==39)DxEMREditor.popEmrDataElementSetContent(Z,d,"next");else if(B==32){if(D.attr("emrsuntype")=="t2"||D.attr("emrsuntype")=="t3"){var _=D.find("[_rownum="+F+"]").find("input[type='checkbox']");if(_.prop("checked"))_.attr("checked",false);else _.attr("checked",true)}}else if(B==27){D.css("display","none");DxEMREditor.doclick(j)}E.cancelBubble=true;return false});I.keydown(function($){$.cancelBubble=true;return false})}else p=true;if(I.css("display")!="block"){var m=DxEMREditor.getSelection(K,j),L=DxEMREditor.getRange(m),R;if(top.isIE)R=L.offsetLeft-$(V).offset().left+V.scrollLeft;else R=$(DxEMREditor.rngDocument(L)).offset().left-$(V).offset().left+V.scrollLeft;var _;if(top.isIE)_=L.offsetTop;else _=$(DxEMREditor.rngDocument(L)).offset().top;var c;if(top.isIE)c=L.boundingHeight;else c=$(DxEMREditor.rngDocument(L)).height();c=parseInt(_)+parseInt(c)-$(V).offset().top+V.scrollTop;I.html(A);I.css({left:R,top:c,display:"block"})}else I.find("tbody").html(J);var T=I.children();$(T[0]).addClass("DxPopGridText-divList");var o=T.find("thead");o.addClass("DxPopGridText-divList");o.find("tr").addClass("DxPopGridText-divListTitle");o.find("td").addClass("DxPopGridText-divList");var k=T.find("tbody");k.addClass("DxPopGridText-divList");k.find("td").addClass("DxPopGridText-divList");var n=P;if(n==null)n=E_emrdataelement.E_get(B);var O=V.actionresource;V.actionresource=null;if(n!=null){var b=$(T).find("tr[meta=row]"),Q=DxEMREditor.findPageLocation(n,H,E),U="";if(q=="t2"||q=="t3")U=DxEMREditor.createMultiSelectInfo(n,E,q);I.get(0).rowdata=n;I.attr("rowcount",Q[4]);I.attr("currow",Q[5]);if(O=="key")I.attr("first","true");else I.attr("first","false");I.attr("currpage",Q[3]);I.attr("totalpage",Q[2]);I.attr("emrzskid",B);I.attr("emrtype",N);I.attr("emrvalue",E);I.attr("emrsuntype",q);I.attr("emrid",G);I.attr("multiinfo",U);if(P==null)I.focus();var l=Q[0],D=Q[1],M=null;for(var e=l,f=0;e<D;++e,++f){var W=n[e],g=b[0].cloneNode(true),C=$(g).children("td");for(var a=0;a<W.length;a++)if(q=="t1"){$(C.get(a)).html(W[a]);$(C.get(a)).css("color","#000")}else if(q=="t2"||q=="t3"){$(C.get(a+1)).html(W[a]);$(C.get(a+1)).css("color","#000")}if(q=="t2"||q=="t3")if(U[e]=="1"){var S=$(g).find("input[type='checkbox']");S.attr("checked",true)}b[0].parentNode.insertBefore(g,b[0]);if(!M)M=g;$(g).attr("_rownum",f);$(g).attr("_container",Y);$(g).attr("_input",d);$(g).attr("_winId",Z);$(g).attr("emrsuntype",q);$(g).removeClass();if(f%2==0)$(g).addClass("DxPopGridText-repList1");else $(g).addClass("DxPopGridText-repList2");$(g).mouseover(function(){$(this).css("background-color","#CCCCFF")});$(g).mouseout(function(){$(this).css("background-color","")});$(g).click(function(){if(q=="t1"){var B=top.E_clientModel.E_getWindow(Z),_=WatCore.getWindowDoc(Z,B),D=$(this).children("td"),C=$(D.get(0)).text(),A=$(D.get(1)).text();DxEMREditor.setEMRSelectValue(Z,d,G,C,A,_);I.css("display","none")}});$(g).dblclick(function(){if(q=="t2"||q=="t3"){var F=top.E_clientModel.E_getWindow(Z),D=WatCore.getWindowDoc(Z,F),L=$(this).children("td"),B=I.attr("multiinfo").split(","),J=I.find("tr[meta=row]"),A=H=="0"?0:parseInt(H)*ermpopnum;for(var M=0;M<J.length;M++){var _=$(J[M]).find("input[type='checkbox']");if(_.prop("checked"))B[A+M]="1";else B[A+M]=""}var K="",E="";for(M=0;M<B.length;M++)if(B[M]=="1")if(K==""){K+=n[M][0];E+=n[M][1]}else{K+="\u3001"+n[M][0];E+="\u3001"+n[M][1]}if(q=="t3"){var C=confirm("\u786e\u5b9a\u9009\u3010\u6709\u3011\uff0c\u53d6\u6d88\u9009\u3010\u65e0\u3011");if(C){K="1\xd7"+K;E="\u6709"+E}else{K="0\xd7"+K;E="\u65e0"+E}}DxEMREditor.setEMRSelectValue(Z,d,G,K,E,D);I.css("display","none")}})}I.find("[_rownum="+Q[5]+"]").mouseover();if(P==null||P==undefined)I.find("input[meta=input]").val("");else I.find("input[meta=input]").focus();if(!top.isIE)$("#popbuttontemplate",I.get(0)).focus();b.remove()}};DxEMREditor.createFilterInfo=function(A,$){var _=new Array();for(var B=0;B<A.length;B++)if(A[B][1].indexOf($)>=0||A[B][2].indexOf($)>=0)_.push(A[B]);return _};DxEMREditor.createMultiSelectInfo=function(D,A,F){var $=new Array(D.length);if(A==null||A=="")return $;if(F=="t3"){var _=A.split("\xd7");if(_.length!=2)return $;A=_[1]}var B=A.split("\u3001");for(var E=0;E<D.length;E++)for(var C=0;C<B.length;C++)if(D[E][0]==B[C]){$[E]="1";break}return $};DxEMREditor.findPageLocation=function(G,$,B){var F=0,A=0,E=parseInt(G.length/ermpopnum);if(G.length%ermpopnum!=0)E+=1;var D=-1;if(B!=null&&B!="")for(var H=0;H<G.length;H++)if(G[H][0]==B){D=H;break}var C=0;if(D>=0){$=parseInt(D/ermpopnum);if($==0)C=D;else C=D%ermpopnum}if($<0)$=0;if($>E)$=E;F=$*ermpopnum;A=($+1)*ermpopnum;if(A>=G.length)A=G.length;var _=A-F;return[F,A,E,$,_,C]};DxEMREditor.coverstarclick3=function(N,D,R){var G=DxEMREditor.getContainer(N);if(G==null)return;var Y=G.id,T=$(G).attr("wid"),l=DxEMREditor.getEditArea(Y,G);DxEMREditor.doclick(l);var o=DxEMREditor.getSelection(G,l),I=DxEMREditor.getRange(o),W=0,L=0,_=0,Z=0;G.rng=I;var i;if(top.isIE&&o.type=="Control"){i=I(0).parentElement;if(i.watflag!="true"){var r=I(0).parentElement.children;for(var b=0;b<r.length;b++){var j=r[b];if(j.watflag=="true"){i=j;break}}}}else{i=DxEMREditor.getwatdocument(I);L=I.offsetLeft;_=I.offsetTop;Z=I.boundingHeight;if(top.isIE)W=I.text.length;else W=I.toString().length;Z=parseInt(_)+parseInt(Z)}var U=$(i).attr("watflag"),M=$(i).attr("watstyle");if(U=="true"&&M!="1"||($(N).attr("wattype")=="yjs"&&M!="1")||($(N).attr("wattype")=="qcgs"&&M!="1")){var S=$(N).attr("wattype"),E=$(N).attr("watsuntype"),J=$(N).attr("watzskid"),m=$(N).attr("watid"),k=$(N).attr("watzsdid"),O=$(N).attr("watvalue"),X=$(N).attr("watvisibletype"),K=$(N).attr("watactionid");WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_TYPE,S);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ZSDID,k);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ID,m);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_VALUE,O);WatCore.setParameter(T,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(T,Y,top.DC.EMR_TOP,Z);WatCore.setParameter(T,Y,top.DC.EMR_VISIBLE_TYPE,X);WatCore.setParameter(T,Y,top.DC.EMR_ACTION_ID,K);if(S=="yjs"||N.wattype=="yjs"){if(S=="yjs"){var P=$("#yjsccnl",N).get(0),e=$("#yjsjjnl",N).get(0),B=$("#yjsjq",N).get(0),q=$("#yjszq",N).get(0),H=P.innerText,f=e.innerText,C=B.innerText,F=q.innerText,h=$(i).attr("watyjstype");WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_TYPE,S);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ZSDID,k);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ID,m);WatCore.setParameter(T,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(T,Y,top.DC.EMR_TOP,Z);WatCore.setParameter(T,Y,top.DC.EMR_YJS_CONTENT,H+"@wat@"+f+"@wat@"+C+"@wat@"+F+"@wat@"+h)}else if($(N).attr("wattype")=="yjs"){P=$("#yjsccnl",N).get(0),e=$("#yjsjjnl",N).get(0),B=$("#yjsjq",N).get(0),q=$("#yjsjq",N).get(0),H=P.innerText,f=e.innerText,C=B.innerText,F=q.innerText,h=$(N).attr("watyjstype");S=$(N).attr("wattype");E=$(N).attr("watsuntype");J=$(N).attr("watzskid");m=$(N).attr("watid");k=$(N).attr("watzsdid");WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_TYPE,S);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ZSDID,k);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ID,m);WatCore.setParameter(T,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(T,Y,top.DC.EMR_TOP,Z);WatCore.setParameter(T,Y,top.DC.EMR_YJS_CONTENT,H+"@wat@"+f+"@wat@"+C+"@wat@"+F+"@wat@"+h)}WatCore.call(T,Y,"select")}else if(S=="qcgs"||$(N).attr("wattype")=="qcgs"){if(S=="qcgs"){var A=$("#qclu",N).get(0),d=$("#qcru",N).get(0),a=$("#qcld",N).get(0),c=$("#qcrd",N).get(0),Q="&ensp;",V="&ensp;",g="&ensp;",n="&ensp;";if(A!=null)Q=A.innerText;if(d!=null)V=d.innerText;if(a!=null)g=a.innerText;if(c!=null)n=c.innerText;WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_TYPE,S);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ZSDID,k);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ID,m);WatCore.setParameter(T,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(T,Y,top.DC.EMR_TOP,Z);WatCore.setParameter(T,Y,top.DC.EMR_QCGS_CONTENT,m+"@wat@"+Q+"@wat@"+V+"@wat@"+g+"@wat@"+n)}else if($(N).attr("wattype")=="qcgs"){A=$("#qclu",N).get(0),d=$("#qcru",N).get(0),a=$("#qcld",N).get(0),c=$("#qcrd",N).get(0),Q="&ensp;",V="&ensp;",g="&ensp;",n="&ensp;";if(A!=null)Q=A.innerText;if(d!=null)V=d.innerText;if(a!=null)g=a.innerText;if(c!=null)n=c.innerText;S=$(N).attr("wattype");E=$(N).attr("watsuntype");J=$(N).attr("watzskid");m=$(N).attr("watid");k=$(N).attr("watzsdid");WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_TYPE,S);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ZSDID,k);WatCore.setParameter(T,Y,top.DC.EMR_DESIGN_ID,m);WatCore.setParameter(T,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(T,Y,top.DC.EMR_TOP,Z);WatCore.setParameter(T,Y,top.DC.EMR_QCGS_CONTENT,m+"@wat@"+Q+"@wat@"+V+"@wat@"+g+"@wat@"+n)}WatCore.call(T,Y,"select")}else if((S=="s1"||S=="s2")&&(E=="t1"||E=="t2"||E=="t3")){if(E=="t4");else{G.wrap.actionresource=R;var p=E_emrdataelement.E_get(J);if(p!=null)DxEMREditor.popEmrDataElementSelector(T,Y,m,J,O,S,E,0);else WatCore.call(T,Y,"emrdataelement")}}else WatCore.call(T,Y,"select")}};DxEMREditor.coverstarclick=function(N,D){if(true)return;var G=DxEMREditor.getContainer(N);if(G==null)return;var Y=G.id,S=$(G).attr("wid"),k=DxEMREditor.getEditArea(Y,G);DxEMREditor.doclick(k);var n=k.document.selection,I=n.createRange(),V=0,L=0,_=0,X=0;G.rng=I;var h;if(n.type=="Control"){h=I(0).parentElement;if(h.watflag!="true"){var p=I(0).parentElement.children;for(var a=0;a<p.length;a++){var i=p[a];if(i.watflag=="true"){h=i;break}}}}else{h=DxEMREditor.getwatdocument(I);L=I.offsetLeft;_=I.offsetTop;X=I.boundingHeight;V=I.text.length;X=parseInt(_)+parseInt(X)}var T=h.watflag,M=G.watstyle;if(T=="true"&&M!="1"||(N.wattype=="yjs"&&M!="1")||(N.wattype=="qcgs"&&M!="1")){var R=N.wattype,E=N.watsuntype,J=N.watzskid,l=N.watid,j=N.watzsdid,O=N.watvalue,W=N.watvisibletype,K=N.watactionid;WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_TYPE,R);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSDID,j);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ID,l);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_VALUE,O);WatCore.setParameter(S,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(S,Y,top.DC.EMR_TOP,X);WatCore.setParameter(S,Y,top.DC.EMR_VISIBLE_TYPE,W);WatCore.setParameter(S,Y,top.DC.EMR_ACTION_ID,K);if(R=="yjs"||N.wattype=="yjs"){if(R=="yjs"){var P=$("#yjsccnl",N).get(0),d=$("#yjsjjnl",N).get(0),B=$("#yjsjq",N).get(0),o=$("#yjszq",N).get(0),H=P.innerText,e=d.innerText,C=B.innerText,F=o.innerText,g=h.watyjstype;WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_TYPE,R);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSDID,j);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ID,l);WatCore.setParameter(S,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(S,Y,top.DC.EMR_TOP,X);WatCore.setParameter(S,Y,top.DC.EMR_YJS_CONTENT,H+"@wat@"+e+"@wat@"+C+"@wat@"+F+"@wat@"+g)}else if(N.wattype=="yjs"){P=$("#yjsccnl",N).get(0),d=$("#yjsjjnl",N).get(0),B=$("#yjsjq",N).get(0),o=$("#yjsjq",N).get(0),H=P.innerText,e=d.innerText,C=B.innerText,F=o.innerText,g=N.watyjstype;R=N.wattype;E=N.watsuntype;J=N.watzskid;l=N.watid;j=N.watzsdid;WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_TYPE,R);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSDID,j);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ID,l);WatCore.setParameter(S,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(S,Y,top.DC.EMR_TOP,X);WatCore.setParameter(S,Y,top.DC.EMR_YJS_CONTENT,H+"@wat@"+e+"@wat@"+C+"@wat@"+F+"@wat@"+g)}}else if(R=="qcgs"||N.wattype=="qcgs")if(R=="qcgs"){var A=$("#qclu",N).get(0),c=$("#qcru",N).get(0),Z=$("#qcld",N).get(0),b=$("#qcrd",N).get(0),Q="&ensp;",U="&ensp;",f="&ensp;",m="&ensp;";if(A!=null)Q=A.innerText;if(c!=null)U=c.innerText;if(Z!=null)f=Z.innerText;if(b!=null)m=b.innerText;WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_TYPE,R);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSDID,j);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ID,l);WatCore.setParameter(S,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(S,Y,top.DC.EMR_TOP,X);WatCore.setParameter(S,Y,top.DC.EMR_QCGS_CONTENT,l+"@wat@"+Q+"@wat@"+U+"@wat@"+f+"@wat@"+m)}else if(N.wattype=="qcgs"){A=$("#qclu",N).get(0),c=$("#qcru",N).get(0),Z=$("#qcld",N).get(0),b=$("#qcrd",N).get(0),Q="&ensp;",U="&ensp;",f="&ensp;",m="&ensp;";if(A!=null)Q=A.innerText;if(c!=null)U=c.innerText;if(Z!=null)f=Z.innerText;if(b!=null)m=b.innerText;R=N.wattype;E=N.watsuntype;J=N.watzskid;l=N.watid;j=N.watzsdid;WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_TYPE,R);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_SUNTYPE,E);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSKID,J);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ZSDID,j);WatCore.setParameter(S,Y,top.DC.EMR_DESIGN_ID,l);WatCore.setParameter(S,Y,top.DC.EMR_LEFT,L);WatCore.setParameter(S,Y,top.DC.EMR_TOP,X);WatCore.setParameter(S,Y,top.DC.EMR_QCGS_CONTENT,l+"@wat@"+Q+"@wat@"+U+"@wat@"+f+"@wat@"+m)}WatCore.call(S,Y,"select")}};DxEMREditor.eventclick=function(H){var B=DxEMREditor.getContainer(H);if(B==null)return;var P=B.id,K=$(B).attr("wid"),U=DxEMREditor.getEditArea(P,B);DxEMREditor.doclick(U);if(DxEMREditor.isWatCellSelected(B,U));else if(DxEMREditor.isSelectedHasWatcell(B,U)){alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}var W=U.document.selection,C=W.createRange(),M=0,F=0,_=0,O=0;B.rng=C;var R;if(W.type=="Control"){R=C(0).parentElement;if(R.watflag!="true"){var X=C(0).parentElement.children;for(var Q=0;Q<X.length;Q++){var S=X[Q];if(S.watflag=="true"){R=S;break}}}}else{R=DxEMREditor.getwatdocument(C);F=C.offsetLeft;_=C.offsetTop;O=C.boundingHeight;M=C.text.length;O=parseInt(_)+parseInt(O)}var L=H.watflag,E=H.watactionid,G=B.watstyle;if(L=="true"&&G!="1"&&E!=""){var J=H.wattype,A=H.watsuntype,D=H.watzskid,V=H.watid,T=H.watzsdid,I=H.watvalue,N=H.watvisibletype;WatCore.setParameter(K,P,top.DC.EMR_DESIGN_TYPE,J);WatCore.setParameter(K,P,top.DC.EMR_DESIGN_SUNTYPE,A);WatCore.setParameter(K,P,top.DC.EMR_DESIGN_ZSKID,D);WatCore.setParameter(K,P,top.DC.EMR_DESIGN_ZSDID,T);WatCore.setParameter(K,P,top.DC.EMR_DESIGN_ID,V);WatCore.setParameter(K,P,top.DC.EMR_DESIGN_VALUE,I);WatCore.setParameter(K,P,top.DC.EMR_LEFT,F);WatCore.setParameter(K,P,top.DC.EMR_TOP,O);WatCore.setParameter(K,P,top.DC.EMR_VISIBLE_TYPE,N);WatCore.setParameter(K,P,top.DC.EMR_ACTION_ID,E);WatCore.call(K,P,"watemraction")}};DxEMREditor.setEMRDesignProperty=function(F,H,G,D,B){try{var A=top.E_getObject(F,H,B),E=DxEMREditor.getEditArea(H,A);DxEMREditor.doclick(E);var C=A.rng;if(C==null)return;DxEMREditor.select(A,E,C);DxEMREditor.saveHistory(A,E);var I=$("#"+G,E).get(0);if(I!=null){I.outerHTML=D;DxEMREditor.blurText_(F,H,E);DxEMREditor.processPageLine(F,H,false)}}catch(_){}};DxEMREditor.setEMRDesignPropertyreleation=function(D,F,E,B,A){var _=top.E_getObject(D,F,A),C=DxEMREditor.getEditArea(F,_);DxEMREditor.doclick(C);DxEMREditor.saveHistory(_,C);var G=$("#"+E,C).get(0);if(G!=null){G.outerHTML=B;DxEMREditor.blurText_(D,F,C);DxEMREditor.processPageLine(D,F,false)}};DxEMREditor.setEMRDesignCancel=function(D,F,A){var _=top.E_getObject(D,F,A),C=DxEMREditor.getEditArea(F,_),$=_.wrap,E=parseInt($.scrollTop);DxEMREditor.doclick(C);var B=_.rng;if(B==null)return;B.select();DxEMREditor.processPageLine(D,F,false);$.scrollTop=E};DxEMREditor.setEMRSelectValue=function(S,V,C,L,J,Q){var G=top.E_getObject(S,V,Q),Z=DxEMREditor.getEditArea(V,G),N=G.wrap,U=parseInt(N.scrollTop);DxEMREditor.doclick(Z);var I,a=DxEMREditor.getSelection(G,Z),I=DxEMREditor.getRange(a),M=$(G).attr("watstyle");DxEMREditor.saveHistory(G,Z);if(M=="2"){var D=$("#"+C,Z).get(0);if(D!=null){try{if(top.isIE){I.moveToElementText(D);I.collapse(false);I.select()}else{I.selectNodeContents(D);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}}catch(P){}D.innerText=J;$(D).attr("watvalue",L);if($(D).attr("wattype")=="s1"&&($(D).attr("watsuntype")=="t4"||$(D).attr("watsuntype")=="t5"||$(D).attr("watsuntype")=="t6"))D.className="Emr_inputinfo_edit";else if($(D).attr("watsuntype")=="t1"&&($(D).attr("wattype")=="s1"||$(D).attr("wattype")=="s2"))D.className="Emr_singleselect_edit";else if($(D).attr("watsuntype")=="t2"&&($(D).attr("wattype")=="s1"||$(D).attr("wattype")=="s2"))D.className="Emr_multiselect_edit";else if($(D).attr("watsuntype")=="t3"&&($(D).attr("wattype")=="s1"||$(D).attr("wattype")=="s2"))D.className="Emr_hasnoselect_edit"}}else if(M=="3"){var F=$(G).attr("username"),K=(new Date()).toLocaleString(),H=$(G).attr("isMasterUser"),D=$("#"+C,Z).get(0);if(D!=null){$(D).attr("watvalue",L);if(top.isIE){I.moveToElementText(D);I.collapse(false);I.select()}else{I.selectNodeContents(D);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}var Y=DxEMREditor.getwatdocument(I),E=Y.getElementsByTagName("del");if(E==null||E.length==0){var A=Y.innerText;A="<DEL masterid='"+H+"' cite='"+F+"' datetime='"+K+"'"+(H=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+A+"</DEL>";var X="<INS masterid='"+H+"' cite='"+F+"' datetime='"+K+"'"+(H=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+J+"</INS>";Y.innerHTML=A+X}else{for(var W=0;W<E.length;W++){var R=E[W];if(R.attributes["cite"].nodeValue!=F){alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u533b\u751f\u7684\u7559\u75d5\u4fe1\u606f");return false}}var _=Y.getElementsByTagName("ins"),X="<INS masterid='"+H+"' cite='"+F+"' datetime='"+K+"'"+(H=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+J+"</INS>";for(W=0;W<_.length;W++){R=_[W];R.outerHTML=""}Y.innerHTML=Y.innerHTML+X}if($(D).attr("wattype")=="s1"&&($(D).attr("watsuntype")=="t4"||$(D).attr("watsuntype")=="t5"||$(D).attr("watsuntype")=="t6"))D.className="Emr_inputinfo_edit";else if($(D).attr("watsuntype")=="t1"&&($(D).attr("wattype")=="s1"||$(D).attr("wattype")=="s2"))D.className="Emr_singleselect_edit";else if($(D).attr("watsuntype")=="t2"&&($(D).attr("wattype")=="s1"||$(D).attr("wattype")=="s2"))D.className="Emr_multiselect_edit";else if($(D).attr("watsuntype")=="t3"&&($(D).attr("wattype")=="s1"||$(D).attr("wattype")=="s2"))D.className="Emr_hasnoselect_edit"}}else if(M=="4"){F=$(G).attr("username"),K=(new Date()).toLocaleString(),H=$(G).attr("isMasterUser"),D=$("#"+C,Z).get(0);if(D!=null){$(D).attr("watvalue",L);if(top.isIE){I.moveToElementText(D);I.collapse(false);I.select()}else{I.selectNodeContents(D);I.setEnd(I.endContainer,I.endOffset);I.setStart(I.startContainer,I.endOffset)}Y=DxEMREditor.getwatdocument(I),E=Y.getElementsByTagName("del");if(E==null||E.length==0){A=Y.innerText;A="<DEL masterid='"+H+"' cite='"+F+"' datetime='"+K+"'"+(H=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+A+"</DEL>";X="<INS masterid='"+H+"' cite='"+F+"' datetime='"+K+"'"+(H=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+J+"</INS>";Y.innerHTML=A+X}else{for(W=0;W<E.length;W++){R=E[W];if(R.attributes["cite"].nodeValue!=F){var B=R.attributes["masterid"].nodeValue;if(parseInt(B)>=parseInt(H)){alert("\u4e0d\u80fd\u53bb\u9664\u5176\u4ed6\u533b\u751f\u7684\u7559\u75d5\u4fe1\u606f");return false}}}_=Y.getElementsByTagName("ins"),X="<INS masterid='"+H+"' cite='"+F+"' datetime='"+K+"'"+(H=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+J+"</INS>";for(W=0;W<_.length;W++){R=_[W],B=R.attributes["masterid"].nodeValue;if(parseInt(B)==parseInt(H)&&R.attributes["cite"].nodeValue==F)R.outerHTML="";else{var O=R.innerText,T=R.cite+" "+R.dateTime+" \u63d2\u5165\u7684\u5185\u5bb9";R.innerHTML="<DEL oldhj='"+T+"' masterid='"+H+"' cite='"+F+"' datetime='"+K+"'"+(H=="1"?" class='emr_del_scar'":" class='emr_del_two_scar'")+">"+O+"</DEL>"}}Y.innerHTML=Y.innerHTML+X}if($(D).attr("wattype")=="s1"&&($(D).attr("watsuntype")=="t4"||$(D).attr("watsuntype")=="t5"||$(D).attr("watsuntype")=="t6"))D.className="Emr_inputinfo_edit";else if($(D).attr("watsuntype")=="t1"&&($(D).attr("wattype")=="s1"||$(D).attr("wattype")=="s2"))D.className="Emr_singleselect_edit";else if($(D).attr("watsuntype")=="t2"&&($(D).attr("wattype")=="s1"||$(D).attr("wattype")=="s2"))D.className="Emr_multiselect_edit";else if($(D).attr("watsuntype")=="t3"&&($(D).attr("wattype")=="s1"||$(D).attr("wattype")=="s2"))D.className="Emr_hasnoselect_edit"}}DxEMREditor.blurText_(S,V,Z);DxEMREditor.processPageLine(S,V,false);N.scrollTop=U};DxEMREditor.setEMRSelectValueCaninput=function(B,E,F,S,L,A){var J=top.E_getObject(B,E,A),O=DxEMREditor.getEditArea(E,J),_=J.wrap,C=parseInt(_.scrollTop);DxEMREditor.doclick(O);var M,Q=O.document.selection,M=Q.createRange(),R=J.watstyle;DxEMREditor.saveHistory(J,O);if(R=="2"){var G=$("#"+F,O).get(0);if(G!=null){M.moveToElementText(G);M.collapse(false);M.select();M.pasteHTML(L);G.watvalue=S;if(G.wattype=="s1"&&(G.watsuntype=="t4"||G.watsuntype=="t5"||G.watsuntype=="t6"))G.className="Emr_inputinfo_edit";else if(G.watsuntype=="t1"&&(G.wattype=="s1"||G.wattype=="s2"))G.className="Emr_singleselect_edit";else if(G.watsuntype=="t2"&&(G.wattype=="s1"||G.wattype=="s2"))G.className="Emr_multiselect_edit";else if(G.watsuntype=="t3"&&(G.wattype=="s1"||G.wattype=="s2"))G.className="Emr_hasnoselect_edit"}}else if(R=="3"){var H=J.username,P=(new Date()).toLocaleString(),K=J.isMasterUser,G=$("#"+F,O).get(0);if(G!=null){G.watvalue=S;M.moveToElementText(G);M.collapse(false);M.select();var N=DxEMREditor.getDelElement(M);if(N.tagName=="DEL"){var D=$("<INS masterid='"+K+"' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+L+"</INS>");D.insertAfter($(N).closest("del"));M.moveToElementText(D[0]);M.collapse(false);M.select()}else{var I="<INS masterid='"+K+"' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+L+"</INS>";M.pasteHTML(I)}if(G.wattype=="s1"&&(G.watsuntype=="t4"||G.watsuntype=="t5"||G.watsuntype=="t6"))G.className="Emr_inputinfo_edit";else if(G.watsuntype=="t1"&&(G.wattype=="s1"||G.wattype=="s2"))G.className="Emr_singleselect_edit";else if(G.watsuntype=="t2"&&(G.wattype=="s1"||G.wattype=="s2"))G.className="Emr_multiselect_edit";else if(G.watsuntype=="t3"&&(G.wattype=="s1"||G.wattype=="s2"))G.className="Emr_hasnoselect_edit"}}else if(R=="4"){H=J.username,P=(new Date()).toLocaleString(),K=J.isMasterUser,G=$("#"+F,O).get(0);if(G!=null){G.watvalue=S;M.moveToElementText(G);M.collapse(false);M.select();N=DxEMREditor.getDelElement(M);if(N.tagName=="DEL"){D=$("<INS masterid='"+K+"' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+L+"</INS>");D.insertAfter($(N).closest("del"));M.moveToElementText(D[0]);M.collapse(false);M.select()}else{I="<INS masterid='"+K+"' cite='"+H+"' datetime='"+P+"'"+(K=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+L+"</INS>";M.pasteHTML(I)}if(G.wattype=="s1"&&(G.watsuntype=="t4"||G.watsuntype=="t5"||G.watsuntype=="t6"))G.className="Emr_inputinfo_edit";else if(G.watsuntype=="t1"&&(G.wattype=="s1"||G.wattype=="s2"))G.className="Emr_singleselect_edit";else if(G.watsuntype=="t2"&&(G.wattype=="s1"||G.wattype=="s2"))G.className="Emr_multiselect_edit";else if(G.watsuntype=="t3"&&(G.wattype=="s1"||G.wattype=="s2"))G.className="Emr_hasnoselect_edit"}}DxEMREditor.blurText_(B,E,O);DxEMREditor.processPageLine(B,E,false);_.scrollTop=C};DxEMREditor.clearEMRSectionValue=function(B,C,D,J,A){var H=top.E_getObject(B,C,A),K=DxEMREditor.getEditArea(C,H);DxEMREditor.doclick(K);var F=$("#"+D,K).get(0),E=$("#"+J,K).get(0),_="";if(F!=null&&E){var I,L=DxEMREditor.getSelection(H,K),I=DxEMREditor.getRange(L);I.moveToElementText(E);I.select();I.moveStart("character",-1);I.moveEnd("character",-1);var G=DxEMREditor.htmlText(I);while(G.indexOf(D)<0&&G.indexOf("watend")<0){I.moveStart("character",-1);G=DxEMREditor.htmlText(I)}I.moveStart("character",0);I.moveStart("character",1);I.select();_=I.htmlText;I.execCommand("Delete");I.moveStart("character",0);I.moveEnd("character",0);I.select();DxEMREditor.processPageLine(B,C,false)}return _};DxEMREditor.insertAfter=function(_,C,B){try{while(_.tagName!="SPAN"&&$(_).attr("watflag")!="true")_=_.parentElement();var E=B.createElement("span");E.innerHTML=C;var D=_.parentNode;if(D.lastChild===_)D.appendChild(E);else D.insertBefore(E,_.nextSibling);return E}catch(A){alert(A.message)}};DxEMREditor.setEMRSectionValue=function(D,G,H,Q,O,C){var L=top.E_getObject(D,G,C),R=DxEMREditor.getEditArea(G,L);DxEMREditor.doclick(R);var P,T=R.document.selection,P=T.createRange(),U=L.watstyle;DxEMREditor.saveHistory(L,R);var J=$("#"+H,R).get(0),F=$("#"+Q,R).get(0),_=DxEMREditor.clearEMRSectionValue(D,G,H,Q,C),A=J.innerHTML;if(A!="["){var B=A.split("[");A="";for(var I=0;I<B.length;I++)A+=B[I];J.innerHTML="["}else A="";var M=F.innerHTML;if(M!="]"){B=M.split("]");M="";for(I=0;I<B.length;I++)M+=B[I];F.innerHTML="]"}else M="";if(J!=null&&F!=null){P.moveToElementText(F);P.select();P.moveStart("character",-1);P.moveEnd("character",-1);if(P.htmlText.indexOf(H)>=0){if(U=="2"){var E=DxEMREditor.insertAfter(P.parentElement(),A+_+O+M,C);P.moveToElementText(E);P.collapse(false);P.select()}else if(U=="3"){var K=L.username,S=(new Date()).toLocaleString(),N=L.isMasterUser,E=DxEMREditor.insertAfter(P.parentElement(),"<INS masterid='"+N+"' cite='"+K+"' datetime='"+S+"'"+(N=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+A+_+O+M+"</INS>",C);P.moveToElementText(E);P.collapse(false);P.select()}else if(U=="4"){K=L.username,S=(new Date()).toLocaleString(),N=L.isMasterUser,E=DxEMREditor.insertAfter(P.parentElement(),"<INS masterid='"+N+"' cite='"+K+"' datetime='"+S+"'"+(N=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+A+_+O+M+"</INS>",C);P.moveToElementText(E);P.collapse(false);P.select()}}else if(U=="2"){P.moveStart("character",0);P.moveEnd("character",0);P.collapse(false);P.select();P.pasteHTML(A+_+O+M);P.moveStart("character",0);P.moveEnd("character",0);P.select()}else if(U=="3"){K=L.username,S=(new Date()).toLocaleString(),N=L.isMasterUser;P.moveStart("character",0);P.moveEnd("character",0);P.collapse(false);P.select();P.pasteHTML("<INS masterid='"+N+"' cite='"+K+"' datetime='"+S+"'"+(N=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+A+_+O+M+"</INS>");P.moveStart("character",0);P.moveEnd("character",0);P.select()}else if(U=="4"){K=L.username,S=(new Date()).toLocaleString(),N=L.isMasterUser;P.moveStart("character",0);P.moveEnd("character",0);P.collapse(false);P.select();P.pasteHTML("<INS masterid='"+N+"' cite='"+K+"' datetime='"+S+"'"+(N=="1"?" class='emr_ins_scar'":" class='emr_ins_two_scar'")+">"+A+_+O+M+"</INS>");P.moveStart("character",0);P.moveEnd("character",0);P.select()}DxEMREditor.blurText_(D,G,R);DxEMREditor.processPageLine(D,G,false)}};DxEMREditor.fyfformserver=function(A,B,_){var $="<DIV class=emr_fyf contentEditable=false watfyf><TABLE contentEditable=false width='100%' height=1><TBODY><TR><TD width='50%'><SPAN style='WIDTH: 100%; BACKGROUND: #c5c5c5; HEIGHT: 1px; FONT-SIZE: 0px'></SPAN></TD><TD><SPAN style='TEXT-ALIGN: center; WIDTH: 60px; FONT-SIZE: 12px'>\u5206\u9875\u7b26</SPAN></TD><TD width='50%'><SPAN style='WIDTH: 100%; BACKGROUND: #c5c5c5; HEIGHT: 1px; FONT-SIZE: 0px'></SPAN></TD></TR></TBODY></TABLE></DIV>";DxEMREditor.inputTextFormServer(A,B,_,$)};DxEMREditor.yjseditor=function(F,G,D,H,N,C,K,M,O){var L=top.E_getObject(F,G,D);if(L==null)return;var I=L.id,P=DxEMREditor.getEditArea(I,L),B=$("#"+H,P).get(0);B.watyjstype=O;var E=$("#yjstable",B).get(0),A=$("#yjsccnl",B).get(0),J=$("#yjsjjnl",B).get(0),_=$("#yjsjq",B).get(0),Q=$("#yjszq",B).get(0);A.innerText=N;J.innerText=M;_.innerText=C;Q.innerText=K;DxEMREditor.blurText_(F,G,P)};DxEMREditor.qcgseditor=function(C,E,A,F,B,D,M,O){var L=top.E_getObject(C,E,A);if(L==null)return;var J=L.id,N=DxEMREditor.getEditArea(J,L),K=$("#"+F,N).get(0),_=$("#qclu",K).get(0),I=$("#qcru",K).get(0),G=$("#qcld",K).get(0),H=$("#qcrd",K).get(0);if(_!=null)_.innerText=B;if(I!=null)I.innerText=D;if(G!=null)G.innerText=M;if(H!=null)H.innerText=O;DxEMREditor.blurText_(C,E,N)};DxEMREditor.checkboxformserver=function(A,B,_){var $="<SPAN contentEditable=false style='HEIGHT: 3px; WIDTH: 9px'><INPUT type=checkbox> </SPAN>";DxEMREditor.inputTextFormServer(A,B,_,$)};DxEMREditor.spcformserver=function(A,B,_){var $="<DIV contentEditable=false style='FONT-SIZE: 0px; HEIGHT: 1px'><hr style='background-color:#000000;height: 1.5px;border: 0px;'></DIV>";DxEMREditor.inputTextFormServer(A,B,_,$)};DxEMREditor.setEMRPagePadding=function(C,F,A,_){var $=top.E_getObject(C,F,_),B=$.content,E=A.split("&");if(E.length==4){B.style.borderLeft=E[0]+"mm"+" solid #ffffff";B.style.borderRight=E[1]+"mm"+" solid #ffffff";$.pl=E[0];$.pr=E[1];$.pt=E[2];$.pb=E[3];DxEMREditor.initEdit(C,F)}else if(E.length==6){B.style.borderLeft=E[0]+"mm"+" solid #ffffff";B.style.borderRight=E[1]+"mm"+" solid #ffffff";$.pl=E[0];$.pr=E[1];$.pt=E[2];$.pb=E[3];if(top.isIE)B.style.width=E[4]+"mm";else B.style.width=E[4]-E[0]-E[1]+"mm";var D=E[5]-E[2]-E[3];B.style.minHeight=D+"mm";if(top.isIE)B.style.height=D+"mm";else B.style.height="auto";$.pageheight=E[5];$.pagewidth=E[4];DxEMREditor.initEdit(C,F)}DxEMREditor.processPageLine(C,F,true)};DxEMREditor.fyf=function(E){var C=DxEMREditor.getContainer(E);if(C==null)return;var A=C.id,B=$(C).attr("wid"),D=DxEMREditor.getEditArea(A,C),_="<DIV class=emr_fyf contentEditable=false watfyf><TABLE contentEditable=false width='100%' height=1><TBODY><TR><TD width='50%'><SPAN style='WIDTH: 100%; BACKGROUND: #c5c5c5; HEIGHT: 1px; FONT-SIZE: 0px'></SPAN></TD><TD><SPAN style='TEXT-ALIGN: center; WIDTH: 60px; FONT-SIZE: 12px'>\u5206\u9875\u7b26</SPAN></TD><TD width='50%'><SPAN style='WIDTH: 100%; BACKGROUND: #c5c5c5; HEIGHT: 1px; FONT-SIZE: 0px'></SPAN></TD></TR></TBODY></TABLE></DIV>";DxEMREditor.inputTextFormServer__(B,A,C,D,_)};DxEMREditor.fyf_=function(B,C){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),$="<DIV class=emr_fyf contentEditable=false watfyf><TABLE contentEditable=false width='100%' height=1><TBODY><TR><TD width='50%'><SPAN style='WIDTH: 100%; BACKGROUND: #c5c5c5; HEIGHT: 1px; FONT-SIZE: 0px'></SPAN></TD><TD><SPAN style='TEXT-ALIGN: center; WIDTH: 60px; FONT-SIZE: 12px'>\u5206\u9875\u7b26</SPAN></TD><TD width='50%'><SPAN style='WIDTH: 100%; BACKGROUND: #c5c5c5; HEIGHT: 1px; FONT-SIZE: 0px'></SPAN></TD></TR></TBODY></TABLE></DIV>";DxEMREditor.inputTextFormServer(B,C,_,$)};DxEMREditor.spc_=function(E){var C=DxEMREditor.getContainer(E);if(C==null)return;var A=C.id,B=$(C).attr("wid"),D=DxEMREditor.getEditArea(A,C),_="<HR>";DxEMREditor.inputTextFormServer__(B,A,C,D,_)};DxEMREditor.spc=function(G,H){var E=top.E_clientModel.E_getWindow(G),D=WatCore.getWindowDoc(G,E),C=top.E_getObject(G,H,D),A=C.id,B=$(C).attr("wid"),F=DxEMREditor.getEditArea(A,C),_="<DIV contentEditable=false style='FONT-SIZE: 0px; HEIGHT: 1px'><hr style='background-color:#000000;height: 1.5px;border: 0px;'></DIV>";DxEMREditor.inputTextFormServer__(B,A,C,F,_)};DxEMREditor.setUsername=function(B,C,A,_){var $=top.E_getObject(B,C,_);$.username=A};DxEMREditor.GetCursorPsnForRange=function(A,B,C){var _=0,$=A.parentElement(),D=C.document.body.createTextRange();D.moveToElementText($);for(_=0;D.compareEndPoints("StartToStart",A)<0;_++)D.moveStart("character",1);if(D.compareEndPoints("StartToStart",A)!=0)_--;return _};DxEMREditor.inputTextFormServer__=function(C,E,I,M,G){var K=I.rng;if(K==null){alert("\u8bf7\u9009\u62e9\u9700\u8981\u63d2\u5165\u6587\u672c\u7684\u5730\u65b9");return}DxEMREditor.saveHistory(I,M);DxEMREditor.setActive(I,M,K);var _=I.wrap,D=parseInt(_.scrollTop),J;if(top.isIE)J=K.offsetTop;var L=DxEMREditor.getwatdocument(K);if($(L).attr("watflag")=="true"&&$(L).attr("watsuntype")!="t11"){var F;try{F=$(G);if(F[0]==null)F=$("<span>"+G+"</span>")}catch(A){F=$("<span>"+G+"</span>")}var B=DxEMREditor.decideCursorLocationInEmrElement(I,M,L);if(B=="-1"){F.insertBefore($(L).closest("span"));if(top.isIE){K.moveToElementText(F[0]);K.collapse(false);K.select()}else{K.selectNodeContents(F[0]);K.setEnd(K.endContainer,K.endOffset);K.setStart(K.startContainer,K.endOffset)}}else if(B=="1"){F.insertAfter($(L).closest("span"));if(top.isIE){K.moveToElementText(F[0]);K.collapse(false);K.select()}else{K.selectNodeContents(F[0]);K.setEnd(K.endContainer,K.endOffset);K.setStart(K.startContainer,K.endOffset)}}else if(B=="0"){F.insertAfter($(L).closest("span"));if(top.isIE){K.moveToElementText(F[0]);K.collapse(false);K.select()}else{K.selectNodeContents(F[0]);K.setEnd(K.endContainer,K.endOffset);K.setStart(K.startContainer,K.endOffset)}}}else{var P=$(I).attr("watstyle");if(P=="3"||P=="4")DxEMREditor.inputtxt_(I,M,K);var O=DxEMREditor.getSelection(I,M);DxEMREditor.pasteHTML(O,K,G)}_.scrollTop=D;var H=parseInt(_.scrollHeight),Q=parseInt(_.clientHeight),N=D+Q;if(N>=H-50)_.scrollTop=D+50;DxEMREditor.blurText_(C,E,M);DxEMREditor.processPageLine(C,E,false)};DxEMREditor.pasteHTML=function(C,_,$){if(top.isIE){_.pasteHTML($);_.collapse(false);_.select()}else{var B=_.createContextualFragment($),A=B.lastChild;_.insertNode(B);_.setEndAfter(A);_.setStartAfter(A);C.removeAllRanges();C.addRange(_)}};DxEMREditor.inputTextFormServer=function(C,D,A,$){var _=top.E_getObject(C,D,A),B=DxEMREditor.getEditArea(D,_);DxEMREditor.inputTextFormServer__(C,D,_,B,$)};DxEMREditor.decideCursorLocationInEmrElement=function(F,I,G){if($(G).attr("watflag")!="true")return 2;if(top.isIE){var J=$(G).attr("watid"),L=DxEMREditor.crxq4(false,F,I),_=L[0],H=L[1],A=DxEMREditor.getwatdocument(H),K=DxEMREditor.getWatId(A);if(top.isIE){H.moveStart("character",-1);H.moveEnd("character",0);H.collapse(true);H.select()}else{var D=H.startContainer,C=H.startOffset;H.setStart(D,C-1);H.setEnd(D,C-1)}if(J==K){L=DxEMREditor.crxq4(true,F,I);_=L[0];H=L[1];A=DxEMREditor.getwatdocument(H);K=DxEMREditor.getWatId(A);if(top.isIE){H.moveStart("character",1);H.moveEnd("character",0);H.collapse(true);H.select()}else{D=H.startContainer,C=H.startOffset;H.setStart(D,C+1);H.setEnd(D,C+1)}if(J==K)return 0;else return-1}else return 1}else{var E=DxEMREditor.Range(F,I),B=E.range,D=B.startContainer,C=B.startOffset;if(C==0)return-1;else if(C==D.length)return 1;else if(C<D.length)return 0;else return 2}};DxEMREditor.moveCursorInEmrElement=function(C,H,E,_,D){if($(E).attr("watflag")!="true")return false;var G=$(E).attr("watid"),J=DxEMREditor.crxq4(false,C,H),A=J[0],F=J[1],B=DxEMREditor.getwatdocument(F),I=DxEMREditor.getWatId(B);F.moveStart("character",-1);F.moveEnd("character",0);F.collapse(true);F.select();if(G==I){J=DxEMREditor.crxq4(true,C,H);A=J[0];F=J[1];B=DxEMREditor.getwatdocument(F);I=DxEMREditor.getWatId(B);F.moveStart("character",-1);F.moveEnd("character",0);F.collapse(true);F.select();if(G==I)return 0;else return-1}else return 1};DxEMREditor.inputBox=function(_,A,$){DxEMREditor.inputTextFormServer(_,A,$,"<span style='border-bottom:1px solid #000;border-left:2px solid #000;border-top:1px solid #000;border-right:1px solid #000' contentEditable=true>&ensp;&ensp;&ensp;&ensp;</span>")};DxEMREditor.setEMRSectionEnd=function(C,E,G,B){var F=top.E_getObject(C,E,B),K=DxEMREditor.getEditArea(E,F);DxEMREditor.doclick(K);var H=F.rng;if(H==null)return;if(DxEMREditor.isWatCellSelected3(H)){DxEMREditor.select(F,K,H);alert("\u4e0d\u80fd\u9009\u62e9\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}else if(DxEMREditor.isSelectedHasWatcell2(F,K,H)){DxEMREditor.select(F,K,H);alert("\u9009\u62e9\u6587\u672c\uff0c\u4e0d\u80fd\u5305\u542b\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u7535\u5b50\u75c5\u5386\u5143\u7d20\uff0c\u8981\u4e48\u53ea\u9009\u62e9\u975e\u7535\u5b50\u75c5\u5386\u5143\u7d20");return false}DxEMREditor.select(F,K,H);var A=DxEMREditor.GetCursorPsn(F,K),L=DxEMREditor.crxq4(false,F,K),_=L[0],J=L[1],I=DxEMREditor.rngDocument(J);if($(I).attr("watflag")=="true"&&A==0){J.moveStart("character",-1);J.moveEnd("character",0);J.collapse(true);J.select();H.select();H.text="";var D=$("<span>&ensp;</span>");D.insertBefore($(DxEMREditor.rngDocument(H)).closest("span"));H.moveToElementText(D[0]);D=$("<span>&ensp;</span>");D.insertAfter($(DxEMREditor.rngDocument(H)).closest("span"));H.moveToElementText(D[0]);H.pasteHTML(G);return}else{J.moveStart("character",-1);J.moveEnd("character",0);J.collapse(true);J.select()}DxEMREditor.select(F,K,H);H.text="";H.pasteHTML(G)};DxEMREditor.setHdyContent=function(F,I,D,H,A,G){var B=top.E_getObject(F,I,D);if(B==null)return;var _=B.id,E;if(G==null||G=="content")E=B.content;else if(G=="header")E=B.headercontent;else if(G=="footer")E=B.footercontent;var C=$("#"+H,E).get(0);if(C!=null){C.innerHTML="";C.innerText=A;DxEMREditor.blurText_(F,I,E);DxEMREditor.processPageLine(F,I,false)}};DxEMREditor.setHdyContentByHTML=function(B,D,A,E,G,C){var I=top.E_getObject(B,D,A);if(I==null)return;var H=I.id,K;if(C==null||C=="content")K=I.content;else if(C=="header")K=I.headercontent;else if(C=="footer")K=I.footercontent;var J=$("#"+E,K).get(0);if(J!=null){J.innerHTML="";J.insertAdjacentHTML("BeforeEnd",G);DxEMREditor.blurText_(B,D,K);DxEMREditor.processPageLine(B,D,false)}else{var _=$(K).find("span[watvalue $='"+E+"']");if(_!=null){for(var F=0;F<_.length;F++)$(_[F]).text(G);DxEMREditor.blurText_(B,D,K);DxEMREditor.processPageLine(B,D,false)}}};DxEMREditor.setImagesrc=function(E,I,C,H,A){var B=top.E_getObject(E,I,C);if(B==null)return;var _=B.id,D=DxEMREditor.getEditArea(_,B);DxEMREditor.doclick(D);var F=$("#"+H,D).get(0);if(F!=null){var G=$("#watimg",F).get(0);if(G!=null){G.src=A;DxEMREditor.blurText_(E,I,D)}}};DxEMREditor.moveend=function(D){var _=parseInt(D.offsetLeft),A=parseInt(D.offsetTop);if(_<0)_=0;D.style.left=_;if(A<0)A=0;D.style.top=A;var C=D,E=0;while($(C).attr("watend")!="true"){C=C.parentElement;E++;if(E>100)break}var B="1";if(C!=null){if(_+parseInt(D.clientWidth)>parseInt(C.clientWidth))D.style.left=parseInt(C.clientWidth)-parseInt(D.clientWidth);if(A+parseInt(D.clientHeight)>parseInt(C.clientHeight))D.style.top=parseInt(C.clientHeight)-parseInt(D.clientHeight);B=parseInt(C.clientWidth)/parseInt(C.style.width)}E=0;C=D;while($(C).attr("watflag")!="true"){C=C.parentElement;E++;if(E>100)break}if(C!=null){C.watleft=parseInt(D.style.left)/B;C.wattop=parseInt(D.style.top)/B}C.watwidth=parseInt(D.clientWidth)/B;C.watheight=parseInt(D.clientHeight)/B};DxEMREditor.setEMRDesignContentToPageNumber=function(C,E,I,F,D,A,B){try{var H=top.E_getObject(C,E,B),K=DxEMREditor.getEditArea(E,H);DxEMREditor.doclick(K);var J=H.rng;if(J==null)return;DxEMREditor.select(H,K,J);DxEMREditor.saveHistory(H,K);var G=$("#"+F,K).get(0);if(G!=null){G.outerHTML=I;DxEMREditor.blurText_(C,E,K)}DxEMREditor.processPageLine(C,E,false)}catch(_){}};DxEMREditor.setEmrEditable=function(E,G,D,C){try{var A=top.E_getObject(E,G,C),_=A.content,F=A.header,$=A.footer;_.contentEditable=D;F.contentEditable=D;F.contentEditable=D}catch(B){}};DxEMREditor.setstyleline_=function(I){var C=DxEMREditor.getContainer(I);if(C==null)return;var H=C.id,G=$(C).attr("wid");try{var E=top.E_clientModel.E_getWindow(G),D=WatCore.getWindowDoc(G,E),A=top.E_getObject(G,H,D),_=A.content,F=A.styleline;if(F=="true"){F="false";_.style.background="#ffffff";if(_.oldlineHeight)_.style.lineHeight=_.oldlineHeight;else _.style.lineHeight=null}else{F="true";_.style.background="#ffffff url("+watLocation2+"/images/emr/\u98ce\u683c\u7ebf.png) repeat";_.oldlineHeight=_.style.lineHeight;_.style.lineHeight="23px"}A.styleline=F;WatCore.setParameter(G,H,top.DC.EMR_STYLE_LINE,C.styleline)}catch(B){}};DxEMREditor.setstyleline=function(D,E,C,B){try{var _=top.E_getObject(D,E,B),$=_.content;_.styleline=C;if(C=="true"){$.style.background="#ffffff url("+watLocation2+"/images/emr/\u98ce\u683c\u7ebf.png) repeat";$.style.lineHeight="23px"}else{$.style.background="#ffffff";$.style.lineHeight=null}}catch(A){}};DxEMREditor.findTdByRng=function(A){var B=DxEMREditor.rngDocument(A),_=0,C;if(B.tagName=="TD")C=B;while(B.tagName!="TD"&&$(B).attr("watend")!="true"&&_<20){B=B.parentElement;if(B.tagName=="TD"){C=B;break}_++}return C};DxEMREditor.setTableData=function(G,J,B,D){var O=top.E_getObject(G,J,D),R=DxEMREditor.getEditArea(J,O),Q=O.rng;if(Q==null){alert("\u8bf7\u9009\u62e9\u9700\u8981\u88c5\u8f7d\u8868\u683c\u6570\u636e\u7684\u8d77\u59cb\u884c");return}var H=DxEMREditor.findTdByRng(Q);if(H==null){alert("\u8bf7\u5148\u9f20\u6807\u5b9a\u4f4d\u5230\u9700\u8981\u5bfc\u5165\u6570\u636e\u7684\u8868\u683c\u8d77\u59cb\u884c\u7684\u968f\u610f\u5217\u91cc\u9762");return}var L=$(H),S=L.parent();if(S.get(0)==null)return;DxEMREditor.saveHistory(O,R);DxEMREditor.setActive(O,R,Q);var M=JSON.parse(B)["rows"],F,N=S.parent().children(),P=N.length,A=N.index(S);for(var K=0;K<(M.length-(P-A));K++){var C=S.clone();S.last().after(C)}F=S;for(K=0;K<M.length;K++){var E=M[K],_=F.children("td");for(var I=0;I<E.length;I++)$(_.get(I)).html(E[I]);if(_.length>E.length)for(I=E.length;I<_.length;I++)$(_.get(I)).html("");F=F.next()}};DxEMREditor.setDataElementConent=function(C,G,B,E,Q,J){var L=top.E_getObject(C,G,B),O=DxEMREditor.getEditArea(G,L),_=L.wrap,P=$(_).find("span[watvalue $='"+E+"'],[watzsdid $='"+E+"']");for(var H=0;H<P.length;H++){var K=$(P[H]),I=K.attr("watsuntype");if(I=="s2")K.text(J);else if(I=="t1"||I=="t2"||I=="t3"){K.attr("watvalue",Q);K.text(J)}else if(I=="t4"||I=="t5"||I=="t6"){K.attr("watvalue",Q);K.text(J)}else if(I=="t7"){var N=K.attr("watid"),M,F=K.attr("id");for(var D=0;D<P.length;D++){var A=$(P[D]).attr("watsuntype");if(A=="t8")if($(P[D]).attr("watid")==N){M=$(P[D]).attr("id");break}}if(M!=null)DxEMREditor.setEMRSectionValue(C,G,F,M,J,B)}}WatCore.setParameter(C,G,top.DC.EMR_HEADER_TEXT,L.headercontent.innerHTML);WatCore.setParameter(C,G,top.DC.EMR_TEXT,L.content.innerHTML);WatCore.setParameter(C,G,top.DC.EMR_FOOTER_TEXT,L.footercontent.innerHTML);DxEMREditor.processPageLine(C,G,false)};DxEMREditor.rngDocument=function(_){var $;if(_.commonAncestorContainer){$=_.commonAncestorContainer;if($.nodeName=="#text")$=$.parentElement}else if(_.parentElement)$=_.parentElement();return $};DxEMREditor.htmlText=function(B){var A;if(top.isIE)A=B.htmlText;else{var _=B.extractContents(),C=document.createElement("SPAN");C.appendChild(_);A=$(C).html()}return A};DxEMREditor.text=function(_){var $;if(top.isIE)$=_.text;else $=_.toString();return $};DxEMREditor.setActive=function($,A,_){if(top.isIE)A.setActive();else{var B=DxEMREditor.getSelection($,A);B.removeAllRanges();B.addRange(_)}};DxEMREditor.getSelection=function($,_){var A="";if(_==null||_.document==null)A="1";if($.oWin==null){if(top.isIE)A=_.document.selection;else A=window.getSelection()}else if($.oWin.getSelection)A=$.oWin.getSelection();else if($.oWin.document.getSelection)A=$.oWin.document.getSelection();else if(_.document.selection)A=_.document.selection;return A};DxEMREditor.getRange=function(_){var $;if(_.createRange)$=_.createRange();else if(_.getRangeAt)$=_.getRangeAt(0);return $};DxEMREditor.Range=function(C,D){var E="",B,_,$="";if(C.oWin.getSelection)E=C.oWin.getSelection();else if(C.oWin.document.getSelection)E=C.oWin.document.getSelection();else if(D.document.selection)E=D.document.selection;try{B=E.createRange?E.createRange():E.getRangeAt(0);$=B.text||B.toString();if(B.commonAncestorContainer){_=B.commonAncestorContainer;if(_.nodeName=="#text")_=_.parentElement}else if(B.parentElement)_=B.parentElement()}catch(A){}return{range:B,text:$,selection:E,node:_}};DxEMREditor.findRangeDom=function(C,E,_){if(top.isIE){_=_.duplicate();_.collapse(true);var D=_.parentElement(),F=D.childNodes;for(var H=0;H<F.length;H++){var $=F[H],B=_.duplicate();B.moveToElementText($);var G=B.compareEndPoints("StartToStart",_),A=B.compareEndPoints("EndToStart",_);if(G>0)break;else if(!G||A==1&&G==-1)return{container:D,offset:H};else if(!A)return{container:D,offset:H+1}}return{container:null,offset:null}}};DxEMREditor.findRangeNextObj=function(_,B){var A,C=B.startContainer;if(_){A=$(C).prev().get(0);while($(C).attr("watend")!="true"&&A==undefined){C=C.parentNode;A=$(C).prev().get(0);if(A!=null){A=DxEMREditor.findSonNode(A);break}}}else{A=$(C).next().get(0);while($(C).attr("watend")!="true"&&A==undefined){C=C.parentNode;A=$(C).next().get(0);if(A!=null){A=DxEMREditor.findSonNode(A);break}}}return{nextobj:A,obj:C}};DxEMREditor.findSonNode=function(_){while(_.nodeName!="#text"&&$(_).attr("watflag")!="true"&&_.tagName!="DIV"&&_.tagName!="P"){var A=_.childNodes;if(A.length>0)_=A[0];else break}return _};DxEMREditor.findFirstSonNode=function(_){while(_.nodeName!="#text"&&$(_).attr("watflag")!="true"){var A=_.childNodes;if(A.length>0){for(var B=0;B<=A.length-1;B++){_=A[B];if(_.textContent=="")continue;else break}}else break}return _};DxEMREditor.findLastSonNode=function(_){while(_.nodeName!="#text"&&$(_).attr("watflag")!="true"){var A=_.childNodes;if(A.length>0){for(var B=A.length-1;B>=0;B--){_=A[B];if(_.textContent=="")continue;else break}}else break}return _};DxEMREditor.select=function($,A,_){if(top.isIE)_.select();else{_.setEnd(_.endContainer,_.endOffset);_.setStart(_.startContainer,_.endOffset)}};DxEMREditor.render=function($,J,H){var C=H.getAttribute("cid"),_=H.selectNodes("*");for(var E=0;E<_.length;E++){var D=_[E].nodeName;D=D.substring(1,D.length);var B=D.indexOf("_"),L=D,M;if(B>-1){D=L.substring(0,B);M=L.substring(B+1,L.length)}var K=top.isIE?_[E].text:_[E].textContent;switch(D){case top.DC.USERNAME:top.DxEMREditor.setUsername($,C,K,J);break;case top.DC.EMR_DATA_ELEMENT:var F=K.split("@wat@");top.DxEMREditor.processEmrDataElement($,C,J,F[0],F[1],F[2],F[3],F[4],F[5]);break;case top.DC.EMR_SET_DATA:F=K.split("@wat@");top.DxEMREditor.setDataElementConent($,C,J,F[0],F[1],F[2]);break;case top.DC.UPDATE:top.DxEMREditor.actionit($,C,J);break;case top.DC.EMR_STYLE:top.DxEMREditor.setEMRStyle($,C,K,J);break;case top.DC.EMR_PAGE_WIDTH:top.DxEMREditor.setEMRPageWidth($,C,K,J);break;case top.DC.EMR_PAGE_HEIGHT:top.DxEMREditor.setEMRPageHeight($,C,K,J);break;case top.DC.EMR_PAGE_LINEHEIGHT:top.DxEMREditor.setEMRLineHeight($,C,K,J);break;case top.DC.EMR_LETTER_SPACING:top.DxEMREditor.setEMRLetterSpacing($,C,K,J);break;case top.DC.TEXT:top.DxEMREditor.setEMRContent($,C,K,J);break;case top.DC.EMR_HEADER_TEXT:top.DxEMREditor.setEMRHeaderContent($,C,K,J);break;case top.DC.EMR_FOOTER_TEXT:top.DxEMREditor.setEMRFooterContent($,C,K,J);break;case top.DC.EMR_DESIGN_CONTENT:top.DxEMREditor.setEMRDesignContent($,C,K,J);break;case top.DC.EMR_DESIGN_CANCEL:top.DxEMREditor.setEMRDesignCancel($,C,J);break;case top.DC.EMR_DESIGN_PROPERTY:var I=K.split("&&");top.DxEMREditor.setEMRDesignProperty($,C,I[0],I[1],J);break;case top.DC.EMR_EDITORSELECTVALUE:I=K.split("&");top.DxEMREditor.setEMRSelectValue($,C,M,I[0],I[1],J);break;case top.DC.EMR_EDITORSELECTVALUECANVALUE:I=K.split("&");top.DxEMREditor.setEMRSelectValueCaninput($,C,M,I[0],I[1],J);break;case top.DC.PADDING:top.DxEMREditor.setEMRPagePadding($,C,K,J);break;case top.DC.EMR_FYF:top.DxEMREditor.fyfformserver($,C,J);break;case top.DC.EMR_SPC:top.DxEMREditor.spcformserver($,C,J);break;case top.DC.EMR_YJS_EDITOR_CONTENT:F=K.split("@wat@");top.DxEMREditor.yjseditor($,C,J,F[0],F[1],F[2],F[3],F[4],F[5]);break;case top.DC.EMR_INPUT_TEXT:top.DxEMREditor.inputTextFormServer($,C,J,K);break;case top.DC.EMR_INPUT_BOX:top.DxEMREditor.inputBox($,C,J);break;case top.DC.EMR_SECTION_END:top.DxEMREditor.setEMRSectionEnd($,C,K,J);break;case top.DC.EMR_DESIGN_PROPERTY_RELEATION:I=K.split("&&");top.DxEMREditor.setEMRDesignPropertyreleation($,C,I[0],I[1],J);break;case top.DC.EMR_DESIGN_SECTION:top.DxEMREditor.setEMRDesignSectionContent($,C,K,J);break;case top.DC.SET_EMR_HDY_VALUE:F=K.split("@wat@");if(F.length>=2)DxEMREditor.setHdyContent($,C,J,M,F[0],F[1]);else DxEMREditor.setHdyContent($,C,J,M,F[0]);break;case top.DC.SET_EMR_HDY_VALUEBYHTML:F=K.split("@wat@");if(F.length>=2)DxEMREditor.setHdyContentByHTML($,C,J,M,F[0],F[1]);else DxEMREditor.setHdyContentByHTML($,C,J,M,F[0]);break;case top.DC.SET_EMR_IMAGE_VALUE:F=K.split("@wat@");DxEMREditor.setImagesrc($,C,J,M,F[0]);break;case top.DC.SET_EMR_SECTION_VALUE:F=K.split("@wat@");DxEMREditor.setEMRSectionValue($,C,M,F[0],F[1],J);break;case top.DC.CLEAR_EMR_SECTION_VALUE:DxEMREditor.clearEMRSectionValue($,C,M,K,J);break;case top.DC.EMR_CHECKBOX:top.DxEMREditor.checkboxformserver($,C,J);break;case top.DC.EMR_QCGS_EDITOR_CONTENT:F=K.split("@wat@");top.DxEMREditor.qcgseditor($,C,J,F[0],F[1],F[2],F[3],F[4]);break;case top.DC.EMR_DESIGN_CONTENT_LOCATION:F=K.split("@wat@");top.DxEMREditor.setEMRDesignContentToLocation($,C,F[0],F[1],J);break;case top.DC.EMR_DESIGN_CONTENT_PAGENUMBER:F=K.split("@wat@");top.DxEMREditor.setEMRDesignContentToPageNumber($,C,F[0],F[1],F[2],F[3],J);break;case top.DC.POP:var G=top.E_getObject($,C,J);G.popmenustr=K;break;case top.DC.EMR_TOOLBAR_UI:var G=top.E_getObject($,C,J),A=K.split("&");if(A.length>=5){DxEMREditor.createToolBar($,C,A[0],A[1],A[2],A[3],A[4],G.actionscript);DxEMREditor.initWidths($,C,J)}break;case top.DC.VISIBLE:G=top.E_getObject($,"E_SW_"+C,J);if(K=="true"){G.style.visibility="visible";G.style.display="block"}else{G.style.visibility="hidden";G.style.display="none"}break;case top.DC.DISPLAY:G=top.E_getObject($,"E_SW_"+C,J);if(K=="true"){G.style.visibility="visible";G.style.display="block"}else{G.style.visibility="hidden";G.style.display="none"}break;case top.DC.EMR_DESIGN_DATATABLE:top.DxEMREditor.DataTableInsert($,C);break;case top.DC.EDITABLE:top.DxEMREditor.setEmrEditable($,C,K,J);break;case top.DC.EMR_STYLE_LINE:top.DxEMREditor.setstyleline($,C,K,J);break;case top.DC.EMR_IMAGE_EDIT_CHANGE:top.DxEMREditor.imageEditResult($,C,K,J);break;case top.DC.EMR_TABLE_DATA:top.DxEMREditor.setTableData($,C,K,J);break;default:break}}};var addEmrContent="<DIV id=#{split} {wataddcontent} style='FONT-SIZE: 1px; HEIGHT: 10px'></DIV><DIV id=#{header} {wataddcontent} class=emr_header_box style='HEIGHT: 10mm; WIDTH: 210mm; BACKGROUND: white; POSITION: relative; PADDING-BOTTOM: 0mm; PADDING-TOP: 0mm; PADDING-LEFT: 0mm; MARGIN: 0px; TOP: 0mm; PADDING-RIGHT: 0mm'><DIV id=#{headerleft} style='BORDER-TOP: #aaaaaa 1px; HEIGHT: 24px; BORDER-RIGHT: #aaaaaa 1px solid; WIDTH: 24px; RIGHT: 200mm; BORDER-BOTTOM: #aaaaaa 1px solid; POSITION: absolute; BORDER-LEFT: #aaaaaa 1px; BOTTOM: 0px'></DIV><DIV id=#{headerright} style='BORDER-TOP: #aaaaaa 1px; HEIGHT: 24px; BORDER-RIGHT: #aaaaaa 1px; WIDTH: 24px; BORDER-BOTTOM: #aaaaaa 1px solid; POSITION: absolute; LEFT: 200mm; BORDER-LEFT: #aaaaaa 1px solid; BOTTOM: 0px'></DIV><DIV ondrag='return false;' id=#{headercontent} class=emr_test_box style='FONT-SIZE: 3.7mm; WORD-WRAP: break-word; BORDER-TOP: #000 1px; HEIGHT: 10mm; FONT-FAMILY: \u5b8b\u4f53; BORDER-RIGHT: #000 1px; WIDTH: 190mm; BACKGROUND: white; WHITE-SPACE: normal; BORDER-BOTTOM: #000 1px; POSITION: absolute; WORD-BREAK: break-all; PADDING-BOTTOM: 0mm; TEXT-ALIGN: left; PADDING-TOP: 0mm; PADDING-LEFT: 0mm; LEFT: 10mm; BORDER-LEFT: #000 1px; LETTER-SPACING: 0mm; LINE-HEIGHT: 1.5; TOP: 1mm; PADDING-RIGHT: 0mm' watend='true'></DIV></DIV><DIV ondrag='return false;' {wataddcontent} id=#{content} class=emr_test_box style='FONT-SIZE: 3.7mm; WORD-WRAP: break-word; HEIGHT: 277mm; FONT-FAMILY: \u5b8b\u4f53; BORDER-RIGHT: #ffffff 10mm solid; WIDTH: 210mm; BACKGROUND: #ffffff; WHITE-SPACE: normal; POSITION: relative; WORD-BREAK: break-all; TEXT-ALIGN: left; PADDING-TOP: 0mm; PADDING-LEFT: 0mm; MIN-HEIGHT: 277mm; BORDER-LEFT: #ffffff 10mm solid; LETTER-SPACING: 0mm; LINE-HEIGHT: 1.5; TOP: 0px; PADDING-RIGHT: 0mm; padding-buttom: 0mm; -webkit-max-height: 270mm' watend='true'></DIV><DIV id=#{footer} {wataddcontent} class=emr_footer_box style='HEIGHT: 10mm; WIDTH: 210mm; BACKGROUND: white; POSITION: relative; PADDING-BOTTOM: 0mm; PADDING-TOP: 0mm; PADDING-LEFT: 0mm; MARGIN: 0px; PADDING-RIGHT: 0mm'><DIV id=#{footerleft} style='BORDER-TOP: #aaaaaa 1px solid; HEIGHT: 24px; BORDER-RIGHT: #aaaaaa 1px solid; WIDTH: 24px; RIGHT: 200mm; BORDER-BOTTOM: #aaaaaa 1px; POSITION: absolute; BORDER-LEFT: #aaaaaa 1px; TOP: 0px'></DIV><DIV id=#{footerright} style='BORDER-TOP: #aaaaaa 1px solid; HEIGHT: 24px; BORDER-RIGHT: #aaaaaa 1px; WIDTH: 24px; BORDER-BOTTOM: #aaaaaa 1px; POSITION: absolute; LEFT: 200mm; BORDER-LEFT: #aaaaaa 1px solid; TOP: 0px'></DIV><DIV ondrag='return false;' id=#{footercontent} class=emr_header_content_box style='FONT-SIZE: 3.7mm; WORD-WRAP: break-word; BORDER-TOP: #000 1px; HEIGHT: 9mm; FONT-FAMILY: \u5b8b\u4f53; BORDER-RIGHT: #000 1px; WIDTH: 190mm; BACKGROUND: white; WHITE-SPACE: normal; BORDER-BOTTOM: #000 1px; POSITION: absolute; WORD-BREAK: break-all; PADDING-BOTTOM: 0mm; TEXT-ALIGN: left; PADDING-TOP: 0mm; PADDING-LEFT: 0mm; LEFT: 10mm; BORDER-LEFT: #000 1px; LETTER-SPACING: 0mm; LINE-HEIGHT: 1.5; TOP: 0mm; PADDING-RIGHT: 0mm' watend='true'></DIV></DIV>";function DxEMRShow(){}DxEMRShow.init=function(E,G){try{var M=top.E_clientModel.E_getWindow(E),D=WatCore.getWindowDoc(E,M),K=top.E_getObject(E,G,D),A=$("#"+G+"wrap",K).get(0);K.wrap=A;var J=$("#"+G+"content",K).get(0),L=$("#"+G+"headercontent",K).get(0),_=$("#"+G+"footercontent",K).get(0),H=$("#"+G+"header",K).get(0);K.content=J;K.header=H;K.headercontent=L;K.footercontent=_;if(top.isIE)J.document.oncontextmenu=new Function("return false;");else J.ownerDocument.oncontextmenu=new Function("return false;");var I=new Array();K.addContentArray=I;J.oncontextmenu=new Function("top.DxEMRShow.showContextMenu('"+E+"','"+G+"');return false;");K.mpx=parseInt(J.style.width)/parseInt(J.clientWidth);K.oldwidth=0;var F=new Array();K.content.pagelines=F;DxEMRShow.initEdit(E,G,"0");$(K).unbind("resize");$(K).bind("resize",E,function($){top.DxEMRShow.resizeChange(E,G)});try{var C=$("<span id='tip' style='z-index:1000;position:absolute;background-color:lightyellow;font-size:12;BORDER:1 SOLID black'></span>").appendTo(D.body);C.hide()}catch(B){}$$(G+"content",E,D).delegate("ins,del","mouseover",function(_){if(!_.cancelBubble){var A=(this.attributes["oldhj"]==null?"":"<span style='color:red'>"+this.attributes["oldhj"].nodeValue+this.innerText+"</span><br>")+this.attributes["cite"].nodeValue+",<span>"+this.getAttribute("datetime")+"</span> "+(this.tagName=="INS"?"\u63d2\u5165":"\u5220\u9664")+"\u7684\u5185\u5bb9<cite>"+this.innerText+"</cite>";C.html(A).css({left:Math.min(_.pageX,document.body.clientWidth-250),top:_.pageY-$("#tip").height()-30}).show();_.cancelBubble=true;_.preventDefault()}else{_.cancelBubble=true;_.preventDefault()}}).delegate("ins,del","mouseout",function(){C.hide()});$$(G+"headercontent",E,D).delegate("ins,del","mouseover",function(_){if(!_.cancelBubble){var A=(this.attributes["oldhj"]==null?"":"<span style='color:red'>"+this.attributes["oldhj"].nodeValue+this.innerText+"</span><br>")+this.attributes["cite"].nodeValue+",<span>"+this.getAttribute("datetime")+"</span> "+(this.tagName=="INS"?"\u63d2\u5165":"\u5220\u9664")+"\u7684\u5185\u5bb9<cite>"+this.innerText+"</cite>";C.html(A).css({left:Math.min(_.pageX,document.body.clientWidth-250),top:_.pageY-$("#tip").height()-30}).show();_.cancelBubble=true;_.preventDefault()}else{_.cancelBubble=true;_.preventDefault()}}).delegate("ins,del","mouseout",function(){C.hide()});$$(G+"footercontent",E,D).delegate("ins,del","mouseover",function(_){if(!_.cancelBubble){var A=(this.attributes["oldhj"]==null?"":"<span style='color:red'>"+this.attributes["oldhj"].nodeValue+this.innerText+"</span><br>")+this.attributes["cite"].nodeValue+",<span>"+this.getAttribute("datetime")+"</span> "+(this.tagName=="INS"?"\u63d2\u5165":"\u5220\u9664")+"\u7684\u5185\u5bb9<cite>"+this.innerText+"</cite>";C.html(A).css({left:Math.min(_.pageX,document.body.clientWidth-250),top:_.pageY-$("#tip").height()-30}).show();_.cancelBubble=true;_.preventDefault()}else{_.cancelBubble=true;_.preventDefault()}}).delegate("ins,del","mouseout",function(){C.hide()})}catch(B){alert(B.message)}};DxEMRShow.showContextMenu=function(G,I){var N=top.E_clientModel.E_getWindow(G),C=WatCore.getWindowDoc(G,N),H=WatCore.getWindow(G,N),L=top.E_getObject(G,I,C),M=H.event,D=150,K=0,O=M.clientX,$=M.clientY,A=oPopupMenu.document,F=oPopupMenu.document.body,_="";_+=DxEMRShow.getWatCellMenuRow(G,I,L,"cellProp");K+=22;var B=L.popmenustr;if(B!=null&&B!=""){var J=B.split("&");if(J.length>0){_+=sMenuHr;K+=22*J.length;for(var P=0;P<J.length;P++){var E=J[P].split("|");if(E.length==3)_+=DxEMRShow.getMenuRow2("","top.DxEMRShow.popmenuaction('"+G+"','"+I+"','"+E[1]+"')",""+E[2]+"",""+E[0]+"")}}}if(K==0)return false;_=sMenu1+_+sMenu2;A.open();A.write(StyleMenuHeader+_);A.close();if(O+D>document.body.clientWidth)O=O-D;if($+K>document.body.clientHeight)$=$-K;if(parseInt($)<0)$=0;oPopupMenu.show(O,$,D,K,L.document.body);return false};DxEMRShow.getContainer=function(D){var B,C;while(D){if(D.endflag=="true"){B=D.wid;C=D.sid;break}D=D.parentElement}if(B!=undefined&&B!=""){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),$=top.E_getObject(B,C,_);return $}else return null};DxEMRShow.getEditArea=function(B,A){var _=A.wrap,$=_.editarea;if($=="content")return A.content;else if($=="header")return A.headercontent;else if($=="footer")return A.footercontent};DxEMRShow.format=function(D,H,I,_,G){var C=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,C),E=WatCore.getWindow(D,C),$=top.E_getObject(D,H,A),F=$.content.document.selection,B=F.createRange();if(F.type=="None"||F.type=="Text")window.clipboardData.setData("text",B.text)};DxEMRShow.getWatCellMenuRow=function(B,D,_,$){var C="",A="";switch($){case"cellProp":C+=DxEMREditor.getMenuRow(A,"top.DxEMRShow.format('"+B+"','"+D+"','copy')","copy.gif","\u590d\u5236");break}return C};DxEMRShow.getMenuRow=function(A,B,_,$){var C="";C="<tr><td align=center valign=middle><TABLE border=0 cellpadding=0 cellspacing=0 width=132><tr "+A+"><td valign=middle height=20 class=MouseOut onMouseOver=this.className='MouseOver'; onMouseOut=this.className='MouseOut';";if(A=="")C+=" onclick=\"parent."+B+";parent.oPopupMenu.hide();\"";C+=">";if(_!="")C+="&nbsp;<img border=0 src='"+top.watLocation2+"/images/emr/"+_+"' width=20 height=20 align=absmiddle "+A+">&nbsp;";else C+="&nbsp;";C+=$+"</td></tr></TABLE></td></tr>";return C};DxEMRShow.getMenuRow2=function(A,B,_,$){var C="";C="<tr><td align=center valign=middle><TABLE border=0 cellpadding=0 cellspacing=0 width=132><tr "+A+"><td valign=middle height=20 class=MouseOut onMouseOver=this.className='MouseOver'; onMouseOut=this.className='MouseOut';";if(A=="")C+=" onclick=\"parent."+B+";parent.oPopupMenu.hide();\"";C+=">";if(_!="")C+="&nbsp;<img border=0 src='"+_+"' width=20 height=20 align=absmiddle "+A+">&nbsp;";else C+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";C+=$+"</td></tr></TABLE></td></tr>";return C};DxEMRShow.popmenuaction=function($,A,_){WatCore.call($,A,_)};DxEMRShow.processPageLine=function(F,H,T,P){var Q=top.E_clientModel.E_getWindow(F),D=WatCore.getWindowDoc(F,Q),O=top.E_getObject(F,H,D),A=O.wrap,N,I,C=P;if(P==null||P=="0"){N=$("#"+H+"content",O).get(0);I=$("#"+H+"header",O).get(0)}else{var K=O.addContentArray;if(K.length>=P){P--;var M=K[P];N=$("#"+M+"_content",O).get(0);I=$("#"+M+"_header",O).get(0)}else return}var B=N.clientHeight,L=parseInt(B)*O.mpx,V=N.pageheight-N.pt-N.pb,S=parseInt((B+15)/(V/O.mpx)),U=parseInt((S+1)*(V)/O.mpx)-(S)*(2/O.mpx);if(B>U)S++;var G=N.pagelines,_=G.length,R=0,E=0;if(parseInt(C)>0)E=$(I).offset().top-$(O.header).offset().top;if(S<_||T){DxEMRShow.clearPageLine(N,A);for(var J=0;J<S;J++){R=E+parseInt(parseInt(N.pt)/O.mpx+(J+1)*(V)/O.mpx)-(J)*(2/O.mpx);DxEMRShow.createPageLine(N,A,D,R)}}else if(S>_)for(J=_;J<S;J++){R=E+parseInt(parseInt(N.pt)/O.mpx+(J+1)*(V)/O.mpx)-(J)*(2/O.mpx);DxEMRShow.createPageLine(N,A,D,R)}};DxEMRShow.createXudaMask=function(E,H,G,C,N){var O=top.E_clientModel.E_getWindow(E),M=top.E_getObject(E,H,C),_=M.wrap;if(G=="delete")if($("#"+H+"_mask",_).get(0)!=undefined)_.removeChild($("#"+H+"_mask",_).get(0));var L,I,A=N;if(N==null||N=="0"){L=$("#"+H+"content",M).get(0);I=$("#"+H+"header",M).get(0)}else{var J=M.addContentArray;if(J.length>=N){N--;var K=J[N];L=$("#"+K+"_content",M).get(0);I=$("#"+K+"_header",M).get(0)}else return}if(G=="create"){var D=0;if(parseInt(A)>0)D=$(I).offset().top-$(M.header).offset().top;var B=D+parseInt(parseInt(L.pt)/M.mpx),F=WatCore.getWindow(E,O);DxEMRShow.createMaskDiv(E,H,L,_,C,B,F);if(A>0)_.scrollTop=parseInt(B)-250}};DxEMRShow.clearPageLine=function($,_){var A=$.pagelines;for(var B=0;B<A.length;B++)_.removeChild(A[B]);$.pagelines=[]};DxEMRShow.createPageLine=function(_,A,C,B){var D=C.createElement("div");D.style.marginTop="1px";D.style.borderTop="1px dashed #ff0033";D.style.borderBottom="1px none #CCCCCC";D.style.zIndex=100;D.style.fontSize=13;D.style.width="100%";D.style.left=0+"px";D.style.top=B+"px";D.style.position="absolute";D.style.background="transparent";D.style.height="0px";D.style.overflowX="hidden";D.style.color="#66ff00";D.style.textAlign="left";$(D).text("\u7b2c"+(parseInt(_.pagelines.length)+1)+"\u9875");if(top.isIE)A.insertBefore(D);else A.appendChild(D);_.pagelines[_.pagelines.length]=D};DxEMRShow.createMaskDiv=function(E,G,_,A,D,C,F){if($("#"+G+"_mask",A).get(0)!=undefined)A.removeChild($("#"+G+"_mask",A).get(0));var B=$("<div id='"+G+"_mask' style='top:"+C+"px;HEIGHT: 60px; WIDTH: 100%; POSITION: absolute; LEFT: 0px; FILTER: alpha(opacity:40);Z-INDEX: 1000; VISIBILITY: visible; BACKGROUND-COLOR: blue; -moz-opacity: 0.4; opacity: 0.4'>");$(A).append(B);B.bind("mousemove",function(_){var $=_.target;if($.id.indexOf("mask")>0&&$.draging!="true")changeResizeCursortoemr($,_)});B.bind("mouseout",function(_){var $=_.target;$.style.cursor="default"});top.WatCore.setParameter(E,G,top.DC.EMRXUDA_MASK_VALUE,"0,60");B.get(0).topnumber=C;drag(E,G,B.get(0),D,F,_)};DxEMRShow.resizeChange=function(B,D){var L=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,L),I=top.E_getObject(B,D,A),J=parseInt(I.clientWidth);if(J>0&&J==I.oldwidth){if(top.isIE){var _=I.wrap,E=I.header,C=parseInt(_.scrollTop),M=parseInt($(E).height());if(C-M<=1){_.scrollTop=M+1;_.scrollTop=C}}return}I.oldwidth=J;var H=I.content,K=parseInt(H.clientWidth);if(J<K-10){if(top.isIE){_=I.wrap,E=I.header,C=parseInt(_.scrollTop),M=parseInt($(E).height());if(C-M<=1){_.scrollTop=M+1;_.scrollTop=C}}return}else{top.DxEMRShow.initEdit(B,D,"0");var G=I.addContentArray;if(G.length>0)for(var F=1;F<=G.length;F++)top.DxEMRShow.initEdit(B,D,F)}};DxEMRShow.initEdit=function(K,O,V){var W=top.E_clientModel.E_getWindow(K),J=WatCore.getWindowDoc(K,W),S=top.E_getObject(K,O,J),Q,N,P,C,E,I,G,_,Z;if(V==null||V=="0"){Q=$("#"+O+"content",S).get(0);N=$("#"+O+"header",S).get(0);P=$("#"+O+"footer",S).get(0);C=$("#"+O+"headercontent",S).get(0);E=$("#"+O+"headerleft",S).get(0);I=$("#"+O+"headerright",S).get(0);G=$("#"+O+"footercontent",S).get(0);_=$("#"+O+"footerleft",S).get(0);Z=$("#"+O+"footerright",S).get(0)}else{var A=S.addContentArray;if(A.length>=V){V--;var R=A[V];Q=$("#"+R+"_content",S).get(0);N=$("#"+R+"_header",S).get(0);P=$("#"+R+"_footer",S).get(0);C=$("#"+R+"_headercontent",S).get(0);E=$("#"+R+"_headerleft",S).get(0);I=$("#"+R+"_headerright",S).get(0);G=$("#"+R+"_footercontent",S).get(0);_=$("#"+R+"_footerleft",S).get(0);Z=$("#"+R+"_footerright",S).get(0)}else return}var H=S.wrap;if(!top.isIE)H.style.height=H.parentElement.clientHeight;var T=parseInt(S.clientWidth)-22,D=Q.clientWidth,a=parseInt(T)-parseInt(D),a=a/2;if(a<0)a=0;var X=parseInt(Q.pl),b=parseInt(Q.pr),Y=parseInt(Q.pt),U=parseInt(Q.pb),M=parseInt(Q.style.width);if(!top.isIE)M+=X+b;if(top.isSafari)N.style.width=(M/S.mpx-3)+"px";else N.style.width=M+"mm";N.style.height=parseInt(Y)+"mm";E.style.right=M-X+"mm";I.style.left=M-b+"mm";C.style.height=Y+"mm";if(top.isSafari){C.style.left=(X/S.mpx+1)+"px";C.style.width=((M-X-b)/S.mpx-3)+"px"}else{C.style.left=X+"mm";C.style.width=M-X-b+"mm"}if(top.isSafari)P.style.width=(M/S.mpx-3)+"px";else P.style.width=M+"mm";if(top.isSafari){G.style.left=(X/S.mpx+1)+"px";G.style.width=((M-X-b)/S.mpx-3)+"px"}else{G.style.left=X+"mm";G.style.width=M-X-b+"mm"}P.style.height=parseInt(U)+"mm";_.style.right=M-X+"mm";Z.style.left=M-b+"mm";var B=U-1;if(B<0)B=0;G.style.height=(B)+"mm";if(top.isIE&&V=="0"){var H=S.wrap,N=S.header,L=parseInt(H.scrollTop),F=parseInt($(N).height());if(L-F<=1){H.scrollTop=F+1;H.scrollTop=L}}};DxEMRShow.setEMRContent=function(G,H,E,D,C){var B=top.E_getObject(G,H,D),F;if(C==null||C=="0"){F=$("#"+H+"content",B).get(0);F.innerHTML=E}else{var I=B.addContentArray;if(I.length>=C){C--;var _=I[C];F=$("#"+_+"_content",B).get(0);F.innerHTML=E}}var A=$("#"+H+"wrap",B).get(0);if(A!=null)A.scrollTop=0;DxEMRShow.processPageLine(G,H,true,C)};DxEMRShow.setEMRHeaderContent=function(F,G,D,C,B){var A=top.E_getObject(F,G,C),E;if(B==null||B=="0"){E=$("#"+G+"headercontent",A).get(0);E.innerHTML=D}else{var H=A.addContentArray;if(H.length>=B){B--;var _=H[B];E=$("#"+_+"_headercontent",A).get(0);E.innerHTML=D}}};DxEMRShow.setEMRFooterContent=function(F,G,D,C,B){var A=top.E_getObject(F,G,C),E;if(B==null||B=="0"){E=$("#"+G+"footercontent",A).get(0);E.innerHTML=D}else{var H=A.addContentArray;if(H.length>=B){B--;var _=H[B];E=$("#"+_+"_footercontent",A).get(0);E.innerHTML=D}}};DxEMRShow.setEMRPageWidth=function(D,E,B,A){var _=top.E_getObject(D,E,A),C=$("#"+E+"content",_).get(0);C.style.width=B+"mm"};DxEMRShow.setEMRPageHeight=function(D,E,B,A){var _=top.E_getObject(D,E,A),C=$("#"+E+"content",_).get(0);C.style.height=B+"mm";C.style.maxHeight=B+"mm"};DxEMRShow.setEMRLineHeight=function(G,I,E,D,C){var B=top.E_getObject(G,I,D),F,H,A;if(C==null||C=="0"){F=$("#"+I+"content",B).get(0);H=$("#"+I+"headercontent",B).get(0);A=$("#"+I+"footercontent",B).get(0)}else{var J=B.addContentArray;if(J.length>=C){C--;var _=J[C];F=$("#"+_+"_content",B).get(0);H=$("#"+_+"_header",B).get(0);A=$("#"+_+"_footer",B).get(0)}else return}if(F.styleline!="true")F.style.lineHeight=E;H.style.lineHeight=E;A.style.lineHeight=E};DxEMRShow.setEMRLetterSpacing=function(G,I,E,D,C){var B=top.E_getObject(G,I,D),F,H,A;if(C==null||C=="0"){F=$("#"+I+"content",B).get(0);H=$("#"+I+"headercontent",B).get(0);A=$("#"+I+"footercontent",B).get(0)}else{var J=B.addContentArray;if(J.length>=C){C--;var _=J[C];F=$("#"+_+"_content",B).get(0);H=$("#"+_+"_header",B).get(0);A=$("#"+_+"_footer",B).get(0)}else return}F.style.letterSpacing=E+"mm";H.style.letterSpacing=E+"mm";A.style.letterSpacing=E+"mm"};DxEMRShow.setEMRPagePadding=function(B,D,I,A,H){var G=top.E_getObject(B,D,A),J,_=H;if(H==null||H=="0")J=$("#"+D+"content",G).get(0);else{var E=G.addContentArray;if(E.length>=H){H--;var F=E[H];J=$("#"+F+"_content",G).get(0)}else return}var C=I.split("&");if(C.length==4){J.style.borderLeft=C[0]+"mm"+" solid #ffffff";J.style.borderRight=C[1]+"mm"+" solid #ffffff";J.pl=C[0];J.pr=C[1];J.pt=C[2];J.pb=C[3];DxEMRShow.initEdit(B,D,_)}else if(C.length==6){J.style.borderLeft=C[0]+"mm"+" solid #ffffff";J.style.borderRight=C[1]+"mm"+" solid #ffffff";J.pl=C[0];J.pr=C[1];J.pt=C[2];J.pb=C[3];if(top.isIE)J.style.width=C[4]+"mm";else J.style.width=C[4]-C[0]-C[1]+"mm";var K=C[5]-C[2]-C[3];if(top.isIE)J.style.height=K+"mm";J.style.minHeight=K+"mm";J.pageheight=C[5];J.pagewidth=C[4];DxEMRShow.initEdit(B,D,_)}DxEMRShow.processPageLine(B,D,true,_)};DxEMRShow.changedata=function(B,E){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,E,A);if(_!=null){var D=$("#"+E+"content",_).get(0);if(D!=null)return D.innerHTML;else return null}else return null};DxEMRShow.changefooterdata=function(B,E){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,E,A);if(_!=null){var D=$("#"+E+"footercontent",_).get(0);if(D!=null)return D.innerHTML;else return null}else return null};DxEMRShow.changeheaderdata=function(B,E){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,E,A);if(_!=null){var D=$("#"+E+"headercontent",_).get(0);if(D!=null)return D.innerHTML;else return null}else return null};DxEMRShow.onKeyDown=function(_,A,$){var B=$.keyCode;$.cancelBubble=true;if(B==8);return true};DxEMRShow.setstyleline=function(G,H,F,E,D){try{var C=top.E_getObject(G,H,E),A;if(D==null||D=="0")A=$("#"+H+"content",C).get(0);else{var I=C.addContentArray;if(I.length>=D){D--;var _=I[D];A=$("#"+_+"_content",C).get(0)}else return}A.styleline=F;if(F=="true"){A.style.background="#ffffff url("+watLocation2+"/images/emr/\u98ce\u683c\u7ebf.png) repeat";A.style.lineHeight="23px"}else{A.style.background="#ffffff";A.style.lineHeight=null}}catch(B){}};DxEMRShow.createContent=function(D,G,M,C){try{var N=top.E_getObject(D,G,C),_=N.wrap,H=N.addContentArray;M--;if(M==H.length)return;else if(M<H.length){var E=H.length-M;for(var I=0;I<E;I++){var O=H.pop(),J=$("#"+O+"_content",N).get(0);DxEMRShow.clearPageLine(J,_);$("div[wataddcontent='"+O+"']",_).remove()}}else if(M>H.length){E=M-H.length;for(I=0;I<E;I++){var K=createGuid(),A=addEmrContent.replace("#{split}",K+"_split");A=A.replace("#{header}",K+"_header");A=A.replace("#{headerleft}",K+"_headerleft");A=A.replace("#{headerright}",K+"_headerright");A=A.replace("#{headercontent}",K+"_headercontent");A=A.replace("#{content}",K+"_content");A=A.replace("#{footer}",K+"_footer");A=A.replace("#{footerleft}",K+"_footerleft");A=A.replace("#{footerright}",K+"_footerright");A=A.replace("#{footercontent}",K+"_footercontent");A=A.replaceAll("{wataddcontent}","wataddcontent='"+K+"'");$(_).append(A);$$(K+"_content",D,C).delegate("ins,del","mouseover",function(A){try{if(!A.cancelBubble){var B=(this.attributes["oldhj"]==null?"":"<span style='color:red'>"+this.attributes["oldhj"].nodeValue+this.innerText+"</span><br>")+this.attributes["cite"].nodeValue+",<span>"+this.getAttribute("datetime")+"</span> "+(this.tagName=="INS"?"\u63d2\u5165":"\u5220\u9664")+"\u7684\u5185\u5bb9<cite>"+this.innerText+"</cite>";$tip.html(B).css({left:Math.min(A.pageX,document.body.clientWidth-250),top:A.pageY-$("#tip").height()-30}).show();A.cancelBubble=true;A.preventDefault()}else{A.cancelBubble=true;A.preventDefault()}}catch(_){}}).delegate("ins,del","mouseout",function(){try{$tip.hide()}catch($){}});$$(K+"_headercontent",D,C).delegate("ins,del","mouseover",function(A){try{if(!A.cancelBubble){var B=(this.attributes["oldhj"]==null?"":"<span style='color:red'>"+this.attributes["oldhj"].nodeValue+this.innerText+"</span><br>")+this.attributes["cite"].nodeValue+",<span>"+this.getAttribute("datetime")+"</span> "+(this.tagName=="INS"?"\u63d2\u5165":"\u5220\u9664")+"\u7684\u5185\u5bb9<cite>"+this.innerText+"</cite>";$tip.html(B).css({left:Math.min(A.pageX,document.body.clientWidth-250),top:A.pageY-$("#tip").height()-30}).show();A.cancelBubble=true;A.preventDefault()}else{A.cancelBubble=true;A.preventDefault()}}catch(_){}}).delegate("ins,del","mouseout",function(){try{$tip.hide()}catch($){}});$$(K+"_footercontent",D,C).delegate("ins,del","mouseover",function(A){try{if(!A.cancelBubble){var B=(this.attributes["oldhj"]==null?"":"<span style='color:red'>"+this.attributes["oldhj"].nodeValue+this.innerText+"</span><br>")+this.attributes["cite"].nodeValue+",<span>"+this.getAttribute("datetime")+"</span> "+(this.tagName=="INS"?"\u63d2\u5165":"\u5220\u9664")+"\u7684\u5185\u5bb9<cite>"+this.innerText+"</cite>";$tip.html(B).css({left:Math.min(A.pageX,document.body.clientWidth-250),top:A.pageY-$("#tip").height()-30}).show();A.cancelBubble=true;A.preventDefault()}else{A.cancelBubble=true;A.preventDefault()}}catch(_){}}).delegate("ins,del","mouseout",function(){try{$tip.hide()}catch($){}});var L=$$(K+"_content",D,C).get(0);L.pl="10";L.pr="10";L.pt="10";L.pb="10";var F=new Array();L.pagelines=F;H.push(K)}}}catch(B){}};DxEMRShow.blurText_=function(B,C,A){var _=top.E_clientModel.E_getWindow(B);if(_==null)return;var $=A.getAttribute("wattype");if($=="header")WatCore.setParameter(B,C,top.DC.EMR_HEADER_TEXT,A.innerHTML);else if($=="content")WatCore.setParameter(B,C,top.DC.EMR_TEXT,A.innerHTML);else if($=="footer")WatCore.setParameter(B,C,top.DC.EMR_FOOTER_TEXT,A.innerHTML)};DxEMRShow.doclick=function($){$.setActive();if(top.isIE)$.ownerDocument.selection.createRange().select();else $.focus()};DxEMRShow.clearEMRSectionValue=function(B,C,D,I,A){var G=top.E_getObject(B,C,A),J=DxEMREditor.getEditArea(C,G);DxEMRShow.doclick(J);var F=$("#"+D,J).get(0),E=$("#"+I,J).get(0),_="";if(F!=null&&E){var H,K=J.document.selection,H=K.createRange();H.moveToElementText(E);H.select();H.moveStart("character",-1);H.moveEnd("character",-1);while(H.htmlText.indexOf(D)<0&&H.htmlText.indexOf("watend")<0)H.moveStart("character",-1);H.moveStart("character",0);H.moveStart("character",1);H.select();_=H.htmlText;H.execCommand("Delete");H.moveStart("character",0);H.moveEnd("character",0);H.select();DxEMRShow.processPageLine(B,C,false)}return _};DxEMRShow.setEMRSectionValue=function(D,F,G,O,M,C){var K=top.E_getObject(D,F,C),P=DxEMREditor.getEditArea(F,K);DxEMRShow.doclick(P);var N,Q=P.document.selection,N=Q.createRange(),J=$("#"+G,P).get(0),H=$("#"+O,P).get(0),_=DxEMRShow.clearEMRSectionValue(D,F,G,O,C),A=J.innerHTML;if(A!="["){var B=A.split("[");A="";for(var I=0;I<B.length;I++)A+=B[I];J.innerHTML="["}else A="";var L=H.innerHTML;if(L!="]"){B=L.split("]");L="";for(I=0;I<B.length;I++)L+=B[I];H.innerHTML="]"}else L="";if(J!=null&&H!=null){N.moveToElementText(H);N.select();N.moveStart("character",-1);N.moveEnd("character",-1);if(N.htmlText.indexOf(G)>=0){var E=DxEMRShow.insertAfter(N.parentElement(),A+_+M+L,C);N.moveToElementText(E);N.collapse(false);N.select()}else{N.moveStart("character",0);N.moveEnd("character",0);N.collapse(false);N.select();N.pasteHTML(A+_+M+L);N.moveStart("character",0);N.moveEnd("character",0);N.select()}DxEMRShow.blurText_(D,F,P);DxEMRShow.processPageLine(D,F,false)}};DxEMRShow.setDataElementConent=function(B,D,A,C,L,G){var I=top.E_getObject(B,D,A),J=DxEMREditor.getEditArea(D,I),_=I.wrap,K=$(_).find("span[watvalue $='"+C+"'],[watzsdid $='"+C+"']");for(var E=0;E<K.length;E++){var H=$(K[E]),F=H.attr("watsuntype");if(F=="s2")H.text(G);else if(F=="t1"||F=="t2"||F=="t3"){H.attr("watvalue",L);H.text(G)}else if(F=="t4"||F=="t5"||F=="t6"){H.attr("watvalue",L);H.text(G)}}DxEMRShow.blurText_(B,D,J);DxEMRShow.processPageLine(B,D,false)};DxEMRShow.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length)}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.CREATE_EMRXUDA_MASK:top.DxEMRShow.createXudaMask($,B,I,H,K);break;case top.DC.EMR_SET_DATA:var E=I.split("@wat@");top.DxEMRShow.setDataElementConent($,B,H,E[0],E[1],E[2]);break;case top.DC.CREATE_EMRSHOW_CONTENT:top.DxEMRShow.createContent($,B,I,H);break;case top.DC.TEXT:top.DxEMRShow.setEMRContent($,B,I,H,K);top.E_emrshowChange.E_put(B,$);break;case top.DC.EMR_HEADER_TEXT:top.DxEMRShow.setEMRHeaderContent($,B,I,H,K);top.E_emrshowChange.E_put(B,$);break;case top.DC.EMR_FOOTER_TEXT:top.DxEMRShow.setEMRFooterContent($,B,I,H,K);top.E_emrshowChange.E_put(B,$);break;case top.DC.EMR_PAGE_WIDTH:top.DxEMRShow.setEMRPageWidth($,B,I,H);break;case top.DC.EMR_PAGE_HEIGHT:top.DxEMRShow.setEMRPageHeight($,B,I,H);break;case top.DC.EMR_PAGE_LINEHEIGHT:top.DxEMRShow.setEMRLineHeight($,B,I,H,K);break;case top.DC.EMR_LETTER_SPACING:top.DxEMRShow.setEMRLetterSpacing($,B,I,H,K);break;case top.DC.PADDING:top.DxEMRShow.setEMRPagePadding($,B,I,H,K);break;case top.DC.POP:var F=top.E_getObject($,B,H);F.popmenustr=I;break;case top.DC.EMR_STYLE_LINE:top.DxEMRShow.setstyleline($,B,I,H,K);break;default:break}}};function DxMulInteractiveVideo(){}DxMulInteractiveVideo.renderVideo=function(D,H,G,E,C){var B=top.E_getObject(D,H,C),I=B.clientHeight,F=B.clientWidth,_=WatCore.getCookie("watvideosound");if(_==null)_="100";var $=WatCore.getCookie("watvideomic");if($==null)$="90";var A="<object id=\""+H+"_video\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\"100%\" height=\"100%\" id=\""+H+"chat\" align=\"middle\">";A+="<param name=\"allowScriptAccess\" value=\"sameDomain\" />";A+="<param name=\"allowFullScreen\" value=\"true\" />";A+="<param name=\"wmode\" value=\"gpu\" />";A+="<param name=\"bgcolor\" value=\"#041c23\" />";A+="<param name=\"FlashVars\" value=\""+G+"&flashobjid="+H+"_video&clientheight="+I+"&clientwidth="+F+"&soundslid="+_+"&micslid="+$+"\" />";A+="<param name=\"scale\" value=\"exactfit\" />";A+="<param name=\"movie\" value=\"./mulinteractivevideo/"+E+"\" /><param name=\"quality\" value=\"Best\" /><param name=\"bgcolor\" value=\"#ffffff\" />\t<embed src=\"./mulinteractivevideo/"+E+"\" id=\""+H+"_video2\" FlashVars=\""+G+"&flashobjid="+H+"_video2&clientheight="+I+"&clientwidth="+F+"&soundslid="+_+"&micslid="+$+"\" quality=\"high\" bgcolor=\"#ffffff\" width=\"100%\" height=\"100%\" name=\""+H+"chat\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer_cn\" />";A+="</object>";B.innerHTML=A};DxMulInteractiveVideo.clear=function(B,A,D){try{var C;if(top.isIE)C=$("#"+D.id+"_video",D).get(0);else C=$("#"+D.id+"_video2",D).get(0);if(C!=null){C.callAsclose("test");D.innerHTML=""}}catch(_){}};DxMulInteractiveVideo.callAsclosevideo=function(D,F,B,C){var A=top.E_getObject(D,F,B),E;if(top.isIE)E=$("#"+F+"_video",A).get(0);else E=$("#"+F+"_video2",A).get(0);if(E!=null){try{E.callAsclosevideo(C)}catch(_){}}};DxMulInteractiveVideo.callresetconnection=function(C,E,B){var A=top.E_getObject(C,E,B),D;if(top.isIE)D=$("#"+E+"_video",A).get(0);else D=$("#"+E+"_video2",A).get(0);if(D!=null){try{D.callresetconnection("test")}catch(_){}}};DxMulInteractiveVideo.callreloadvideo=function(D,F,B,C){var A=top.E_getObject(D,F,B),E;if(top.isIE)E=$("#"+F+"_video",A).get(0);else E=$("#"+F+"_video2",A).get(0);if(E!=null){try{E.callreloadvideo(C)}catch(_){}}};DxMulInteractiveVideo.callinitvideoconnection=function(D,F,B,C){var A=top.E_getObject(D,F,B),E;if(top.isIE)E=$("#"+F+"_video",A).get(0);else E=$("#"+F+"_video2",A).get(0);if(E!=null){try{E.callinitvideoconnection(C)}catch(_){}}};DxMulInteractiveVideo.callcloseallvideo=function(C,E,B){var A=top.E_getObject(C,E,B),D;if(top.isIE)D=$("#"+E+"_video",A).get(0);else D=$("#"+E+"_video2",A).get(0);if(D!=null){try{D.callcloseallvideo()}catch(_){}}};DxMulInteractiveVideo.clientmessagecall=function(D,F,B,C){var A=top.E_getObject(D,F,B),E;if(top.isIE)E=$("#"+F+"_video",A).get(0);else E=$("#"+F+"_video2",A).get(0);if(E!=null){try{E.clientmessagecall(C)}catch(_){}}};DxMulInteractiveVideo.connectionState=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.setParameter(C,D,top.DC.TEXT,A[2]);WatCore.sendACallToChartNotifyDataChange(C,D,"connectionstate")}};DxMulInteractiveVideo.serverMessageCall=function(D){var A=D.split("@wat@");if(A.length==3){var C=A[0],E=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,E,_);WatCore.setParameter(C,E,top.DC.TEXT,A[2]);WatCore.sendACallToChart(C,E,"action")}};DxMulInteractiveVideo.saveCookies=function(D){var A=D.split("@wat@");if(A.length==4){var C=A[0],E=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,E,_);WatCore.SetCookie(A[2],A[3])}};DxMulInteractiveVideo.resizeaction=function(A,D,F){var C=$("#"+D+"_video",F).get(0),E=F.clientHeight,B=F.clientWidth;if(C!=null){try{C.callAsFunction(B+","+E)}catch(_){}}};DxMulInteractiveVideo.setjtms=function(D,F,B,C){var A=top.E_getObject(D,F,B),E;if(top.isIE)E=$("#"+F+"_video",A).get(0);else E=$("#"+F+"_video2",A).get(0);if(E!=null){try{E.callAsJtms(C)}catch(_){}}};DxMulInteractiveVideo.setspms=function(D,F,B,C){var A=top.E_getObject(D,F,B),E;if(top.isIE)E=$("#"+F+"_video",A).get(0);else E=$("#"+F+"_video2",A).get(0);if(E!=null){try{E.callAsSpms(C)}catch(_){}}};DxMulInteractiveVideo.sethasnosound=function(E,G,C,D,A){var B=top.E_getObject(E,G,C),F;if(top.isIE)F=$("#"+G+"_video",B).get(0);else F=$("#"+G+"_video2",B).get(0);if(F!=null){try{F.callhasnosound(D+"@"+A)}catch(_){}}};DxMulInteractiveVideo.resetvideo=function(C,F,B,D){var A=top.E_getObject(C,F,B),E;if(top.isIE)E=$("#"+F+"_video",A).get(0);else E=$("#"+F+"_video2",A).get(0);if(E!=null){try{E.callresetvideo(D)}catch(_){}}};DxMulInteractiveVideo.videoMeetingServerJoin=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"videoMeetingServerJoin",A[2])}};DxMulInteractiveVideo.videoMeetingServerQuit=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"videoMeetingServerQuit",A[2])}};DxMulInteractiveVideo.videoToMini=function(D){var _=D.split("@wat@");if(_.length==3){var B=_[0],C=_[1],A=top.E_clientModel.E_getWindow(B),$=WatCore.getWindowDoc(B,A);top.updateWindowStateFromServer(B,WIN_STATE_NOR);if("lefttop"==_[2])top.leftTopWindow(B);else if("leftbottom"==_[2])top.leftBottomWindow(B);else if("righttop"==_[2])top.rightTopWindow(B);else if("rightbottom"==_[2])top.rightBottomWindow(B);else top.rightTopWindow(B)}};DxMulInteractiveVideo.videoToMax=function(D){var _=D.split("@wat@");if(_.length==3){var B=_[0],C=_[1],A=top.E_clientModel.E_getWindow(B),$=WatCore.getWindowDoc(B,A);top.updateWindowStateFromServer(B,WIN_STATE_MAX)}};DxMulInteractiveVideo.showScanQRcode=function(C,F,B,D){var A=top.E_getObject(C,F,B),E;if(top.isIE)E=$("#"+F+"_video",A).get(0);else E=$("#"+F+"_video2",A).get(0);if(E!=null){try{E.showScanQRcode(D)}catch(_){}}};DxMulInteractiveVideo.scanQRcodeReturn=function(E){var A=E.split("@wat@");if(A.length==4){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"scanQRcodeReturn",A[2]+"&"+A[3])}};DxMulInteractiveVideo.getPPTImg=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"getPPTImg",A[2])}};DxMulInteractiveVideo.returnPPTImg=function(C,F,B,D){var A=top.E_getObject(C,F,B),E;if(top.isIE)E=$("#"+F+"_video",A).get(0);else E=$("#"+F+"_video2",A).get(0);if(E!=null){try{E.returnPPTImg(D)}catch(_){}}};DxMulInteractiveVideo.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,K;if(A>-1){C=I.substring(0,A);K=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(K=="renderVideo"){var J=H.split("|");DxMulInteractiveVideo.renderVideo($,B,J[0],J[1],G)}else if(K=="jtms")DxMulInteractiveVideo.setjtms($,B,G,H);else if(K=="spms")DxMulInteractiveVideo.setspms($,B,G,H);else if(K=="hassound")DxMulInteractiveVideo.sethasnosound($,B,G,E[0],E[1]);else if(K=="resetVideo")DxMulInteractiveVideo.resetvideo($,B,G,E[0]);else if(K=="clientmessagecall")DxMulInteractiveVideo.clientmessagecall($,B,G,E[0]);else if(K=="callreloadvideo")DxMulInteractiveVideo.callreloadvideo($,B,G,E[0]);else if(K=="callresetconnection")DxMulInteractiveVideo.callresetconnection($,B,G);else if(K=="callinitvideoconnection")DxMulInteractiveVideo.callinitvideoconnection($,B,G,E[0]);else if(K=="callcloseallvideo")DxMulInteractiveVideo.callcloseallvideo($,B,G);else if(K=="callAsclosevideo")DxMulInteractiveVideo.callAsclosevideo($,B,G,E[0]);else if(K=="showScanQRcode")DxMulInteractiveVideo.showScanQRcode($,B,G,E[0]);else if(K=="returnPPTImg")DxMulInteractiveVideo.returnPPTImg($,B,G,E[0]);break;default:break}}};function DxDICOMImageViewer(){}DxDICOMImageViewer.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_ImageViewer' width=100% height=100% CLASSID=\"CLSID:16A0B811-0DFF-4603-9E16-A36B3B69AF74\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMImageViewer.ImageViewerinit=function(G,H,D,F,E,_){var C=top.E_getObject(G,H,D),A=top.E_getObject(G,_+"DICOM_IconBar",D),B=$("#"+H+"DICOM_ImageViewer",C).get(0);if(B!=null&&A!=null){B.IconBarHandle=A.Handle;B.RowCount=F;B.ColCount=E;B.ShowBorderText=1;B.ShowRuller=1;B.LeftButtonDefaultOperation=14;B.RightButtonDefaultOperation=0;B.FontSize=3;B.MagnifierBoxSize=200;B.MagnifierZoomRatio=2;B.ShowSeriesDescription=1}};DxDICOMImageViewer.OpenLocalImage=function(E,F,B){var D=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,D),A=top.E_getObject(E,F,C),_=$("#"+F+"DICOM_ImageViewer",A).get(0);if(_!=null){_.OpenLocalImage(B);_.Refresh()}};DxDICOMImageViewer.OpenRemoteImage=function(C,G,A,_,H,$,F,E){var B=top.E_clientModel.E_getWindow(C),D=WatCore.getWindow(C,B);D.setTimeout("top.DxDICOMImageViewer.OpenRemoteImage2('"+C+"','"+G+"','"+A+"','"+_+"','"+H+"','"+$+"','"+F+"','"+E+"')",10)};DxDICOMImageViewer.OpenRemoteImage2=function(E,F,B,A,K,_,I,J){var H=top.E_clientModel.E_getWindow(E),D=WatCore.getWindowDoc(E,H),G=top.E_getObject(E,F,D),C=$("#"+F+"DICOM_ImageViewer",G).get(0);if(C!=null)C.OpenRemoteImage(B,A,K,_,I,J)};DxDICOMImageViewer.displayformat=function(D,F,G,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,F,B),_=$("#"+F+"DICOM_ImageViewer",A).get(0);if(_!=null){_.RowCount=G;_.ColCount=E}};DxDICOMImageViewer.ReadDCMFileInfo=function(C,H,D,B){var L=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,L),J=top.E_getObject(C,H,A),_=$("#"+H+"DICOM_ImageViewer",J).get(0);if(_!=null){alert("\u662f\u5426\u786e\u5b9a\u4e0a\u4f20");var E=new Array(_.Count),G=0;if(parseInt(D)>=0&&parseInt(B)>=0){E[G]=new Array(20);E[G][0]=_.ImageBox.Items(D).Items(B).StudyInstanceUID;E[G][1]=_.ImageBox.Items(D).Items(B).SOPInstanceUID;E[G][2]=_.ImageBox.Items(D).Items(B).PatientName;E[G][3]=_.ImageBox.Items(D).Items(B).OtherPatientName;E[G][4]=_.ImageBox.Items(D).Items(B).PatientID;E[G][5]=_.ImageBox.Items(D).Items(B).PatientBirthdate;E[G][6]=_.ImageBox.Items(D).Items(B).PatientAge;E[G][7]=_.ImageBox.Items(D).Items(B).PatientSex;E[G][8]=_.ImageBox.Items(D).Items(B).InstitutionName;E[G][9]=_.ImageBox.Items(D).Items(B).SeriesInstanceUID;E[G][10]=_.ImageBox.Items(D).Items(B).StudyID;E[G][11]=_.ImageBox.Items(D).Items(B).StudyDate;E[G][12]=_.ImageBox.Items(D).Items(B).StudyTime;E[G][13]=_.ImageBox.Items(D).Items(B).Modality;E[G][14]=_.ImageBox.Items(D).Items(B).SeriesNumber;E[G][15]=_.ImageBox.Items(D).Items(B).ImageNumber;E[G][16]=_.ImageBox.Items(D).Items(B).Selected;E[G][17]=_.ImageBox.Items(D).Items(B).FileName;E[G][18]=_.ImageBox.Items(D).Items(B).Row;E[G][19]=_.ImageBox.Items(D).Items(B).Column}else for(var F=0;F<_.ImageBox.Count;F++)for(var I=0;I<_.ImageBox.Items(F).ImageCount;I++){E[G]=new Array(20);E[G][0]=_.ImageBox.Items(F).Items(I).StudyInstanceUID;E[G][1]=_.ImageBox.Items(F).Items(I).SOPInstanceUID;E[G][2]=_.ImageBox.Items(F).Items(I).PatientName;E[G][3]=_.ImageBox.Items(F).Items(I).OtherPatientName;E[G][4]=_.ImageBox.Items(F).Items(I).PatientID;E[G][5]=_.ImageBox.Items(F).Items(I).PatientBirthdate;E[G][6]=_.ImageBox.Items(F).Items(I).PatientAge;E[G][7]=_.ImageBox.Items(F).Items(I).PatientSex;E[G][8]=_.ImageBox.Items(F).Items(I).InstitutionName;E[G][9]=_.ImageBox.Items(F).Items(I).SeriesInstanceUID;E[G][10]=_.ImageBox.Items(F).Items(I).StudyID;E[G][11]=_.ImageBox.Items(F).Items(I).StudyDate;E[G][12]=_.ImageBox.Items(F).Items(I).StudyTime;E[G][13]=_.ImageBox.Items(F).Items(I).Modality;E[G][14]=_.ImageBox.Items(F).Items(I).SeriesNumber;E[G][15]=_.ImageBox.Items(F).Items(I).ImageNumber;E[G][16]=_.ImageBox.Items(F).Items(I).Selected;E[G][17]=_.ImageBox.Items(F).Items(I).FileName;E[G][18]=_.ImageBox.Items(F).Items(I).Row;E[G][19]=_.ImageBox.Items(F).Items(I).Column;G++}var K="";for(I=0;I<E.length;I++){K+=E[I];if(I<E.length-1)K+="&"}WatCore.setParameter(C,H,top.DC.TEXT,K);WatCore.sendACallToChart(C,H,"action")}};DxDICOMImageViewer.Refresh=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null)_.Refresh()};DxDICOMImageViewer.Clear=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null)_.Clear()};DxDICOMImageViewer.Fit=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.Fit()};DxDICOMImageViewer.Delete=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.Delete()};DxDICOMImageViewer.Copy=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.Copy()};DxDICOMImageViewer.Paste=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.Paste()};DxDICOMImageViewer.Play=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.Play()};DxDICOMImageViewer.SetWindowLiving=function(E,F,C,D,B){var A=top.E_getObject(E,F,C),_=$("#"+F+"DICOM_ImageViewer",A).get(0);if(_!=null)_.SetWindowLiving(D,B)};DxDICOMImageViewer.FlipHorizontal=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.FlipHorizontal()};DxDICOMImageViewer.FlipVertical=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.FlipVertical()};DxDICOMImageViewer.RotateClockwise=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.RotateClockwise()};DxDICOMImageViewer.RotateAntiClockwise=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.RotateAntiClockwise()};DxDICOMImageViewer.Negative=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.Negative()};DxDICOMImageViewer.Sharpen=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.Sharpen(_)};DxDICOMImageViewer.Soften=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.Soften()};DxDICOMImageViewer.PseudoColor=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.PseudoColor()};DxDICOMImageViewer.ClearOverlay=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.ClearOverlay()};DxDICOMImageViewer.ShowLocalizer=function(E,F,D,A,C){var B=top.E_getObject(E,F,D),_=$("#"+F+"DICOM_ImageViewer",B).get(0);if(_!=null)_.ShowLocalizer(A,C)};DxDICOMImageViewer.Import=function(D,G,C,F,_,E){var B=top.E_getObject(D,G,C),A=$("#"+G+"DICOM_ImageViewer",B).get(0);if(A!=null)A.Import(F,_,E)};DxDICOMImageViewer.SelectSignalImage=function(D,F,C,_,E){var B=top.E_getObject(D,F,C),A=$("#"+F+"DICOM_ImageViewer",B).get(0);if(A!=null)A.SelectSignalImage(_,E)};DxDICOMImageViewer.ExportSelectedImage=function(F,H,D,C,_,E){var B=top.E_getObject(F,H,D),A=$("#"+H+"DICOM_ImageViewer",B).get(0);if(A!=null){var G="ExportSelectedImage:";G+=A.ExportSelectedImage(C,_,E);WatCore.setParameter(F,H,top.DC.TEXT,G);WatCore.sendACallToChart(F,H,"action")}};DxDICOMImageViewer.ExportSelectedImageA=function(E,F,D,C,_){var B=top.E_getObject(E,F,D),A=$("#"+F+"DICOM_ImageViewer",B).get(0);if(A!=null)A.ExportSelectedImageA(C,_)};DxDICOMImageViewer.ExportAVI=function(E,F,D,C,B){var A=top.E_getObject(E,F,D),_=$("#"+F+"DICOM_ImageViewer",A).get(0);if(_!=null)_.ExportAVI(C,B)};DxDICOMImageViewer.ReWriteLocalImage=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.ReWriteLocalImage(_)};DxDICOMImageViewer.getBackColor=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.BackColor;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setBackColor=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.BackColor=falg};DxDICOMImageViewer.getBorderColor=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.BorderColor;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setBorderColor=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.BorderColor=falg};DxDICOMImageViewer.getRowCount=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.RowCount;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setRowCount=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.RowCount=falg};DxDICOMImageViewer.getColCount=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.ColCount;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setColCount=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.ColCount=falg};DxDICOMImageViewer.getShowScrollBar=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.ShowScrollBar;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setShowScrollBar=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.ShowScrollBar=falg};DxDICOMImageViewer.getShowGrid=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.ShowGrid;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setShowGrid=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.ShowGrid=falg};DxDICOMImageViewer.getSelectType=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.SelectType;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setSelectType=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.SelectType=parseInt(_)};DxDICOMImageViewer.getFontSize=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.FontSize;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setFontSize=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.FontSize=falg};DxDICOMImageViewer.getFontColor=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.FontColor;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setFontColor=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.FontColor=falg};DxDICOMImageViewer.getLeftTopText=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.LeftTopText;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setLeftTopText=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.LeftTopText.Append(_)};DxDICOMImageViewer.getRightTopText=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.RightTopText;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setRightTopText=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.RightTopText.Append(_)};DxDICOMImageViewer.getLeftBottomText=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.LeftBottomText;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setLeftBottomText=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.LeftBottomText.Append(_)};DxDICOMImageViewer.getRightBottomText=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.RightBottomText;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setRightBottomText=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.RightBottomText.Append(_)};DxDICOMImageViewer.getShowBorderText=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.ShowBorderText;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setShowBorderText=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.ShowBorderText=_};DxDICOMImageViewer.ProcessingType=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.ProcessingType=_};DxDICOMImageViewer.getOverlayColor=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.OverlayColor;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setOverlayColor=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.OverlayColor=_};DxDICOMImageViewer.getLeftButtonDefaultOperation=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.LeftButtonDefaultOperation;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setLeftButtonDefaultOperation=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.LeftButtonDefaultOperation=_};DxDICOMImageViewer.getRightButtonDefaultOperation=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.RightButtonDefaultOperation;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setRightButtonDefaultOperation=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.RightButtonDefaultOperation=_};DxDICOMImageViewer.getMagnifierZoomRatio=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.MagnifierZoomRatio;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setMagnifierZoomRatio=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.MagnifierZoomRatio=_};DxDICOMImageViewer.getMagnifierBoxSize=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.MagnifierBoxSize;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setMagnifierBoxSize=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.MagnifierBoxSize=_};DxDICOMImageViewer.getSelectImageButton=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.SelectImageButton;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setSelectImageButton=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.SelectImageButton=_};DxDICOMImageViewer.getLocalizerColor=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.LocalizerColor;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setLocalizerColor=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.LocalizerColor=_};DxDICOMImageViewer.getShowRuller=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.ShowRuller;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setShowRuller=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.ShowRuller=_};DxDICOMImageViewer.IconBar=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.IconBar=_};DxDICOMImageViewer.IconBarHandle=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.IconBarHandle=_};DxDICOMImageViewer.getDefaultImageElement=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.DefaultImageElement;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setDefaultImageElement=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.DefaultImageElement=_};DxDICOMImageViewer.getSeriesGearing=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.SeriesGearing;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setSeriesGearing=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.SeriesGearing=_};DxDICOMImageViewer.Player=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.SeriesGearing;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.Restore=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.Restore()};DxDICOMImageViewer.Count=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.Count;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.Items=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.Items;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.ClickedSeries=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.ClickedSeries;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.getLocalizerDashStyle=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.LocalizerDashStyle;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setLocalizerDashStyle=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.LocalizerDashStyle=_};DxDICOMImageViewer.ImageBox=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.ImageBox;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.getShowAperture=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.ShowAperture;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setShowAperture=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.ShowAperture=_};DxDICOMImageViewer.getApertureType=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.ApertureType;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setApertureType=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.ApertureType=_};DxDICOMImageViewer.Regions=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.Regions;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.GetCTValue=function(D,F,B,G,E){var A=top.E_getObject(D,F,B),_=$("#"+F+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.ImageInfo.SeriesInstanceUID;WatCore.setParameter(D,F,top.DC.TEXT,C);WatCore.sendACallToChart(D,F,"action")}};DxDICOMImageViewer.ImageRegion=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.Regions.ImageRegion;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.getAlgorithm=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.Regions.Algorithm;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setAlgorithm=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.Regions.Algorithm=_};DxDICOMImageViewer.getRegionTool=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.Regions.RegionTool;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setRegionTool=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.Regions.RegionTool=_};DxDICOMImageViewer.ReBuild=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.Regions.ImageRegion.ReBuild()};DxDICOMImageViewer.getVisible=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null){var C=_.Regions.ImageRegion.Visible;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMImageViewer.setVisible=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.Regions.ImageRegion.Visible=_};DxDICOMImageViewer.setScrollMode=function(D,E,B,C){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null)_.ScrollMode=C};DxDICOMImageViewer.ExportSelectedImageR=function(E,H,B,C,D){var A=top.E_getObject(E,H,B),_=$("#"+H+"DICOM_ImageViewer",A).get(0);if(_!=null){var G="";for(var I=0;I<_.ImageBox.Count;I++)for(var F=0;F<_.ImageBox.Items(I).ImageCount;F++)if(_.ImageBox.Items(I).Items(F).Selected==1){G+=_.ImageBox.Items(I).Items(F).SOPInstanceUID+".jpg,";_.ImageBox.Items(I).Items(F).ExportImageA(C+_.ImageBox.Items(I).Items(F).SOPInstanceUID+".jpg",0)}WatCore.setParameter(E,H,top.DC.TEXT,G);WatCore.sendACallToChart(E,H,"action")}};DxDICOMImageViewer.ExportSelectedImageAR=function(D,G,B,C){var A=top.E_getObject(D,G,B),_=$("#"+G+"DICOM_ImageViewer",A).get(0);if(_!=null){var F="";for(var H=0;H<_.ImageBox.Count;H++)for(var E=0;E<_.ImageBox.Items(H).ImageCount;E++)if(_.ImageBox.Items(H).Items(E).Selected==1){F+=_.ImageBox.Items(H).Items(E).SOPInstanceUID+".jpg,";_.ImageBox.Items(H).Items(E).ExportImageA(C+_.ImageBox.Items(H).Items(E).SOPInstanceUID+".jpg",0)}WatCore.setParameter(D,G,top.DC.TEXT,F);WatCore.sendACallToChart(D,G,"action")}};DxDICOMImageViewer.ShowLicenseHint=function(D,E,B,C){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_ImageViewer",A).get(0);if(_!=null)_.ShowLicenseHint=C};DxDICOMImageViewer.StudysClear=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)_.StudysAllowed.Clear()};DxDICOMImageViewer.StudysAllowed=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_ImageViewer",B).get(0);if(A!=null)A.StudysAllowed.Append(_)};DxDICOMImageViewer.ImageViewerHandleA=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_ImageViewer",A).get(0);if(_!=null)return _.HandleA};DxDICOMImageViewer.render=function($,I,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),K=C,L;if(A>-1){C=K.substring(0,A);L=K.substring(A+1,K.length);var F=L.split("-");L=F[0]}var J=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_IMAGEVIEWERINIT:var H=J.split("&");top.DxDICOMImageViewer.ImageViewerinit($,B,I,H[0],H[1],H[2]);break;case top.DC.DICM_OPENLOCALIMAGE:top.DxDICOMImageViewer.OpenLocalImage($,B,J);break;case top.DC.DICM_OPENREMOTEIMAGE:H=J.split("&");top.DxDICOMImageViewer.OpenRemoteImage($,B,H[0],H[1],H[2],H[3],H[4],H[5]);break;case top.DC.DICM_DISPLAYFORMAT:H=J.split("&");top.DxDICOMImageViewer.displayformat($,B,H[0],H[1]);break;case top.DC.DICM_READDCMFILEINFO:var E=J.split("@wat@");top.DxDICOMImageViewer.ReadDCMFileInfo($,B,E[0],E[1]);break;case top.DC.UPDATE_DATA:E=J.split("@wat@");if(L=="clear")DxDICOMImageViewer.Clear($,B,I);else if(L=="refresh")DxDICOMImageViewer.Refresh($,B,I);else if(L=="openremoteimage")top.DxDICOMImageViewer.OpenRemoteImage($,B,E[0],E[1],E[2],E[3],E[4],E[5]);else if(L=="openLocalImage")top.DxDICOMImageViewer.OpenLocalImage($,B,E[0]);else if(L=="Fit")DxDICOMImageViewer.Fit($,B,I);else if(L=="Delete")DxDICOMImageViewer.Delete($,B,I);else if(L=="Copy")DxDICOMImageViewer.Copy($,B,I);else if(L=="Paste")DxDICOMImageViewer.Paste($,B,I);else if(L=="Play")DxDICOMImageViewer.Play($,B,I);else if(L=="SetWindowLiving")DxDICOMImageViewer.SetWindowLiving($,B,I,E[0],E[1]);else if(L=="FlipHorizontal")DxDICOMImageViewer.FlipHorizontal($,B,I);else if(L=="FlipVertical")DxDICOMImageViewer.FlipVertical($,B,I);else if(L=="RotateClockwise")DxDICOMImageViewer.RotateClockwise($,B,I);else if(L=="RotateAntiClockwise")DxDICOMImageViewer.RotateAntiClockwise($,B,I);else if(L=="Negative")DxDICOMImageViewer.Negative($,B,I);else if(L=="Sharpen")DxDICOMImageViewer.Sharpen($,B,I,E[0]);else if(L=="Soften")DxDICOMImageViewer.Soften($,B,I);else if(L=="PseudoColor")DxDICOMImageViewer.PseudoColor($,B,I);else if(L=="ClearOverlay")DxDICOMImageViewer.ClearOverlay($,B,I);else if(L=="ShowLocalizer")DxDICOMImageViewer.ShowLocalizer($,B,I,E[0],E[1]);else if(L=="Import")DxDICOMImageViewer.Import($,B,I,E[0],E[1],E[2]);else if(L=="SelectSignalImage")DxDICOMImageViewer.SelectSignalImage($,B,I,E[0],E[1]);else if(L=="ExportSelectedImage")DxDICOMImageViewer.ExportSelectedImage($,B,I,E[0],E[1],E[2]);else if(L=="ExportSelectedImageA")DxDICOMImageViewer.ExportSelectedImageA($,B,I,E[0],E[1]);else if(L=="ExportAVI")DxDICOMImageViewer.ExportAVI($,B,I,E[0],E[1]);else if(L=="ReWriteLocalImage")DxDICOMImageViewer.ReWriteLocalImage($,B,I,E[0]);else if(L=="getBackColor")DxDICOMImageViewer.getBackColor($,B,I);else if(L=="setBackColor")DxDICOMImageViewer.setBackColor($,B,I,E[0]);else if(L=="getBorderColor")DxDICOMImageViewer.getBorderColor($,B,I);else if(L=="setBorderColor")DxDICOMImageViewer.setBorderColor($,B,I,E[0]);else if(L=="getRowCount")DxDICOMImageViewer.getRowCount($,B,I);else if(L=="setRowCount")DxDICOMImageViewer.setRowCount($,B,I,E[0]);else if(L=="getColCount")DxDICOMImageViewer.getColCount($,B,I);else if(L=="setColCount")DxDICOMImageViewer.setColCount($,B,I,E[0]);else if(L=="getShowScrollBar")DxDICOMImageViewer.getShowScrollBar($,B,I);else if(L=="setShowScrollBar")DxDICOMImageViewer.setShowScrollBar($,B,I,E[0]);else if(L=="getShowGrid")DxDICOMImageViewer.getShowGrid($,B,I);else if(L=="setShowGrid")DxDICOMImageViewer.setShowGrid($,B,I,E[0]);else if(L=="getSelectType")DxDICOMImageViewer.getSelectType($,B,I);else if(L=="setSelectType")DxDICOMImageViewer.setSelectType($,B,I,E[0]);else if(L=="getFontSize")DxDICOMImageViewer.getFontSize($,B,I);else if(L=="setFontSize")DxDICOMImageViewer.setFontSize($,B,I,E[0]);else if(L=="getFontColor")DxDICOMImageViewer.getFontColor($,B,I);else if(L=="setFontColor")DxDICOMImageViewer.setFontColor($,B,I,E[0]);else if(L=="getLeftTopText")DxDICOMImageViewer.getLeftTopText($,B,I);else if(L=="setLeftTopText")DxDICOMImageViewer.setLeftTopText($,B,I,E[0]);else if(L=="getRightTopText")DxDICOMImageViewer.getRightTopText($,B,I);else if(L=="setRightTopText")DxDICOMImageViewer.setRightTopText($,B,I,E[0]);else if(L=="getLeftBottomText")DxDICOMImageViewer.getLeftBottomText($,B,I);else if(L=="setLeftBottomText")DxDICOMImageViewer.setLeftBottomText($,B,I,E[0]);else if(L=="getRightBottomText")DxDICOMImageViewer.getRightBottomText($,B,I);else if(L=="setRightBottomText")DxDICOMImageViewer.setRightBottomText($,B,I,E[0]);else if(L=="getShowBorderText")DxDICOMImageViewer.getShowBorderText($,B,I);else if(L=="setShowBorderText")DxDICOMImageViewer.setShowBorderText($,B,I,E[0]);else if(L=="ProcessingType")DxDICOMImageViewer.ProcessingType($,B,I,E[0]);else if(L=="setShowBorderText")DxDICOMImageViewer.setShowBorderText($,B,I,E[0]);else if(L=="getOverlayColor")DxDICOMImageViewer.getOverlayColor($,B,I);else if(L=="setOverlayColor")DxDICOMImageViewer.setOverlayColor($,B,I,E[0]);else if(L=="getLeftButtonDefaultOperation")DxDICOMImageViewer.getLeftButtonDefaultOperation($,B,I);else if(L=="setLeftButtonDefaultOperation")DxDICOMImageViewer.setLeftButtonDefaultOperation($,B,I,E[0]);else if(L=="getRightButtonDefaultOperation")DxDICOMImageViewer.getRightButtonDefaultOperation($,B,I);else if(L=="setRightButtonDefaultOperation")DxDICOMImageViewer.setRightButtonDefaultOperation($,B,I,E[0]);else if(L=="getMagnifierZoomRatio")DxDICOMImageViewer.getMagnifierZoomRatio($,B,I);else if(L=="setMagnifierZoomRatio")DxDICOMImageViewer.setMagnifierZoomRatio($,B,I,E[0]);else if(L=="getMagnifierBoxSize")DxDICOMImageViewer.getMagnifierBoxSize($,B,I);else if(L=="setMagnifierBoxSize")DxDICOMImageViewer.setMagnifierBoxSize($,B,I,E[0]);else if(L=="getSelectImageButton")DxDICOMImageViewer.getSelectImageButton($,B,I);else if(L=="setSelectImageButton")DxDICOMImageViewer.setSelectImageButton($,B,I,E[0]);else if(L=="getLocalizerColor")DxDICOMImageViewer.getLocalizerColor($,B,I);else if(L=="setLocalizerColor")DxDICOMImageViewer.setLocalizerColor($,B,I,E[0]);else if(L=="getShowRuller")DxDICOMImageViewer.getShowRuller($,B,I);else if(L=="setShowRuller")DxDICOMImageViewer.setShowRuller($,B,I,E[0]);else if(L=="IconBar")DxDICOMImageViewer.IconBar($,B,I,E[0]);else if(L=="IconBarHandle")DxDICOMImageViewer.IconBarHandle($,B,I,E[0]);else if(L=="getDefaultImageElement")DxDICOMImageViewer.getDefaultImageElement($,B,I);else if(L=="setDefaultImageElement")DxDICOMImageViewer.setDefaultImageElement($,B,I,E[0]);else if(L=="getSeriesGearing")DxDICOMImageViewer.getSeriesGearing($,B,I);else if(L=="setSeriesGearing")DxDICOMImageViewer.setSeriesGearing($,B,I,E[0]);else if(L=="Player")DxDICOMImageViewer.Player($,B,I);else if(L=="Count")DxDICOMImageViewer.Count($,B,I);else if(L=="Items")DxDICOMImageViewer.Items($,B,I);else if(L=="ClickedSeries")DxDICOMImageViewer.ClickedSeries($,B,I);else if(L=="getLocalizerDashStyle")DxDICOMImageViewer.getLocalizerDashStyle($,B,I);else if(L=="setLocalizerDashStyle")DxDICOMImageViewer.setLocalizerDashStyle($,B,I,E[0]);else if(L=="ImageBox")DxDICOMImageViewer.ImageBox($,B,I);else if(L=="getShowAperture")DxDICOMImageViewer.getShowAperture($,B,I);else if(L=="setShowAperture")DxDICOMImageViewer.setShowAperture($,B,I,E[0]);else if(L=="getApertureType")DxDICOMImageViewer.getApertureType($,B,I);else if(L=="setApertureType")DxDICOMImageViewer.setApertureType($,B,I,E[0]);else if(L=="Regions")DxDICOMImageViewer.Regions($,B,I);else if(L=="GetCTValue")DxDICOMImageViewer.GetCTValue($,B,I,E[0],E[1]);else if(L=="Restore")DxDICOMImageViewer.Restore($,B,I);else if(L=="ImageRegion")DxDICOMImageViewer.ImageRegion($,B,I);else if(L=="getAlgorithm")DxDICOMImageViewer.getAlgorithm($,B,I);else if(L=="setAlgorithm")DxDICOMImageViewer.setAlgorithm($,B,I,E[0]);else if(L=="getRegionTool")DxDICOMImageViewer.getRegionTool($,B,I);else if(L=="setRegionTool")DxDICOMImageViewer.setRegionTool($,B,I,E[0]);else if(L=="ReBuild")DxDICOMImageViewer.ReBuild($,B,I);else if(L=="getVisible")DxDICOMImageViewer.getVisible($,B,I);else if(L=="setVisible")DxDICOMImageViewer.setVisible($,B,I,E[0]);else if(L=="setScrollMode")DxDICOMImageViewer.setScrollMode($,B,I,E[0]);else if(L=="ShowLicenseHint")DxDICOMImageViewer.ShowLicenseHint($,B,I,E[0]);else if(L=="ExportSelectedImageR")DxDICOMImageViewer.ExportSelectedImageR($,B,I,E[0],E[1]);else if(L=="ExportSelectedImageAR")DxDICOMImageViewer.ExportSelectedImageAR($,B,I,E[0]);else if(L=="StudysClear")DxDICOMImageViewer.StudysClear($,B,I);else if(L=="StudysAllowed")DxDICOMImageViewer.StudysAllowed($,B,I,E[0]);break;default:break}}};function DxDICOMStrings(){}DxDICOMStrings.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_Strings' CLASSID=\"CLSID:5449193A-EC17-466E-AFA8-CC0F4A7D29C9\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMStrings.add=function(F,G,D){var C=top.E_clientModel.E_getWindow(F),B=WatCore.getWindowDoc(F,C),_=top.E_getObject(F,G,B),E=$("#"+G+"DICOM_Strings",_).get(0);if(E!=null){var A=D.split("&");for(var H=0;H<A.length;H++)E.Add(A[H])}};DxDICOMStrings.Delete=function(D,E,B,_){var A=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_Strings",A).get(0);if(C!=null)C.Delete(_)};DxDICOMStrings.Value=function(D,E,B,_){var A=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_Strings",A).get(0);if(C!=null)return C.Value(_)};DxDICOMStrings.Clear=function(C,D,A){var _=top.E_getObject(C,D,A),B=$("#"+D+"DICOM_Strings",_).get(0);if(B!=null)B.Clear()};DxDICOMStrings.AssignTo=function(D,E,B,_){var A=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_Strings",A).get(0);if(C!=null)return C.AssignTo(_)};DxDICOMStrings.render=function(_,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.DICM_STRINGADD:top.DxDICOMStrings.add(_,F,C);break;case top.DC.UPDATE_DATA:var $=C.split("@wat@"),E=$[0];if(E=="delete")DxDICOMStrings.Delete(_,F,D,$[1]);else if(E=="value")DxDICOMStrings.Value(_,F,D,$[1]);else if(E=="clear")DxDICOMStrings.Clear(_,F,D);else if(E=="assignTo")DxDICOMStrings.AssignTo(_,F,D,$[1]);break;default:break}}};function DxDICOMIconBar(){}DxDICOMIconBar.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_IconBar' width=100% height=100% CLASSID=\"CLSID:A487F0DC-28C5-422A-BB88-1E591598ED42\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMIconBar.refresh=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_IconBar",A).get(0);if(_!=null)_.Refresh()};DxDICOMIconBar.FilmBoxHandle=function(D,F,C,_){var B=top.E_getObject(D,F,C),E=top.E_getObject(D,_+"DICOM_FilmBox",C),A=$("#"+F+"DICOM_IconBar",B).get(0);if(A!=null&&E!=null)A.FilmBoxHandle=E.Handle};DxDICOMIconBar.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="refresh")DxDICOMIconBar.refresh($,B,G);else if(J=="FilmBoxHandle")DxDICOMIconBar.FilmBoxHandle($,B,G,E[0]);break;default:break}}};function DxDICOMNetwork(){}DxDICOMNetwork.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_Network' CLASSID=\"CLSID:F733D246-071F-44E9-8EB0-F20096323E0D\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMNetwork.setSCU=function(D,E,I,G,_,F,A){var J=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,J),H=top.E_getObject(D,E,C),K=$("#"+E+"DICOM_Network",H).get(0);try{if(K!=null){K.AETitle=I;K.Port=104;K.Gateways.Append(G,_,F,A)}}catch(B){alert(B.message)}};DxDICOMNetwork.SendStorageRequest=function(C,D,H,F,K){var I=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,I),G=top.E_getObject(C,D,A),L=$("#"+D+"DICOM_Network",G).get(0),J=top.E_getObject(C,F+"DICOM_Strings",A);if(L!=null&&J!=null){try{var B=K.split("|");J.Clear();for(var E=0;E<B.length;E++)J.add(B[E]);return L.SendStorageRequest(H,J.Handle)}catch(_){alert(_.message)}}};DxDICOMNetwork.SendVerificationRequest=function(E,F,D,C){var B=top.E_getObject(E,F,D),G=$("#"+F+"DICOM_Network",B).get(0);if(G!=null){try{var _=G.SendVerificationRequest(C,"")}catch(A){alert(A.message)}WatCore.setParameter(E,F,top.DC.TEXT,_);WatCore.sendACallToChart(E,F,"action")}};DxDICOMNetwork.render=function($,I,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),K=C,L;if(A>-1){C=K.substring(0,A);L=K.substring(A+1,K.length);var F=L.split("-");L=F[0]}var J=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_NETWORKSETSCU:var H=J.split("&");top.DxDICOMNetwork.setSCU($,B,H[0],H[1],H[2],H[3],H[4]);break;case top.DC.DICM_NETWORKSENDSTORAGEREQUEST:H=J.split("&");top.DxDICOMNetwork.SendStorageRequest($,B,H[0],H[1],H[2]);break;case top.DC.UPDATE_DATA:var E=J.split("@wat@");if(L=="SendVerificationRequest")top.DxDICOMNetwork.SendVerificationRequest($,B,I,E[0]);break;default:break}}};function DxDICOM3DControlPanel(){}DxDICOM3DControlPanel.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_3DControlPanel' width=100% height=100% CLASSID=\"CLSID:ABD6AB90-86E4-4D6D-9084-073ABB1747E5\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOM3DControlPanel.AppendPoint=function(E,F,C,_,G,D){var B=top.E_getObject(E,F,C),A=$("#"+F+"DICOM_3DControlPanel",B).get(0);if(A!=null)A.AppendPoint(_,G,D)};DxDICOM3DControlPanel.setBackground=function(D,E,B,C){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_3DControlPanel",A).get(0);if(_!=null)_.Background=C};DxDICOM3DControlPanel.AppendPlan=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=$("#"+E+"DICOM_3DControlPanel",B).get(0);if(A!=null)A.AppendPlan(_)};DxDICOM3DControlPanel.Plans=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_3DControlPanel",A).get(0);if(_!=null){var C=_.Plans;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOM3DControlPanel.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_STRINGADD:top.DxDICOM3DControlPanel.add($,B,H);break;case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="appendpoint")DxDICOM3DControlPanel.AppendPoint($,B,G,E[0],E[1],E[2]);else if(J=="setbackground")DxDICOM3DControlPanel.setBackground($,B,G,E[0]);else if(J=="AppendPlan")DxDICOM3DControlPanel.AppendPlan($,B,G,E[0]);else if(J=="Plans")DxDICOM3DControlPanel.Plans($,B,G);break;default:break}}};function DxDICOM3DDataStore(){}DxDICOM3DDataStore.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_3DDataStore' CLASSID=\"CLSID:98121FD3-AD0D-4884-9A64-DBB4496AB395\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOM3DDataStore.LoadFromImageViewer=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_3DDataStore",_).get(0);if(C!=null)return C.LoadFromImageViewer()};DxDICOM3DDataStore.setImageViewerHandle=function(D,F,C,_){var B=top.E_getObject(D,F,C),A=top.E_getObject(D,_+"DICOM_ImageViewer",C),E=$("#"+F+"DICOM_3DDataStore",B).get(0);if(E!=null&&A!=null)E.ImageViewerHandle=A.HandleA};DxDICOM3DDataStore.BufferPath=function(C,E,A,B){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_3DDataStore",_).get(0);if(D!=null)D.BufferPath=B};DxDICOM3DDataStore.setImageQuality=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_3DDataStore",A).get(0);if(D!=null)D.ImageQuality=_};DxDICOM3DDataStore.DataStoreState=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_3DDataStore",_).get(0);if(D!=null){var B=D.DataStoreState;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOM3DDataStore.DataArea=function(C,E,A,B){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_3DDataStore",_).get(0);if(D!=null)D.DataArea=B};DxDICOM3DDataStore.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_STRINGADD:top.DxDICOM3DDataStore.add($,B,H);break;case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="loadfromimageviewer")DxDICOM3DDataStore.LoadFromImageViewer($,B,G);else if(J=="setimageviewerhandle")DxDICOM3DDataStore.setImageViewerHandle($,B,G,E[0]);else if(J=="bufferpath")DxDICOM3DDataStore.BufferPath($,B,G,E[0]);else if(J=="setimagequality")DxDICOM3DDataStore.setImageQuality($,B,G,E[0]);else if(J=="datastorestate")DxDICOM3DDataStore.DataStoreState($,B,G);else if(J=="DataArea")DxDICOM3DDataStore.DataArea($,B,G,E[0]);break;default:break}}};function DxDICOMMPR(){}DxDICOMMPR.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_MPR' width=100% height=100% CLASSID=\"CLSID:AF40B610-D770-4B39-B590-F25FC3DC849E\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMMPR.Refresh=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_MPR",A).get(0);if(_!=null)_.Refresh()};DxDICOMMPR.DataStoreHandle=function(D,F,C,A){var B=top.E_getObject(D,F,C),E=top.E_getObject(D,A+"DICOM_3DDataStore",C),_=$("#"+F+"DICOM_MPR",B).get(0);if(_!=null&&E!=null)_.DataStoreHandle=E.HandleA};DxDICOMMPR.ControlPanelHandle=function(E,F,D,A){var C=top.E_getObject(E,F,D),B=top.E_getObject(E,A+"DICOM_3DControlPanel",D),_=$("#"+F+"DICOM_MPR",C).get(0);if(_!=null&&B!=null)_.ControlPanelHandle=B.HandleA};DxDICOMMPR.PlaneX=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_MPR",A).get(0);if(_!=null){var C=DxDICOMMPR.PlaneX;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMMPR.PlaneY=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_MPR",A).get(0);if(_!=null){var C=DxDICOMMPR.PlaneY;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMMPR.PlaneZ=function(D,E,B){var A=top.E_getObject(D,E,B),_=$("#"+E+"DICOM_MPR",A).get(0);if(_!=null){var C=DxDICOMMPR.PlaneZ;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMMPR.SaveAsBitmap=function(F,G,D,C,A){var B=top.E_getObject(F,G,D),_=$("#"+G+"DICOM_MPR",B).get(0);if(_!=null){var E=DxDICOMMPR.SaveAsBitmap(C,A);WatCore.setParameter(F,G,top.DC.TEXT,E);WatCore.sendACallToChart(F,G,"action")}};DxDICOMMPR.Import=function(D,F,B,E){var A=top.E_getObject(D,F,B),_=$("#"+F+"DICOM_MPR",A).get(0);if(_!=null){var C=DxDICOMMPR.Import(E);WatCore.setParameter(D,F,top.DC.TEXT,C);WatCore.sendACallToChart(D,F,"action")}};DxDICOMMPR.SaveAsDCM=function(E,G,C,B,F){var A=top.E_getObject(E,G,C),_=$("#"+G+"DICOM_MPR",A).get(0);if(_!=null){var D=DxDICOMMPR.SaveAsDCM(B,F);WatCore.setParameter(E,G,top.DC.TEXT,D);WatCore.sendACallToChart(E,G,"action")}};DxDICOMMPR.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_STRINGADD:top.DxDICOMMPR.add($,B,H);break;case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="refresh")DxDICOMMPR.Refresh($,B,G);else if(J=="datastorehandle")DxDICOMMPR.DataStoreHandle($,B,G,E[0]);else if(J=="controlpanelhandle")DxDICOMMPR.ControlPanelHandle($,B,G,E[0]);else if(J=="planex")DxDICOMMPR.PlaneX($,B,G);else if(J=="planey")DxDICOMMPR.PlaneY($,B,G);else if(J=="planez")DxDICOMMPR.PlaneZ($,B,G);else if(J=="PlaneZ")DxDICOMMPR.PlaneZ($,B,G);else if(J=="SaveAsBitmap")DxDICOMMPR.SaveAsBitmap($,B,G,E[0],E[1]);else if(J=="Import")DxDICOMMPR.Import($,B,G,E[0]);else if(J=="SaveAsDCM")DxDICOMMPR.SaveAsDCM($,B,G,E[0],E[1]);break;default:break}}};function DxDICOMVR(){}DxDICOMVR.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_VR' width=100% height=100% CLASSID=\"CLSID:D333F85A-DCEF-47D9-B42F-9E8222449D80\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMVR.Refresh=function(B,C,A){var _=top.E_getObject(B,C,A),D=$("#"+C+"DICOM_VR",_).get(0);if(D!=null)D.Refresh()};DxDICOMVR.DataStoreHandle=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=top.E_getObject(C,_+"DICOM_3DDataStore",B),F=$("#"+E+"DICOM_VR",A).get(0);if(F!=null&&D!=null)F.DataStoreHandle=D.HandleA};DxDICOMVR.ControlPanelHandle=function(D,E,C,_){var B=top.E_getObject(D,E,C),A=top.E_getObject(D,_+"DICOM_3DControlPanel",C),F=$("#"+E+"DICOM_VR",B).get(0);if(F!=null&&A!=null)F.ControlPanelHandle=A.HandleA};DxDICOMVR.setClippingObject=function(C,D,B,_){var A=top.E_getObject(C,D,B),E=$("#"+D+"DICOM_VR",A).get(0);if(E!=null)E.ClippingObject=_};DxDICOMVR.setRayCastFunction=function(C,D,B,_){var A=top.E_getObject(C,D,B),E=$("#"+D+"DICOM_VR",A).get(0);if(E!=null)E.RayCastFunction=_};DxDICOMVR.SaveAsBitmap=function(E,F,C,B,_){var A=top.E_getObject(E,F,C),G=$("#"+F+"DICOM_VR",A).get(0);if(G!=null){var D=G.SaveAsBitmap(B,_);WatCore.setParameter(E,F,top.DC.TEXT,D);WatCore.sendACallToChart(E,F,"action")}};DxDICOMVR.Import=function(C,E,A,D){var _=top.E_getObject(C,E,A),F=$("#"+E+"DICOM_VR",_).get(0);if(F!=null){var B=F.Import(D);WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMVR.SaveAsDCM=function(D,F,B,A,E){var _=top.E_getObject(D,F,B),G=$("#"+F+"DICOM_VR",_).get(0);if(G!=null){var C=G.SaveAsDCM(A,E);WatCore.setParameter(D,F,top.DC.TEXT,C);WatCore.sendACallToChart(D,F,"action")}};DxDICOMVR.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_STRINGADD:top.DxDICOMVR.add($,B,H);break;case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="refresh")DxDICOMVR.Refresh($,B,G);else if(J=="datastorehandle")DxDICOMVR.DataStoreHandle($,B,G,E[0]);else if(J=="controlpanelhandle")DxDICOMVR.ControlPanelHandle($,B,G,E[0]);else if(J=="setclippingobject")DxDICOMVR.setClippingObject($,B,G,E[0]);else if(J=="setraycastfunction")DxDICOMVR.setRayCastFunction($,B,G,E[0]);else if(J=="SaveAsBitmap")DxDICOMVR.SaveAsBitmap($,B,G,E[0],E[1]);else if(J=="Import")DxDICOMVR.Import($,B,G,E[0]);else if(J=="SaveAsDCM")DxDICOMVR.SaveAsDCM($,B,G,E[0],E[1]);break;default:break}}};function DxDICOMSSD(){}DxDICOMSSD.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_SSD' width=100% height=100% CLASSID=\"CLSID:12FFFBC4-9A1C-4C49-9686-07D3A0941C01\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMSSD.Refresh=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"DICOM_SSD",A).get(0);if(_!=null)_.Refresh()};DxDICOMSSD.DataStoreHandle=function(D,F,C,_){var B=top.E_getObject(D,F,C),E=top.E_getObject(D,_+"DICOM_3DDataStore",C),A=$("#"+F+"DICOM_SSD",B).get(0);if(A!=null&&E!=null)A.DataStoreHandle=E.HandleA};DxDICOMSSD.ControlPanelHandle=function(E,F,D,_){var C=top.E_getObject(E,F,D),A=top.E_getObject(E,_+"DICOM_3DControlPanel",D),B=$("#"+F+"DICOM_SSD",C).get(0);if(B!=null&&A!=null)B.ControlPanelHandle=A.HandleA};DxDICOMSSD.SaveAsBitmap=function(F,G,D,C,_){var B=top.E_getObject(F,G,D),A=$("#"+G+"DICOM_SSD",B).get(0);if(A!=null){var E=A.SaveAsBitmap(C,_);WatCore.setParameter(F,G,top.DC.TEXT,E);WatCore.sendACallToChart(F,G,"action")}};DxDICOMSSD.Import=function(D,F,B,E){var A=top.E_getObject(D,F,B),_=$("#"+F+"DICOM_SSD",A).get(0);if(_!=null){var C=_.Import(E);WatCore.setParameter(D,F,top.DC.TEXT,C);WatCore.sendACallToChart(D,F,"action")}};DxDICOMSSD.SaveAsDCM=function(E,G,C,B,F){var A=top.E_getObject(E,G,C),_=$("#"+G+"DICOM_SSD",A).get(0);if(_!=null){var D=_.SaveAsDCM(B,F);WatCore.setParameter(E,G,top.DC.TEXT,D);WatCore.sendACallToChart(E,G,"action")}};DxDICOMSSD.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_STRINGADD:top.DxDICOMSSD.add($,B,H);break;case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="refresh")DxDICOMSSD.Refresh($,B,G);else if(J=="datastorehandle")DxDICOMSSD.DataStoreHandle($,B,G,E[0]);else if(J=="controlpanelhandle")DxDICOMSSD.ControlPanelHandle($,B,G,E[0]);else if(J=="SaveAsBitmap")DxDICOMSSD.SaveAsBitmap($,B,G,E[0],E[1]);else if(J=="Import")DxDICOMSSD.Import($,B,G,E[0]);else if(J=="SaveAsDCM")DxDICOMSSD.SaveAsDCM($,B,G,E[0],E[1]);break;default:break}}};function DxCA(){}DxCA.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"SBFjCAEnAndSign' CLASSID=\"CLSID:506038C2-52A5-4EA5-8F7D-F39B10265709\" codebase=\"SignAndEncrypt.ocx\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxCA.doit=function(D,F,B,I){var H=top.E_getObject(D,F,B),C=$("#"+F+"SBFjCAEnAndSign",H).get(0);if(C==null){alert("CA\u6570\u5b57\u8ba4\u8bc1\u63a7\u4ef6\u51fa\u9519");return}try{var A=false;try{A=C.OpenUSBKey()}catch(_){var G="\u8bf7\u786e\u8ba4\u60a8\u7684\u7535\u8111\u4e0a\u662f\u5426\u5df2\u5b89\u88c5\u201c\u798f\u5efaCA\u6570\u5b57\u8bc1\u4e66\u5ba2\u6237\u7aef\u8f6f\u4ef63.1\u7248\u672c\u6216\u4ee5\u4e0a\u7248\u672c\uff0c\u9519\u8bef\u4ee3\u7801\u4e3a\uff1a4991!"+"<br>\u5982\u679c\u60a8\u8fd8\u672a\u5b89\u88c5\uff0c\u8bf7\u60a8\u70b9\u51fb<a href='http://www.fjca.com.cn/download/downfile.asp?n=FJCAUserTool.exe'>\u4e0b \u8f7d</a>\u6700\u65b0\u7248\u672c\u7684\u6570\u5b57\u8bc1\u4e66\u5ba2\u6237\u7aef\u8f6f\u4ef6."+"<br>\u5982\u679c\u60a8\u65e0\u6cd5\u5904\u7406\uff0c\u8bf7\u8054\u7cfb\u533b\u8054\u5ba2\u670d\u670d\u52a1\u4e2d\u5fc3:400-0591-208";C.CloseUSBKey();alert(G);return false}if(!A){G="\u6253\u5f00\u8bc1\u4e66\u5931\u8d25.\u9519\u8bef\u4ee3\u7801\u4e3a\uff1a4992!<br>\u5982\u679c\u60a8\u65e0\u6cd5\u5904\u7406\uff0c\u8bf7\u8054\u7cfb\u533b\u8054\u5ba2\u670d\u670d\u52a1\u4e2d\u5fc3:400-0591-208";C.CloseUSBKey();alert(G);return false}if(!C.ReadCertFromKey()){G="\u8bfb\u8bc1\u4e66\u5931\u8d25.\u9519\u8bef\u4ee3\u7801\u4e3a\uff1a4993!<br>\u5982\u679c\u60a8\u65e0\u6cd5\u5904\u7406\uff0c\u8bf7\u8054\u7cfb\u533b\u8054\u5ba2\u670d\u670d\u52a1\u4e2d\u5fc3:400-0591-208";C.CloseUSBKey();alert(G);return false}var J=C.GetCertData(),E=I;if(!C.SignDataWithKey(E)){G="\u5bf9\u6570\u636e\u7b7e\u540d\u5931\u8d25.\u9519\u8bef\u4ee3\u7801\u4e3a\uff1a4994!<br>\u5982\u679c\u60a8\u65e0\u6cd5\u5904\u7406\uff0c\u8bf7\u8054\u7cfb\u533b\u8054\u5ba2\u670d\u670d\u52a1\u4e2d\u5fc3:400-0591-208";C.CloseUSBKey();alert(G);return false}var K=C.GetSignData();C.CloseUSBKey();WatCore.setParameter(D,F,top.DC.CA_TEXTCERT,J);WatCore.setParameter(D,F,top.DC.CA_TEXTSIGNDATA,K);WatCore.sendACallToChart(D,F,"action");return true}catch(_){G="\u8bf7\u786e\u8ba4\u60a8\u7684\u7535\u8111\u4e0a\u662f\u5426\u5df2\u5b89\u88c5\u201c\u798f\u5efaCA\u6570\u5b57\u8bc1\u4e66\u5ba2\u6237\u7aef\u8f6f\u4ef63.1\u7248\u672c\u6216\u4ee5\u4e0a\u7248\u672c\uff0c\u9519\u8bef\u4ee3\u7801\u4e3a\uff1a4991!"+"<br>\u5982\u679c\u60a8\u8fd8\u672a\u5b89\u88c5\uff0c\u8bf7\u60a8\u70b9\u51fb<a href='http://www.fjca.com.cn/download/downfile.asp?n=FJCAUserTool.exe'>\u4e0b \u8f7d</a>\u6700\u65b0\u7248\u672c\u7684\u6570\u5b57\u8bc1\u4e66\u5ba2\u6237\u7aef\u8f6f\u4ef6."+"<br>\u5982\u679c\u60a8\u65e0\u6cd5\u5904\u7406\uff0c\u8bf7\u8054\u7cfb\u533b\u8054\u5ba2\u670d\u670d\u52a1\u4e2d\u5fc3:400-0591-208";C.CloseUSBKey();alert(G);return false}};DxCA.render=function(_,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.UPDATE_DATA:var $=C.split("@wat@"),E=$[0];if(E=="casing")DxCA.doit(_,F,D,$[1]);break;default:break}}};function DxMediaplayer(){}DxMediaplayer.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' id='"+E+"player' height='0' width='0' border='0'><param name='URL' value=''><PARAM NAME='rate' VALUE='1'><param name='SendPlayStateChangeEvents' value='true'><PARAM NAME='balance' VALUE='0'><PARAM NAME='currentPosition' VALUE='0'><PARAM NAME='defaultFrame' VALUE=''><PARAM NAME='playCount' VALUE='10000'><param name='autoStart' value='0'><PARAM NAME='currentMarker' VALUE='0'><PARAM NAME='invokeURLs' VALUE='-1'><PARAM NAME='baseURL' VALUE=''><PARAM NAME='volume' VALUE='100'><PARAM NAME='mute' VALUE='0'><PARAM NAME='uiMode' VALUE='none'><PARAM NAME='enabled' VALUE='-1'><PARAM NAME='enableContextMenu' VALUE='0'><PARAM NAME='fullScreen' VALUE='0'><PARAM NAME='SAMIStyle' VALUE=''><PARAM NAME='SAMILang' VALUE=''><PARAM NAME='SAMIFilename' VALUE=''><PARAM NAME='captioningID' VALUE=''><param name='enableErrorDialogs' value='0'><param name='stretchToFit' value='0'><param name='windowlessVideo' value='0'><param name='_cx' value='9340'><param name='_cy' value='6694'></OBJECT>";A.innerHTML=_}catch($){}};DxMediaplayer.player=function(D,E,B,C){var A=top.E_getObject(D,E,B),_=$("#"+E+"player",A).get(0);if(_!=null){if(C!=null&&C!="")_.URL=C;_.controls.play()}};DxMediaplayer.pause=function(_,A,$){window.setTimeout("top.DxMediaplayer.pause_('"+_+"','"+A+"')",2000)};DxMediaplayer.pause_=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B),_=$("#"+E+"player",A).get(0);if(_!=null)_.controls.pause()};DxMediaplayer.close=function(C,D,B){var A=top.E_getObject(C,D,B),_=$("#"+D+"player",A).get(0);if(_!=null)_.controls.stop()};DxMediaplayer.render=function(_,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.UPDATE_DATA:var $=C.split("@wat@"),E=$[0];if(E=="player")DxMediaplayer.player(_,F,D,$[1]);else if(E=="pause")DxMediaplayer.pause(_,F,D);else if(E=="close")DxMediaplayer.close(_,F,D);break;default:break}}};function DxMulThreadDownLoad(){}DxMulThreadDownLoad.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id='"+_+"dlocx'"+" width=0 height=0 classid='CLSID:7C57C207-3917-457A-9C19-E159E3DCBEBE' codebase=\"./downloadfrmProj1.cab#Version=1,0,91,0\"></OBJECT><input type='text' id='"+_+"filetext'"+" style='visibility:hidden;width:0;height:0;'/>";A.innerHTML=D}catch($){alert("\u591a\u7ebf\u7a0b\u4e0b\u8f7d\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25\uff1a"+$.message)}};DxMulThreadDownLoad.DownLoadResource=function(C,E,O,I){var M=$("#__downloadresource");if(M.length==0){var L=top.E_getObject(C,E,O),D=L.wattarget;D="_self";var B="";if(D!="")B="target='"+D+"'";$(document.body).append("<form id='__downloadresource' method='post' action='' "+B+"></form>");M=$("#__downloadresource")}var _=I.indexOf("?"),G=I.substring(0,_),F=I.substring(_+1,I.length),A=F.split("&"),P="",J="",N="";for(var H=0;H<A.length;H++){var K=A[H].split("=");if(K[0]=="path")N=K[1];else if(K[0]=="filename")P=K[1];else if(K[0]=="filesize")J=K[1]}M[0].action=G+"?path="+N+"&offset=0&length="+J;M.submit()};DxMulThreadDownLoad.DownLoadResourcebyocx=function(_,A,$){window.setTimeout("DxMulThreadDownLoad.DownLoadResourcebyocxyb('"+_+"','"+A+"','"+$+"');",10)};DxMulThreadDownLoad.DownLoadResourcebyocxyb=function(A,C,$){var _=top.E_clientModel.E_getWindow(A),B=WatCore.getWindow(A,_);B.setTimeout("top.DxMulThreadDownLoad.DownLoadResourcebyocxyb2('"+A+"','"+C+"','"+$+"')",10)};DxMulThreadDownLoad.DownLoadResourcebyocxyb2=function(N,B,C){var V=top.E_clientModel.E_getWindow(N),K=WatCore.getWindowDoc(N,V),D=top.E_getObject(N,B,K),Y=C.split("|"),A=Y[0],I=top.E_getObject(N,A+"DICOM_ImageViewer",K),J=top.E_getObject(N,B+"dlocx",K),E=$("#"+B+"filetext",D).get(0);try{if(J!=null&&E!=null){J.getfile("C");var G,Q,O,L,W="",S="",F="";for(var R=1;R<Y.length;R++){var X=Y[R],G=X.indexOf("?"),Q=X.substring(0,G),O=X.substring(G+1,C.length),L=X.split("&"),W="",S="",M="",F="";for(var P=0;P<L.length;P++){var U=L[P].split("=");if(U.length>=2)if(U[0]=="filename")W=U[1];else if(U[0]=="filesize")S=U[1];else if(U[0]=="filepath")M=U[1]}if(R==1)J.dlfile(L[0],W,"","0");else J.dlfile(L[0],W,"","y");var T=J.getfile("y");E.value=T;var _=E.value;if(I!=null){I.OpenLocalImage(_);I.Refresh()}}}}catch(H){}};DxMulThreadDownLoad.getDefaultImageElement=function(B,C,A,$){var _=top.E_getObject(B,C+"dlocx",A);if(_!=null){if($!="1"&&$!="2"&&$!="91"&&$!="92"&&$!="93")$="1";var D=_.getdirfile($);if(D!=null&&D!=""){WatCore.setParameter(B,C,top.DC.TEXT,D);WatCore.sendACallToChart(B,C,"action")}}};DxMulThreadDownLoad.operatedir=function(C,D,B,_,$){var A=top.E_getObject(C,D+"dlocx",B);if(A!=null){var E=A.operatedir(_,$);WatCore.setParameter(C,D,top.DC.TEXT,E);WatCore.sendACallToChart(C,D,"operatedir")}};DxMulThreadDownLoad.operatefile=function(C,D,B,_,$){var A=top.E_getObject(C,D+"dlocx",B);if(A!=null){var E=A.operatefile(_,$);WatCore.setParameter(C,D,top.DC.TEXT,E);WatCore.sendACallToChart(C,D,"operatefile")}};DxMulThreadDownLoad.gethostname=function(A,B,_){var $=top.E_getObject(A,B+"dlocx",_);if($!=null){var C=$.gethost(0);WatCore.setParameter(A,B,top.DC.TEXT,C);WatCore.sendACallToChart(A,B,"getHostName")}};DxMulThreadDownLoad.gethostip=function(A,B,_){var $=top.E_getObject(A,B+"dlocx",_);if($!=null){var C=$.gethost(1);WatCore.setParameter(A,B,top.DC.TEXT,C);WatCore.sendACallToChart(A,B,"getHostIp")}};DxMulThreadDownLoad.vspeak=function(G,I,C,A,F,_,$){var B=top.E_getObject(G,I+"dlocx",C);if(B!=null){var E=parseInt($);if(E>0){var D=top.E_clientModel.E_getWindow(G),H=WatCore.getWindow(G,D);H.setTimeout("top.DxMulThreadDownLoad.tovspeak('"+G+"','"+I+"','"+A+"','"+F+"','"+_+"','"+(E)+"')",2000)}}};DxMulThreadDownLoad.tovspeak=function(C,E,F,I,$,_){var G=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,G),D=WatCore.getWindow(C,G),A=top.E_getObject(C,E+"dlocx",B);if(A!=null){var H=parseInt(_),J=A.vspeak(F,I,$);if(H>1)D.setTimeout("top.DxMulThreadDownLoad.tovspeak('"+C+"','"+E+"','"+F+"','"+I+"','"+$+"','"+(H-1)+"')",8000)}};DxMulThreadDownLoad.uploadfile=function(E,G,B,C,D,$,_){var A=top.E_getObject(E,G+"dlocx",B);if(A!=null)var F=A.uploadfile(C,D,$,_)};DxMulThreadDownLoad.uploadfiles=function(E,G,A,K,C,D,M){var J=top.E_getObject(E,G,A),_=top.E_getObject(E,G+"dlocx",A);if(_!=null){var B=parseInt(J.wwidth),L=parseInt(J.hheight);if(L>=8&&L<=25)_.uploadfileheight=L;else _.uploadfileheight=25;if(B>=8&&B<=580)_.uploadfilewidth=B;else _.uploadfilewidth=580;var I=D.split("*"),$=M.split("*");if(I.length!=$.length){alert("\u4e0a\u4f20\u6587\u4ef6\u548c\u63a5\u6536\u8def\u5f84\u6570\u91cf\u4e0d\u4e00\u6837");return}var F;for(var H=0;H<I.length;H++)F=_.uploadfile(K,C,I[H],$[H])}};DxMulThreadDownLoad.getdirectoryfiles=function(C,E,B,$,_){var A=top.E_getObject(C,E+"dlocx",B);if(A!=null){var D=A.getdirectoryfiles($,_);WatCore.setParameter(C,E,top.DC.TEXT,D);WatCore.sendACallToChart(C,E,"getdirectoryfiles")}};DxMulThreadDownLoad.writeIni=function(F,G,D,_,B,$,E){var A=top.E_getObject(F,G,D),C=top.E_getObject(F,G+"dlocx",D);if(C!=null){var H=C.writeini(_,B,$,E);if("Y"==H){WatCore.setParameter(F,G,top.DC.COOKIE_VALUE,B+$+"@wat@"+E);WatCore.sendACallToChart(F,G,"writeIni")}}};DxMulThreadDownLoad.readIni=function(E,F,D,_,B,$){var A=top.E_getObject(E,F,D),C=top.E_getObject(E,F+"dlocx",D);if(C!=null){var G=C.readini(_,B,$,"");if(G==null)G="";WatCore.setParameter(E,F,top.DC.COOKIE_VALUE,B+$+"@wat@"+G);WatCore.sendACallToChart(E,F,"readIni")}};DxMulThreadDownLoad.readInis=function(C,D,A,$,F,I){var G=top.E_getObject(C,D,A),_=top.E_getObject(C,D+"dlocx",A);if(_!=null){var J=F.split(";"),B=I.split(";"),K="",H="";for(var E=0;E<J.length;E++){K=_.readini($,J[E],B[E],"");if(K==null)K="";H+=J[E]+B[E]+"@wat@"+K;if(E<J.length-1)H+="@wattype@"}WatCore.setParameter(C,D,top.DC.COOKIE_VALUE,H);WatCore.sendACallToChart(C,D,"readInis")}};DxMulThreadDownLoad.dlfwriteStart=function(C,E,$,B,A){var _=top.E_clientModel.E_getWindow(C),D=WatCore.getWindow(C,_);D.setTimeout("top.DxMulThreadDownLoad.dlfwriteStartTimer('"+C+"','"+E+"','"+B+"','"+A+"')",30)};DxMulThreadDownLoad.dlfwriteStartTimer=function(C,G,B,K){var L=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,L),D=WatCore.getWindow(C,L),J=top.E_getObject(C,G,_),$=top.E_getObject(C,G+"dlocx",_);if($!=null){var O=K.split("|"),A="",N="";for(var H=0;H<O.length;H++){var M=O[H],E=M.split("&");if(E.length>0)A+=E[0];for(var F=0;F<E.length;F++){var I=E[F].split("=");if(I.length>=2)if(I[0]=="filename")N=I[1]}A+=","+N;if(H<O.length-1)A+="|"}var P=$.dlfwrite2(A,B);if(P=="y"||P=="Y"){D.setTimeout("top.DxMulThreadDownLoad.dlfwriteStartTimer2('"+C+"','"+G+"','"+B+"')",10);D.setTimeout("top.DxMulThreadDownLoad.dlfTimer('"+C+"','"+G+"','"+B+"')",5000)}}};DxMulThreadDownLoad.dlfwriteStartTimer2=function(D,F,C){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),E=WatCore.getWindow(D,B),$=top.E_getObject(D,F,A),_=top.E_getObject(D,F+"dlocx",A);if(_!=null)var G=_.dlfstart(C,"")};DxMulThreadDownLoad.dlfTimer=function(C,E,B){var A=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,A),D=WatCore.getWindow(C,A),$=top.E_getObject(C,E+"dlocx",_);if($!=null){var F=$.dlfget(B);if(F!="1"&&F!="0"){WatCore.setParameter(C,E,top.DC.TEXT,F);WatCore.sendACallToChart(C,E,"dlfwriteStart")}else D.setTimeout("top.DxMulThreadDownLoad.dlfTimer('"+C+"','"+E+"','"+B+"')",5000)}};DxMulThreadDownLoad.dlfwrite=function(C,D,_,B,A){var $=top.E_getObject(C,D+"dlocx",_);if($!=null){var E=$.dlfwrite2(A,B);if(E!=null&&E!=""){WatCore.setParameter(C,D,top.DC.TEXT,E);WatCore.sendACallToChart(C,D,"dlfwrite")}}};DxMulThreadDownLoad.dlfstart=function(B,C,_,A){var $=top.E_getObject(B,C+"dlocx",_);if($!=null){var D=$.dlfstart(A,"");if(D!=null&&D!=""){WatCore.setParameter(B,C,top.DC.TEXT,D);WatCore.sendACallToChart(B,C,"dlfstart")}}};DxMulThreadDownLoad.dlfget=function(B,C,_,A){var $=top.E_getObject(B,C+"dlocx",_);if($!=null){var D=$.dlfget(A);if(D!=null&&D!=""){WatCore.setParameter(B,C,top.DC.TEXT,D);WatCore.sendACallToChart(B,C,"dlfget")}}};DxMulThreadDownLoad.dlfcancel=function(A,B,_){var $=top.E_getObject(A,B+"dlocx",_);if($!=null){var C=$.dlfcancel();if(C!=null&&C!=""){WatCore.setParameter(A,B,top.DC.TEXT,C);WatCore.sendACallToChart(A,B,"dlfcancel")}}};DxMulThreadDownLoad.render=function(A,H,G){var B=G.getAttribute("cid"),$=G.selectNodes("*");for(var D=0;D<$.length;D++){var C=$[D].nodeName;C=C.substring(1,C.length);var _=C.indexOf("_"),J=C,K;if(_>-1){C=J.substring(0,_);K=J.substring(_+1,J.length)}var I=top.isIE?$[D].text:$[D].textContent;switch(C){case top.DC.FILEPATH:DxMulThreadDownLoad.DownLoadResource(A,B,H,I);break;case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="download")DxMulThreadDownLoad.DownLoadResourcebyocx(A,B,E[0]);else if(K=="operatedir")DxMulThreadDownLoad.operatedir(A,B,H,E[0],E[1]);else if(K=="operatefile")DxMulThreadDownLoad.operatefile(A,B,H,E[0],E[1]);else if(K=="hostname")DxMulThreadDownLoad.gethostname(A,B,H);else if(K=="hostip")DxMulThreadDownLoad.gethostip(A,B,H);else if(K=="speakvoice")DxMulThreadDownLoad.vspeak(A,B,H,E[0],E[1],E[2],E[3]);else if(K=="uploadfile")DxMulThreadDownLoad.uploadfile(A,B,H,E[0],E[1],E[2],E[3]);else if(K=="getdirectoryfiles")DxMulThreadDownLoad.getdirectoryfiles(A,B,H,E[0],E[1]);else if(K=="uploadfiles")DxMulThreadDownLoad.uploadfiles(A,B,H,E[0],E[1],E[2],E[3]);else if(K=="dlfwrite")DxMulThreadDownLoad.dlfwrite(A,B,H,E[0],E[1]);else if(K=="dlfstart")DxMulThreadDownLoad.dlfstart(A,B,H,E[0]);else if(K=="dlfget")DxMulThreadDownLoad.dlfget(A,B,H,E[0]);else if(K=="dlfcancel")DxMulThreadDownLoad.dlfcancel(A,B,H);else if(K=="dlfwriteStart")DxMulThreadDownLoad.dlfwriteStart(A,B,H,E[0],E[1]);else if(K.indexOf("writeIni")>=0)DxMulThreadDownLoad.writeIni(A,B,H,E[0],E[1],E[2],E[3]);else if(K.indexOf("readInis")>=0)DxMulThreadDownLoad.readInis(A,B,H,E[0],E[1],E[2]);else if(K.indexOf("readIni")>=0)DxMulThreadDownLoad.readIni(A,B,H,E[0],E[1],E[2]);break;case top.DC.TARGET:var F=top.E_getObject(A,B,H);F.wattarget=I;break;case top.DC.FILENAME:DxMulThreadDownLoad.getDefaultImageElement(A,B,H,I);break;default:break}}};function DxDICOMFilmBox(){}DxDICOMFilmBox.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_FilmBox' width=100% height=100% CLASSID=\"CLSID:91544981-6746-434E-9159-E08DCC624131\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMFilmBox.Refresh=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.Refresh()};DxDICOMFilmBox.Clear=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.Clear()};DxDICOMFilmBox.Fit=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.Fit()};DxDICOMFilmBox.Restore=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.Restore()};DxDICOMFilmBox.Delete=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.Delete()};DxDICOMFilmBox.Copy=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.Copy()};DxDICOMFilmBox.Paste=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.Paste()};DxDICOMFilmBox.Play=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.Play()};DxDICOMFilmBox.SetWindowLiving=function(D,F,B,C,A){var _=top.E_getObject(D,F,B),E=$("#"+F+"DICOM_FilmBox",_).get(0);if(E!=null)E.SetWindowLiving(C,A)};DxDICOMFilmBox.FlipHorizontal=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.FlipHorizontal()};DxDICOMFilmBox.FlipVertical=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.FlipVertical()};DxDICOMFilmBox.RotateClockwise=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.RotateClockwise()};DxDICOMFilmBox.RotateAntiClockwise=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.RotateAntiClockwise()};DxDICOMFilmBox.Negative=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.Negative()};DxDICOMFilmBox.Sharpen=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.Sharpen(_)};DxDICOMFilmBox.Soften=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.Soften()};DxDICOMFilmBox.PseudoColor=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.PseudoColor()};DxDICOMFilmBox.ClearOverlay=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.ClearOverlay()};DxDICOMFilmBox.ShowLocalizer=function(D,F,C,_,B){var A=top.E_getObject(D,F,C),E=$("#"+F+"DICOM_FilmBox",A).get(0);if(E!=null)E.ShowLocalizer(_,B)};DxDICOMFilmBox.NextPage=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.NextPage()};DxDICOMFilmBox.PriorPage=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.PriorPage()};DxDICOMFilmBox.UniteIamge=function(D,F,C,B,A){var _=top.E_getObject(D,F,C),E=$("#"+F+"DICOM_FilmBox",_).get(0);if(E!=null)E.UniteIamge(B,A)};DxDICOMFilmBox.SplitIamge=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.SplitIamge()};DxDICOMFilmBox.PrintImage=function(D,F,C,B,_){var A=top.E_getObject(D,F,C),E=$("#"+F+"DICOM_FilmBox",A).get(0);if(E!=null)E.PrintImage(B,_)};DxDICOMFilmBox.SaveAsBitmap=function(C,E,B,A){var _=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null)D.SaveAsBitmap(A)};DxDICOMFilmBox.SelectAll=function(B,D,A){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_FilmBox",_).get(0);if(C!=null)C.SelectAll()};DxDICOMFilmBox.getBackColor=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.BackColor;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setBackColor=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.BackColor=_};DxDICOMFilmBox.getBorderColor=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.BorderColor;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setBorderColor=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.BorderColor=_};DxDICOMFilmBox.getRowCount=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.RowCount;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setRowCount=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.RowCount=_};DxDICOMFilmBox.getColCount=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.ColCount;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setColCount=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.ColCount=_};DxDICOMFilmBox.PageCount=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.PageCount;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.getShowGrid=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.ShowGrid;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setShowGrid=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.ShowGrid=_};DxDICOMFilmBox.getSelectType=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.SelectType;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setSelectType=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.SelectType=parseInt(_)};DxDICOMFilmBox.getFontSize=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.FontSize;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setFontSize=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.FontSize=_};DxDICOMFilmBox.getFontColor=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.FontColor;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setFontColor=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.FontColor=_};DxDICOMFilmBox.getLeftTopText=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.LeftTopText;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setLeftTopText=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.LeftTopText.Append(_)};DxDICOMFilmBox.getRightTopText=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.RightTopText;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setRightTopText=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.RightTopText.Append(_)};DxDICOMFilmBox.getLeftBottomText=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.LeftBottomText;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setLeftBottomText=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.LeftBottomText.Append(_)};DxDICOMFilmBox.getRightBottomText=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.RightBottomText;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setRightBottomText=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.RightBottomText.Append(_)};DxDICOMFilmBox.getShowBorderText=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.ShowBorderText;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setShowBorderText=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.ShowBorderText=_};DxDICOMFilmBox.ProcessingType=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.ProcessingType=_};DxDICOMFilmBox.getOverlayColor=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.OverlayColor;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setOverlayColor=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.OverlayColor=_};DxDICOMFilmBox.getLeftButtonDefaultOperation=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.LeftButtonDefaultOperation;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setLeftButtonDefaultOperation=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.LeftButtonDefaultOperation=_};DxDICOMFilmBox.getRightButtonDefaultOperation=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.RightButtonDefaultOperation;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setRightButtonDefaultOperation=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.RightButtonDefaultOperation=_};DxDICOMFilmBox.getMagnifierZoomRatio=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.MagnifierZoomRatio;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setMagnifierZoomRatio=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.MagnifierZoomRatio=_};DxDICOMFilmBox.getMagnifierBoxSize=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.MagnifierBoxSize;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setMagnifierBoxSize=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.MagnifierBoxSize=_};DxDICOMFilmBox.getSelectImageButton=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.SelectImageButton;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setSelectImageButton=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.SelectImageButton=_};DxDICOMFilmBox.getLocalizerColor=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.LocalizerColor;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setLocalizerColor=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.LocalizerColor=_};DxDICOMFilmBox.getShowRuller=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.ShowRuller;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setShowRuller=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.ShowRuller=_};DxDICOMFilmBox.PatientIDs=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.PatientIDs;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.StudyInstanceUIDs=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.StudyInstanceUIDs;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.getFilmOrientation=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.FilmOrientation;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setFilmOrientation=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.FilmOrientation=_};DxDICOMFilmBox.getFilmSizeID=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.FilmSizeID;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setFilmSizeID=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.FilmSizeID=_};DxDICOMFilmBox.getMagnificationType=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.MagnificationType;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setMagnificationType=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.MagnificationType=_};DxDICOMFilmBox.getSmoothingType=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.SmoothingType;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setSmoothingType=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.SmoothingType=_};DxDICOMFilmBox.getBorderDensity=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.BorderDensity;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setBorderDensity=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.BorderDensity=_};DxDICOMFilmBox.getEmptyImageDensity=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.EmptyImageDensity;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setEmptyImageDensity=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.EmptyImageDensity=_};DxDICOMFilmBox.getMinDensity=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.MinDensity;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setMinDensity=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.MinDensity=_};DxDICOMFilmBox.getMaxDensity=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.MaxDensity;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setMaxDensity=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.MaxDensity=_};DxDICOMFilmBox.getTrim=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.Trim;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setTrim=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.Trim=_};DxDICOMFilmBox.getConfigurationInformation=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.ConfigurationInformation;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setConfigurationInformation=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.ConfigurationInformation=_};DxDICOMFilmBox.getResolution=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.Resolution;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setResolution=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.Resolution=_};DxDICOMFilmBox.getAutoClear=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.AutoClear;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setAutoClear=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.AutoClear=_};DxDICOMFilmBox.getLocalizerDashStyle=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.LocalizerDashStyle;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setLocalizerDashStyle=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.LocalizerDashStyle=_};DxDICOMFilmBox.getShowAperture=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.ShowAperture;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setShowAperture=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.ShowAperture=_};DxDICOMFilmBox.getApertureType=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.ApertureType;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.setApertureType=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_FilmBox",A).get(0);if(D!=null)D.ApertureType=_};DxDICOMFilmBox.ProposedStudySequence=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.ProposedStudySequence;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.StudyDates=function(C,E,A){var _=top.E_getObject(C,E,A),D=$("#"+E+"DICOM_FilmBox",_).get(0);if(D!=null){var B=D.StudyDates;WatCore.setParameter(C,E,top.DC.TEXT,B);WatCore.sendACallToChart(C,E,"action")}};DxDICOMFilmBox.displayformat=function(C,F,G,E){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,F,A),D=$("#"+F+"DICOM_FilmBox",_).get(0);if(D!=null){D.RowCount=G;D.ColCount=E}};DxDICOMFilmBox.render=function($,H,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length)}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_DISPLAYFORMAT:var G=I.split("&");top.DxDICOMFilmBox.displayformat($,B,G[0],G[1]);break;case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="Refresh")DxDICOMFilmBox.Refresh($,B,H);else if(K=="Clear")DxDICOMFilmBox.Clear($,B,H);else if(K=="Fit")DxDICOMFilmBox.Fit($,B,H);else if(K=="Restore")DxDICOMFilmBox.Restore($,B,H);else if(K=="Delete")DxDICOMFilmBox.Delete($,B,H);else if(K=="Copy")DxDICOMFilmBox.Copy($,B,H);else if(K=="Paste")DxDICOMFilmBox.Paste($,B,H);else if(K=="Play")DxDICOMFilmBox.Play($,B,H);else if(K=="SetWindowLiving")DxDICOMFilmBox.SetWindowLiving($,B,H,E[0],E[1]);else if(K=="FlipHorizontal")DxDICOMFilmBox.FlipHorizontal($,B,H);else if(K=="FlipVertical")DxDICOMFilmBox.FlipVertical($,B,H);else if(K=="RotateClockwise")DxDICOMFilmBox.RotateClockwise($,B,H);else if(K=="RotateAntiClockwise")DxDICOMFilmBox.RotateAntiClockwise($,B,H);else if(K=="Negative")DxDICOMFilmBox.Negative($,B,H);else if(K=="Sharpen")DxDICOMFilmBox.Sharpen($,B,H,E[0]);else if(K=="Soften")DxDICOMFilmBox.Soften($,B,H);else if(K=="PseudoColor")DxDICOMFilmBox.PseudoColor($,B,H);else if(K=="ClearOverlay")DxDICOMFilmBox.ClearOverlay($,B,H);else if(K=="ShowLocalizer")DxDICOMFilmBox.ShowLocalizer($,B,H,E[0],E[1]);else if(K=="NextPage")DxDICOMFilmBox.NextPage($,B,H);else if(K=="PriorPage")DxDICOMFilmBox.PriorPage($,B,H);else if(K=="UniteIamge")DxDICOMFilmBox.UniteIamge($,B,H,E[0],E[1]);else if(K=="SplitIamge")DxDICOMFilmBox.SplitIamge($,B,H);else if(K=="PrintImage")DxDICOMFilmBox.PrintImage($,B,H,E[0],E[1]);else if(K=="SaveAsBitmap")DxDICOMFilmBox.SaveAsBitmap($,B,H,E[0]);else if(K=="SelectAll")DxDICOMFilmBox.SelectAll($,B,H);else if(K=="getBackColor")DxDICOMFilmBox.getBackColor($,B,H);else if(K=="setBackColor")DxDICOMFilmBox.setBackColor($,B,H,E[0]);else if(K=="getBorderColor")DxDICOMFilmBox.getBorderColor($,B,H);else if(K=="setBorderColor")DxDICOMFilmBox.setBorderColor($,B,H,E[0]);else if(K=="getRowCount")DxDICOMFilmBox.getRowCount($,B,H);else if(K=="setRowCount")DxDICOMFilmBox.setRowCount($,B,H,E[0]);else if(K=="getColCount")DxDICOMFilmBox.getColCount($,B,H);else if(K=="setColCount")DxDICOMFilmBox.setColCount($,B,H,E[0]);else if(K=="PageCount")DxDICOMFilmBox.PageCount($,B,H);else if(K=="getShowGrid")DxDICOMFilmBox.getShowGrid($,B,H);else if(K=="setShowGrid")DxDICOMFilmBox.setShowGrid($,B,H,E[0]);else if(K=="getSelectType")DxDICOMFilmBox.getSelectType($,B,H);else if(K=="setSelectType")DxDICOMFilmBox.setSelectType($,B,H,E[0]);else if(K=="getFontSize")DxDICOMFilmBox.getFontSize($,B,H);else if(K=="setFontSize")DxDICOMFilmBox.setFontSize($,B,H,E[0]);else if(K=="getFontColor")DxDICOMFilmBox.getFontColor($,B,H);else if(K=="setFontColor")DxDICOMFilmBox.setFontColor($,B,H,E[0]);else if(K=="getLeftTopText")DxDICOMFilmBox.getLeftTopText($,B,H);else if(K=="setLeftTopText")DxDICOMFilmBox.setLeftTopText($,B,H,E[0]);else if(K=="getRightTopText")DxDICOMFilmBox.getRightTopText($,B,H);else if(K=="setRightTopText")DxDICOMFilmBox.setRightTopText($,B,H,E[0]);else if(K=="getLeftBottomText")DxDICOMFilmBox.getLeftBottomText($,B,H);else if(K=="setLeftBottomText")DxDICOMFilmBox.setLeftBottomText($,B,H,E[0]);else if(K=="getRightBottomText")DxDICOMFilmBox.getRightBottomText($,B,H);else if(K=="setRightBottomText")DxDICOMFilmBox.setRightBottomText($,B,H,E[0]);else if(K=="getShowBorderText")DxDICOMFilmBox.getShowBorderText($,B,H);else if(K=="setShowBorderText")DxDICOMFilmBox.setShowBorderText($,B,H,E[0]);else if(K=="ProcessingType")DxDICOMFilmBox.ProcessingType($,B,H,E[0]);else if(K=="getOverlayColor")DxDICOMFilmBox.getOverlayColor($,B,H);else if(K=="setOverlayColor")DxDICOMFilmBox.setOverlayColor($,B,H,E[0]);else if(K=="getLeftButtonDefaultOperation")DxDICOMFilmBox.getLeftButtonDefaultOperation($,B,H);else if(K=="setLeftButtonDefaultOperation")DxDICOMFilmBox.setLeftButtonDefaultOperation($,B,H,E[0]);else if(K=="getRightButtonDefaultOperation")DxDICOMFilmBox.getRightButtonDefaultOperation($,B,H);else if(K=="setRightButtonDefaultOperation")DxDICOMFilmBox.setRightButtonDefaultOperation($,B,H,E[0]);else if(K=="getMagnifierZoomRatio")DxDICOMFilmBox.getMagnifierZoomRatio($,B,H);else if(K=="setMagnifierZoomRatio")DxDICOMFilmBox.setMagnifierZoomRatio($,B,H,E[0]);else if(K=="getMagnifierBoxSize")DxDICOMFilmBox.getMagnifierBoxSize($,B,H);else if(K=="setMagnifierBoxSize")DxDICOMFilmBox.setMagnifierBoxSize($,B,H,E[0]);else if(K=="getSelectImageButton")DxDICOMFilmBox.getSelectImageButton($,B,H);else if(K=="setSelectImageButton")DxDICOMFilmBox.setSelectImageButton($,B,H,E[0]);else if(K=="getLocalizerColor")DxDICOMFilmBox.getLocalizerColor($,B,H);else if(K=="setLocalizerColor")DxDICOMFilmBox.setLocalizerColor($,B,H,E[0]);else if(K=="getShowRuller")DxDICOMFilmBox.getShowRuller($,B,H);else if(K=="setShowRuller")DxDICOMFilmBox.setShowRuller($,B,H,E[0]);else if(K=="PatientIDs")DxDICOMFilmBox.PatientIDs($,B,H);else if(K=="StudyInstanceUIDs")DxDICOMFilmBox.StudyInstanceUIDs($,B,H);else if(K=="getFilmOrientation")DxDICOMFilmBox.getFilmOrientation($,B,H);else if(K=="setFilmOrientation")DxDICOMFilmBox.setFilmOrientation($,B,H,E[0]);else if(K=="getFilmSizeID")DxDICOMFilmBox.getFilmSizeID($,B,H);else if(K=="setFilmSizeID")DxDICOMFilmBox.setFilmSizeID($,B,H,E[0]);else if(K=="getMagnificationType")DxDICOMFilmBox.getMagnificationType($,B,H);else if(K=="setMagnificationType")DxDICOMFilmBox.setMagnificationType($,B,H,E[0]);else if(K=="getSmoothingType")DxDICOMFilmBox.getSmoothingType($,B,H);else if(K=="setSmoothingType")DxDICOMFilmBox.setSmoothingType($,B,H,E[0]);else if(K=="getBorderDensity")DxDICOMFilmBox.getBorderDensity($,B,H);else if(K=="setBorderDensity")DxDICOMFilmBox.setBorderDensity($,B,H,E[0]);else if(K=="getEmptyImageDensity")DxDICOMFilmBox.getEmptyImageDensity($,B,H);else if(K=="setEmptyImageDensity")DxDICOMFilmBox.setEmptyImageDensity($,B,H,E[0]);else if(K=="getMinDensity")DxDICOMFilmBox.getMinDensity($,B,H);else if(K=="setMinDensity")DxDICOMFilmBox.setMinDensity($,B,H,E[0]);else if(K=="getMaxDensity")DxDICOMFilmBox.getMaxDensity($,B,H);else if(K=="setMaxDensity")DxDICOMFilmBox.setMaxDensity($,B,H,E[0]);else if(K=="getTrim")DxDICOMFilmBox.getTrim($,B,H);else if(K=="setTrim")DxDICOMFilmBox.setTrim($,B,H,E[0]);else if(K=="getConfigurationInformation")DxDICOMFilmBox.getConfigurationInformation($,B,H);else if(K=="setConfigurationInformation")DxDICOMFilmBox.setConfigurationInformation($,B,H,E[0]);else if(K=="getResolution")DxDICOMFilmBox.getResolution($,B,H);else if(K=="setResolution")DxDICOMFilmBox.setResolution($,B,H,E[0]);else if(K=="getAutoClear")DxDICOMFilmBox.getAutoClear($,B,H);else if(K=="setAutoClear")DxDICOMFilmBox.setAutoClear($,B,H,E[0]);else if(K=="getLocalizerDashStyle")DxDICOMFilmBox.getLocalizerDashStyle($,B,H);else if(K=="setLocalizerDashStyle")DxDICOMFilmBox.setLocalizerDashStyle($,B,H,E[0]);else if(K=="getShowAperture")DxDICOMFilmBox.getShowAperture($,B,H);else if(K=="setShowAperture")DxDICOMFilmBox.setShowAperture($,B,H,E[0]);else if(K=="getApertureType")DxDICOMFilmBox.getApertureType($,B,H);else if(K=="setApertureType")DxDICOMFilmBox.setApertureType($,B,H,E[0]);else if(K=="ProposedStudySequence")DxDICOMFilmBox.ProposedStudySequence($,B,H);else if(K=="StudyDates")DxDICOMFilmBox.StudyDates($,B,H);break;default:break}}};function DxDICOMPrinters(){}DxDICOMPrinters.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_Printers' CLASSID=\"CLSID:1A3AD5B4-E0CF-4BD6-965F-5F4689B4CD2C\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMPrinters.Append=function(G,H,F,C,E,A,_){var B=top.E_getObject(G,H,F),D=$("#"+H+"DICOM_Printers",B).get(0);if(D!=null)D.Append(C,E,A,_)};DxDICOMPrinters.Delete=function(C,D,B){var _=top.E_getObject(C,D,B),A=$("#"+D+"DICOM_Printers",_).get(0);if(A!=null)A.Delete()};DxDICOMPrinters.Count=function(D,E,B){var _=top.E_getObject(D,E,B),A=$("#"+E+"DICOM_Printers",_).get(0);if(A!=null){var C=A.Count;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMPrinters.Items=function(D,E,B){var _=top.E_getObject(D,E,B),A=$("#"+E+"DICOM_Printers",_).get(0);if(A!=null){var C=A.Items;WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"action")}};DxDICOMPrinters.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_STRINGADD:top.DxDICOMPrinters.add($,B,H);break;case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="Append")DxDICOMPrinters.Append($,B,G,E[0],E[1],E[2],E[3]);else if(J=="Delete")DxDICOMPrinters.Delete($,B,G);else if(J=="Count")DxDICOMPrinters.Count($,B,G);else if(J=="Items")DxDICOMPrinters.Items($,B,G);break;default:break}}};function DxBlankDocument(){}DxBlankDocument.openblank=function(C,F,B){var A=top.E_getObject(C,F,B),$=A.getAttribute("whref"),_=screen.availWidth,D=screen.availHeight,E=window.open($,"_blank","width="+_+",height="+D+",left=0,top=0,resizable=1,scrollbars=1,location=1")};DxBlankDocument.openblanknoautoresize=function(B,D,A){var _=top.E_getObject(B,D,A),$=_.getAttribute("whref"),C=window.open($,"_blank","titlebar=0,resizable=1,scrollbars=1")};DxBlankDocument.windowlocation=function(B,C,A){var _=top.E_getObject(B,C,A),$=_.getAttribute("whref");window.location.href=$};DxBlankDocument.render=function($,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.UPDATE_DATA:DxBlankDocument.openblank($,E,D);break;case top.DC.CHANGE_DATA:DxBlankDocument.openblanknoautoresize($,E,D);break;case top.DC.TEXT:var _=top.E_getObject($,E,D);if(_!=null)_.setAttribute("whref",C);break;case top.DC.POP_LOCATION:DxBlankDocument.windowlocation($,E,D);break;default:break}}};function DxScan(){}DxScan.init=function(D,_){try{var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),E=WatCore.getWindow(D,C),A=top.E_getObject(D,_,B);html="<OBJECT id='"+_+"tfocx"+"'"+" width=100% height=100% classid='clsid:8BD8035A-8BFE-4B13-A61E-84551B79B7C2' codebase=\"./twfProj1.cab#version=1,0,20,0\"></OBJECT>";A.innerHTML=html}catch($){alert("\u626b\u63cf\u63a7\u4ef6\u521d\u59cb\u5316\u4fe1\u606f\uff1a"+$.message)}};DxScan.clear=function(_,$,A){};DxScan.Calltfocx=function(D,F,A,C,B){var _=top.E_getObject(D,F,A),$=_.ownerDocument.getElementById(F+"tfocx");if($!=null){var E;E=$.gettwf(C,B);WatCore.setParameter(D,F,top.DC.TEXT,E);WatCore.sendACallToChart(D,F,"action")}else alert("\u626b\u63cf\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxScan.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="Calltfocx")DxScan.Calltfocx($,B,G,E[0],E[1]);break;default:break}}};function DxDICOMImageFile(){}DxDICOMImageFile.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_ImageFile' CLASSID=\"CLSID:0DD21404-9D02-4513-939D-23E9B769E9E4\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMImageFile.LoadFile=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.LoadFile(A)};DxDICOMImageFile.SaveAsDCM=function(E,F,C,B){var A=top.E_getObject(E,F,C),D=$("#"+F+"DICOM_ImageFile",A).get(0);if(D!=null){var _=D.SaveAsDCM(B,1);WatCore.setParameter(E,F,top.DC.TEXT,_);WatCore.sendACallToChart(E,F,"SaveAsDCM")}};DxDICOMImageFile.ImageNumber=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.ImageNumber=A};DxDICOMImageFile.PatientName=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.PatientName=A};DxDICOMImageFile.PatientID=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.PatientID=A};DxDICOMImageFile.PatientBirthDate=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.PatientBirthDate=A};DxDICOMImageFile.PatientAge=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.PatientAge=A};DxDICOMImageFile.PatientSex=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.PatientSex=A};DxDICOMImageFile.InstitutionName=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.InstitutionName=A};DxDICOMImageFile.StudyID=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.StudyID=A};DxDICOMImageFile.SeriesNumber=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.SeriesNumber=A};DxDICOMImageFile.Required=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.Required=A};DxDICOMImageFile.OtherPatientName=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.OtherPatientName=A};DxDICOMImageFile.ReferringPhysiciansName=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.ReferringPhysiciansName=A};DxDICOMImageFile.AccessionNumber=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.AccessionNumber=A};DxDICOMImageFile.StudyInstanceUID=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.StudyInstanceUID=A};DxDICOMImageFile.StudyDescription=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.StudyDescription=A};DxDICOMImageFile.KVP=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.KVP=A};DxDICOMImageFile.ExposureTime=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.ExposureTime=A};DxDICOMImageFile.XRayTubeCurrent=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.XRayTubeCurrent=A};DxDICOMImageFile.Modality=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.Modality=A};DxDICOMImageFile.SeriesInstanceUID=function(D,E,B,A){var _=top.E_getObject(D,E,B),C=$("#"+E+"DICOM_ImageFile",_).get(0);if(C!=null)C.DefaultImageElement.SeriesInstanceUID=A};DxDICOMImageFile.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_STRINGADD:top.DxDICOMImageFile.add($,B,H);break;case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="LoadFile")DxDICOMImageFile.LoadFile($,B,G,E[0]);else if(J=="SaveAsDCM")DxDICOMImageFile.SaveAsDCM($,B,G,E[0]);else if(J=="ImageNumber")DxDICOMImageFile.ImageNumber($,B,G,E[0]);else if(J=="PatientName")DxDICOMImageFile.PatientName($,B,G,E[0]);else if(J=="PatientID")DxDICOMImageFile.PatientID($,B,G,E[0]);else if(J=="PatientBirthDate")DxDICOMImageFile.PatientBirthDate($,B,G,E[0]);else if(J=="PatientAge")DxDICOMImageFile.PatientAge($,B,G,E[0]);else if(J=="PatientSex")DxDICOMImageFile.PatientSex($,B,G,E[0]);else if(J=="InstitutionName")DxDICOMImageFile.InstitutionName($,B,G,E[0]);else if(J=="StudyID")DxDICOMImageFile.StudyID($,B,G,E[0]);else if(J=="SeriesNumber")DxDICOMImageFile.SeriesNumber($,B,G,E[0]);else if(J=="Required")DxDICOMImageFile.Required($,B,G,E[0]);else if(J=="OtherPatientName")DxDICOMImageFile.OtherPatientName($,B,G,E[0]);else if(J=="ReferringPhysiciansName")DxDICOMImageFile.ReferringPhysiciansName($,B,G,E[0]);else if(J=="AccessionNumber")DxDICOMImageFile.AccessionNumber($,B,G,E[0]);else if(J=="StudyInstanceUID")DxDICOMImageFile.StudyInstanceUID($,B,G,E[0]);else if(J=="StudyDescription")DxDICOMImageFile.StudyDescription($,B,G,E[0]);else if(J=="KVP")DxDICOMImageFile.KVP($,B,G,E[0]);else if(J=="ExposureTime")DxDICOMImageFile.ExposureTime($,B,G,E[0]);else if(J=="XRayTubeCurrent")DxDICOMImageFile.XRayTubeCurrent($,B,G,E[0]);else if(J=="Modality")DxDICOMImageFile.Modality($,B,G,E[0]);else if(J=="SeriesInstanceUID")DxDICOMImageFile.SeriesInstanceUID($,B,G,E[0]);break;default:break}}};function DxEcgControl(){}DxEcgControl.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"egocx' align=center hspace=0 vspace=0 border=0 width=100% height=100% codebase=\"./ecgreadProj1.cab#version=1,0,41,0\" CLASSID=\"clsid:5989607F-3489-4FBA-AF7C-34AA5CFEE9AB\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxEcgControl.xmlread=function(E,F,B,$,D){var _=top.E_getObject(E,F,B),A=_.ownerDocument.getElementById(F+"egocx");if(A!=null){A.ispeed=25;A.izoom=2;A.ipages=1;A.topspace=-1;var C=A.ecgxmlread($,D);A.ecgdrawimage()}};DxEcgControl.sname=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.sname;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"sname")}};DxEcgControl.spatid=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.spatid;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"spatid")}};DxEcgControl.svrate=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.svrate;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"svrate")}};DxEcgControl.spr=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.spr;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"spr")}};DxEcgControl.sqrs=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.sqrs;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"sqrs")}};DxEcgControl.sqt=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.sqt;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"sqt")}};DxEcgControl.sprt=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.sprt;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"sprt")}};DxEcgControl.sefftime=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.sefftime;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"sefftime")}};DxEcgControl.sdob=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.sdob;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"sdob")}};DxEcgControl.sage=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.sage;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"sage")}};DxEcgControl.sgen=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.sgen;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"sgen")}};DxEcgControl.sdep=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.sdep;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"sdep")}};DxEcgControl.ispeed=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.ispeed;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"ispeed")}};DxEcgControl.izoom=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.izoom;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"izoom")}};DxEcgControl.setSpeed=function(C,D,A,B){var $=top.E_getObject(C,D,A),_=$.ownerDocument.getElementById(D+"egocx");if(_!=null)_.ispeed=B};DxEcgControl.setZoom=function(C,D,A,B){var $=top.E_getObject(C,D,A),_=$.ownerDocument.getElementById(D+"egocx");if(_!=null)_.izoom=B};DxEcgControl.iviewstyle=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"egocx");if(A!=null){var $=A.iviewstyle;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"iviewstyle")}};DxEcgControl.setviewstyle=function(C,D,A,B){var $=top.E_getObject(C,D,A),_=$.ownerDocument.getElementById(D+"egocx");if(_!=null)_.iviewstyle=B};DxEcgControl.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_STRINGADD:top.DxEcgControl.add($,B,H);break;case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="readxml")DxEcgControl.xmlread($,B,G,E[0],E[1]);else if(J=="sname")DxEcgControl.sname($,B,G);else if(J=="spatid")DxEcgControl.spatid($,B,G);else if(J=="svrate")DxEcgControl.svrate($,B,G);else if(J=="spr")DxEcgControl.spr($,B,G);else if(J=="sqrs")DxEcgControl.sqrs($,B,G);else if(J=="sqt")DxEcgControl.sqt($,B,G);else if(J=="sprt")DxEcgControl.sprt($,B,G);else if(J=="sefftime")DxEcgControl.sefftime($,B,G);else if(J=="sdob")DxEcgControl.sdob($,B,G);else if(J=="sage")DxEcgControl.sage($,B,G);else if(J=="sgen")DxEcgControl.sgen($,B,G);else if(J=="sdep")DxEcgControl.sdep($,B,G);else if(J=="ispeed")DxEcgControl.ispeed($,B,G);else if(J=="izoom")DxEcgControl.izoom($,B,G);else if(J=="setSpeed")DxEcgControl.setSpeed($,B,G,E[0]);else if(J=="setZoom")DxEcgControl.setZoom($,B,G,E[0]);else if(J=="iviewstyle")DxEcgControl.iviewstyle($,B,G);else if(J=="setviewstyle")DxEcgControl.setviewstyle($,B,G,E[0]);break;default:break}}};function DxPathology(){}DxPathology.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"ocx' align=center hspace=0 vspace=0 border=0 width=100% height=100% codebase=\"./pathologyProj1.cab#version=1,0,6,0\" CLASSID=\"clsid:11B8AD69-85DB-49D8-895C-1013CCA57955\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxPathology.rectsize=function(A,C,_){var $=top.E_getObject(A,C,_),D=$.clientHeight,B=$.clientWidth;WatCore.setParameter(A,C,top.DC.TEXT,text);WatCore.sendACallToChart(A,C,"rectsize")};DxPathology.openimg=function(E,F,B,$,D){var _=top.E_getObject(E,F,B),A=_.ownerDocument.getElementById(F+"ocx");if(A!=null)var C=A.openimg($,D)};DxPathology.restoreimg=function(C,D,A){var $=top.E_getObject(C,D,A),_=$.ownerDocument.getElementById(D+"ocx");if(_!=null)var B=_.restoreimg()};DxPathology.izoom=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"ocx");if(A!=null){var $=A.izoom;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"izoom")}};DxPathology.setZoom=function(C,D,A,B){var $=top.E_getObject(C,D,A),_=$.ownerDocument.getElementById(D+"ocx");if(_!=null)_.izoom=B};DxPathology.ipanelw=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"ocx");if(A!=null){var $=A.ipanelw;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"ipanelw")}};DxPathology.setPanelw=function(C,E,A,B){var $=top.E_getObject(C,E,A),_=$.ownerDocument.getElementById(E+"ocx");if(_!=null){var D=$.clientWidth;_.ipanelw=parseInt(D)}};DxPathology.ipanelh=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"ocx");if(A!=null){var $=A.ipanelh;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"ipanelh")}};DxPathology.setPanelh=function(C,D,A,B){var $=top.E_getObject(C,D,A),_=$.ownerDocument.getElementById(D+"ocx");if(_!=null){var E=$.clientHeight;_.ipanelh=parseInt(E)}};DxPathology.iratx=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"ocx");if(A!=null){var $=A.iratx;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"iratx")}};DxPathology.setRatx=function(C,D,A,B){var $=top.E_getObject(C,D,A),_=$.ownerDocument.getElementById(D+"ocx");if(_!=null)_.iratx=B};DxPathology.iraty=function(C,D,B){var _=top.E_getObject(C,D,B),A=_.ownerDocument.getElementById(D+"ocx");if(A!=null){var $=A.iraty;WatCore.setParameter(C,D,top.DC.TEXT,$);WatCore.sendACallToChart(C,D,"iraty")}};DxPathology.setRaty=function(C,D,A,B){var $=top.E_getObject(C,D,A),_=$.ownerDocument.getElementById(D+"ocx");if(_!=null)_.iraty=B};DxPathology.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_STRINGADD:top.DxPathology.add($,B,H);break;case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="openimg")DxPathology.openimg($,B,G,E[0],E[1]);else if(J=="restoreimg")DxPathology.restoreimg($,B,G);else if(J=="izoom")DxPathology.izoom($,B,G);else if(J=="setZoom")DxPathology.setZoom($,B,G,E[0]);else if(J=="ipanelw")DxPathology.ipanelw($,B,G);else if(J=="setPanelw")DxPathology.setPanelw($,B,G,E[0]);else if(J=="ipanelh")DxPathology.ipanelh($,B,G);else if(J=="setPanelh")DxPathology.setPanelh($,B,G,E[0]);else if(J=="iratx")DxPathology.iratx($,B,G);else if(J=="setRatx")DxPathology.setRatx($,B,G,E[0]);else if(J=="iraty")DxPathology.iraty($,B,G);else if(J=="setRaty")DxPathology.setRaty($,B,G,E[0]);break;default:break}}};function DxIDCard4CVR(){}DxIDCard4CVR.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id=\""+_+"_CVR\" width=0 height=0 classid=\"clsid:10946843-7507-44FE-ACE8-2B3483D179B7\"></OBJECT>";A.innerHTML=D}catch($){alert($)}};DxIDCard4CVR.read=function(I,B,G){var R,O=top.E_getObject(I,B,G),S=G.getElementById(B+"_CVR"),E=S.ReadCard();if(E=="0"){var Q=S.Name,_=S.Sex,L=S.Nation,A=S.Born,P=S.Address,H=S.CardNo,F=S.IssuedAt,N=S.EffectedDate,$=S.ExpiredDate,K=S.SAMID,J=S.Pic,D=S.Picture,C=S.PictureLen,M=Q+"&"+_+"&"+L+"&"+A+"&"+P+"&"+H+"&"+F+"&"+N+"&"+$+"&"+K+"&"+J+"&"+D+"&"+C;WatCore.setParameter(I,B,top.DC.TEXT,M);WatCore.sendACallToChart(I,B,"enter")}else{alert("\u534e\u89c6"+E);return}};DxIDCard4CVR.clear=function(_,$,A){};DxIDCard4CVR.render=function($,C,A){var D=A.getAttribute("cid"),_=A.selectNodes("*");for(var F=0;F<_.length;F++){var E=_[F].nodeName;E=E.substring(1,E.length);var B=top.isIE?_[F].text:_[F].textContent;switch(E){case top.DC.UPDATE_DATA:DxIDCard4CVR.read($,D,C);break;default:break}}};function DxDICOMSDKRegister(){}DxDICOMSDKRegister.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_SDKRegister' width=0 height=0 CLASSID=\"CLSID:FBDA9792-79E1-470D-AF50-D6674D1081B2\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMSDKRegister.LANLicenseServerIP=function(B,D,A,E){var _=top.E_getObject(B,D,A),C=$("#"+D+"DICOM_SDKRegister",_).get(0);if(C!=null)C.LANLicenseServerIP=E};DxDICOMSDKRegister.LANRegister=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_SDKRegister",A).get(0);if(D!=null)D.LANRegister(_)};DxDICOMSDKRegister.getSeriesNumber=function(C,E,B){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_SDKRegister",A).get(0);if(D!=null){var _=D.SeriesNumber;WatCore.setParameter(C,E,top.DC.TEXT,_);WatCore.sendACallToChart(C,E,"getSeriesNumber")}};DxDICOMSDKRegister.getRegister=function(C,E,B,_){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_SDKRegister",A).get(0);if(D!=null)D.Register(_)};DxDICOMSDKRegister.isRegister=function(C,E,B){var A=top.E_getObject(C,E,B),D=$("#"+E+"DICOM_SDKRegister",A).get(0);if(D!=null){var _=D.Enable;WatCore.setParameter(C,E,top.DC.TEXT,_);WatCore.sendACallToChart(C,E,"isRegister")}};DxDICOMSDKRegister.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="LANLicenseServerIP")top.DxDICOMSDKRegister.LANLicenseServerIP($,B,H,E[0]);else if(K=="LANRegister")top.DxDICOMSDKRegister.LANRegister($,B,H,E[0]);else if(K=="getSeriesNumber")top.DxDICOMSDKRegister.getSeriesNumber($,B,H);else if(K=="getRegister")top.DxDICOMSDKRegister.getRegister($,B,H,E[0]);else if(K=="isRegister")top.DxDICOMSDKRegister.isRegister($,B,H);break;default:break}}};function DxICCardFjYktNew(){}DxICCardFjYktNew.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id=\""+_+"_rd\" codebase=\"./csdkq1.cab#Version=1,1,8,2\" classid=\"CLSID:84C4FA72-83B4-4AE8-8178-250A9410E27A\" height=\"1\" width=\"1\"></OBJECT>";A.innerHTML=D}catch($){alert($)}};DxICCardFjYktNew.readCardInfo=function(D,A,C,E){var B=top.E_getObject(D,A,C),F=C.getElementById(A+"_rd"),$;try{$=F.GetSSSECardno("3508",121);if($==null||$.indexOf("OK:")<0){alert("\u8bfb\u5361\u6570\u636e\u9519\u8bef:"+$);return}WatCore.setParameter(D,A,top.DC.TEXT,$);WatCore.sendACallToChart(D,A,"enter");WatCore.increaseShowflag()}catch(_){alert(_.message)}};DxICCardFjYktNew.clear=function(_,$,A){};DxICCardFjYktNew.render=function(_,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.UPDATE_DATA:var $=C.split("$"),E=$[0];if(E=="cardinfo")DxICCardFjYktNew.readCardInfo(_,F,D,$[1]);break;default:break}}};function DxMulInteractiveMessage(){}DxMulInteractiveMessage.renderVideo=function(B,F,E,C,A){var _=top.E_getObject(B,F,A),G=_.clientHeight,D=_.clientWidth,$="<object id=\""+F+"_message\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\"0\" height=\"0\" id=\""+F+"chat\" align=\"middle\">";$+="<param name=\"allowScriptAccess\" value=\"sameDomain\" />";$+="<param name=\"allowFullScreen\" value=\"false\" />";$+="<param name=\"FlashVars\" value=\""+E+"&flashobjid="+F+"_message&clientheight=0&clientwidth=0\" />";$+="<param name=\"scale\" value=\"exactfit\" />";$+="<param name=\"movie\" value=\"./mulinteractivevideo/"+C+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" />\t<embed src=\"./DxMulInteractiveMessage/"+C+"\" id=\""+F+"_message2\" FlashVars=\""+E+"&flashobjid="+F+"_message&clientheight=0&clientwidth=0\" quality=\"high\" bgcolor=\"#ffffff\" width=\"0\" height=\"0\" name=\""+F+"chat\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer_cn\" />";$+="</object>";_.innerHTML=$};DxMulInteractiveMessage.clear=function(B,A,D){try{var C;if(top.isIE)C=$("#"+D.id+"_message",D).get(0);else C=$("#"+D.id+"_message2",D).get(0);if(C!=null)C.callAsclosemessage("test")}catch(_){}};DxMulInteractiveMessage.clientmessagecall=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.clientmessagecall(B)};DxMulInteractiveMessage.callresetconnection=function(B,D,A){var _=top.E_getObject(B,D,A),C;if(top.isIE)C=$("#"+D+"_message",_).get(0);else C=$("#"+D+"_message2",_).get(0);if(C!=null)C.callresetconnection("test")};DxMulInteractiveMessage.serverMessageCall=function(D){var A=D.split("@wat@");if(A.length==3){var C=A[0],E=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,E,_);WatCore.sendACallToMulInteractiveMessage(C,E,"action",A[2])}};DxMulInteractiveMessage.connectionState=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"connectionstate",A[2])}};DxMulInteractiveMessage.receiveVideoMeetingServerUserStatusRsp=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveVideoMeetingServerUserStatusRsp",A[2])}};DxMulInteractiveMessage.videoMeetingServerJoin=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"videoMeetingServerJoin",A[2])}};DxMulInteractiveMessage.videoMeetingServerQuit=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"videoMeetingServerQuit",A[2])}};DxMulInteractiveMessage.videoToMini=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"videoToMini",A[2])}};DxMulInteractiveMessage.videoToMax=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"videoToMax",A[2])}};DxMulInteractiveMessage.receiveVideoMeetingInitiate=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveVideoMeetingInitiate",A[2])}};DxMulInteractiveMessage.receiveVideoMeetingInitiateAck=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveVideoMeetingInitiateAck",A[2])}};DxMulInteractiveMessage.receiveVideoMeetingInitiateCancel=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveVideoMeetingInitiateCancel",A[2])}};DxMulInteractiveMessage.receiveVideoMeetingServerUserChangeNotify=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveVideoMeetingServerUserChangeNotify",A[2])}};DxMulInteractiveMessage.sendLogoutReq=function(B,D,A){var _=top.E_getObject(B,D,A),C;if(top.isIE)C=$("#"+D+"_message",_).get(0);else C=$("#"+D+"_message2",_).get(0);if(C!=null)C.sendLogoutReq("")};DxMulInteractiveMessage.sendVideoMeetingInitiate=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendVideoMeetingInitiate(B)};DxMulInteractiveMessage.sendVideoMeetingInitiateAck=function(D,F,B,C){var _=top.E_getObject(D,F,B),E;if(top.isIE)E=$("#"+F+"_message",_).get(0);else E=$("#"+F+"_message2",_).get(0);if(E!=null){var A=C.split("|");E.sendVideoMeetingInitiateAck(A[0]);if(A.length==2&&A[1]!=""){WatCore.setParameter(D,F,top.DC.TEXT,A[1]);WatCore.sendACallToChart(D,F,"sendVideoMeetingInitiateAckReturn");WatCore.setActiveState()}}};DxMulInteractiveMessage.sendVideoMeetingInitiateCancel=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendVideoMeetingInitiateCancel(B)};DxMulInteractiveMessage.sendVideoMeetingServerJoin=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendVideoMeetingServerJoin(B)};DxMulInteractiveMessage.sendVideoMeetingServerQuit=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendVideoMeetingServerQuit(B)};DxMulInteractiveMessage.sendVideoMeetingServerUserStatusReq=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendVideoMeetingServerUserStatusReq(B)};DxMulInteractiveMessage.beKicked=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"beKicked",A[2])}};DxMulInteractiveMessage.sendRoutineMsgData=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendRoutineMsgData(B)};DxMulInteractiveMessage.receiveRoutineMsgData=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveRoutineMsgData",A[2])}};DxMulInteractiveMessage.callMutlConnection=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.callMutlConnection(B)};DxMulInteractiveMessage.runCom=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"runCom",A[2])}};DxMulInteractiveMessage.runLog=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"runLog",A[2])}};DxMulInteractiveMessage.imLogout=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"imLogout",A[2])}};DxMulInteractiveMessage.imLogin=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"imLogin",A[2])}};DxMulInteractiveMessage.sendIMMsgData=function(E,H,C,B,D,_,F){var A=top.E_getObject(E,H,C),G;if(top.isIE)G=$("#"+H+"_message",A).get(0);else G=$("#"+H+"_message2",A).get(0);if(G!=null)G.sendIMMsgData(B+"@w@"+D+"@w@"+_+"@w@"+F)};DxMulInteractiveMessage.receiveIMMsgData=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveIMMsgData",A[2])}};DxMulInteractiveMessage.sendIMUsersStatReq=function(B,E,A,C){var _=top.E_getObject(B,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendIMUsersStatReq(C)};DxMulInteractiveMessage.receiveIMUsersStatRsp=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveIMUsersStatRsp",A[2])}};DxMulInteractiveMessage.receiveIMMsgDataAck=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveIMMsgDataAck",A[2])}};DxMulInteractiveMessage.receiveIMMsgDataReadNotify=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveIMMsgDataReadNotify",A[2])}};DxMulInteractiveMessage.sendIMMsgDataReadAck=function(B,E,A,C){var _=top.E_getObject(B,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendIMMsgDataReadAck(C)};DxMulInteractiveMessage.receiveIMGetMsgListRsp=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveIMGetMsgListRsp",A[2])}};DxMulInteractiveMessage.sendIMGetMsgListReq=function(B,E,A,C){var _=top.E_getObject(B,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendIMGetMsgListReq(C)};DxMulInteractiveMessage.sendIMHspMsgData=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendIMHspMsgData(B)};DxMulInteractiveMessage.receiveIMHspMsgData=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveIMHspMsgData",A[2])}};DxMulInteractiveMessage.sendIMGroupCreateReq=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendIMGroupCreateReq(B)};DxMulInteractiveMessage.receiveIMGroupCreateRsp=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveIMGroupCreateRsp",A[2])}};DxMulInteractiveMessage.sendIMGroupInfoListReq=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendIMGroupInfoListReq(B)};DxMulInteractiveMessage.receiveIMGroupInfoListRsp=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveIMGroupInfoListRsp",A[2])}};DxMulInteractiveMessage.sendIMGroupChangeMemberReq=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendIMGroupChangeMemberReq(B)};DxMulInteractiveMessage.receiveIMGroupChangeMemberRsp=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveIMGroupChangeMemberRsp",A[2])}};DxMulInteractiveMessage.receiveIMGroupChangeMemberNotify=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveIMGroupChangeMemberNotify",A[2])}};DxMulInteractiveMessage.sendIMUnreadMsgCntReq=function(B,D,A){var _=top.E_getObject(B,D,A),C;if(top.isIE)C=$("#"+D+"_message",_).get(0);else C=$("#"+D+"_message2",_).get(0);if(C!=null)C.sendIMUnreadMsgCntReq()};DxMulInteractiveMessage.receiveIMUnreadMsgCntRsp=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveIMUnreadMsgCntRsp",A[2])}};DxMulInteractiveMessage.sendVideoMeetingServerQuit2=function(C,E,A,B){var _=top.E_getObject(C,E,A),D;if(top.isIE)D=$("#"+E+"_message",_).get(0);else D=$("#"+E+"_message2",_).get(0);if(D!=null)D.sendVideoMeetingServerQuit(B)};DxMulInteractiveMessage.hasCamera=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"hasCamera",A[2])}};DxMulInteractiveMessage.returnPPTImg=function(C,F,B,D){var A=top.E_getObject(C,F,B),E;if(top.isIE)E=$("#"+F+"_message",A).get(0);else E=$("#"+F+"_message2",A).get(0);if(E!=null){try{E.returnPPTImg(D)}catch(_){}}};DxMulInteractiveMessage.callcloseallvideo=function(C,E,B){var A=top.E_getObject(C,E,B),D;if(top.isIE)D=$("#"+E+"_message",A).get(0);else D=$("#"+E+"_message2",A).get(0);if(D!=null){try{D.callcloseallvideo()}catch(_){}}};DxMulInteractiveMessage.callAsclosevideo=function(D,F,B,C){var A=top.E_getObject(D,F,B),E;if(top.isIE)E=$("#"+F+"_message",A).get(0);else E=$("#"+F+"_message2",A).get(0);if(E!=null){try{E.callAsclosevideo(C)}catch(_){}}};DxMulInteractiveMessage.callreloadvideo=function(D,F,B,C){var A=top.E_getObject(D,F,B),E;if(top.isIE)E=$("#"+F+"_message",A).get(0);else E=$("#"+F+"_message2",A).get(0);if(E!=null){try{E.callreloadvideo(C)}catch(_){}}};DxMulInteractiveMessage.showScanQRcode=function(C,F,B,D){var A=top.E_getObject(C,F,B),E;if(top.isIE)E=$("#"+F+"_message",A).get(0);else E=$("#"+F+"_message2",A).get(0);if(E!=null){try{E.showScanQRcode(D)}catch(_){}}};DxMulInteractiveMessage.openVideo=function(C,F,B,D){var A=top.E_getObject(C,F,B),E;if(top.isIE)E=$("#"+F+"_message",A).get(0);else E=$("#"+F+"_message2",A).get(0);if(E!=null){try{E.openvideo(D)}catch(_){}}};DxMulInteractiveMessage.localSocketStatusChange=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"localSocketStatusChange",A[2])}};DxMulInteractiveMessage.sendLocalSocketMsg=function(E,G,D,A,_){var C=top.E_getObject(E,G,D),F;if(top.isIE)F=$("#"+G+"_message",C).get(0);else F=$("#"+G+"_message2",C).get(0);if(F!=null){try{F.sendLocalSocketMsg(A,_)}catch(B){}}};DxMulInteractiveMessage.setWebUrl=function(C,F,B,D){var A=top.E_getObject(C,F,B),E;if(top.isIE)E=$("#"+F+"_message",A).get(0);else E=$("#"+F+"_message2",A).get(0);if(E!=null){try{E.setweburl(D)}catch(_){}}};DxMulInteractiveMessage.receiveLocalSocketMsg=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"receiveLocalSocketMsg",A[2])}};DxMulInteractiveMessage.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,L;if(A>-1){C=J.substring(0,A);L=J.substring(A+1,J.length);var F=L.split("-");L=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(L=="renderVideo"){var K=I.split("|");DxMulInteractiveMessage.renderVideo($,B,K[0],K[1],H)}else if(L=="clientmessagecall")DxMulInteractiveMessage.clientmessagecall($,B,H,E[0]);else if(L=="callgetConnectionState")DxMulInteractiveMessage.callgetConnectionState($,B,H,E[0]);else if(L=="callresetconnection")DxMulInteractiveMessage.callresetconnection($,B,H);else if(L=="sendlogoutreq")DxMulInteractiveMessage.sendLogoutReq($,B,H);else if(L=="sendvideomeetinginitiate")DxMulInteractiveMessage.sendVideoMeetingInitiate($,B,H,E[0]);else if(L=="sendvideomeetinginitiateack")DxMulInteractiveMessage.sendVideoMeetingInitiateAck($,B,H,E[0]);else if(L=="sendvideomeetinginitiatecancel")DxMulInteractiveMessage.sendVideoMeetingInitiateCancel($,B,H,E[0]);else if(L=="sendvideomeetingserverjoin")DxMulInteractiveMessage.sendVideoMeetingServerJoin($,B,H,E[0]);else if(L=="sendVideoMeetingServerUserStatusReq")DxMulInteractiveMessage.sendVideoMeetingServerUserStatusReq($,B,H,E[0]);else if(L=="sendRoutineMsgData")DxMulInteractiveMessage.sendRoutineMsgData($,B,H,E[0]);else if(L=="callMutlConnection")DxMulInteractiveMessage.callMutlConnection($,B,H,E[0]);else if(L=="sendIMMsgData")DxMulInteractiveMessage.sendIMMsgData($,B,H,E[0],E[1],E[2],E[3]);else if(L=="sendIMUsersStatReq")DxMulInteractiveMessage.sendIMUsersStatReq($,B,H,E[0]);else if(L=="sendIMMsgDataReadAck")DxMulInteractiveMessage.sendIMMsgDataReadAck($,B,H,E[0]);else if(L=="sendIMGetMsgListReq")DxMulInteractiveMessage.sendIMGetMsgListReq($,B,H,E[0]);else if(L=="sendIMHspMsgData")DxMulInteractiveMessage.sendIMHspMsgData($,B,H,E[0]);else if(L=="sendIMGroupCreateReq")DxMulInteractiveMessage.sendIMGroupCreateReq($,B,H,E[0]);else if(L=="sendIMGroupInfoListReq")DxMulInteractiveMessage.sendIMGroupInfoListReq($,B,H,E[0]);else if(L=="sendIMGroupChangeMemberReq")DxMulInteractiveMessage.sendIMGroupChangeMemberReq($,B,H,E[0]);else if(L=="sendIMUnreadMsgCntReq")DxMulInteractiveMessage.sendIMUnreadMsgCntReq($,B,H);else if(L=="sendVideoMeetingServerQuit")DxMulInteractiveMessage.sendVideoMeetingServerQuit2($,B,H,E[0]);else if(L=="returnPPTImg")DxMulInteractiveMessage.returnPPTImg($,B,H,E[0]);else if(L=="callcloseallvideo")DxMulInteractiveMessage.callcloseallvideo($,B,H);else if(L=="callAsclosevideo")DxMulInteractiveMessage.callAsclosevideo($,B,H,E[0]);else if(L=="callreloadvideo")DxMulInteractiveMessage.callreloadvideo($,B,H,E[0]);else if(L=="showScanQRcode")DxMulInteractiveMessage.showScanQRcode($,B,H,E[0]);else if(L=="openVideo")DxMulInteractiveMessage.openVideo($,B,H,E[0]);else if(L=="sendLocalSocketMsg")DxMulInteractiveMessage.sendLocalSocketMsg($,B,H,E[0],E[1]);else if(L=="setWebUrl")DxMulInteractiveMessage.setWebUrl($,B,H,E[0]);break;default:break}}};function DxChatShow(){}DxChatShow.init=function(C,D){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,D,A);_.dataDom=top.WatCore.createXmlDom("<chat/>");$(_).delegate("div[type$='wrap']","mouseover",function($){if(!$.cancelBubble){this.style.backgroundColor="#FFEDC4";this.style.border="1px solid #FFDB8D";$.cancelBubble=true;$.preventDefault()}else{$.cancelBubble=true;$.preventDefault()}}).delegate("div[type$='wrap']","mouseout",function(){this.style.backgroundColor="transparent";this.style.border="1px none #FFDB8D"})};DxChatShow.clear=function(_,$,A){A.dataDom=null};DxChatShow.addText=function(E,F,A,D){var O=top.E_getObject(E,F,D);if(top.isIE)O.dataDom.loadXML(A);else O.dataDom=WatCore.createXmlDom(A);var H=O.dataDom.documentElement.selectNodes("message"),I="",N=false;for(var G=0;G<H.length;G++){var S=H[G].selectSingleNode("focus"),P=H[G].selectSingleNode("color"),Q="";if(S!=null){Q=top.isIE?S.text:S.textContent;if(Q=="true")N=true}I+="<div type='wrap' tfocus='"+Q+"' tabindex='1'><div style='line-height:1.5;font-weight:normal;font-size:12;color:"+(top.isIE?P.text:P.textContent)+"'>";var M=H[G].selectSingleNode("sender");I+="&nbsp;"+(top.isIE?M.text:M.textContent)+":</div>";M=H[G].selectSingleNode("text");var K=M.getAttribute("size"),L=M.getAttribute("isUnderline");if(L=="true")L="underline";else L="none";var T=M.getAttribute("isBold");if(T=="true")T="bold";else T="normal";var C=M.getAttribute("isItalic");if(C=="true")C="italic";else C="normal";var R=M.getAttribute("name"),B=top.isIE?M.text:M.textContent;I+="<div style='margin-left:20px;margin-right:20px;line-height:2.5;color:#000000;font-size:"+K+";font-weight:"+T+";font-style:"+C+";text-decoration:"+L+";font-family:"+R+"'>";if(B!=null){var _=B.split("\n");for(var J=0;J<_.length;J++)I+=_[J]+"<br>"}I+="</div></div>"}O.insertAdjacentHTML("beforeEnd",I);if(!N){O.scrollTop=O.scrollHeight;O.scrollTop=2*O.scrollHeight}else $("div[tfocus$='true']",O)[0].focus()};DxChatShow.resize=function(_,A,$){$.scrollTop=$.scrollHeight;$.scrollTop=2*$.scrollHeight};DxChatShow.clearText=function(A,B,_){var $=top.E_getObject(A,B,_);$.innerHTML=""};DxChatShow.render=function($,C,A){var D=A.getAttribute("cid"),_=A.selectNodes("*");for(var F=0;F<_.length;F++){var E=_[F].nodeName;E=E.substring(1,E.length);var B=top.isIE?_[F].text:_[F].textContent;switch(E){case top.DC.TEXT:DxChatShow.addText($,D,B,C);break;case top.DC.CLEAR_EMR_SECTION_VALUE:DxChatShow.clearText($,D,C);break;case top.DC.WIDTH:C.ownerDocument.getElementById(D).style.width=B;break;case top.DC.HEIGHT:C.ownerDocument.getElementById(D).style.height=B;break;case top.DC.VISIBLE:C.ownerDocument.getElementById("E_SW_"+D).style.visibility=B;break;case top.DC.X:C.ownerDocument.getElementById("E_SW_"+D).style.left=B;break;case top.DC.Y:C.ownerDocument.getElementById("E_SW_"+D).style.top=B;break;default:break}}};function DxVideoPlayer(){}DxVideoPlayer.renderVideo=function(B,F,E,C,A){var _=top.E_getObject(B,F,A),G=_.clientHeight,D=_.clientWidth,$="<object id=\""+F+"_video\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\"100%\" height=\"100%\" id=\""+F+"chat\" align=\"middle\">";$+="<param name=\"allowScriptAccess\" value=\"sameDomain\" />";$+="<param name=\"allowFullScreen\" value=\"true\" />";$+="<param name=\"wmode\" value=\"opaque\" />";$+="<param name=\"FlashVars\" value=\""+E+"&clientheight="+G+"&clientwidth="+D+"\" />";$+="<param name=\"scale\" value=\"exactfit\" />";$+="<param name=\"movie\" value=\"./mulinteractivevideo/"+C+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" />\t<embed src=\"./mulinteractivevideo/"+C+"\" quality=\"high\" bgcolor=\"#ffffff\" width=\"100%\" height=\"100%\" name=\""+F+"chat\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer_cn\" />";$+="</object>";_.innerHTML=$};DxVideoPlayer.clear=function(A,_,C){try{var B=C.ownerDocument.getElementById(C.id+"_video");if(B!=null)B.callAsclose("test")}catch($){}};DxVideoPlayer.callreloadvideo=function(B,D,_,A){var $=top.E_getObject(B,D,_),C=$.ownerDocument.getElementById(D+"_video");if(C!=null)C.callreloadvideo(A)};DxVideoPlayer.resizeaction=function($,B,D){var A=D.ownerDocument.getElementById(B+"_video"),C=D.clientHeight,_=D.clientWidth;if(A!=null)A.callAsFunction(_+","+C)};DxVideoPlayer.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,K;if(A>-1){C=I.substring(0,A);K=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(K=="renderVideo"){var J=H.split("|");DxVideoPlayer.renderVideo($,B,J[0],J[1],G)}else if(K=="callreloadvideo")DxVideoPlayer.callreloadvideo($,B,G,E[0]);break;default:break}}};function DxWHCard(){}DxWHCard.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id='"+_+"_pos' codebase='./whactive.cab#Version=1,0,0,3' classid='CLSID:99A8BDFF-57E6-4CAD-8658-1CB2DFE8F1F5' height='1' width='1'></OBJECT>";A.innerHTML=D}catch($){alert($.message)}};DxWHCard.readCardInfo=function(D,A,C){var B=top.E_getObject(D,A,C),E=C.getElementById(A+"_pos");try{var $=E.whreadcard();WatCore.setParameter(D,A,top.DC.TEXT,$);WatCore.sendACallToChart(D,A,"enter");WatCore.increaseShowflag()}catch(_){alert("pos"+_.message)}};DxWHCard.clear=function(_,$,A){};DxWHCard.render=function(_,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.UPDATE_DATA:var $=C.split("$"),E=$[0];if(E=="cardinfo")DxWHCard.readCardInfo(_,F,D);break;default:break}}};function DxYgYbjk(){}DxYgYbjk.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id='"+_+"_ybjkocx' codebase='./dxybjkxxProj1.cab#version=1,0,3,0' classid='CLSID:EC14723B-09F6-4F92-8AC2-0F23D0EF4519' height='1' width='1'></OBJECT>";A.innerHTML=D}catch($){alert($.message)}};DxYgYbjk.CAGInfo=function(H,A,E,G,F,D,C){var B=top.E_getObject(H,A,E),I=E.getElementById(A+"_ybjkocx");try{var $=I.dxybjkxx(C,G,F,D);WatCore.setParameter(H,A,top.DC.TEXT,$);WatCore.sendACallToChart(H,A,"enter");WatCore.setActiveState()}catch(_){alert("pos"+_.message)}};DxYgYbjk.clear=function(_,$,A){};DxYgYbjk.render=function(_,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.UPDATE_DATA:var $=C.split("&");DxYgYbjk.CAGInfo(_,E,D,$[0],$[1],$[2],$[3]);break;break;default:break}}};function DxDataBeds(){}DxDataBeds.init=function(C,E,K,_,D,G,F,A,H){var J=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,J),I=top.E_getObject(C,E,B);I.hasaction=K;I.hasdblaction=_;I.hasPopMenu=D;I.popupMenuFormID=G;I.popupMenuID=F;I.jgheightnum=A;I.dataDom=top.WatCore.createXmlDom("<beds/>");I.changeDom=top.WatCore.createXmlDom("<beds/>");I.isdblclick=H;I.panelend=true;I.strWinId=C;I.strCtrId=E;$(I).unbind("resize");$(I).bind("resize",C,function($){top.DxDataBeds.changeSize(C,E)});$(I).unbind("mousedown");$(I).bind("mousedown",C,function($){top.DxDataBeds.mousedown(I,$)});$(I).unbind("dblclick");$(I).bind("dblclick",C,function($){top.DxDataBeds.dblclick(I,$)});top.DxDataBeds.changeSize(C,E)};DxDataBeds.mousedown=function(H,B){var D=H.strWinId,E=H.strCtrId,_=EventUtil.getEvent(B),C=EventUtil.getTarget(B),A=DxDataBeds.getBed(C);if(A!=null)if(1==_.which){var G=$(A).attr("key");top.DxDataBeds.clickprocess(D,E,G,false,_)}else if(3==_.which){var G=$(A).attr("key"),F=$(A).attr("popupMenuID");if(F){top.DxDataBeds.onpop(D,E,F,G,_);EventUtil.stopPropagation()}}};DxDataBeds.dblclick=function(G,B){var D=G.strWinId,E=G.strCtrId,_=EventUtil.getEvent(B),C=EventUtil.getTarget(B),A=DxDataBeds.getBed(C);if(A!=null){var F=$(A).attr("key");top.DxDataBeds.clickprocess(D,E,F,true,_)}};DxDataBeds.contextMenu=function(H,B){var D=H.strWinId,E=H.strCtrId,_=EventUtil.getEvent(B),C=EventUtil.getTarget(B),A=DxDataBeds.getBed(C);if(A!=null){var G=$(A).attr("key"),F=$(A).attr("popupMenuID");top.DxDataBeds.onpop(D,E,F,G,_)}};DxDataBeds.getBed=function(A){var B=A,_=null;if($(B).attr("isBed")=="true"){_=B;return _}while(!B.panelend&&$(B).attr("isBed")!="true"){B=B.parentElement;if($(B).attr("isBed")=="true"){_=B;break}if(B.panelend)break}return _};DxDataBeds.changeSize=function(C,D){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=A.getElementById(D),$=parseInt(_.clientWidth);if($>0&&$==_.oldwidth)return;_.oldwidth=$};DxDataBeds.updateData=function(C,D,A,$){var B=top.E_clientModel.E_getWindow(C),_=A.getElementById(D);if(top.isIE)_.dataDom.loadXML($);else _.dataDom=WatCore.createXmlDom($);DxDataBeds.createBeds(C,D,_)};DxDataBeds.createBeds=function(D,F,N){var K=N.dataDom.documentElement,B=parseInt(K.getAttribute("bedwidth")),_=parseInt(K.getAttribute("bedheight"));N.bedwidth=B;N.bedheight=_;N.innerHTML="";var X=5,W=N.jgheightnum,J="",a=K.selectNodes("bed"),b=a.length;if(b<=0)return;var Q=N.clientWidth,A=parseInt((parseInt(Q)-20)/(B+X));if(A<=0)A=1;X=(parseInt(Q)-B*A)/(A+1);if(X<0)X=5;X=5;var R=N.hasaction,U=N.hasdblaction,E=N.hasPopMenu,H=N.popupMenuFormID,G=N.popupMenuID,Y=1,c=0,L=N.scrollTop;for(var Z=0;Z<a.length;Z++){var M=a[Z],S=M.getAttribute("key"),O=isIE?M.text:M.textContent,I=M.getAttribute("selected");c++;if(c>A){Y++;c=1}var P=c*X+(c-1)*B,T=Y*W+(Y-1)*_,V="<div overflow-x='hidden' overflow-y='hidden' isBed='true' ";if(R=="true");if(U=="true");if(E=="true"&&H!=""&&G!="")V+=" popupMenuID='"+G+"' ";V+=" id='"+F+S+"' key='"+S+"' class='DxDataBeds-bed' style='position:relative;float:left;margin:"+X+"px;overflow:hidden;width:"+B+"px;height:"+_+"px'>"+O+"</div>";if(I=="true")L=T;J+=V}Y++;c=1;P=c*X+(c-1)*B,T=Y*W+(Y-1)*_;J+="<span style='position:absolute;top:"+T+"px;left:"+P+"px;width:"+B+"px;height:20px'></span>";$(N).html(J);var C=parseInt(N.clientHeight)+parseInt(N.scrollTop);if(L>C||L<N.scrollTop)N.scrollTop=L};DxDataBeds.changeData=function(C,D,A,$){var B=top.E_clientModel.E_getWindow(C),_=A.getElementById(D);if(top.isIE)_.changeDom.loadXML($);else _.changeDom=WatCore.createXmlDom($);DxDataBeds.changeBeds(C,D,_)};DxDataBeds.changeBeds=function(C,F,N){var I=N.changeDom.documentElement,O=N.dataDom.documentElement,L=I.selectNodes("bed"),D=O.selectNodes("bed"),J=N.scrollTop;for(var G=0;G<L.length;G++){var M=L[G],Q=M.getAttribute("key"),P=isIE?M.text:M.textContent,H=M.getAttribute("selected");for(var E=0;E<D.length;E++){var B=D[E],K=B.getAttribute("key");if(Q==K){if(isIE)B.text=P;else B.textContent=P;break}}var _=N.ownerDocument.getElementById(F+Q);if(_!=null){if(_.length>0){for(E=0;E<_.length;E++)$(_[E]).html(P)}else $(_).html(P);if(H=="true")J=parseInt(_.style.top)}}var A=parseInt(N.clientHeight)+parseInt(N.scrollTop);if(J>A||J<N.scrollTop)N.scrollTop=J};DxDataBeds.clickprocess=function(C,H,G,$,E){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),F=WatCore.getWindow(C,D),A=top.E_getObject(C,H,B);if(!top.isIE&&A.isdblclick=="true"){var _=A.clickFlag;if(_==null)_=0;if(!_)F.setTimeout("top.DxDataBeds.tt2('"+C+"','"+H+"','"+G+"');",230);_++;A.clickFlag=_}else if($)DxDataBeds.doDblClick(C,H,G,E);else DxDataBeds.doClick(C,H,G,E)};DxDataBeds.tt2=function(B,F,E){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),D=WatCore.getWindow(B,C),_=top.E_getObject(B,F,A),$=_.clickFlag;if($==1)DxDataBeds.doClick(B,F,E);else DxDataBeds.doDblClick(B,F,E);_.clickFlag=0;_.oThis=null};DxDataBeds.doClick=function($,A,B,_){WatCore.setParameter($,A,top.DC.SELECTED,B);WatCore.call($,A,"click")};DxDataBeds.doDblClick=function($,A,B,_){WatCore.setParameter($,A,top.DC.SELECTED,B);WatCore.call($,A,"dblclick")};DxDataBeds.onpop=function($,A,C,B,_){WatCore.setParameter($,A,top.DC.SELECTED,B);top.DxMenu.onpop($,A,C,_)};DxDataBeds.render=function(D,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=top.isIE?_[G].text:_[G].textContent;switch(F){case top.DC.UPDATE_DATA:DxDataBeds.updateData(D,E,C,B);break;case top.DC.CHANGE_DATA:DxDataBeds.changeData(D,E,C,B);break;case top.DC.SELECTED:break;case top.DC.CSSNAME:top.E_getObject(D,E,C).className=B;break;case top.DC.WIDTH:top.E_getObject(D,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject(D,E,C).style.height=B;break;case top.DC.BORDERSTYLE:top.E_getObject(D,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject(D,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject(D,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject(D,"E_SW_"+E,C).style.left=B;break;case top.DC.Y:top.E_getObject(D,"E_SW_"+E,C).style.top=B;break;case top.DC.ENABLED:DxDataBeds.setEnabled(D,E,C,B);break;case top.DC.BACKGROUND:top.E_getObject(D,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject(D,E,C).style.color=B;break;case top.DC.JGHEIGHT:var $=top.E_getObject(D,E,C);$.jgheightnum=B;break;default:break}}};function DxIntegratedView(){}function doClick2($,A,_,B){DxIntegratedView.doClick($,A,_,B)}DxIntegratedView.init=function(B,D,K,_,G,M,C){var J=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,J),I=top.E_getObject(B,D,A);I.actionFlag=K;I.cellwidth=_;I.cellheight=G;I.daynum=M;I.imgflag="down";I.beginhour=C;var H=$("#"+D+"t_ypxl_0",I).get(0),N=$("#"+D+"t_smtz_ypxlpanel",I).get(0);if(H!=null&&N!=null){var F=H.offsetTop,L=H.clientWidth;if(top.isIE){N.style.top=F+"px";N.style.left=parseInt(_)*6+"px";N.style.width=(parseInt(_)*6)*M+"px"}else{N.style.top=(F)+"px";N.style.left=(parseInt(_)*6+4)+"px";N.style.width=(parseInt(_)*6+3)*M+"px"}}var E=$("#"+D+"t_smtz_vmlpanel",I).get(0);if(E!=null)if(top.isIE){E.style.top="40px";E.style.left="120px";E.style.width=(parseInt(_)*6)*M+"px"}else{E.style.top="46px";E.style.left="124px";E.style.width=(parseInt(_)*6+3)*M+"px"}};DxIntegratedView.showdate=function(F,H,E,_){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,H,C),B=_.split("@#@");for(var I=0;I<B.length;I++){var G=$("#"+H+"t_data_"+(I+1),A).get(0);if(G!=null)G.innerText=B[I]}};DxIntegratedView.showdbcs=function(F,H,E,_){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,H,C),B=_.split("@#@");for(var I=0;I<B.length;I++){var G=$("#"+H+"t_dbcs_"+(I+1),A).get(0);if(G!=null)G.innerText=B[I]}};DxIntegratedView.showsryl=function(F,H,E,_){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,H,C),B=_.split("@#@");for(var I=0;I<B.length;I++){var G=$("#"+H+"t_rl_"+(I+1),A).get(0);if(G!=null)G.innerText=B[I]}};DxIntegratedView.shownl=function(F,H,E,_){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,H,C),B=_.split("@#@");for(var I=0;I<B.length;I++){var G=$("#"+H+"t_nl_"+(I+1),A).get(0);if(G!=null)G.innerText=B[I]}};DxIntegratedView.showtz=function(F,H,E,_){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,H,C),B=_.split("@#@");for(var I=0;I<B.length;I++){var G=$("#"+H+"t_tz_"+(I+1),A).get(0);if(G!=null)G.innerText=B[I]}};DxIntegratedView.showxy=function(F,H,E,_){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,H,C),B=_.split("@#@");for(var I=0;I<B.length;I++){var G=$("#"+H+"t_xy_"+(I+1),A).get(0);if(G!=null)G.innerText=B[I]}};DxIntegratedView.showts=function(F,H,E,_){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,H,C),B=_.split("@#@");for(var I=0;I<B.length;I++){var G=$("#"+H+"t_ts_"+(I+1),A).get(0);if(G!=null)G.innerText=B[I]}};DxIntegratedView.showryrs=function(F,H,E,_){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,H,C),B=_.split("@#@");for(var I=0;I<B.length;I++){var G=$("#"+H+"t_ryrs_"+(I+1),A).get(0);if(G!=null)G.innerText=B[I]}};DxIntegratedView.showsshrs=function(F,H,E,_){var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,H,C),B=_.split("@#@");for(var I=0;I<B.length;I++){var G=$("#"+H+"t_sshrs_"+(I+1),A).get(0);if(G!=null)G.innerText=B[I]}};DxIntegratedView.imgclick=function(C,D,B){var A=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,A),$=top.E_getObject(C,D,_);if(B.flag=="down"){B.src=watLocation2+"/resources/component/viewsplit2.png";B.flag="up";$.imgflag="up"}else{B.src=watLocation2+"/resources/component/viewsplit.png";B.flag="down";$.imgflag="down"}DxIntegratedView.showyz_(C,D,$)};DxIntegratedView.doClick=function($,A,_,B){WatCore.setParameter($,A,top.DC.TEXT,B);WatCore.call($,A,_)};DxIntegratedView.showyz=function(D,E,C,$){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),_=top.E_getObject(D,E,A);_.showyz=$;DxIntegratedView.showyz_(D,E,_)};DxIntegratedView.showyz_=function(D,J,N){var M=N.showyz,Q=$("#"+J+"t_yz_0",N).get(0),S=$("#"+J+"t_yz_0_title",N).get(0);if(M==null||M==undefined){if(Q!=null)Q.style.height=20;if(S!=null)S.style.height=10;return}var E=N.imgflag;if(E==null||E==undefined)E="down";var C=M.split("@#@"),_=N.cellwidth,L=parseInt(N.cellheight),R=N.daynum,B=_*6-4,A=2;for(var K=0;K<C.length;K++){var I=$("#"+J+"t_yz_"+(K+1),N).get(0);if(I!=null){I.innerHTML="";var H=C[K].split("@{@"),F="",O=H.length;if(E=="down"&&O>5)O=5;if(A<O)A=O;for(var G=0;G<O;G++){var P=H[G].split("@}@");if(P.length==2)F+="<div onclick=\"top.DxIntegratedView.doClick('"+D+"','"+J+"','yz','"+P[0]+"');\" noWrap='true' style='cursor:hand;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+B+"px; height:"+L+"px; float:left; border:1px solid #999999; line-height:"+L+"px; text-align:center; margin-top:1px; ' title='"+P[1]+"'>"+P[1]+"</div>"}$(I).html(F)}}if(Q!=null)Q.style.height=(L+2)*A;if(S!=null)S.style.height=(L+2)*A-10};DxIntegratedView.showzzjh=function(E,J,P,M){var Q=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,Q),N=top.E_getObject(E,J,C),S=$("#"+J+"t_zzjh_0",N).get(0);if(M==null||M==undefined){if(S!=null)S.style.height=20;return}var D=M.split("@#@"),_=N.cellwidth,L=parseInt(N.cellheight),T=N.daynum,B=_*6-4,A=1;for(var K=0;K<D.length;K++){var I=$("#"+J+"t_zzjh_"+(K+1),N).get(0);if(I!=null){I.innerHTML="";var H=D[K].split("@{@"),F="",O=H.length;if(A<O)A=O;for(var G=0;G<O;G++){var R=H[G].split("@}@");if(R.length==2)F+="<div onclick=\"top.DxIntegratedView.doClick('"+E+"','"+J+"','zzjh','"+R[0]+"');\" noWrap='true' style='cursor:hand;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+B+"px; height:"+L+"px; float:left; border:1px solid #999999; line-height:"+L+"px; text-align:center; margin-top:1px; ' title='"+R[1]+"'>"+R[1]+"</div>"}$(I).html(F)}}if(S!=null)if(A==1)S.style.height=(L+2)*A+A+1;else S.style.height=(L+2)*A+A};DxIntegratedView.showcf=function(E,J,P,M){var Q=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,Q),N=top.E_getObject(E,J,C),S=$("#"+J+"t_cf_0",N).get(0);if(M==null||M==undefined){if(S!=null)S.style.height=20;return}var D=M.split("@#@"),_=N.cellwidth,L=parseInt(N.cellheight),T=N.daynum,B=_*6-4,A=1;for(var K=0;K<D.length;K++){var I=$("#"+J+"t_cf_"+(K+1),N).get(0);if(I!=null){I.innerHTML="";var H=D[K].split("@{@"),F="",O=H.length;if(A<O)A=O;for(var G=0;G<O;G++){var R=H[G].split("@}@");if(R.length==2)F+="<div onclick=\"top.DxIntegratedView.doClick('"+E+"','"+J+"','cf','"+R[0]+"');\" noWrap='true' style='cursor:hand;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+B+"px; height:"+L+"px; float:left; border:1px solid #999999; line-height:"+L+"px; text-align:center; margin-top:1px; ' title='"+R[1]+"'>"+R[1]+"</div>"}$(I).html(F)}}if(S!=null)if(A==1)S.style.height=(L+2)*A+A+1;else S.style.height=(L+2)*A+A};DxIntegratedView.showcz=function(E,J,P,M){var Q=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,Q),N=top.E_getObject(E,J,C),S=$("#"+J+"t_cz_0",N).get(0);if(M==null||M==undefined){if(S!=null)S.style.height=20;return}var D=M.split("@#@"),_=N.cellwidth,L=parseInt(N.cellheight),T=N.daynum,B=_*6-4,A=1;for(var K=0;K<D.length;K++){var I=$("#"+J+"t_cz_"+(K+1),N).get(0);if(I!=null){I.innerHTML="";var H=D[K].split("@{@"),F="",O=H.length;if(A<O)A=O;for(var G=0;G<O;G++){var R=H[G].split("@}@");if(R.length==2)F+="<div onclick=\"top.DxIntegratedView.doClick('"+E+"','"+J+"','cz','"+R[0]+"');\" noWrap='true' style='cursor:hand;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+B+"px; height:"+L+"px; float:left; border:1px solid #999999; line-height:"+L+"px; text-align:center; margin-top:1px; ' title='"+R[1]+"'>"+R[1]+"</div>"}$(I).html(F)}}if(S!=null)if(A==1)S.style.height=(L+2)*A+A+1;else S.style.height=(L+2)*A+A};DxIntegratedView.showzljl=function(E,J,Q,M){var R=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,R),O=top.E_getObject(E,J,C),T=$("#"+J+"t_zljl_0",O).get(0);if(M==null||M==undefined||M==""){if(T!=null)T.style.height=20;return}var D=M.split("@#@"),_=O.cellwidth,L=50,U=O.daynum,B=parseInt(_*6)-4,A=1;for(var K=0;K<D.length;K++){var I=$("#"+J+"t_zljl_"+(K+1),O).get(0);if(I!=null){I.innerHTML="";var H=D[K].split("@{@"),F="",P=H.length;if(A<P)A=P;for(var G=0;G<P;G++){var S=H[G].split("@}@");if(S.length==2){var N=S[1].split("@&@");if(N.length>=3){F+="<div onclick=\"top.DxIntegratedView.doClick('"+E+"','"+J+"','zljl','"+S[0]+"');\" style=\"cursor:hand;width:"+B+"px; height:50px; background:url("+watLocation2+"/resources/component/iviewbl.png) center no-repeat; font-size:12px; margin-top:-3px;margin-left:-1px;padding:0; text-align:left\">";F+="<div style=\"width:"+B+"px; height:25px; line-height:27px \"><div style=\"width:29px; height:25px; float:left; text-align:right; color:#FFFFFF;line-height:32px\"></div>";F+="<div noWrap='true' style=\"text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+(B-29)+"px; height:29px; float:left; text-align:left; line-height:42px; color:#0284fe\" title='"+N[1]+"'>"+N[1]+"</div></div>";F+="<div noWrap='true' style=\"margin-left:2px;cursor:hand;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+B+"px;height:25px; line-height:26px; text-align:left\" title='"+N[2]+"'>&nbsp;"+N[2]+"</div></div>"}}}$(I).html(F)}}if(T!=null)if(A==1)T.style.height=(L+4)*A+A+1;else T.style.height=(L+4)*A+A};DxIntegratedView.showjc=function(E,J,Q,M){var R=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,R),O=top.E_getObject(E,J,C),T=$("#"+J+"t_jc_0",O).get(0);if(M==null||M==undefined||M==""){if(T!=null)T.style.height=20;return}var D=M.split("@#@"),_=O.cellwidth,L=50,U=O.daynum,B=parseInt(_*6)-4,A=1;for(var K=0;K<D.length;K++){var I=$("#"+J+"t_jc_"+(K+1),O).get(0);if(I!=null){I.innerHTML="";var H=D[K].split("@{@"),F="",P=H.length;if(A<P)A=P;for(var G=0;G<P;G++){var S=H[G].split("@}@");if(S.length==2){var N=S[1].split("@&@");if(N.length>=3){F+="<div onclick=\"top.DxIntegratedView.doClick('"+E+"','"+J+"','jc','"+S[0]+"');\" style=\"cursor:hand;width:"+B+"px; height:50px; background:url("+watLocation2+"/resources/component/iviewjc.png) center no-repeat; font-size:12px; margin-top:-3px;margin-left:-1px;padding:0; text-align:left\">";F+="<div style=\"width:"+B+"px; height:25px; line-height:27px \"><div style=\"width:29px; height:25px;font-size:12;float:left;text-align:center; color:#FFFFFF;line-height:32px\">"+N[0]+"</div>";F+="<div noWrap='true' style=\"text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+(B-29)+"px; height:29px; float:left; text-align:left; line-height:42px; color:#0284fe\" title='"+N[1]+"'>"+N[1]+"</div></div>";F+="<div noWrap='true' style=\"margin-left:2px;cursor:hand;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+B+"px;height:25px; line-height:26px; text-align:left\" title='"+N[2]+"'>&nbsp;"+N[2]+"</div></div>"}}}$(I).html(F)}}if(T!=null)if(A==1)T.style.height=(L+4)*A+A+1;else T.style.height=(L+4)*A+A};DxIntegratedView.showjy=function(E,J,Q,M){var R=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,R),O=top.E_getObject(E,J,C),T=$("#"+J+"t_jy_0",O).get(0);if(M==null||M==undefined||M==""){if(T!=null)T.style.height=20;return}var D=M.split("@#@"),_=O.cellwidth,L=50,U=O.daynum,B=parseInt(_*6)-4,A=1;for(var K=0;K<D.length;K++){var I=$("#"+J+"t_jy_"+(K+1),O).get(0);if(I!=null){I.innerHTML="";var H=D[K].split("@{@"),F="",P=H.length;if(A<P)A=P;for(var G=0;G<P;G++){var S=H[G].split("@}@");if(S.length==2){var N=S[1].split("@&@");if(N.length>=3){F+="<div onclick=\"top.DxIntegratedView.doClick('"+E+"','"+J+"','jy','"+S[0]+"');\" style=\"cursor:hand;width:"+B+"px; height:50px; background:url("+watLocation2+"/resources/component/iviewjy.png) center no-repeat; font-size:12px; margin-top:-3px;margin-left:-1px;padding:0; text-align:left\">";F+="<div style=\"width:"+B+"px; height:25px; line-height:27px \"><div style=\"width:29px; height:25px; float:left; text-align:right; color:#FFFFFF;line-height:32px\"></div>";F+="<div noWrap='true' style=\"text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+(B-29)+"px; height:29px; float:left; text-align:left; line-height:42px; color:red\" title='"+N[1]+"'>"+N[1]+"</div></div>";F+="<div noWrap='true' style=\"margin-left:2px;cursor:hand;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+B+"px;height:25px; line-height:26px; text-align:left\" title='"+N[2]+"'>&nbsp;"+N[2]+"</div></div>"}}}$(I).html(F)}}if(T!=null)if(A==1)T.style.height=(L+4)*A+A+1;else T.style.height=(L+4)*A+A};DxIntegratedView.showss=function(E,J,Q,M){var R=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,R),O=top.E_getObject(E,J,C),T=$("#"+J+"t_ss_0",O).get(0);if(M==null||M==undefined||M==""){if(T!=null)T.style.height=20;return}var D=M.split("@#@"),_=O.cellwidth,L=50,U=O.daynum,B=parseInt(_*6)-4,A=1;for(var K=0;K<D.length;K++){var I=$("#"+J+"t_ss_"+(K+1),O).get(0);if(I!=null){I.innerHTML="";var H=D[K].split("@{@"),F="",P=H.length;if(A<P)A=P;for(var G=0;G<P;G++){var S=H[G].split("@}@");if(S.length==2){var N=S[1].split("@&@");if(N.length>=3){F+="<div onclick=\"top.DxIntegratedView.doClick('"+E+"','"+J+"','ss','"+S[0]+"');\" style=\"cursor:hand;width:"+B+"px; height:50px; background:url("+watLocation2+"/resources/component/iviewss.png) center no-repeat; font-size:12px; margin-top:-3px;margin-left:-1px;padding:0; text-align:left\">";F+="<div style=\"width:"+B+"px; height:25px; line-height:27px \"><div style=\"width:29px; height:25px; float:left; text-align:right; color:#FFFFFF;line-height:32px\"></div>";F+="<div noWrap='true' style=\"text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+(B-29)+"px; height:29px; float:left; text-align:left; line-height:42px; color:#0284fe\" title='"+N[1]+"'>"+N[1]+"</div></div>";F+="<div noWrap='true' style=\"margin-left:2px;cursor:hand;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+B+"px;height:25px; line-height:26px; text-align:left\" title='"+N[2]+"'>&nbsp;"+N[2]+"</div></div>"}}}$(I).html(F)}}if(T!=null)if(A==1)T.style.height=(L+4)*A+A+1;else T.style.height=(L+4)*A+A};DxIntegratedView.showsmtz=function(F,A,C,_){var B=top.E_getObject(F,A,C),D=$("#"+A+"t_smtz_vmlpanel",B).get(0);if(D!=null){D.innerHTML="";var E=_.split("@"),G=[];if(!top.isIE)G.push("<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\""+D.style.width+"\" height=\""+D.style.height+"\">");for(var H=0;H<E.length;H++)G.push(DxIntegratedView.draw(D,E[H],D));if(!top.isIE)G.push("</svg>");$(D).html(G.join(""))}};DxIntegratedView.drawquxian=function(h,X,M,C,D,S,k){var Y=X.split("&"),W=k.clientWidth,J=k.clientHeight,H=10,F=0,B=Y[5],_=Y[6],A=Y[7],V=W/_,I=J/A,g=Y[8],L=Y[9],O=Y[10],N=Y[11],$=Y[12],e=M.split("&"),Z=new Array();if(C!=null)Z=C.split("&");var R=new Array();if(D!=null)R=D.split("&");var j=new Array();if(S!=null)j=S.split("&");var n=[],G=null,E=null;for(var c=0;c<e.length;++c)if(e[c]&&e[c]!="#"&&e[c]!="*"){var P=e[c].split(",");if(P.length>1)var m=parseFloat(J)+parseFloat(F)-parseFloat((parseFloat(P[0])-parseFloat(B))*I);else m=parseFloat(J)+parseFloat(F)-parseFloat((parseFloat(e[c])-parseFloat(B))*I);var o=parseFloat(H)+parseFloat(V*c);if(G!=null&&E!=null&&O=="true")if(top.isIE)n.push("<v:line from=\""+G+","+E+"\" to=\""+o+","+m+"\" strokecolor=\""+g+" \"><v:Stroke dashstyle=\""+N+"\"/></v:line>");else{n.push("<line x1=\""+G+"\" y1=\""+E+"\" x2=\""+o+"\" y2=\""+m+"\" style=\"stroke:"+g+";stroke-width:1;");if(N=="Solid");else if(N!="Solid")n.push("stroke-dasharray:5,5");n.push("\"/>")}var f=m;try{for(var a=1;a<P.length;a++){var d=P[a],i=d.split("%"),K=parseFloat(J)+parseFloat(F)-parseFloat((parseFloat(i[0])-parseFloat(B))*I);if(top.isIE)n.push("<v:line from=\""+o+","+f+"\" to=\""+o+","+K+"\" strokecolor=\""+i[2]+" \"><v:Stroke dashstyle=\""+i[1]+"\"/></v:line>");else{n.push("<line x1=\""+o+"\" y1=\""+f+"\" x2=\""+o+"\" y2=\""+K+"\" style=\"stroke:"+i[2]+";stroke-width:1;");if(i[1]=="Solid");else if(i[1]!="Solid")n.push("stroke-dasharray:5,5");n.push("\"/>")}var l=i[3];if(l=="1")DxIntegratedView.drawX(n,o,K,i[4],i[0]);else if(l=="2")DxIntegratedView.drawOva(n,o,K,i[5],i[4],i[0]);else if(l=="3")DxIntegratedView.drawDiamond(n,o,K,i[5],i[4],i[0]);f=K}}catch(T){}var U=Z[c];if(U==null||U=="")U=L;var b=j[c];if(b==null||b=="")b=$;if(b=="1")DxIntegratedView.drawX(n,o,m,U,P[0]);else if(b=="2"){var Q=R[c];if(Q==null||Q=="")Q=L;DxIntegratedView.drawOva(n,o,m,U,Q,P[0])}else if(b=="22"){Q=R[c];if(Q==null||Q=="")Q=L;DxIntegratedView.drawOva(n,o,m,"#FFFFFF",Q,P[0])}else if(b=="3"){Q=R[c];if(Q==null||Q=="")Q=L;DxIntegratedView.drawDiamond(n,o,m,U,Q,P[0])}else if(b=="33"){Q=R[c];if(Q==null||Q=="")Q=L;DxIntegratedView.drawDiamond(n,o,m,"#FFFFFF",Q,P[0])}else if(b=="4"){Q=R[c];if(Q==null||Q=="")Q=L;DxIntegratedView.drawRect(n,o,m,U,Q,P[0])}else if(b=="44"){Q=R[c];if(Q==null||Q=="")Q=L;DxIntegratedView.drawRect(n,o,m,"#FFFFFF",Q,P[0])}G=o;E=m}else if(e[c]=="*"){G=null;E=null}return n.join("")};DxIntegratedView.drawtext=function(B,D,F){var E=D.split("&"),I=E[1],H=E[2],G=E[3],A=E[4],$=E[5],_=E[6],C=E[7];if(C=="false")C=";width:1px;word-wrap:break-word;word-break:normal;white-space:normal;";else C="";return"<div noWrap=false style='position:absolute;left:"+I+";top:"+H+";font-size:"+G+";color:"+A+";font-weight:"+$+";"+C+"' >"+_+"</div>"};DxIntegratedView.draw=function(I,C,K){var D=C.split("|"),_=D[0],H=D[1],G=H.split("$"),J=G[0],A;if(G.length>=2)A=G[1];var E;if(G.length>=3)E=G[2];var $;if(G.length>=4)$=G[3];var B=_.split("&"),F=B[0];if(F=="v")return DxIntegratedView.drawquxian(I,_,J,A,E,$,K);else return DxIntegratedView.drawtext(I,_,K)};DxIntegratedView.drawX=function(B,C,A,$,_){if(top.isIE){B.push("<v:line title=\""+_+"\" from=\""+(C-3)+","+(A-3)+"\" to=\""+(C+3)+","+(A+3)+"\" strokecolor=\""+$+"\" strokeweight=\"2px\"/>");B.push("<v:line title=\""+_+"\" from=\""+(C-3)+","+(A+3)+"\" to=\""+(C+3)+","+(A-3)+"\" strokecolor=\""+$+"\" strokeweight=\"2px\"/>")}else{B.push("<line title=\""+_+"\" x1=\""+(C-3)+"\" y1=\""+(A-3)+"\" x2=\""+(C+3)+"\" y2=\""+(A+3)+"\" style=\"stroke:"+$+";stroke-width:2;\"><title>"+_+"</title></line>");B.push("<line title=\""+_+"\" x1=\""+(C-3)+"\" y1=\""+(A+3)+"\" x2=\""+(C+3)+"\" y2=\""+(A-3)+"\" style=\"stroke:"+$+";stroke-width:2;\"><title>"+_+"</title></line>")}};DxIntegratedView.drawOva=function(C,D,B,_,$,A){if(top.isIE)C.push("<v:Oval title='"+A+"' FillColor='"+_+"' strokecolor='"+$+"' style='position:absolute;width:6; height:6;left:"+(D-3)+"; top:"+(B-3)+"' />");else C.push("<circle title='"+A+"' fill='"+_+"' stroke='"+$+"' cx="+D+" cy="+B+" r='3'><title>"+A+"</title></circle>")};DxIntegratedView.drawDiamond=function(C,D,B,_,$,A){if(top.isIE)C.push("<v:PolyLine title='"+A+"' FillColor='"+_+"' Points='"+(D-3)+" "+B+","+(D)+" "+(B-3)+","+(D+3)+" "+(B)+","+(D)+" "+(B+3)+","+(D-3)+" "+B+"' strokecolor='"+$+"'/>");else C.push("<polygon title='"+A+"' style='fill:"+_+";stroke:"+$+";stroke-width:1' points='"+(D-3)+" "+B+","+(D)+" "+(B-3)+","+(D+3)+" "+(B)+","+(D)+" "+(B+3)+","+(D-3)+" "+B+"'><title>"+A+"</title></polygon>")};DxIntegratedView.drawRect=function(C,D,B,_,$,A){if(top.isIE)C.push("<v:rect title='"+A+"' FillColor='"+_+"' strokecolor='"+$+"' style='position:absolute;width:6; height:6;left:"+(D-3)+"; top:"+(B-3)+"' />");else C.push("<rect title='"+A+"' x='"+(D-3)+"' y='"+(B-3)+"' width='6' height='6' style='fill:"+_+";stroke:"+$+";stroke-width:1;' ><title>"+A+"</title></rect>")};DxIntegratedView.showypxl=function(H,I,e,L){var d=top.E_clientModel.E_getWindow(H),X=WatCore.getWindowDoc(H,d),O=top.E_getObject(H,I,X),g=$("#"+I+"t_ypxl_0",O).get(0),i=$("#"+I+"t_smtz_ypxlpanel",O).get(0);if(L==null||L==undefined){if(g!=null)g.style.height=20;return}var W=L.split("@#@"),S=O.cellwidth,a=parseInt(O.cellheight),h=O.daynum,V=S*6-4,U=W.length;g.innerHTML="";g.style.height="0px";i.innerHTML="";i.style.height="0px";var Q="",N="";for(var Z=0;Z<W.length;Z++){var J=W[Z].split("|"),b=J[0].split("&"),R=b[0],K=b[1],f=b[2],D=b[3],c=b[4];Q+="<div noWrap='true' style='color:"+c+";text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:"+V+"px; height:"+a+"px; float:left; border:0px solid #999999; line-height:"+a+"px; text-align:center; margin-top:0px; ' title='"+K+"'>"+K+"</div>";var F=J[1].split("@*@");if(top.isIE){for(var Y=0;Y<F.length;Y++){var G=F[Y].split("@}@"),C=parseInt(G[0]),E=parseInt(G[1]),P=parseInt(G[2]),M=parseInt(G[3]),B=G[4],A=G[5],_=G[6];N+="<div onclick=\"top.DxIntegratedView.doClick('"+H+"','"+I+"','ypxl','"+R+"');\" style=\"position:absolute;cursor:hand;height:20px;left:"+C+"px;top:"+E+";width:"+(P-C)+"\">";N+="<v:line style=\"position:absolute;\" strokeweight=\""+B+"\" strokecolor=\""+c+"\" from=\"0,10\" to=\""+(P-C)+",10\" >";N+="<v:stroke dashstyle=\"solid\"/>";if(_=="true")N+="<v:stroke EndArrow=\"Block\"/>";N+="</v:line>";if(Y==F.length-1&&f==1)N+="<div style='position:absolute;left:"+(P-C+2)+"px;top:2px;font-weight:bold;font-size:12;color:"+c+"'>(\u4e34)</div>";N+="<div onclick=\"top.DxIntegratedView.doClick('"+H+"','"+I+"','ypxl','"+R+"');\" style='z-index:100;position:absolute;left:2px;top:2px;font-weight:bold;font-size:12;color:#060606'>"+A+"</div>";N+="</div>"}}else for(Y=0;Y<F.length;Y++){var G=F[Y].split("@}@"),C=parseInt(G[0]),E=parseInt(G[1]),P=parseInt(G[2]),M=parseInt(G[3]),B=G[4],A=G[5],_=G[6],T=G[7];N+="<div title='"+T+"' onclick=\"top.DxIntegratedView.doClick('"+H+"','"+I+"','ypxl','"+R+"');\" style=\"position:absolute;cursor:pointer;height:20px;left:"+C+"px;top:"+E+"px;width:100%\">";N+="<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='20px' width='"+(P-C+20)+"'> ";if(_=="true"){N+="<defs><marker id=\"idArrow"+Z+"\" viewBox=\"0 0 20 20\" refX=\"0\" refY=\"10\" markerUnits=\"strokeWidth\" markerWidth=\"3\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 0 0 L 20 10 L 0 20 z\" fill=\""+c+"\" stroke=\""+c+"\"/></marker></defs> ";N+="<line marker-end='url(#idArrow"+Z+")' x1='0' y1='10' x2='"+(P-C)+"' y2='10' style='stroke:"+c+";stroke-width:"+B+";'/>"}else N+="<line x1='0' y1='10' x2='"+(P-C)+"' y2='10' style='stroke:"+c+";stroke-width:"+B+";'/>";N+="</svg>";if(Y==F.length-1&&f==1){N+="<div style='position:absolute;left:"+(P-C+2)+"px;top:2px;font-weight:bold;font-size:12;color:"+c+"'>(\u4e34)</div>";N+="<div onclick=\"top.DxIntegratedView.doClick('"+H+"','"+I+"','ypxl','"+R+"');\" style='z-index:100;position:absolute;left:2px;top:2px;font-weight:bold;font-size:12;color:#060606'>"+A+"</div>"}else N+="<div onclick=\"top.DxIntegratedView.doClick('"+H+"','"+I+"','ypxl','"+R+"');\" style='z-index:100;position:absolute;left:2px;top:2px;font-weight:bold;font-size:12;color:#060606'>"+A+"</div>";N+="</div>"}}if(g!=null){g.style.height=(a)*U;$(g).html(Q)}if(i!=null){i.style.height=(a)*U;$(i).html(N)}};DxIntegratedView.showfcline=function(_,B,U,G){var T=top.E_clientModel.E_getWindow(_),P=WatCore.getWindowDoc(_,T),I=top.E_getObject(_,B,P),W=$("#"+B+"t_smtz_vmlpanel",I).get(0);if(G==null||G==undefined)return;var O=G.split("@#@"),L=I.cellwidth,R=parseInt(I.cellheight),V=I.daynum,N=L*6-4,M=O.length,K="";for(var Q=0;Q<O.length;Q++){var C=O[Q].split("|"),A=C[0].split(","),E=A[0],D=A[1],F=C[1].split(","),J=F[0],H=F[1],S=C[2];K+="<v:line style=\"position:absolute;\" strokecolor=\""+S+"\" from=\""+E+","+D+"\" to=\""+J+","+H+"\" >";K+="<v:stroke dashstyle=\"solid\"/>";K+="</v:line>"}if(W!=null)$(W).html(K)};DxIntegratedView.render=function($,I,H){var B=H.getAttribute("cid"),_=H.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),K=C,L;if(A>-1){C=K.substring(0,A);L=K.substring(A+1,K.length);var F=L.split("-");L=F[0]}var J=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=J.split("@wat@");if(L=="showdate")DxIntegratedView.showdate($,B,I,E[0]);else if(L=="showdbcs")DxIntegratedView.showdbcs($,B,I,E[0]);else if(L=="showsryl")DxIntegratedView.showsryl($,B,I,E[0]);else if(L=="shownl")DxIntegratedView.shownl($,B,I,E[0]);else if(L=="showtz")DxIntegratedView.showtz($,B,I,E[0]);else if(L=="showxy")DxIntegratedView.showxy($,B,I,E[0]);else if(L=="showts")DxIntegratedView.showts($,B,I,E[0]);else if(L=="showryrs")DxIntegratedView.showryrs($,B,I,E[0]);else if(L=="showsshrs")DxIntegratedView.showsshrs($,B,I,E[0]);else if(L=="showyz")DxIntegratedView.showyz($,B,I,E[0]);else if(L=="showzzjh")DxIntegratedView.showzzjh($,B,I,E[0]);else if(L=="showcf")DxIntegratedView.showcf($,B,I,E[0]);else if(L=="showcz")DxIntegratedView.showcz($,B,I,E[0]);else if(L=="showzljl")DxIntegratedView.showzljl($,B,I,E[0]);else if(L=="showjc")DxIntegratedView.showjc($,B,I,E[0]);else if(L=="showjy")DxIntegratedView.showjy($,B,I,E[0]);else if(L=="showss")DxIntegratedView.showss($,B,I,E[0]);else if(L=="showsmtz")DxIntegratedView.showsmtz($,B,I,E[0]);else if(L=="showypxl")DxIntegratedView.showypxl($,B,I,E[0]);else if(L=="showfcline")DxIntegratedView.showfcline($,B,I,E[0]);break;case top.DC.SCROLLABLE:if(J=="true")top.E_getObject($,B,I).style.overflow="auto";else top.E_getObject($,B,I).style.overflow="hidden";break;case top.DC.WIDTH:top.E_getObject($,B,I).style.width=J;top.E_getObject($,"E_SW_"+B,I).style.width=J;break;case top.DC.HEIGHT:top.E_getObject($,B,I).style.height=J;top.E_getObject($,"E_SW_"+B,I).style.height=J;break;case top.DC.VISIBLE:top.E_getObject($,"E_SW_"+B,I).style.visibility=J;break;case top.DC.BORDERSTYLE:top.E_getObject($,B,I).style.borderStyle=J;break;case top.DC.BORDERWIDTH:top.E_getObject($,B,I).style.borderWidth=J;break;case top.DC.BORDERCOLOR:top.E_getObject($,B,I).style.borderColor=J;break;case top.DC.X:top.E_getObject($,"E_SW_"+B,I).style.left=J;break;case top.DC.Y:top.E_getObject($,"E_SW_"+B,I).style.top=J;break;case top.DC.ENABLED:if(J=="true")top.E_getObject($,B,I).disabled=false;else top.E_getObject($,B,I).disabled=true;break;case top.DC.BACKGROUND:top.E_getObject($,B,I).style.backgroundColor=J;break;case top.DC.FOREGROUND:top.E_getObject($,B,I).style.color=J;break;case top.DC.UPDATE:var G=top.E_getObject($,B,I);G.innerHTML="";top.E_removeTheObject($,B);insertHTML(G,"BeforeEnd",J);top.E_removeTheObject($,B);break;default:break}}};function DxDICOMDownLoad(){}DxDICOMDownLoad.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DxDICOMDownLoad' CLASSID=\"CLSID:511FB846-4F31-47c6-AD11-A68D97D5595C\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOMDownLoad.DicomDown=function(E,F,D,C,_){var A=top.E_getObject(E,F,D),B=$("#"+F+"DxDICOMDownLoad",A).get(0);if(B!=null){B.ServerIP=C;B.ServerPort=_}else alert("tdownload is null")};DxDICOMDownLoad.DownloadImage=function(C,D,B,A,O,_,L,M,K,I,F,N,E){var G=top.E_getObject(C,D,B),J=$("#"+D+"DxDICOMDownLoad",G).get(0);if(J!=null){var H=top.E_getObject(C,N,B);if(H==null)alert("imageviewer is null");J.ImageViewerHandle=H.all(N+"DICOM_ImageViewer").FormHandle;J.DownloadImage(E,O,_,L,M,K,parseInt(I),parseInt(F))}else alert("tdownload is null")};DxDICOMDownLoad.HTTP_OpenImage=function($,_){if(this.DICOM_ImageViewer==null)alert("imageviewer is null");else this.DICOM_ImageViewer.OpenLocalImage($)};DxDICOMDownLoad.downClear=function(C,D,B){var _=top.E_getObject(C,D,B),A=$("#"+D+"DxDICOMDownLoad",_).get(0);if(A!=null)A.Clear();else alert("tdownload is null")};DxDICOMDownLoad.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="dicomDown")DxDICOMDownLoad.DicomDown($,B,H,E[0],E[1]);else if(K=="downloadImage")top.DxDICOMDownLoad.DownloadImage($,B,H,E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9]);else if(K=="downclear")top.DxDICOMDownLoad.downClear($,B,H);break;default:break}}};function DxICCardFjYktNew2(){}DxICCardFjYktNew2.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id=\""+_+"_rd\" codebase=\"./FjYktApi.CAB#version=1,0,0,0\" classid=\"CLSID:9CBE9BB8-7769-4BF2-9784-EB4A779D3B53\" height=\"1\" width=\"1\"></OBJECT>";A.innerHTML=D}catch($){alert($)}};DxICCardFjYktNew2.readCardInfo=function(F,C,E){var D=top.E_getObject(F,C,E),G=E.getElementById(C+"_rd"),_;try{var _="",$=G.LoadDll();if($!="0")alert("\u52a0\u8f7ddll\u5931\u8d25");else{$=G.OpenDevice(18,9,3,3508);if($=="0"){$=G.ReadCardInfolocal("3508","0001","");if($<0){$=G.ReadCard4442Local(32,100);if($<0){WatCore.setParameter(F,C,top.DC.TEXT,"0@wat@"+$);WatCore.sendACallToChart(F,C,"enter");WatCore.increaseShowflag()}else{_=G.GetReadCard4442Data();WatCore.setParameter(F,C,top.DC.TEXT,"1@wat@"+_);WatCore.sendACallToChart(F,C,"enter");WatCore.increaseShowflag()}}else{var B="";B=B+G.GetCardInfoIssuredeptId()+"|";B=B+G.GetCardInfoIssueDate()+"|";B=B+G.GetCardInfoCardType()+"|";B=B+G.GetCardInfoCardNo()+"|";B=B+G.GetCardInfoIdType()+"|";B=B+G.GetCardInfoId()+"|";B=B+G.GetCardInfoName()+"|";B=B+G.GetCardInfoSex()+"|";B=B+G.GetCardInfoBirthData()+"|";B=B+"|";B=B+G.GetCardInfoAddress()+"|";B=B+G.GetCardInfoTelephone();_=B;WatCore.setParameter(F,C,top.DC.TEXT,"2@wat@"+_);WatCore.sendACallToChart(F,C,"enter");WatCore.increaseShowflag()}$=G.CloseDevice();if($!="0")alert("\u5173\u95ed\u8bbe\u5907\u5931\u8d25")}else alert("\u6253\u5f00\u8bbe\u5907\u5931\u8d25");$=G.UnLoadDll();if($!="0")alert("\u5378\u8f7ddll\u5931\u8d25")}}catch(A){alert(A.message)}};DxICCardFjYktNew2.clear=function(_,$,A){};DxICCardFjYktNew2.render=function(_,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.UPDATE_DATA:var $=C.split("$"),E=$[0];if(E=="cardinfo")DxICCardFjYktNew2.readCardInfo(_,F,D);break;default:break}}};function DxDICOM3DViewer(){}DxDICOM3DViewer.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"DICOM_3DViewer' width=100% height=100% CLASSID=\"CLSID:7B25EA6E-8D23-45FA-B651-ACFCF3FB5914\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxDICOM3DViewer.DICOM3DViewerinit=function(E,F,D,_){var B=top.E_getObject(E,F,D),A=top.E_getObject(E,_+"DICOM_ImageViewer",D),C=$("#"+F+"DICOM_3DViewer",B).get(0);if(A!=null&&C!=null)C.ImageViewerHandle=A.HandleA};DxDICOM3DViewer.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="DICOM3DViewerHandle")top.DxDICOM3DViewer.DICOM3DViewerinit($,B,H,E[0]);break;default:break}}};function DxICCardFjYktNew3(){}DxICCardFjYktNew3.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id=\""+_+"_rd\" codebase=\"./SNWebCET.CAB#version=1,0,0,4\" classid=\"CLSID:BA314595-02ED-4379-8AF2-6ddef40f8e44\" height=\"1\" width=\"1\"></OBJECT>\n";D+="<OBJECT id=\""+_+"_rdylz\" codebase=\"./FjYktApi.CAB#version=1,0,0,0\" classid=\"CLSID:9CBE9BB8-7769-4BF2-9784-EB4A779D3B53\" height=\"1\" width=\"1\"></OBJECT>";A.innerHTML=D}catch($){alert($)}};DxICCardFjYktNew3.readCardInfo=function(F,C,D,N){var K=top.E_getObject(F,C,D),G=D.getElementById(C+"_rd"),I;try{I="";G.iComPort=N;G.ReadCardInfo();var $=G.iStatus;if($==1){G.iComPort=N;G.iOffset=32;G.iLength=100;G.ReadCard_4442();$=G.iStatus;if($==1)DxICCardFjYktNew3.readCardInfo2(F,C,D);else{I=G.cUserInfo;WatCore.setParameter(F,C,top.DC.TEXT,"1@wat@"+I);WatCore.sendACallToChart(F,C,"enter");WatCore.increaseShowflag()}}else{var J="";J=J+G.cIssuedeptid()+"|";J=J+G.cIssuedate()+"|";J=J+G.cCardType()+"|";var L=G.cCardNo(),_=G.cIdtype(),H=G.cId(),B=G.cName(),E=G.cSex(),M=G.cBirthDate(),O=G.cTelephone();if(L==null||L==""){G.ReadCardNo();L=G.cCardNo}J=J+L+"|";J=J+_+"|";J=J+H+"|";J=J+B+"|";J=J+E+"|";J=J+M+"|";J=J+"|";J=J+"|";J=J+O;I=J;WatCore.setParameter(F,C,top.DC.TEXT,"2@wat@"+I);WatCore.sendACallToChart(F,C,"enter");WatCore.increaseShowflag()}}catch(A){alert(A.message)}};DxICCardFjYktNew3.readCardInfo2=function(F,C,E){var D=top.E_getObject(F,C,E),G=E.getElementById(C+"_rdylz"),_;try{var _="",$=G.LoadDll();if($!="0")alert("\u52a0\u8f7ddll\u5931\u8d25");else{$=G.OpenDevice(12,9,3,3508);if($=="0"){$=G.ReadCardInfolocal("3508","0001","");if($<0){$=G.ReadCard4442Local(32,100);if($<0){WatCore.setParameter(F,C,top.DC.TEXT,"0@wat@"+$);WatCore.sendACallToChart(F,C,"enter");WatCore.increaseShowflag()}else{_=G.GetReadCard4442Data();WatCore.setParameter(F,C,top.DC.TEXT,"1@wat@"+_);WatCore.sendACallToChart(F,C,"enter");WatCore.increaseShowflag()}}else{var B="";B=B+G.GetCardInfoIssuredeptId()+"|";B=B+G.GetCardInfoIssueDate()+"|";B=B+G.GetCardInfoCardType()+"|";B=B+G.GetCardInfoCardNo()+"|";B=B+G.GetCardInfoIdType()+"|";B=B+G.GetCardInfoId()+"|";B=B+G.GetCardInfoName()+"|";B=B+G.GetCardInfoSex()+"|";B=B+G.GetCardInfoBirthData()+"|";B=B+"|";B=B+"|";B=B+G.GetCardInfoTelephone();_=B;WatCore.setParameter(F,C,top.DC.TEXT,"2@wat@"+_);WatCore.sendACallToChart(F,C,"enter");WatCore.increaseShowflag()}$=G.CloseDevice();if($!="0")alert("\u5173\u95ed\u8bbe\u5907\u5931\u8d25")}else alert("\u6253\u5f00\u8bbe\u5907\u5931\u8d25");$=G.UnLoadDll();if($!="0")alert("\u5378\u8f7ddll\u5931\u8d25")}}catch(A){alert(A.message)}};DxICCardFjYktNew3.clear=function(_,$,A){};DxICCardFjYktNew3.render=function(_,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=A[H].text;switch(G){case top.DC.UPDATE_DATA:var $=C.split("$"),E=$[0];if(E=="cardinfo")DxICCardFjYktNew3.readCardInfo(_,F,D,$[1]);break;default:break}}};function DxInfoLabel(){}DxInfoLabel.call=function(B,$,C){var A=C.parentElement,_=A.select;A.select=C;WatCore.call(B,$,C.getAttribute("index"))};DxInfoLabel.mousemove=function(_,$,A){A.className=A.parentElement.getAttribute("wclass")+"-mouseover"};DxInfoLabel.mouseout=function(B,$,C){var A=C.parentElement,_=A.select;C.className=C.parentElement.getAttribute("wclass")};DxInfoLabel.render=function($,C,A){var F=A.getAttribute("cid"),_=A.selectNodes("*");for(var H=0;H<_.length;H++){var G=_[H].nodeName;G=G.substring(1,G.length);var B=top.isIE?_[H].text:_[H].textContent;switch(G){case top.DC.WIDTH:top.E_getObject($,F,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject($,F,C).style.height=B;break;case top.DC.VISIBLE:var E=top.E_getObject($,F,C);E.style.visibility=B;break;case top.DC.UPDATE:var D=top.E_getObject($,F,C);D.innerHTML="";insertHTML(D,"BeforeEnd",B);break;case top.DC.BORDERSTYLE:top.E_getObject($,F,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject($,F,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject($,F,C).style.borderColor=B;break;case top.DC.X:top.E_getObject($,"E_SW_"+F,C).style.left=B;break;case top.DC.Y:top.E_getObject($,"E_SW_"+F,C).style.top=B;break;case top.DC.ENABLED:break;case top.DC.fontFamily:top.E_getObject($,F,C).style.fontFamily=B;break;case top.DC.fontSize:top.E_getObject($,F,C).style.fontSize=B;break;case top.DC.fontWeight:top.E_getObject($,F,C).style.fontWeight=B;break;case top.DC.fontStyle:top.E_getObject($,F,C).style.fontStyle=B;break;case top.DC.textDecoration:top.E_getObject($,F,C).style.textDecoration=B;break;case top.DC.BACKGROUND:top.E_getObject($,F,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject($,F,C).style.color=B;break;default:break}}};function DxTitleImage(){}var imageobj,$timeimagelistobj;DxTitleImage._mouseIn=function(D,F,H){var _=H.getAttribute("minsrc");if(_!=null)H.src=_;var G=H.getAttribute("tooltip");if(G!=null){var A=$("#"+F+"list",H.parentElement);if(A.css("display")=="none"){var E=$("#"+F+"tiptext",H.parentElement);if(E.css("display")=="none"){var C=H.clientWidth,B=E.width();E.css("left",(-(parseInt(B)-parseInt(C)+20)/2)+"px");E.fadeIn("slow")}}}};DxTitleImage._mouseOut=function(_,B,C){var A=C.getAttribute("moutsrc");if(A!=null)C.src=A;$("#"+B+"tiptext",C.parentElement).fadeOut("slow")};DxTitleImage.showlist=function(D,E,F){var _=$("#"+E+"tiptext",F.parentElement),A=$("#"+E+"list",F.parentElement);if(A.css("display")=="none"){var C=F.clientWidth,B=A.width();A.css("left",(-(parseInt(B)-parseInt(C)+20)/2)+"px");A.slideDown("fast");_.fadeOut("fast");$timeimagelistobj=A}else{A.fadeToggle("fast");$timeimagelistobj=null}};DxTitleImage._listmouseIn=function(_,A,B){$(B).css("background","#DADADA")};DxTitleImage._listmouseOut=function(_,A,B){$(B).css("background","#f2f2f2")};DxTitleImage._listclick=function(B,C,D,_){var A=$("#"+C+"list",D.parentElement.parentElement);if(A.css("display")!="none"){A.fadeToggle("fast");$timeimagelistobj=null;WatCore.call(B,C,_)}};DxTitleImage.setClientImage=function(){if(imageobj!=null)imageobj.src=imageobj.getAttribute("osrc")};DxTitleImage.render=function(A,M,L){var F=L.getAttribute("cid"),B=L.selectNodes("*");for(var H=0;H<B.length;H++){var G=B[H].nodeName;G=G.substring(1,G.length);var N=top.isIE?B[H].text:B[H].textContent;switch(G){case top.DC.UPDATEIMAGE:var K=top.E_getObject(A,"img_"+F,M);K.innerHTML="";K.parentElement.removeChild(K);top.E_removeTheObject(A,F);top.E_removeTheObject(A,"img_"+F);top.E_removeTheObject(A,"E_SW_"+F);var D=top.E_getObject(A,F,M);$(D).html(N);top.E_removeTheObject(A,F);top.E_removeTheObject(A,"img_"+F);top.E_removeTheObject(A,"E_SW_"+F);break;case top.DC.WIDTH:top.E_getObject(A,F,M).style.width=N;var E=top.E_getObject(A,"img_"+F,M);if(E!=null)E.style.width=N;break;case top.DC.HEIGHT:top.E_getObject(A,F,M).style.height=N;E=top.E_getObject(A,"img_"+F,M);if(E!=null)E.style.height=N;break;case top.DC.VISIBLE:top.E_getObject(A,"E_SW_"+F,M).style.visibility=N;break;case top.DC.BORDERSTYLE:top.E_getObject(A,F,M).style.borderStyle=N;break;case top.DC.BORDERWIDTH:top.E_getObject(A,F,M).style.borderWidth=N;break;case top.DC.BORDERCOLOR:top.E_getObject(A,F,M).style.borderColor=N;break;case top.DC.X:top.E_getObject(A,"E_SW_"+F,M).style.left=N;break;case top.DC.Y:top.E_getObject(A,"E_SW_"+F,M).style.top=N;break;case top.DC.ENABLED:if(N=="true"){var O=top.E_getObject(A,F,M);O.disabled=false;E=top.E_getObject(A,"img_"+F,M);if(E!=null){E.disabled=false;E.src=O.getAttribute("moutsrc");E.style.cursor="pointer"}}else{O=top.E_getObject(A,F,M);O.disabled=true;var P=O.getAttribute("disabledsrc"),E=top.E_getObject(A,"img_"+F,M);if(E!=null){E.disabled=true;E.style.cursor="default";if(P!=null)E.src=P}}break;case top.DC.TOOLTIPTEXT:top.E_getObject(A,"img_"+F,M).alt=N;break;case top.DC.fontFamily:top.E_getObject(A,F,M).style.fontFamily=N;break;case top.DC.fontSize:top.E_getObject(A,F,M).style.fontSize=N;break;case top.DC.fontWeight:top.E_getObject(A,F,M).style.fontWeight=N;break;case top.DC.fontStyle:top.E_getObject(A,F,M).style.fontStyle=N;break;case top.DC.textDecoration:top.E_getObject(A,F,M).style.textDecoration=N;break;case top.DC.BACKGROUND:top.E_getObject(A,F,M).style.backgroundColor=N;break;case top.DC.FOREGROUND:top.E_getObject(A,F,M).style.color=N;break;case top.DC.IMAGE:var _=N.lastIndexOf("/"),I=N.substring(_+1,N.length);if(I==null||I==""){var K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);if(C!=null)C.parentElement.removeChild(C);var J="<img id=img_"+F+" width="+K.style.width+" height="+K.style.height+">";$(K).html(J)}else{K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);if(C!=null)C.parentElement.removeChild(C);J="<img id=img_"+F+" src="+N+" width="+K.style.width+" height="+K.style.height+">";$(K).html(J)}break;case top.DC.CLIENT_IMAGE:_=N.lastIndexOf("/"),I=N.substring(_+1,N.length);if(I==null||I==""){K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);if(C!=null)C.parentElement.removeChild(C);J="<img id=img_"+F+" width="+K.clientWidth+" height="+K.clientHeight+">";$(K).html(J)}else{K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);C.src="D:WINDOWSsystem32Camera1.jpg";C.osrc=N;imageobj=C;window.setTimeout(DxTitleImage.setClientImage,10)}break;case top.DC.IMAGE_STREAM:_=N.lastIndexOf("/"),I=N.substring(_+1,N.length);if(I==null||I==""){K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);if(C!=null)C.parentElement.removeChild(C);J="<img id=img_"+F+" width="+K.clientWidth+" height="+K.clientHeight+">";$(K).html(J)}else{K=top.E_getObject(A,F,M),C=K.ownerDocument.getElementById("img_"+F);if(C!=null)C.parentElement.removeChild(C);N=watLocation2+"/binarydownload?resourcekey="+N;J="<img id=img_"+F+" src="+N+" width="+K.clientWidth+" height="+K.clientHeight+">";$(K).html(J)}break;default:break}}};function DxLine(){}DxLine.render=function($,D,B){var E=B.getAttribute("cid"),A=B.selectNodes("*");for(var G=0;G<A.length;G++){var F=A[G].nodeName;F=F.substring(1,F.length);var C=top.isIE?A[G].text:A[G].textContent;switch(F){case top.DC.WIDTH:top.E_getObject($,E,D).style.width=C;top.E_getObject($,"E_SW_"+E,D).style.width=C;break;case top.DC.HEIGHT:top.E_getObject($,E,D).style.height=C;top.E_getObject($,"E_SW_"+E,D).style.height=C;break;case top.DC.VISIBLE:top.E_getObject($,"E_SW_"+E,D).style.visibility=C;break;case top.DC.BORDERSTYLE:top.E_getObject($,E,D).style.borderStyle=C;break;case top.DC.BORDERWIDTH:top.E_getObject($,E,D).style.borderWidth=C;break;case top.DC.BORDERCOLOR:top.E_getObject($,E,D).style.borderColor=C;break;case top.DC.X:top.E_getObject($,"E_SW_"+E,D).style.left=C;break;case top.DC.Y:top.E_getObject($,"E_SW_"+E,D).style.top=C;break;case top.DC.BACKGROUND:top.E_getObject($,E,D).style.backgroundColor=C;break;case top.DC.FOREGROUND:top.E_getObject($,E,D).style.color=C;break;case top.DC.DISPLAY:var _=top.E_getObject($,"E_SW_"+E,D);if(C=="true"){_.style.visibility="visible";_.style.display="block"}else{_.style.visibility="hidden";_.style.display="none"}break;default:break}}};function DxFunctionContainer(){}DxFunctionContainer.init=function(B,D,O,C,F,E,_,M,I,H,G){var L=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,L),J=top.E_getObject(B,D,A);J.hasaction=O;J.hasPopMenu=C;J.popupMenuFormID=F;J.popupMenuID=E;J.jgheightnum=_;J.buttonsize=M;J.fwidth=I;J.fheight=H;J.pagecount=0;J.pageindex=0;J.simplestyle=G;var K=new Array();J.functions=K;var N=new Array();J.points=N;J.dataDom=top.WatCore.createXmlDom("<functions/>");J.changeDom=top.WatCore.createXmlDom("<functions/>");$(J).unbind("resize");$(J).bind("resize",B,function($){top.DxFunctionContainer.changeSize(J,B,D)});DxFunctionContainer.initFunctions(J,B,D);top.DxFunctionContainer.changeSize(J,B,D)};DxFunctionContainer.initFunctions=function(G,B,C){var _=G.functions;for(var D=0;D<_.length;D++){var H=_[D];if(H!=null){G.removeChild(H);_[D]=null}}var F=G.fwidth,E=G.fheight,I=G.className;G.functions=[];var J=G.buttonsize;for(D=0;D<J;D++){var A="<div index='"+D+"' type='2' onclick='DxFunctionContainer.doClick(\""+B+"\",\""+C+"\",this);' onmouseover='DxFunctionContainer.mouseoverbutton(this)' onmouseout='DxFunctionContainer.mouseoutbutton(this);' class='"+I+"-button' id='"+C+"_"+D+"' style='position:absolute;left:0px;top:0px;width:"+F+"px;height:"+E+"px;background:#f2f2f2'>";A+="<table width=100% height=100% border=0 cellPadding=0 cellSpacing=0 style='position:relative;background:transparent;table-layout:fixed;'>";A+="<tr height='100%'>";A+="<td align='center' vAlign='middle'>";A+="<img id='titleimage' width='30' height='30' border='0' alt=''>";A+="<div id='title' style='display:none;white-space:normal;' class='"+I+"-button-title'></div>";A+="</td>";A+="</table>";A+="<img index='"+D+"' onclick='event.cancelBubble = true;DxFunctionContainer.tudingClick(\""+B+"\",\""+C+"\",this);' onmouseover='event.cancelBubble = true;DxFunctionContainer.mouseovertuding(this);' id='tuding' src='"+watLocation2+"/images/eleand/functionentry/\u56fe\u9489\u56fe\u68070.png' style='visibility:hidden;position:absolute;left:5px;top:5px;' width='18px' height='18px' border='0' alt=''>";A+="<img index='"+D+"' onclick='event.cancelBubble = true;DxFunctionContainer.closeClick(\""+B+"\",\""+C+"\",this);' onmouseover='event.cancelBubble = true;DxFunctionContainer.mouseoverclose(this)' id='close' src='"+watLocation2+"/images/eleand/functionentry/\u5173\u95ed.png' style='visibility:hidden;position:absolute;right:5px;top:5px;' width='18px' height='18px' border='0' alt=''>";A+="</div>";insertHTML(G,"BeforeEnd",A);var K=$("#"+C+"_"+D,G).get(0);if(K!=null)G.functions.push(K)}DxFunctionContainer.clearFunction(G)};DxFunctionContainer.createDefaultFunction=function(_){_.setAttribute("type","2");_.setAttribute("functionid","");_.style.background="#F2F2F2";_.style.cursor="default";$("#titleimage",_).attr("src",null);$("#titleimage",_).css("display","none");$("#title",_).css("display","none")};DxFunctionContainer.createAddFunction=function(_){_.setAttribute("type","1");_.setAttribute("functionid","");_.style.background="#E6E6E6";_.style.cursor="pointer";$("#titleimage",_).css("display","block");$("#titleimage",_).attr("src",watLocation2+"/images/eleand/functionentry/add.png");$("#title",_).css("display","none")};DxFunctionContainer.createActionFunction=function(A,D,E,_,B,C){A.setAttribute("type","0");A.setAttribute("functionid",D);A.setAttribute("iscandelete",C);A.style.background="#FFFFFF";A.style.cursor="pointer";$("#titleimage",A).css("display","block");$("#titleimage",A).attr("src",E);$title=$("#title",A);$title.css("display","block");$title.text(_);if(B=="false"){$("#tuding",A).attr("src",watLocation2+"/images/eleand/functionentry/\u56fe\u9489\u56fe\u68070.png");$("#tuding",A).attr("title","\u56fa\u5b9a\u6b64\u529f\u80fd")}else{$("#tuding",A).attr("src",watLocation2+"/images/eleand/functionentry/\u56fe\u9489\u56fe\u6807.png");$("#tuding",A).attr("title","\u53d6\u6d88\u56fa\u5b9a")}};DxFunctionContainer.mouseovertuding=function(_){if(_.parentElement.getAttribute("type")==0){$("#close",_.parentElement).css("visibility","hidden");$(_).css("visibility","visible")}};DxFunctionContainer.mouseoverclose=function(_){if(_.parentElement.getAttribute("type")==0&&_.parentElement.getAttribute("iscandelete")=="true"){$("#tuding",_.parentElement).css("visibility","hidden");$(_).css("visibility","visible")}};DxFunctionContainer.mouseoverbutton=function(_){if(_.getAttribute("type")==0){$("#tuding",_).css("visibility","visible");if(_.getAttribute("iscandelete")=="true")$("#close",_).css("visibility","visible")}};DxFunctionContainer.mouseoutbutton=function(_){$("#tuding",_).css("visibility","hidden");$("#close",_).css("visibility","hidden")};DxFunctionContainer.changeSize=function(I,B,D){var X=parseInt(I.clientWidth),_=50;if(X>0&&X==I.oldwidth)return;I.oldwidth=X;var U=WatCore.getClientRect(I);X=U.w-_*2;sheight=U.h;var W=parseInt(I.fwidth),G=parseInt(I.fheight),Q=parseInt(I.jgheightnum),b=parseInt(I.buttonsize),A=b,Z=A*parseInt(W)+(A-1)*Q;if(Z>X){W=G;Z=A*parseInt(W)+(A-1)*Q;if(Z>X){A=b/2;W=parseInt(I.fwidth);Z=A*parseInt(W)+(A-1)*Q;if(Z>X){W=G;Z=A*parseInt(W)+(A-1)*Q}}}var H=(X-Z)/2;if(H<0)H=0;var E=1*Q,V=0,N=0,a=$("#setupicon",I),T=$("#lefticon",I),C=$("#righticon",I);for(var S=0;S<b;S++){var J=$(I.functions[S]),K=H+N*(W+Q)+_,L=E+V*(G+Q);J.css({"width":W+"px","height":G+"px","left":K+"px","top":L+"px"});if(S==0){I.beginleft=parseInt(K);T.css({"left":(K-50)+"px","top":L+((G-30)/2)+"px"})}if(N==A-1){if(V==0){I.endright=parseInt(K)+parseInt(W);a.css({"left":(K+W-22)+"px","top":"2px"});C.css({"left":(K+W+20)+"px","top":L+((G-30)/2)+"px"})}N=0;V++}else N++}DxFunctionContainer.showleftrightbutton(B,D,I);var F=b/A;if(b%A>0)F++;var c=(F)*(G+Q)+E;I.pointtop=c-E+(Q-13)/2;A=A/2;var R=I.getAttribute("son");if(R!=null&&R!=""){var Y=R.split("&"),P=2*W+Q,O=(parseInt(sheight)-parseInt(c)-parseInt(Q)*2);F=Y.length/A;if(Y.length%A>0)F++;if(O<0)O=P;else if(O/P>2&&F>1)O=O/2;else if(O<P)O=P;N=0;V=0;for(S=0;S<Y.length;S++){var M=Y[S];if(M!=""){K=H+N*(P+Q)+_,L=c+V*(O+Q);$("#E_SW_"+M,I).css({"left":K+"px","top":L+"px"});$ob=$("#"+M,I).get(0);$ob.style.width=P+"px";$ob.style.height=O+"px";if(N==A-1){N=0;V++}else N++}}}};DxFunctionContainer.clearFunction=function(A){var B=parseInt(A.buttonsize);for(var C=0;C<B;C++){var _=$(A.functions[C]);if(C==0)DxFunctionContainer.createAddFunction(_.get(0));else DxFunctionContainer.createDefaultFunction(_.get(0))}};DxFunctionContainer.showleftrightbutton=function(B,D,G){var F=$("#lefticon",G),C=$("#righticon",G);if(G.pageindex>0)F.css({"visibility":"visible"});else F.css({"visibility":"hidden"});if(G.pageindex<G.pagecount-1)C.css({"visibility":"visible"});else C.css({"visibility":"hidden"});var L=G.points;for(var E=0;E<L.length;E++)L[E].style.visibility="hidden";var I=G.pagecount;if(I>1){var H=parseInt(G.endright)-parseInt(G.beginleft),_=parseInt(G.pointtop),J=13,K=parseInt((H-I*J)/2)+G.beginleft;for(E=0;E<I;E++)if(L.length>E){$(L[E]).css({"visibility":"visible","left":(K+E*J),"top":_});if(E==G.pageindex)L[E].src=watLocation2+"/images/eleand/functionentry/pointselected.png";else L[E].src=watLocation2+"/images/eleand/functionentry/point.png"}else{var A;if(E==G.pageindex)A="<img id='point"+E+"' index='"+E+"' onclick='event.cancelBubble = true;DxFunctionContainer.pointClick(\""+B+"\",\""+D+"\",this);' src='"+watLocation2+"/images/eleand/functionentry/pointselected.png' style='cursor:pointer;visibility:visible;position:absolute;left:"+(K+E*J)+"px;top:"+_+"px;' width='13px' height='13px' border='0' alt=''>";else A="<img id='point"+E+"' index='"+E+"' onclick='event.cancelBubble = true;DxFunctionContainer.pointClick(\""+B+"\",\""+D+"\",this);' src='"+watLocation2+"/images/eleand/functionentry/point.png' style='cursor:pointer;visibility:visible;position:absolute;left:"+(K+E*J)+"px;top:"+_+"px;' width='13px' height='13px' border='0' alt=''>";insertHTML(G,"BeforeEnd",A);G.points[E]=$("#point"+E,G).get(0)}}};DxFunctionContainer.pointClick=function(D,E,F){var C=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,C),$=top.E_getObject(D,E,A),_=F.getAttribute("index"),B=$.pageindex;if(_!=B)WatCore.call(D,E,"pointtopage&"+_)};DxFunctionContainer.leftAction=function(B,C){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),$=top.E_getObject(B,C,_);WatCore.call(B,C,"pre")};DxFunctionContainer.rightAction=function(B,C){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),$=top.E_getObject(B,C,_);WatCore.call(B,C,"next")};DxFunctionContainer.updateData=function(D,F,C,_){var O=top.E_clientModel.E_getWindow(D),N=C.getElementById(F);if(top.isIE)N.dataDom.loadXML(_);else N.dataDom=WatCore.createXmlDom(_);var L=N.dataDom.documentElement,A=L.selectNodes("function");DxFunctionContainer.clearFunction(N);var J=N.simplestyle,Q=parseInt(N.buttonsize)-1;if(J=="true")Q+=1;N.pageindex=L.getAttribute("pageindex");N.pagecount=L.getAttribute("pagecount");var G=0;for(var H=0;H<A.length;H++){if(H>=Q)break;var M=A[H],P=M.getAttribute("functionid"),$=M.getAttribute("icon"),E=M.getAttribute("isDeleted"),B=M.getAttribute("isFixed"),K=M.getAttribute("title"),I=N.functions[G];DxFunctionContainer.createActionFunction(I,P,$,K,B,E);G++}if(G<=Q&&J=="false"){I=N.functions[G];DxFunctionContainer.createAddFunction(I)}DxFunctionContainer.showleftrightbutton(D,F,N)};DxFunctionContainer.changeData=function(E,G,D,_){var O=top.E_clientModel.E_getWindow(E),N=D.getElementById(G);if(top.isIE)N.changeDom.loadXML(_);else N.changeDom=WatCore.createXmlDom(_);var L=N.changeDom.documentElement,A=L.selectNodes("function"),J=N.simplestyle,R=parseInt(N.buttonsize)-1;if(J=="true")R+=1;var P=parseInt(N.pageindex);for(var H=0;H<A.length;H++){var M=A[H],C=parseInt(M.getAttribute("index"));C-=P*R;if(C>=R)break;var Q=M.getAttribute("functionid"),$=M.getAttribute("icon"),F=M.getAttribute("isDeleted"),B=M.getAttribute("isFixed"),K=M.getAttribute("title"),I=N.functions[C];DxFunctionContainer.createActionFunction(I,Q,$,K,B,F)}};DxFunctionContainer.tudingClick=function(E,G,H){var D=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,D),A=top.E_getObject(E,G,B),F=parseInt(A.buttonsize)-1,$=A.simplestyle;if($=="true")F+=1;var C=A.pageindex,_=H.getAttribute("index");_=parseInt(C*F)+parseInt(_);WatCore.call(E,G,"tuding&"+_)};DxFunctionContainer.closeClick=function(E,G,H){var D=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,D),A=top.E_getObject(E,G,B),F=parseInt(A.buttonsize)-1,$=A.simplestyle;if($=="true")F+=1;var C=A.pageindex,_=H.getAttribute("index");_=parseInt(C*F)+parseInt(_);WatCore.call(E,G,"close&"+_)};DxFunctionContainer.doClick=function($,B,C){var A=C.getAttribute("type");if(A=="1")WatCore.call($,B,"add&");else if(A=="0"){var _=C.getAttribute("functionid");WatCore.call($,B,"action&"+_)}};DxFunctionContainer.onpop=function($,A,C,B,_){WatCore.setParameter($,A,top.DC.SELECTED,B);top.DxMenu.onpop($,A,C,_)};DxFunctionContainer.setupAction=function($,_){WatCore.call($,_,"setup&")};DxFunctionContainer.render=function(D,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=top.isIE?_[G].text:_[G].textContent;switch(F){case top.DC.UPDATE_DATA:DxFunctionContainer.updateData(D,E,C,B);break;case top.DC.CHANGE_DATA:DxFunctionContainer.changeData(D,E,C,B);break;case top.DC.CSSNAME:top.E_getObject(D,E,C).className=B;break;case top.DC.WIDTH:top.E_getObject(D,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject(D,E,C).style.height=B;break;case top.DC.BORDERSTYLE:top.E_getObject(D,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject(D,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject(D,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject(D,"E_SW_"+E,C).style.left=B;break;case top.DC.Y:top.E_getObject(D,"E_SW_"+E,C).style.top=B;break;case top.DC.ENABLED:DxFunctionContainer.setEnabled(D,E,C,B);break;case top.DC.BACKGROUND:top.E_getObject(D,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject(D,E,C).style.color=B;break;case top.DC.JGHEIGHT:var $=top.E_getObject(D,E,C);$.jgheightnum=B;break;default:break}}};function DxResponsiveContainer(){}DxResponsiveContainer.init=function(B,E,D,H,F){var L=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,L),J=top.E_getObject(B,E,A);J.hasPopMenu=D;J.popupMenuFormID=H;J.popupMenuID=F;$(J).unbind("resize");$(J).bind("resize",B,function($){top.DxResponsiveContainer.changeSize(J,B,E,true)});var C=J.getAttribute("son"),I=new Array();J.blockarray=I;if(C!=null&&C!=""){var K=C.split("&");for(var G=0;G<K.length;G++){var _=K[G];if(_!="")I.push($("#"+_,J))}}};DxResponsiveContainer.changeSize=function(J,B,E,h){var b=parseInt(J.clientWidth);if(b>0&&b==J.oldwidth&&h)return;J.oldwidth=b;var X=WatCore.getClientRect(J);b=X.w;sheight=X.h;var g=parseInt(J.getAttribute("jgheight")),A=J.getAttribute("scrollable"),V=parseInt(J.getAttribute("marginleft")),R=parseInt(J.getAttribute("margintop")),_=parseInt(J.getAttribute("marginright")),T=parseInt(J.getAttribute("marginbottom")),L=J.getAttribute("justifyconent"),G=J.getAttribute("alignitems"),Z=J.blockarray,K=0,Y=0,Q=0,c=0,d=b-V-_,S=sheight-R-T,D=new Array();D.push(new Array());for(var U=0;U<Z.length;U++){var F=Z[U],O=F.width(),W=F.height();if("none"==$(F.get(0).parentElement).css("display"))continue;K+=O+c*g;if(K<=d){c++;D[Y].push(F)}else if(c==0){K=0;c=0;D[Y].push(F);if(U<Z.length-1){Y++;D.push(new Array())}}else{K=O;c=1;Y++;D.push(new Array());D[Y].push(F)}}if(L=="flex-start"){var f=R,a=R+T;for(U=0;U<D.length;U++){var P=D[U],N=V,I=0;for(var e=0;e<P.length;e++){F=P[e],W=parseInt(F.height());if(G=="stretch")if(D.length==1){if(F.attr("oldheight")==null)F.attr("oldheight",W)}else{var C=F.attr("oldheight");if(C!=null){F.height(C);W=parseInt(C)}}if(W>I)I=W;$(F.get(0).parentElement).css({"left":N+"px"});N+=parseInt(F.width())+g}if(D.length==1)f=(sheight-I)/2;for(e=0;e<P.length;e++){F=P[e],W=parseInt(F.height());if(G=="flex-start")$(F.get(0).parentElement).css({"top":f+"px"});else if(G=="flex-end")$(F.get(0).parentElement).css({"top":(f+(I-W))+"px"});else if(G=="center")$(F.get(0).parentElement).css({"top":(f+(I-W)/2)+"px"});else if(G=="stretch")if(D.length==1){$(F.get(0).parentElement).css({"top":R+"px"});F.height(S)}else $(F.get(0).parentElement).css({"top":f+"px"})}f+=g+I;a+=I}a+=(D.length-1)*g}else if(L=="flex-end"){f=R;for(U=0;U<D.length;U++){P=D[U],N=V,I=0;for(e=P.length-1;e>=0;e--){F=P[e],W=parseInt(F.height());if(G=="stretch")if(D.length==1){if(F.attr("oldheight")==null)F.attr("oldheight",W)}else{C=F.attr("oldheight");if(C!=null){F.height(C);W=parseInt(C)}}if(W>I)I=W;if(e<P.length)N+=parseInt(F.width())+g;else N+=parseInt(F.width());$(F.get(0).parentElement).css({"left":(b-N)+"px"})}if(D.length==1)f=(sheight-I)/2;for(e=0;e<P.length;e++){F=P[e],W=parseInt(F.height());if(G=="flex-start")$(F.get(0).parentElement).css({"top":f+"px"});else if(G=="flex-end")$(F.get(0).parentElement).css({"top":(f+(I-W))+"px"});else if(G=="center")$(F.get(0).parentElement).css({"top":(f+(I-W)/2)+"px"});else if(G=="stretch")if(D.length==1){$(F.get(0).parentElement).css({"top":R+"px"});F.height(S)}else $(F.get(0).parentElement).css({"top":f+"px"})}f+=g+I}}else if(L=="center"){f=R;for(U=0;U<D.length;U++){var P=D[U],N=V,I=0,H=0;for(e=0;e<P.length;e++){F=P[e],W=parseInt(F.height());if(G=="stretch")if(D.length==1){if(F.attr("oldheight")==null)F.attr("oldheight",W)}else{C=F.attr("oldheight");if(C!=null){F.height(C);W=parseInt(C)}}if(W>I)I=W;H+=parseInt(F.width())}H+=(P.length-1)*g;N+=(d-H)/2;if(D.length==1)f=(sheight-I)/2;for(e=0;e<P.length;e++){F=P[e],W=parseInt(F.height());if(G=="flex-start")$(F.get(0).parentElement).css({"left":N+"px","top":f+"px"});else if(G=="flex-end")$(F.get(0).parentElement).css({"left":N+"px","top":(f+(I-W))+"px"});else if(G=="center")$(F.get(0).parentElement).css({"left":N+"px","top":(f+(I-W)/2)+"px"});else if(G=="stretch")if(D.length==1){$(F.get(0).parentElement).css({"left":N+"px","top":R+"px"});F.height(S)}else $(F.get(0).parentElement).css({"left":N+"px","top":f+"px"});N+=parseInt(F.width())+g}f+=g+I}}else if(L=="space-between"){f=R;for(U=0;U<D.length;U++){P=D[U],N=V,I=0,H=0;for(e=0;e<P.length;e++){F=P[e],W=parseInt(F.height());if(G=="stretch")if(D.length==1){if(F.attr("oldheight")==null)F.attr("oldheight",W)}else{C=F.attr("oldheight");if(C!=null){F.height(C);W=parseInt(C)}}if(W>I)I=W;H+=parseInt(F.width())}var M=(d-H)/(P.length-1);if(D.length==1)f=(sheight-I)/2;for(e=0;e<P.length;e++){F=P[e],W=parseInt(F.height());if(G=="flex-start")$(F.get(0).parentElement).css({"left":N+"px","top":f+"px"});else if(G=="flex-end")$(F.get(0).parentElement).css({"left":N+"px","top":(f+(I-W))+"px"});else if(G=="center")$(F.get(0).parentElement).css({"left":N+"px","top":(f+(I-W)/2)+"px"});else if(G=="stretch")if(D.length==1){$(F.get(0).parentElement).css({"left":N+"px","top":R+"px"});F.height(S)}else $(F.get(0).parentElement).css({"left":N+"px","top":f+"px"});N+=parseInt(F.width())+M}f+=g+I}}else if(L=="space-around"){f=R;for(U=0;U<D.length;U++){P=D[U],N=V,I=0,H=0;for(e=0;e<P.length;e++){F=P[e],W=parseInt(F.height());if(G=="stretch")if(D.length==1){if(F.attr("oldheight")==null)F.attr("oldheight",W)}else{C=F.attr("oldheight");if(C!=null){F.height(C);W=parseInt(C)}}if(W>I)I=W;H+=parseInt(F.width())}if(D.length==1)f=(sheight-I)/2;M=(d-H)/(P.length);N+=M/2;for(e=0;e<P.length;e++){F=P[e],W=parseInt(F.height());if(G=="flex-start")$(F.get(0).parentElement).css({"left":N+"px","top":f+"px"});else if(G=="flex-end")$(F.get(0).parentElement).css({"left":N+"px","top":(f+(I-W))+"px"});else if(G=="center")$(F.get(0).parentElement).css({"left":N+"px","top":(f+(I-W)/2)+"px"});else if(G=="stretch")if(D.length==1){$(F.get(0).parentElement).css({"left":N+"px","top":R+"px"});F.height(S)}else $(F.get(0).parentElement).css({"left":N+"px","top":f+"px"});N+=parseInt(F.width())+M}f+=g+I}}};DxResponsiveContainer.onpop=function($,A,C,B,_){WatCore.setParameter($,A,top.DC.SELECTED,B);top.DxMenu.onpop($,A,C,_)};DxResponsiveContainer.render=function(D,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=top.isIE?_[G].text:_[G].textContent;switch(F){case top.DC.UPDATE:var $=top.E_getObject(D,E,C);DxResponsiveContainer.changeSize($,D,E,false);break;case top.DC.CSSNAME:top.E_getObject(D,E,C).className=B;break;case top.DC.WIDTH:top.E_getObject(D,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject(D,E,C).style.height=B;break;case top.DC.BORDERSTYLE:top.E_getObject(D,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject(D,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject(D,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject(D,"E_SW_"+E,C).style.left=B;break;case top.DC.Y:top.E_getObject(D,"E_SW_"+E,C).style.top=B;break;case top.DC.ENABLED:DxResponsiveContainer.setEnabled(D,E,C,B);break;case top.DC.BACKGROUND:top.E_getObject(D,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject(D,E,C).style.color=B;break;case top.DC.JGHEIGHT:$=top.E_getObject(D,E,C);$.setAttribute("jgheight",B);break;default:break}}};function DxMulInteractiveQRcode(){}DxMulInteractiveQRcode.renderQRcode=function(B,E,D,C,A){var _=top.E_getObject(B,E,A),$="<object id=\""+E+"_QRcode\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\"100%\" height=\"100%\" id=\""+E+"chat\" align=\"middle\">";$+="<param name=\"allowScriptAccess\" value=\"sameDomain\" />";$+="<param name=\"allowFullScreen\" value=\"true\" />";$+="<param name=\"wmode\" value=\"opaque\" />";$+="<param name=\"FlashVars\" value=\""+D+"\" />";$+="<param name=\"scale\" value=\"exactfit\" />";$+="<param name=\"movie\" value=\"./mulinteractivevideo/"+C+"\" /><param name=\"quality\" value=\"Best\" /><param name=\"bgcolor\" value=\"#ffffff\" />\t<embed src=\"./mulinteractivevideo/"+C+"\" id=\""+E+"_QRcode2\" FlashVars=\""+D+"\" quality=\"high\" bgcolor=\"#ffffff\" width=\"100%\" height=\"100%\" name=\""+E+"chat\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer_cn\" />";$+="</object>";_.innerHTML=$};DxMulInteractiveQRcode.clear=function(_,$,A){};DxMulInteractiveQRcode.showScanQRcode=function(C,F,B,D){var A=top.E_getObject(C,F,B),E;if(top.isIE)E=$("#"+F+"_QRcode",A).get(0);else E=$("#"+F+"_QRcode2",A).get(0);if(E!=null){try{E.showScanQRcode(D)}catch(_){}}};DxMulInteractiveQRcode.scanQRcodeReturn=function(E){var A=E.split("@wat@");if(A.length==4){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"scanQRcodeReturn",A[2]+"&"+A[3])}};DxMulInteractiveQRcode.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,K;if(A>-1){C=I.substring(0,A);K=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(K=="renderQRcode"){var J=H.split("|");DxMulInteractiveQRcode.renderQRcode($,B,J[0],J[1],G)}else if(K=="showScanQRcode")DxMulInteractiveQRcode.showScanQRcode($,B,G,E[0]);break;default:break}}};function DxMulInteractivePhotograph(){}DxMulInteractivePhotograph.renderPhotograph=function(B,F,E,C,A){var _=top.E_getObject(B,F,A),G=_.clientHeight,D=_.clientWidth,$="";$+="<object id=\""+F+"_QRcode\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\"100%\" height=\"100%\" id=\""+F+"chat\" align=\"middle\">";$+="<param name=\"allowScriptAccess\" value=\"sameDomain\" />";$+="<param name=\"allowFullScreen\" value=\"true\" />";$+="<param name=\"wmode\" value=\"gpu\" />";$+="<param name=\"bgcolor\" value=\"#041c23\" />";$+="<param name=\"FlashVars\" value=\""+E+"&flashobjid="+F+"_video&clientheight="+G+"&clientwidth="+D+"\" />";$+="<param name=\"scale\" value=\"exactfit\" />";$+="<param name=\"movie\" value=\"./mulinteractivevideo/"+C+"\" /><param name=\"quality\" value=\"Best\" /><param name=\"bgcolor\" value=\"#ffffff\" />\t<embed src=\"./mulinteractivevideo/"+C+"\" id=\""+F+"__QRcode2\" FlashVars=\""+E+"&flashobjid="+F+"_video2&clientheight="+G+"&clientwidth="+D+"\" quality=\"high\" bgcolor=\"#ffffff\" width=\"100%\" height=\"100%\" name=\""+F+"chat\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer_cn\" />";$+="</object>";_.innerHTML=$};DxMulInteractivePhotograph.resizeaction=function(_,C,E){var B=$("#"+C+"_QRcode",E).get(0),D=E.clientHeight,A=E.clientWidth;if(B!=null);};DxMulInteractivePhotograph.clear=function(_,$,A){A.innerHTML=""};DxMulInteractivePhotograph.showScanQRcode=function(C,F,B,D){var A=top.E_getObject(C,F,B),E;if(top.isIE)E=$("#"+F+"_QRcode",A).get(0);else E=$("#"+F+"_QRcode2",A).get(0);if(E!=null){try{E.showScanQRcode(D)}catch(_){}}};DxMulInteractivePhotograph.Photograph=function(E){var A=E.split("@wat@");if(A.length==4){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"Photograph",A[2]+"&"+A[3])}};DxMulInteractivePhotograph.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,K;if(A>-1){C=I.substring(0,A);K=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(K=="renderPhotograph"){var J=H.split("|");DxMulInteractivePhotograph.renderPhotograph($,B,J[0],J[1],G)}else if(K=="showScanQRcode")DxMulInteractivePhotograph.showScanQRcode($,B,G,E[0]);break;default:break}}};function DxHaiNanCard(){}DxHaiNanCard.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"hainancard' codebase='./hainancardocx.cab#Version=1,0,0,2' classid=\"CLSID:EE78E890-E620-4C42-934F-35D450278354\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxHaiNanCard.invoke=function(C,E,A){var _=top.E_getObject(C,E,A);try{var D=_.ownerDocument.getElementById(E+"hainancard");if(D!=null){var F="",B=5;F=D.GetCardID(B);WatCore.setParameter(C,E,top.DC.TEXT,F);WatCore.sendACallToChart(C,E,"invoke")}else alert("\u63a7\u4ef6\u4e3anull")}catch($){alert($.message)}};DxHaiNanCard.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="invoke")top.DxHaiNanCard.invoke($,B,H);break;default:break}}};function DxOcxAllinControl(){}DxOcxAllinControl.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"allincontrol' codebase='./Platform.cab#version=1,0,0,1' classid=\"CLSID:3EDE745C-4ADB-42A6-AB25-5621EDBDFD6B\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxOcxAllinControl.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="invoke")top.DxOcxAllinControl.invoke($,B,H);break;default:break}}};function DxUnion(){}DxUnion.init=function(B,C){var A=top.E_clientModel.E_getWindow(B),_=WatCore.getWindowDoc(B,A),$=top.E_getObject(B,C,_)};DxUnion.getHostName=function(C,E,B){var A=top.E_getObject(C,E,B);try{var D=$("#"+E+"unioncard",A).get(0);if(D!=null){var F;F=D.GetHost();WatCore.setParameter(C,E,top.DC.TEXT,F);WatCore.sendACallToChart(C,E,"getHostName")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxUnion.getLocalIP=function(C,E,B){var A=top.E_getObject(C,E,B);try{var D=$("#"+E+"unioncard",A).get(0);if(D!=null){var F;F=D.GetLocalIP();WatCore.setParameter(C,E,top.DC.TEXT,F);WatCore.sendACallToChart(C,E,"getLocalIP")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxUnion.getLocalPrinter=function(C,E,B){var A=top.E_getObject(C,E,B);try{var D=$("#"+E+"unioncard",A).get(0);if(D!=null){var F;F=D.GetLocalPrinter();WatCore.setParameter(C,E,top.DC.TEXT,F);WatCore.sendACallToChart(C,E,"getLocalPrinter")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxUnion.createFolder=function(D,F,B,C){var A=top.E_getObject(D,F,B);try{var E=$("#"+F+"unioncard",A).get(0);if(E!=null){var G;G=E.CreateFolder(C);WatCore.setParameter(D,F,top.DC.TEXT,G);WatCore.sendACallToChart(D,F,"createFolder")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxUnion.modifyFolder=function(C,G,B,F,E){var A=top.E_getObject(C,G,B);try{var D=$("#"+G+"unioncard",A).get(0);if(D!=null){var H;H=D.ModifyFolder(F,E);WatCore.setParameter(C,G,top.DC.TEXT,H);WatCore.sendACallToChart(C,G,"modifyFolder")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxUnion.getExecutionFilePath=function(D,F,B,C){var A=top.E_getObject(D,F,B);try{var E=$("#"+F+"unioncard",A).get(0);if(E!=null){var G;G=E.GetExecutionFilePath(C);WatCore.setParameter(D,F,top.DC.TEXT,G);WatCore.sendACallToChart(D,F,"getExecutionFilePath")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxUnion.getSystemPath=function(C,E,B){var A=top.E_getObject(C,E,B);try{var D=$("#"+E+"unioncard",A).get(0);if(D!=null){var F;F=D.GetSystemPath();WatCore.setParameter(C,E,top.DC.TEXT,F);WatCore.sendACallToChart(C,E,"getSystemPath")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxUnion.getSystemTempPath=function(C,E,B){var A=top.E_getObject(C,E,B);try{var D=$("#"+E+"unioncard",A).get(0);if(D!=null){var F;F=D.GetSystemTempPath();WatCore.setParameter(C,E,top.DC.TEXT,F);WatCore.sendACallToChart(C,E,"getSystemTempPath")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxUnion.writeAssignFile=function(E,G,D,A,_){var C=top.E_getObject(E,G,D);try{var F=$("#"+G+"unioncard",C).get(0);if(F!=null){var H;H=F.WriteAssignFile(A,_);WatCore.setParameter(E,G,top.DC.TEXT,H);WatCore.sendACallToChart(E,G,"writeAssignFile")}else alert("\u63a7\u4ef6\u4e3anull")}catch(B){alert(B.message)}};DxUnion.readAssignFile=function(E,H,D,_,C,G){var B=top.E_getObject(E,H,D);try{var F=$("#"+H+"unioncard",B).get(0);if(F!=null){var I;I=F.ReadAssignFile(_,C,G);WatCore.setParameter(E,H,top.DC.TEXT,I);WatCore.sendACallToChart(E,H,"readAssignFile")}else alert("\u63a7\u4ef6\u4e3anull")}catch(A){alert(A.message)}};DxUnion.deleteAssignFile=function(D,F,C,_){var B=top.E_getObject(D,F,C);try{var E=$("#"+F+"unioncard",B).get(0);if(E!=null){var G;G=E.DeleteAssignFile(_);WatCore.setParameter(D,F,top.DC.TEXT,G);WatCore.sendACallToChart(D,F,"deleteAssignFile")}else alert("\u63a7\u4ef6\u4e3anull")}catch(A){alert(A.message)}};DxUnion.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="getHostName")top.DxUnion.getHostName($,B,H);else if(K=="getLocalIP")top.DxUnion.getLocalIP($,B,H);else if(K=="getLocalPrinter")top.DxUnion.getLocalPrinter($,B,H);else if(K=="createFolder")top.DxUnion.createFolder($,B,H,E[0]);else if(K=="modifyFolder")top.DxUnion.modifyFolder($,B,H,E[0],E[1]);else if(K=="getExecutionFilePath")top.DxUnion.getExecutionFilePath($,B,H,E[0]);else if(K=="getSystemPath")top.DxUnion.getSystemPath($,B,H);else if(K=="getSystemTempPath")top.DxUnion.getSystemTempPath($,B,H);else if(K=="writeAssignFile")top.DxUnion.writeAssignFile($,B,H,E[0],E[1]);else if(K=="readAssignFile")top.DxUnion.readAssignFile($,B,H,E[0],E[1],E[2]);else if(K=="deleteAssignFile")top.DxUnion.deleteAssignFile($,B,H,E[0]);break;default:break}}};function DxFlashVersion(){}DxFlashVersion.init=function(strWinId,strCtrId){var version=DxFlashVersion.flashChecker();WatCore.setParameter(strWinId,strCtrId,top.DC.TEXT,version);};DxFlashVersion.flashChecker=function(){var hasFlash=0;var flashVersion=0;var isIE=/*@cc_on!@*/0;if(top.isIE){var swf=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(swf){hasFlash=1;VSwf=swf.GetVariable("$version");flashVersion=parseInt(VSwf.split(" ")[1].split(",")[0]);}}else{if(navigator.plugins&&navigator.plugins.length>0){var swf=navigator.plugins["Shockwave Flash"];if(swf){hasFlash=1;var words=swf.description.split(" ");for(var i=0;i<words.length;++i){if(isNaN(parseInt(words[i]))){continue;}flashVersion=parseInt(words[i]);}}}}return hasFlash+"|"+flashVersion;};DxFlashVersion.render=function(frameId,doc,controlNode){var componentId=controlNode.getAttribute("cid");var oNodes=controlNode.selectNodes("*");for(var i=0;i<oNodes.length;i++){var propName=oNodes[i].nodeName;propName=propName.substring(1,propName.length);var value=top.isIE?oNodes[i].text:oNodes[i].textContent;switch(propName){case top.DC.WIDTH:top.E_getObject(frameId,componentId,doc).style.width=value;break;case top.DC.HEIGHT:top.E_getObject(frameId,componentId,doc).style.height=value;break;default:break;}}};;function DxMulInteractiveELPaint(){}DxMulInteractiveELPaint.renderElPaint=function(B,E,D,C,A){var _=top.E_getObject(B,E,A),$="<object id=\""+E+"_QRcode\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\"100%\" height=\"100%\" id=\""+E+"chat\" align=\"middle\">";$+="<param name=\"allowScriptAccess\" value=\"sameDomain\" />";$+="<param name=\"allowFullScreen\" value=\"true\" />";$+="<param name=\"wmode\" value=\"opaque\" />";$+="<param name=\"FlashVars\" value=\""+D+"\" />";$+="<param name=\"scale\" value=\"exactfit\" />";$+="<param name=\"movie\" value=\"./mulinteractivevideo/"+C+"\" /><param name=\"quality\" value=\"Best\" /><param name=\"bgcolor\" value=\"#ffffff\" />\t<embed src=\"./mulinteractivevideo/"+C+"\" id=\""+E+"_QRcode2\" FlashVars=\""+D+"\" quality=\"high\" bgcolor=\"#ffffff\" width=\"100%\" height=\"100%\" name=\""+E+"chat\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer_cn\" />";$+="</object>";_.innerHTML=$};DxMulInteractiveELPaint.Saved=function(E){var A=E.split("@wat@");if(A.length==3){var C=A[0],D=A[1],B=top.E_clientModel.E_getWindow(C),_=WatCore.getWindowDoc(C,B),$=top.E_getObject(C,D,_);WatCore.sendACallToMulInteractiveMessage(C,D,"saved",A[2])}};DxMulInteractiveELPaint.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,L;if(A>-1){C=J.substring(0,A);L=J.substring(A+1,J.length);var F=L.split("-");L=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(L=="renderElPaint"){var K=I.split("|");DxMulInteractiveELPaint.renderElPaint($,B,K[0],K[1],H)}break;default:break}}};function DxShLedText(){}DxShLedText.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"shled' codebase='./SHOcx.ocx#version=1,0,0,0' CLASSID=\"clsid:8E7A4A35-51D5-4D65-8B92-D376C625189F\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxShLedText.closeComm=function(C,D,A){var _=top.E_getObject(C,D,A);try{var B=_.ownerDocument.getElementById(D+"shled");if(B!=null)B.CloseComm();else alert("\u63a7\u4ef6\u4e3anull")}catch($){alert($.message)}};DxShLedText.isOpen=function(C,D,A){var _=top.E_getObject(C,D,A);try{var B=_.ownerDocument.getElementById(D+"shled");if(B!=null){var E=B.IsOpen();WatCore.setParameter(C,D,top.DC.TEXT,E);WatCore.sendACallToChart(C,D,"isOpen")}else alert("\u63a7\u4ef6\u4e3anull")}catch($){alert($.message)}};DxShLedText.openAndSendToLed=function(F,G,B,_,E,D){var A=top.E_getObject(F,G,B);try{var C=A.ownerDocument.getElementById(G+"shled");if(C!=null){var H=C.IsOpen();if("1"!=C.IsOpen())C.OpenComm(_);C.SendToLed(E,D);C.CloseComm()}else alert("\u63a7\u4ef6\u4e3anull")}catch($){alert($.message)}};DxShLedText.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=_[D].text;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="closeComm")top.DxShLedText.closeComm($,B,H);else if(K=="isOpen")top.DxShLedText.isOpen($,B,H);else if(K=="openAndSendToLed")top.DxShLedText.openAndSendToLed($,B,H,E[0],E[1],E[2]);break;default:break}}};function WatWebContainerPage(){}WatWebContainerPage.initTab=function(C,E){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),A=top.E_getObject(C,E,B);$(A).resize(C,function(){top.WatWebContainerPage.changeSize(A,E)});try{$(A.ownerDocument).ready(function(){top.WatWebContainerPage._changeSize(A)})}catch(_){}WatWebContainerPage._changeSize(A)};WatWebContainerPage.changeSize=function($,_){WatWebContainerPage._changeSize($)};WatWebContainerPage._changeSize=function($){};WatWebContainerPage.addForm=function(A,C,L,I,M){var B=M.split("@"),N=B[0],D=B[1],H=B[2],J=top.E_getObject(A,C,L),G=I.selectSingleNode("server/templates/template[@tid='"+D+"']"),K=top.isIE?G.selectNodes("content")[0].text:G.selectNodes("content")[0].textContent;K=Desktop.getWebFormContent(A,D,K);$(J).html(K);if(D)E_watwebformCacheList.push(D);var F=J.ownerDocument.getElementById(C+"img");if(F!=null)F.style.display="none";var E=G.selectNodes("initial");if(E[0]!=null){var _=top.isIE?E[0].text:E[0].textContent;_=Desktop.getWebFormScript(A,D,_);top.WatCore.execInitScript(A,_)}};WatWebContainerPage.render=function(_,J,H,F){var C=H.getAttribute("cid"),A=H.selectNodes("*");for(var E=0;E<A.length;E++){var D=A[E].nodeName;D=D.substring(1,D.length);var B=D.split("_"),$=0;if(B.length==2){D=B[0];$=B[1]}else{var K=D,G=K.indexOf("_");if(G>=0){D=K.substring(0,G);$=K.substring(G+1,K.length)}}var I=top.isIE?A[E].text:A[E].textContent;switch(D){case top.DC.WEBTAB_Add_FORM:case top.DC.WEBTAB_Add_FRAMESET:WatWebContainerPage.addForm(_,C,J,F,I);break;default:break}}};var oDivDraggingInfo;function DxDIVGrid(){}DxDIVGrid.init=function(B,D){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),_=top.E_getObject(B,D,A);$(_).unbind("resize");$(_).bind("resize",B,function($){top.DxDIVGrid.resizeChange(_,D,$)});DxDIVGrid.adjustSize(_,D)};DxDIVGrid.adjustSize=function(N,B,f){var H=$(N).attr("rc"),b=H.split(","),E=b[0],J=b[1],a=$(N).width(),I=$(N).height();if(a<=100&&I<=100||a==0||I==0){$(N).css("visibility","hidden");return}$(N).css("visibility","visible");var T=$(N).attr("owidth"),U=$(N).attr("oheight");if(f!=true)if(T==a&&U==I)return;if(N.moved&&f!=true){N.movednum--;if(N.movednum==0)N.moved=false;return}else{N.movednum=0;N.moved=false}for(var e=0;e<E;e++){var R=0,Z=0;for(var c=0;c<J;c++){var W=$("#"+B+"_"+(e+1)+"_"+(c+1),N),K=parseInt(W.attr("ww")),d=W.attr("colSplit"),i=W.attr("cookieName"),D=W.attr("wwu"),g=false;if(d=="true"&&i!=undefined&&false){var F=WatCore.getCookie(i);if(F!=null){K=F;g=true}}d=W.attr("colSplit");if(D=="px"){R+=parseInt(K);if(c==J-1&&Z==0||g)if(R!=a)if(R>a)W.css("width",(parseInt(K)-(R-a)-1)+"px");else if(R<a)W.css("width",(parseInt(K)+(a-R)-1)+"px")}else if(D=="%")if(g){Z+=parseInt(K);if(c==J-1&&Z==0||g)if(R!=a)if(R>a)W.css("width",(parseInt(K)-(R-a)-1)+"px");else if(R<a)W.css("width",(parseInt(K)+(a-R)-1)+"px")}else Z+=parseInt(K)}var j=a-R,S=0,C=0;for(c=0;c<J;c++){W=$("#"+B+"_"+(e+1)+"_"+(c+1),N),K=parseInt(W.attr("ww")),D=W.attr("wwu"),d=W.attr("colSplit"),i=W.attr("cookieName"),g=false;if(d=="true"&&i!=undefined&&false){F=WatCore.getCookie(i);if(F!=null){K=F;g=true}}W.css("left",S+"px");if(D=="px"){if(C>0||g){K-=C;W.css("width",K+"px");C=0}S+=parseInt(K)}else if(D=="%")if(g){var P=parseInt(K);if(C>0){P-=C;C=0}if(c==J-1)W.css("width",(P-1)+"px");else W.css("width",P+"px");S+=P}else{P=parseInt(j*K/Z);if(C>0){P-=C;C=0}if(c==J-1)W.css("width",(P-1)+"px");else W.css("width",P+"px");S+=P}if(d=="true"){$colSplit=$("#"+B+"_"+(e+1)+"_"+(c+1)+"_split",N);$colSplit.css("left",S);S+=parseInt($colSplit.width());C=parseInt($colSplit.width())}}}var _=0,O=0;for(e=0;e<E;e++){var W=$("#"+B+"_"+(e+1)+"_1",N),X=parseInt(W.attr("wh")),h=W.attr("whu");if(h=="px"){_+=X;if(e==E-1&&O==0)if(_!=I)if(_>I){W.css("height",(X-(_-I)-1)+"px");for(c=0;c<J;c++){var Q=$("#"+B+"_"+(e+1)+"_"+(c+1),N);Q.css("height",(X-(_-I)-1)+"px")}}else if(_<I){W.css("height",(X+(I-_)-1)+"px");for(c=0;c<J;c++){Q=$("#"+B+"_"+(e+1)+"_"+(c+1),N);Q.css("height",(X+(I-_)-1)+"px")}}}else if(h=="%")O+=X}var A=I-_,V=0,Y;for(e=0;e<E;e++){var W=$("#"+B+"_"+(e+1)+"_1",N),X=parseInt(W.attr("wh")),h=W.attr("whu"),M;if(Y=="true"){var G=$("#"+B+"_"+(e)+"_split",N);G.css("top",V+"px");if(isIE)G.width($(N).width()-1);else G.width($(N).width()+1);M=parseInt(G.height());V+=M}if(h=="px"){for(c=0;c<J;c++){Q=$("#"+B+"_"+(e+1)+"_"+(c+1),N);Q.css("top",V+"px");if(Y=="true")Y="false";var L=Q.attr("colSplit");if(L=="true"){$colNextSplit=$("#"+B+"_"+(e+1)+"_"+(c+1)+"_split",N);$colNextSplit.css("top",V+"px");$colNextSplit.css("height",(Q.height()+2)+"px")}}V+=X}else if(h=="%"){var k=parseInt(A*X/O);if(Y=="true"){k-=M;Y="false"}for(c=0;c<J;c++){Q=$("#"+B+"_"+(e+1)+"_"+(c+1),N);if(e==E-1)Q.css("height",(k-1)+"px");else Q.css("height",k+"px");Q.css("top",V+"px");L=Q.attr("colSplit");if(L=="true"){$colNextSplit=$("#"+B+"_"+(e+1)+"_"+(c+1)+"_split",N);$colNextSplit.css("top",V+"px");$colNextSplit.css("height",k+"px")}}V+=k}Y=W.attr("rowSplit")}$(N).css("visibility","visible");$(N).attr("owidth",a);$(N).attr("oheight",I)};DxDIVGrid.movingCol=function(){var B=oDivDraggingInfo.strWindowID,H=oDivDraggingInfo.id,G=oDivDraggingInfo.shineid,C=oDivDraggingInfo.splittype,L=oDivDraggingInfo.preid,_=oDivDraggingInfo.nextid,K=top.E_clientModel.E_getWindow(B),D=WatCore.getWindowDoc(B,K),E=WatCore.getWindow(B,K),I=top.E_getObject(B,H,D),F=$("#"+G,I),A=event||E.event,J=getMouseCoords(A,D).x;J-=$(I).offset().left;F.css("left",J)};DxDIVGrid.movedCol=function(){var Q=oDivDraggingInfo.strWindowID,S=oDivDraggingInfo.id,F=oDivDraggingInfo.shineid,P=oDivDraggingInfo.splittype,L=oDivDraggingInfo.preid,N=oDivDraggingInfo.nextid,W=oDivDraggingInfo.splitid,V=top.E_clientModel.E_getWindow(Q),O=WatCore.getWindowDoc(Q,V),R=WatCore.getWindow(Q,V),J=top.E_getObject(Q,S,O),E=$("#"+F,J),M=E.get(0),T=$("#"+L,J),I=$("#"+N,J),D=parseInt(T.css("left")),X=parseInt(I.css("left"))+parseInt(I.width()),_=$("#"+W,J),K=parseInt(E.css("left"));if(K<=D+1)K=D+1;else if(K>=X-parseInt(E.width())-1)K=X-parseInt(E.width())-1;var G=parseInt(_.css("left"));_.css("left",K+"px");var H=D+parseInt(T.width())+parseInt(I.width())+parseInt(_.width())+4;T.width(K-D);var B=K+parseInt(_.width());I.css("left",B);if(top.isIE)I.width(H-B);else I.width(H-B-4);var C=K-D;T.attr("ww",C);var U=T.attr("cookieName");if(U!=undefined)top.WatCore.SetCookie(U,C);var A=I.attr("cookieName");if(A!=undefined)top.WatCore.SetCookie(A,parseInt(H)-parseInt(B));T.attr("wwu","px");oDivDraggingInfo=null;if(top.isIE){M.detachEvent("onmousemove",top.DxDIVGrid.movingCol);M.detachEvent("onmouseup",top.DxDIVGrid.movedCol);M.releaseCapture()}else{O.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);O.removeEventListener("mousemove",top.DxDIVGrid.movingCol,false);O.removeEventListener("mouseup",top.DxDIVGrid.movedCol,false)}$(M).css("display","none");J.moved=true;J.movednum=100};DxDIVGrid.beginMoveColFrameSet=function(E,_){var B=$(E).attr("strWindowID"),C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),D=$("#"+$(E).attr("parentId")+"_colsplitshine",E.parentElement).get(0);oDivDraggingInfo=new Object();oDivDraggingInfo.strWindowID=B;oDivDraggingInfo.shineid=$(E).attr("parentId")+"_colsplitshine";oDivDraggingInfo.id=$(E).attr("parentId");oDivDraggingInfo.splittype=$(E).attr("splittype");oDivDraggingInfo.nextid=$(E).attr("nextid");oDivDraggingInfo.preid=$(E).attr("preid");oDivDraggingInfo.splitid=$(E).attr("id");$(D).css("display","block");$(D).height($(E).height());$(D).css("top",$(E).css("top"));$(D).css("left",$(E).css("left"));if(window.attachEvent){D.setCapture();D.attachEvent("onmousemove",top.DxDIVGrid.movingCol);D.attachEvent("onmouseup",top.DxDIVGrid.movedCol)}else{A.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);A.addEventListener("mousemove",top.DxDIVGrid.movingCol,false);A.addEventListener("mouseup",top.DxDIVGrid.movedCol,false)}};DxDIVGrid.beginMoveRowFrameSet=function(F,A){var C=$(F).attr("strWindowID"),D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),E=$("#"+$(F).attr("parentId")+"_rowsplitshine",F.parentElement).get(0),_=$(E);oDivDraggingInfo=new Object();oDivDraggingInfo.strWindowID=C;oDivDraggingInfo.shineid=_.attr("id");oDivDraggingInfo.id=$(F).attr("parentId");oDivDraggingInfo.splittype=$(F).attr("splittype");oDivDraggingInfo.nextid=$(F).attr("nextid");oDivDraggingInfo.preid=$(F).attr("preid");oDivDraggingInfo.splitid=$(F).attr("id");_.css("display","block");_.width($(F).width());_.css("top",$(F).css("top"));_.css("left",$(F).css("left"));if(window.attachEvent){E.setCapture();E.attachEvent("onmousemove",top.DxDIVGrid.movingRow);E.attachEvent("onmouseup",top.DxDIVGrid.movedRow)}else{B.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);B.addEventListener("mousemove",top.DxDIVGrid.movingRow,false);B.addEventListener("mouseup",top.DxDIVGrid.movedRow,false)}};DxDIVGrid.movingRow=function(){var C=oDivDraggingInfo.strWindowID,H=oDivDraggingInfo.id,G=oDivDraggingInfo.shineid,D=oDivDraggingInfo.splittype,L=oDivDraggingInfo.preid,_=oDivDraggingInfo.nextid,K=top.E_clientModel.E_getWindow(C),E=WatCore.getWindowDoc(C,K),F=WatCore.getWindow(C,K),J=top.E_getObject(C,H,E),B=$("#"+G,J),A=event||F.event,I=getMouseCoords(A,E).y;I-=$(J).offset().top;B.css("top",I)};DxDIVGrid.movedRow=function(){var P=oDivDraggingInfo.strWindowID,W=oDivDraggingInfo.id,D=oDivDraggingInfo.shineid,O=oDivDraggingInfo.splittype,K=oDivDraggingInfo.preid,M=oDivDraggingInfo.nextid,b=oDivDraggingInfo.splitid,a=top.E_clientModel.E_getWindow(P),N=WatCore.getWindowDoc(P,a),S=WatCore.getWindow(P,a),I=top.E_getObject(P,W,N),_=$("#"+D,I),d=_.get(0),Y=$("#"+K+"_1",I),H=$("#"+M+"_1",I),C=parseInt(Y.css("top")),c=parseInt(H.css("top"))+parseInt(H.height()),A=$("#"+b,I),J=parseInt(_.css("top"));if(J<=C+1)J=C+1;else if(J>=c-parseInt(_.height())-1)J=c-parseInt(_.height())-1;var F=parseInt(A.css("top"));A.css("top",J+"px");var E=$(I).attr("rc"),Q=E.split(","),G=Q[1],U=J+parseInt(A.height()),R=parseInt(H.css("top")),Z=U-R,L=isIE?(H.height()+2-Z):(H.height()-Z);for(var X=0;X<G;X++){var B=$("#"+K+"_"+(X+1),I);if(B.get(0)!=null){B.height(J-C);var T=B.attr("colSplit");if(T=="true"){$colSplit=$("#"+K+"_"+(X+1)+"_split",I);$colSplit.height(J-C)}B.attr("wh",J-C);B.attr("whu","px")}var V=$("#"+M+"_"+(X+1),I);if(V.get(0)!=null){V.height(L);V.css("top",U);T=V.attr("colSplit");if(T=="true"){$colSplit=$("#"+M+"_"+(X+1)+"_split",I);$colSplit.height(L);$colSplit.css("top",U)}V.attr("wh",L);V.attr("whu","px")}}oDivDraggingInfo=null;if(top.isIE){d.detachEvent("onmousemove",top.DxDIVGrid.movingRow);d.detachEvent("onmouseup",top.DxDIVGrid.movedRow);d.releaseCapture()}else{N.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);N.removeEventListener("mousemove",top.DxDIVGrid.movingRow,false);N.removeEventListener("mouseup",top.DxDIVGrid.movedRow,false)}_.css("display","none")};DxDIVGrid.resizeChange=function(_,$,A){DxDIVGrid.adjustSize(_,$)};DxDIVGrid.render=function(A,F,D){var G=D.getAttribute("cid"),C=D.selectNodes("*");for(var J=0;J<C.length;J++){var H=C[J].nodeName;H=H.substring(1,H.length);var E=top.isIE?C[J].text:C[J].textContent;switch(H){case top.DC.VISIBLE:F.getElementById(G).style.visibility=E;break;case top.DC.COLUMNWIDTH:var _=E.split("&"),B=top.E_getObject(A,G,F),I=$("#"+G+"_"+(parseInt(_[0])+1)+"_"+(parseInt(_[1])+1),B);I.attr("ww",_[2]);top.DxDIVGrid.adjustSize(B,G,true);break;case top.DC.COLUMNWIDTHUNITS:_=E.split("&"),B=top.E_getObject(A,G,F),I=$("#"+G+"_"+(parseInt(_[0])+1)+"_"+(parseInt(_[1])+1),B);I.attr("wwu",_[2]);top.DxDIVGrid.adjustSize(B,G,true);break;case top.DC.ROWHEIGHT:_=E.split("&"),B=top.E_getObject(A,G,F),I=$("#"+G+"_"+(parseInt(_[0])+1)+"_"+(parseInt(_[1])+1),B);I.attr("wh",_[2]);top.DxDIVGrid.adjustSize(B,G,true);break;case top.DC.DISPLAY:B=top.E_getObject(A,"E_SW_"+G,F);if(E=="true"){B.style.visibility="visible";B.style.display="block"}else{B.style.visibility="hidden";B.style.display="none"}break;default:break}}};function DxDesktopLeftTaskBar(){}DxDesktopLeftTaskBar.init=function(C,D){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,D,A);if("true"!=$(_).attr("hasLeftButtonBar"))topTaskBarHeight=0;$(A).resize(C,function(){top.DxDesktopLeftTaskBar.changeSize(C,D)});DxDesktopLeftTaskBar.changeSize(C,D)};DxDesktopLeftTaskBar.changeSize=function(C,E){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,E,A),D=$("#leftTaskBar");$(_).width(D.width());$(_).height(D.height());$canvas=$("#"+E+"_canvas",_);if(top.isIE)$canvas.width(parseInt(D.width())-topTaskBarHeight+1);else $canvas.width(parseInt(D.width())-topTaskBarHeight-1)};DxDesktopLeftTaskBar.button1mouseover=function(_){$(_).css("background","#C9DFF4")};DxDesktopLeftTaskBar.button1mouseout=function(_){$(_).css("background","transparent")};DxDesktopLeftTaskBar.leftbuttonmouseover=function(A,_){$(A).css("background","#C9DFF4")};DxDesktopLeftTaskBar.leftbuttonmouseout=function(A,_){$(A).css("background","transparent")};DxDesktopLeftTaskBar.leftbuttononclick=function(D,F,C){var B=top.E_clientModel.E_getWindow(D),A=WatCore.getWindowDoc(D,B),_=top.E_getObject(D,F,A),E=$("#leftTaskBar");$canvas=$("#"+F+"_canvas",_);if($canvas.css("display")=="none"){$canvas.css("display","block");E.width("225px");if(top.isIE)$canvas.width(parseInt(E.width())-topTaskBarHeight+1);else $canvas.width(parseInt(E.width())-topTaskBarHeight-1)}top.Desktop.resize();top.WatCore.call(D,F,C)};DxDesktopLeftTaskBar.button1click=function(E,G,D){var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),A=top.E_getObject(E,G,B),F=$("#leftTaskBar"),_=$("#"+G+"_leftBar",A);$canvas=$("#"+G+"_canvas",A);$button1=$("#"+G+"_button1",A);if(D==null){if($canvas.css("display")=="block"){$canvas.css("display","none");F.width(topTaskBarHeight+1);$button1.attr("title","\u5c55\u5f00")}else{$canvas.css("display","block");F.width("225px");$button1.attr("title","\u6298\u53e0");if(top.isIE)$canvas.width(parseInt(F.width())-topTaskBarHeight+1);else $canvas.width(parseInt(F.width())-topTaskBarHeight-1)}}else if(D=="none"){$canvas.css("display","none");F.width(topTaskBarHeight+1);$button1.attr("title","\u5c55\u5f00")}else{$canvas.css("display","block");F.width("225px");$button1.attr("title","\u6298\u53e0");if(top.isIE)$canvas.width(parseInt(F.width())-topTaskBarHeight+1);else $canvas.width(parseInt(F.width())-topTaskBarHeight-1)}top.Desktop.resize()};DxDesktopLeftTaskBar.leftButton=function(E,G,F,_,C){var D=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,D),B=top.E_getObject(E,G,C),A=$("#"+G+"_leftbuttoncanvas");if(A.get(0)!=null){A.html("");if(F!="0")A.html(_)}};DxDesktopLeftTaskBar.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="leftbutton")DxDesktopLeftTaskBar.leftButton($,B,E[0],E[1],G);break;case top.DC.EXPANDED:top.DxDesktopLeftTaskBar.button1click($,B,H);break;default:break}}};function DxFunctionPanel(){}DxFunctionPanel.init=function(G,I,B,A,H,_,J,D){var F=top.E_clientModel.E_getWindow(G),E=WatCore.getWindowDoc(G,F),C=top.E_getObject(G,I,E);C.dataDom=top.WatCore.createXmlDom("<functions/>");C.changeDom=top.WatCore.createXmlDom("<functions/>");C.fwidth=B;C.fheight=A;C.iwidth=H;C.iheight=_;C.bkcolor=J;C.ptop=D;C.fmargin=2;C.strWinId=G;C.strCtrId=I;C.panelend=true;$(C).unbind("mousedown");$(C).bind("mousedown",G,function($){top.DxFunctionPanel.mousedown(C,$)});$(C).unbind("resize");$(C).bind("resize",G,function($){top.DxFunctionPanel.changeSize(C,G,I)});top.DxFunctionPanel.changeSize(C,G,I)};DxFunctionPanel.mousedown=function(G,B){var D=G.strWinId,F=G.strCtrId,A=EventUtil.getEvent(B),C=EventUtil.getTarget(B),_=DxFunctionPanel.getFunctionButton(C);if(_!=null){var E=$(_).attr("functionid");if(E!=null){DxFunctionPanel.doClick(D,F,E);EventUtil.stopPropagation(B)}}};DxFunctionPanel.getFunctionButton=function(A){var B=A,_=null;if($(B).attr("isButton")=="true"){_=B;return _}while(!B.panelend&&$(B).attr("isButton")!="true"){B=B.parentElement;if($(B).attr("isButton")=="true"){_=B;break}if(B.panelend)break}return _};DxFunctionPanel.createActionFunction=function(B,F,N,O,E,H){var M=N.fwidth,K=N.fheight,D=N.iwidth,_=N.iheight,G=N.bkcolor,I=parseInt(K/3),C=I*2,A=20,P=parseInt((C-20)/2);if(P<0)P=0;var J=parseInt((I-_)/2);if(J<0)J=0;J+=P;var L="<div onmouseover='top.DxFunctionPanel.mouseover(this);' isButton='true' functionid='"+O+"' onmouseout='top.DxFunctionPanel.mouseout(this,\""+G+"\");' style='cursor:default;background:"+G+";width:"+M+"px;height:"+K+"px;float:left;margin:2px;' title='"+H+"'>";L+="<div style='width:"+M+"px;height:"+C+"px;text-align:center;line-height:"+C+"px;'><img style='position:relative;top:"+J+"px;width:"+D+"px;height:"+_+"px;' src='"+E+"'></img></div>";if(top.isIE)L+=" <div style='width:"+M+"px;padding-left:5px;padding-right:5px;height:"+I+"px;font-size:14px;text-align:center;font-family:Sans-Serif;cursor:default;line-height:"+A+"px;'>"+H+"</div></div>";else L+=" <div style='width:"+M+"px;height:"+I+"px;font-size:14px;text-align:center;font-family:Sans-Serif;cursor:default;line-height:"+A+"px;'>"+H+"</div></div>";$(N).append(L)};DxFunctionPanel.mouseover=function(_){$(_).css("background","#C9DFF4")};DxFunctionPanel.mouseout=function(A,_){$(A).css("background",_)};DxFunctionPanel.changeSize=function(D,H,J){var G=$(D),F=parseInt($(D.parentElement.parentElement.parentElement).width()),C=parseInt(D.fwidth),B=parseInt(D.fheight),_=parseInt(D.fmargin),A=parseInt(F/(C+2*_)),E=(C+2*_)*A,I=parseInt((F-E)/2);if(!top.isIE&&E>0)G.width(E);G.css("padding-left",I);G.css("padding-right",I);G.css("padding-top",D.ptop)};DxFunctionPanel.clearFunction=function(_){$(_).html("")};DxFunctionPanel.updateData=function(C,D,B,$){var J=top.E_clientModel.E_getWindow(C),I=B.getElementById(D);if(top.isIE)I.dataDom.loadXML($);else I.dataDom=WatCore.createXmlDom($);var G=I.dataDom.documentElement,_=G.selectNodes("function");DxFunctionPanel.clearFunction(I);for(var E=0;E<_.length;E++){var H=_[E],K=H.getAttribute("functionid"),A=H.getAttribute("icon"),F=H.getAttribute("title");DxFunctionPanel.createActionFunction(C,D,I,K,A,F)}};DxFunctionPanel.doClick=function($,A,_,B){WatCore.setParameter($,A,top.DC.TEXT,_);WatCore.call($,A,"action")};DxFunctionPanel.render=function(C,B,_){var D=_.getAttribute("cid"),$=_.selectNodes("*");for(var F=0;F<$.length;F++){var E=$[F].nodeName;E=E.substring(1,E.length);var A=top.isIE?$[F].text:$[F].textContent;switch(E){case top.DC.UPDATE_DATA:DxFunctionPanel.updateData(C,D,B,A);break;case top.DC.CSSNAME:top.E_getObject(C,D,B).className=A;break;case top.DC.WIDTH:top.E_getObject(C,D,B).style.width=A;break;case top.DC.HEIGHT:top.E_getObject(C,D,B).style.height=A;break;case top.DC.BORDERSTYLE:top.E_getObject(C,D,B).style.borderStyle=A;break;case top.DC.BORDERWIDTH:top.E_getObject(C,D,B).style.borderWidth=A;break;case top.DC.BORDERCOLOR:top.E_getObject(C,D,B).style.borderColor=A;break;case top.DC.X:top.E_getObject(C,"E_SW_"+D,B).style.left=A;break;case top.DC.Y:top.E_getObject(C,"E_SW_"+D,B).style.top=A;break;case top.DC.ENABLED:DxFunctionPanel.setEnabled(C,D,B,A);break;case top.DC.BACKGROUND:top.E_getObject(C,D,B).style.backgroundColor=A;break;case top.DC.FOREGROUND:top.E_getObject(C,D,B).style.color=A;break;default:break}}};function DxDcReader(){}DxDcReader.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"reader' CLASSID=\"CLSID:9A1F58C7-3963-49A1-ABB1-9131EDA111E6\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxDcReader.iReadSIEF05=function(D,F,C){var B=top.E_getObject(D,F,C);try{var E=$("#"+F+"reader",B).get(0);if(E!=null){var _=E.iReadSIEF05();if(_==0){WatCore.setParameter(D,F,top.DC.TEXT,E.pOutInfo);WatCore.sendACallToChart(D,F,"iReadSIEF05")}else alert("\u8bfb\u5361\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(A){alert(A.message)}};DxDcReader.iReadSIEF06=function(D,F,C){var B=top.E_getObject(D,F,C);try{var E=$("#"+F+"reader",B).get(0);if(E!=null){var _=E.iReadSIEF06();if(_==0){WatCore.setParameter(D,F,top.DC.TEXT,E.pOutInfo);WatCore.sendACallToChart(D,F,"iReadSIEF06")}else alert("\u8bfb\u5361\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(A){alert(A.message)}};DxDcReader.iReadWSEF05=function(D,F,C){var B=top.E_getObject(D,F,C);try{var E=$("#"+F+"reader",B).get(0);if(E!=null){var _=E.iReadWSEF05();if(_==0){WatCore.setParameter(D,F,top.DC.TEXT,E.pOutInfo);WatCore.sendACallToChart(D,F,"iReadWSEF05")}else alert("\u8bfb\u5361\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(A){alert(A.message)}};DxDcReader.iReadWSEF06=function(D,F,C){var B=top.E_getObject(D,F,C);try{var E=$("#"+F+"reader",B).get(0);if(E!=null){var _=E.iReadWSEF06();if(_==0){WatCore.setParameter(D,F,top.DC.TEXT,E.pOutInfo);WatCore.sendACallToChart(D,F,"iReadWSEF06")}else alert("\u8bfb\u5361\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(A){alert(A.message)}};DxDcReader.iReadMagCard=function(D,F,C){var B=top.E_getObject(D,F,C);try{var E=$("#"+F+"reader",B).get(0);if(E!=null){var _=E.iReadMagCard();if(_==0){WatCore.setParameter(D,F,top.DC.TEXT,E.pOutInfo);WatCore.sendACallToChart(D,F,"iReadMagCard")}else alert("\u8bfb\u5361\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(A){alert(A.message)}};DxDcReader.iReadPbocNo=function(D,F,C){var B=top.E_getObject(D,F,C);try{var E=$("#"+F+"reader",B).get(0);if(E!=null){var _=E.iReadPbocNo();if(_==0){WatCore.setParameter(D,F,top.DC.TEXT,E.pOutInfo);WatCore.sendACallToChart(D,F,"iReadPbocNo")}else alert("\u8bfb\u5361\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(A){alert(A.message)}};DxDcReader.iReadIdentityCard=function(D,G,B,C){var A=top.E_getObject(D,G,B);try{var E=$("#"+G+"reader",A).get(0);if(E!=null){var F=E.iReadIdentityCard(C);if(F==0){WatCore.setParameter(D,G,top.DC.TEXT,E.pOutInfo);WatCore.sendACallToChart(D,G,"iReadIdentityCard")}else alert("\u8bfb\u5361\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxDcReader.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="iReadSIEF05")top.DxDcReader.iReadSIEF05($,B,H);else if(K=="iReadSIEF06")top.DxDcReader.iReadSIEF06($,B,H);else if(K=="iReadWSEF05")top.DxDcReader.iReadWSEF05($,B,H);else if(K=="iReadWSEF06")top.DxDcReader.iReadWSEF06($,B,H);else if(K=="iReadMagCard")top.DxDcReader.iReadMagCard($,B,H);else if(K=="iReadPbocNo")top.DxDcReader.iReadPbocNo($,B,H);else if(K=="iReadIdentityCard")top.DxDcReader.iReadIdentityCard($,B,H,E[0]);break;default:break}}};function DxLaoshanyb(){}DxLaoshanyb.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"laoshanyb' codebase='./WandaPro.ocx#version=1,0,0,0' CLASSID=\"clsid:A2C337FC-CC69-493B-B6D2-1B0175DABBE0\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxLaoshanyb.CSendRcv=function(C,G,B,E){var A=top.E_getObject(C,G,B);try{var D=$("#"+G+"laoshanyb",A).get(0);if(D!=null){var F=D.SendRcvCall(E);WatCore.setParameter(C,G,top.DC.TEXT,F);WatCore.sendACallToChart(C,G,"CSendRcv")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxLaoshanyb.CReadCard=function(C,G,B,E,H){var A=top.E_getObject(C,G,B);try{var D=$("#"+G+"laoshanyb",A).get(0);if(D!=null){var F=D.CReadCard(E,H);WatCore.setParameter(C,G,top.DC.TEXT,F);WatCore.sendACallToChart(C,G,"CReadCard")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxLaoshanyb.CReadYdCard=function(C,G,B,E,H){var A=top.E_getObject(C,G,B);try{var D=$("#"+G+"laoshanyb",A).get(0);if(D!=null){var F=D.CReadYdCard(E,H);WatCore.setParameter(C,G,top.DC.TEXT,F);WatCore.sendACallToChart(C,G,"CReadYdCard")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxLaoshanyb.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="CSendRcv")top.DxLaoshanyb.CSendRcv($,B,H,E[0],E[1]);else if(K=="CReadCard")top.DxLaoshanyb.CReadCard($,B,H,E[0],E[1]);else if(K=="CReadYdCard")top.DxLaoshanyb.CReadYdCard($,B,H,E[0],E[1]);break;default:break}}};function DxLaoshanyb2(){}DxLaoshanyb2.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"laoshanyb2' codebase='./WandaProProj1.ocx#version=1,0,0,0' CLASSID=\"clsid:E4944F93-BF40-4BEC-985D-1CCD3A8A48C3\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxLaoshanyb2.CYBTS=function(C,G,B,E){var A=top.E_getObject(C,G,B);try{var D=$("#"+G+"laoshanyb2",A).get(0);if(D!=null){var F=D.CYBTS(E);WatCore.setParameter(C,G,top.DC.TEXT,F);WatCore.sendACallToChart(C,G,"CYBTS")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxLaoshanyb2.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="CYBTS")top.DxLaoshanyb2.CYBTS($,B,H,E[0]);break;default:break}}};function DxBoZhouyb(){}DxBoZhouyb.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"tieluyb' codebase='./ZunYiOcx.ocx#version=1,0,0,0' CLASSID=\"clsid:DCA2C47D-7B3A-4481-8661-0A8C38E8B28E\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxBoZhouyb.fun_conn2=function(F,H,D,E,A,_){var C=top.E_getObject(F,H,D);try{var G=$("#"+H+"tieluyb",C).get(0);if(G!=null){G.Fun_Conn(E,A,_);WatCore.setParameter(F,H,top.DC.TEXT,"");WatCore.sendACallToChart(F,H,"fun_conn2")}else alert("\u63a7\u4ef6\u4e3anull")}catch(B){alert(B.message)}};DxBoZhouyb.fun_Select=function(D,G,C,A){var B=top.E_getObject(D,G,C);try{var E=$("#"+G+"tieluyb",B).get(0);if(E!=null){var F=E.Fun_Select(A);WatCore.setParameter(D,G,top.DC.TEXT,F);WatCore.sendACallToChart(D,G,"fun_Select")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxBoZhouyb.fun_Update=function(D,F,C,A){var B=top.E_getObject(D,F,C);try{var E=$("#"+F+"tieluyb",B).get(0);if(E!=null){E.Fun_Update(A);WatCore.setParameter(D,F,top.DC.TEXT,"");WatCore.sendACallToChart(D,F,"fun_Update")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxBoZhouyb.fun_array=function(D,F,C,A){var B=top.E_getObject(D,F,C);try{var E=$("#"+F+"tieluyb",B).get(0);if(E!=null){E.Fun_InsertArray(A);WatCore.setParameter(D,F,top.DC.TEXT,"");WatCore.sendACallToChart(D,F,"fun_array")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxBoZhouyb.fun_array2=function(E,G,D,A){var B=top.E_getObject(E,G,D);try{var F=$("#"+G+"tieluyb",B).get(0);if(F!=null){var C=F.Fun_InsertArray2(A);WatCore.setParameter(E,G,top.DC.TEXT,C);WatCore.sendACallToChart(E,G,"fun_array2")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxBoZhouyb.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="fun_conn2")top.DxBoZhouyb.fun_conn2($,B,H,E[0],E[1],E[2]);else if(K=="fun_Select")top.DxBoZhouyb.fun_Select($,B,H,E[0]);else if(K=="fun_Update")top.DxBoZhouyb.fun_Update($,B,H,E[0]);else if(K=="fun_array")top.DxBoZhouyb.fun_array($,B,H,E[0]);else if(K=="fun_array2")top.DxBoZhouyb.fun_array2($,B,H,E[0]);break;default:break}}};function DxSxsscard(){}DxSxsscard.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"laoshanyb' codebase='./sxsscard.dll' CLASSID=\"clsid:1AE6155C-D1F0-4FF8-8E4F-5D51EF455CF5\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxSxsscard.readcardbas=function(G,K,F){var P=top.E_getObject(G,K,F);try{var T=$("#"+K+"laoshanyb",P).get(0);if(T!=null){var J,L,D,C,H,_,S,M,O,E,B,R,U,N,Q;if(T.readcardbas(3,"1",C,B,O,L,E,H,_,N,R,U,Q,J)){var I=T.v01+"&"+T.v02+"&"+T.v03+"&"+T.v04+"&"+T.v05+"&"+T.v06+"&"+T.v07+"&"+T.v08+"&"+T.v09+"&"+T.v10+"&"+T.v11;WatCore.setParameter(G,K,top.DC.TEXT,I);WatCore.sendACallToChart(G,K,"readcardbas")}else alert(T.errormsg)}else alert("\u63a7\u4ef6\u4e3anull")}catch(A){alert(A.message)}};DxSxsscard.readlast4=function(D,H,C){var B=top.E_getObject(D,H,C);try{var E=$("#"+H+"laoshanyb",B).get(0);if(E!=null){var _,G;if(E.readLast4(3,_,G)){var F=E.v01;WatCore.setParameter(D,H,top.DC.TEXT,F);WatCore.sendACallToChart(D,H,"readlast4")}else alert(E.errormsg)}else alert("\u63a7\u4ef6\u4e3anull")}catch(A){alert(A.message)}};DxSxsscard.readmagcard=function(D,I,B,H){var A=top.E_getObject(D,I,B);try{var E=$("#"+I+"laoshanyb",A).get(0);if(E!=null){var C,G;if(E.readmagcard(H,C,G)){var F=E.v01;WatCore.setParameter(D,I,top.DC.TEXT,F);WatCore.sendACallToChart(D,I,"readmagcard")}else alert("\u8bfb\u78c1\u6761\u5361\u9519\u8bef\uff1a"+E.errormsg)}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxSxsscard.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="readcardbas")top.DxSxsscard.readcardbas($,B,H);else if(K=="readlast4")top.DxSxsscard.readlast4($,B,H);else if(K=="readmagcard")top.DxSxsscard.readmagcard($,B,H,E[0]);break;default:break}}};function DxPanelBar(){}DxPanelBar.initUI=function(A,C){var B=top.E_clientModel.E_getWindow(A),_=WatCore.getWindowDoc(A,B),$=top.E_getObject(A,C,_)};DxPanelBar.changeSize=function(F){var D=F.style.width,C=F.style.height,$=F.getAttribute("widthunit"),_=F.getAttribute("heightunit"),B=F.clientWidth,A=F.clientHeight;if($=="%"||_=="%"){var E=top.WatCore.getClientRect(F);if($=="%"){B=E.w;F.style.width=B+"px"}if(_=="%"){A=E.h;F.style.height=A+"px"}}};DxPanelBar.processclick=function(D,G,F,H){var E=top.E_clientModel.E_getWindow(D),C=WatCore.getWindowDoc(D,E),A=top.E_getObject(D,G,C),_=$(A).attr("mutex");if(_=="true"){var B=A.oldSelect;if(B!=null&&$(B).attr("id")!=$(H).attr("id")){$(H).attr("obkcolor","#3399FF");$(H).css("background","#3399FF");$(B).attr("obkcolor",$(A).css("background"));$(B).css("background",""+$(B).attr("obkcolor"))}else $(H).css("background","#3399FF");A.oldSelect=H}top.WatCore.call(D,G,F,event)};DxPanelBar.processPageMouseOver=function(C){$(C).css({"color":"white","background":"#3399FF"});var _=$(C).attr("id"),B=$("#"+_+"_image",C);B.attr("src",B.attr("wimg"));var A=$("#"+_+"_down_image",C);if(A.get(0)!=null)A.attr("src",A.attr("wimg"))};DxPanelBar.processPageMouseOut=function(C){$(C).css({"color":""+$(C).attr("ocolor")+"","background":""+$(C).attr("obkcolor")+""});var _=$(C).attr("id"),B=$("#"+_+"_image",C);B.attr("src",B.attr("img"));var A=$("#"+_+"_down_image",C);if(A.get(0)!=null)A.attr("src",A.attr("img"))};DxPanelBar.showlist=function(E,I,R){var B=$("#"+I+"list",R.parentElement),A=$("#DxPanelBar_list");if(A.get(0)==null)return;var N=A.attr("sourceid");if(A.css("display")=="none"){var O=top.E_clientModel.E_getWindow(E),F=WatCore.getWindowDoc(E,O),M=B.width(),G=$(R).width();if(G<M)G=M;var K=$(R).height();A.html(B.html());var D=$(R).offset();A.attr("sourceid",I);var H=parseInt(F.body.offsetHeight||F.documentElement.offsetHeight),C=A.height(),L=O.isiframe,_=0,J=0;if(E!=top.DESKTOP&&L=="true"){var Q=$(O).offset();_=parseInt(Q.left);J=parseInt(Q.top);if(!top.isIE)J-=2}if(D.top+J+K+C+10>H){var P=D.top+J+K-C-K;A.css({"left":(D.left+_),"top":P,"width":G})}else A.css({"left":(D.left+_),"top":(D.top+J+K),"width":G});A.slideDown("fast");$timeimagelistobj=A}else{A.css("display","none");$timeimagelistobj=null;A.attr("sourceid",I);if(N!=I)DxPanelBar.showlist(E,I,R)}};DxPanelBar._listclick=function(F,H,I,E,G,B){if($timeimagelistobj!=null){$timeimagelistobj.css("display","none");$timeimagelistobj=null;var D=top.E_clientModel.E_getWindow(F),C=WatCore.getWindowDoc(F,D),A=top.E_getObject(F,H,C),_=$("#"+G,A).get(0);DxPanelBar.processclick(F,H,E,_)}};DxPanelBar.createMenuItems=function(A,C,H,B,M){var _=$("#"+B,H),I=M.split(","),G="";for(var D=0;D<I.length;D++){var J=I[D],F=J.split(":"),L,K,E;if(F.length>=1)L=F[0];if(F.length>=2)K=F[1];if(F.length>=3)E=F[2];if(D<I.length-1)G+="<div onmouseover=\"top.DxPanelBar._listmouseIn('"+A+"','"+C+"',this)\" onmouseout=\"top.DxPanelBar._listmouseOut('"+A+"','"+C+"',this)\" onclick=\"top.DxPanelBar._listclick('"+A+"','"+C+"',this,'panelbutton&"+L+"','"+B+"',event);event.cancelBubble = true;return false;\" class=\"DxPanelBar_listdetail\" style=\"z-index:1000;;color: #000;font: 13px arial;height:38px;line-height:38px;padding-left:0px;position: relative;margin-left:0px;cursor: default;\">"+K+"</div>";else G+="<div onmouseover=\"top.DxPanelBar._listmouseIn('"+A+"','"+C+"',this)\" onmouseout=\"top.DxPanelBar._listmouseOut('"+A+"','"+C+"',this)\" onclick=\"top.DxPanelBar._listclick('"+A+"','"+C+"',this,'panelbutton&"+L+"','"+B+"',event);event.cancelBubble = true;return false;\" class=\"DxPanelBar_lastlistdetail\" style=\"z-index:1000;;color: #000;font: 13px arial;height:38px;line-height:38px;padding-left:0px;position: relative;margin-left:0px;cursor: default;\">"+K+"</div>"}_.html(G)};DxPanelBar._listmouseIn=function(_,A,B){$(B).css({"background":"#3399FF","color":"#FFFFFF"})};DxPanelBar._listmouseOut=function(_,A,B){$(B).css({"background":"#FFFFFF","color":"#000"})};DxPanelBar.selectButton=function(E,H,G){var F=top.E_clientModel.E_getWindow(E),D=WatCore.getWindowDoc(E,F),A=top.E_getObject(E,H,D),_=$(A).attr("mutex");if(_=="true"){var B=A.oldSelect,C=$("#"+H+"_"+G,A);if(B!=null&&$(B).attr("id")!=C.attr("id")){C.attr("obkcolor","#3399FF");C.css("background","#3399FF");$(B).attr("obkcolor",$(A).css("background"));$(B).css("background",""+$(B).attr("obkcolor"))}else{C.attr("obkcolor","#3399FF");C.css("background","#3399FF")}A.oldSelect=C.get(0)}};DxPanelBar.render=function(_,J,I){var D=I.getAttribute("cid"),A=I.selectNodes("*");for(var F=0;F<A.length;F++){var E=A[F].nodeName;E=E.substring(1,E.length);var K=top.isIE?A[F].text:A[F].textContent,C=E.lastIndexOf("_"),L=E,M;if(C>-1){E=L.substring(0,C);M=L.substring(C+1,L.length)}switch(E){case top.DC.HEADPAGEBUTTON_VISIBLE:var H=top.E_getObject(_,D,J),G=K.split("@wat@"),N=$("#"+G[0],H);if(G[1]=="true")N.css({"visibility":"visible","display":"block"});else N.css({"visibility":"hidden","display":"none"});break;case top.DC.HEADPAGEBUTTON_WIDTH:H=top.E_getObject(_,D,J),G=K.split("@wat@"),N=$("#"+G[0],H);N.css("width",G[1]);break;case top.DC.HEADPAGEBUTTON_TEXT:H=top.E_getObject(_,D,J),G=K.split("@wat@"),N=$("#"+G[0],H);N.attr({"title":G[1],"tip":G[1]});$text=$("#"+G[0]+"_text",N);$text.text(G[1]);if($("img",N).get(0)!=null)$text.css({"float":"left","margin-left":"2px"});break;case top.DC.HEADPAGEBUTTON_LEFT:var H=top.E_getObject(_,D,J),G=K.split("@wat@"),B=$("#"+G[0],H);B.css({"left":G[1]});break;case top.DC.WIDTH:top.E_getObject(_,D,J).style.width=K;top.E_getObject(_,"E_SW_"+D,J).style.width=K;break;case top.DC.HEIGHT:top.E_getObject(_,D,J).style.height=K;top.E_getObject(_,"E_SW_"+D,J).style.height=K;break;case top.DC.VISIBLE:top.E_getObject(_,"E_SW_"+D,J).style.visibility=K;break;case top.DC.BORDERSTYLE:top.E_getObject(_,D,J).style.borderStyle=K;break;case top.DC.BORDERWIDTH:top.E_getObject(_,D,J).style.borderWidth=K;break;case top.DC.BORDERCOLOR:top.E_getObject(_,D,J).style.borderColor=K;break;case top.DC.X:top.E_getObject(_,"E_SW_"+D,J).style.left=K;break;case top.DC.Y:top.E_getObject(_,"E_SW_"+D,J).style.top=K;break;case top.DC.ENABLED:if(K=="true")top.E_getObject(_,D,J).disabled=false;else top.E_getObject(_,D,J).disabled=true;break;case top.DC.BACKGROUND:top.E_getObject(_,D,J).style.backgroundColor=K;break;case top.DC.FOREGROUND:top.E_getObject(_,D,J).style.color=K;break;case top.DC.DISPLAY:H=top.E_getObject(_,"E_SW_"+D,J);if(K=="true"){H.style.visibility="visible";H.style.display="block"}else{H.style.visibility="hidden";H.style.display="none"}break;case top.DC.UPDATE_MENU_DATA:H=top.E_getObject(_,D,J),G=K.split("@wat@");DxPanelBar.createMenuItems(_,D,H,G[0],G[1]);break;case top.DC.SELECTED:DxPanelBar.selectButton(_,D,K);break;default:break}}};function DxTieluyb(){}DxTieluyb.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"tieluyb' codebase='./TlyyProj.ocx#version=1,0,0,0' CLASSID=\"clsid:BCAD352D-837D-4A46-A8D6-5BB1BB41C0F2\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxTieluyb.Fwr_INIT=function(D,G,B){var A=top.E_getObject(D,G,B);try{var E=$("#"+G+"tieluyb",A);if(E!=null){var C,F=E.DLLINIT(C);if(F==0){WatCore.setParameter(D,G,top.DC.TEXT,F);WatCore.sendACallToChart(D,G,"fwr_init")}else alert("\u63a7\u4ef6\u521d\u59cb\u5316\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_XG=function(D,G,B,C){var A=top.E_getObject(D,G,B);try{var E=$("#"+G+"tieluyb",A);if(E!=null)var F=E.ICXGMM(C);else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_ICLOST=function(D,G,B,C){var A=top.E_getObject(D,G,B);try{var E=$("#"+G+"tieluyb",A);if(E!=null){var F=E.IClost(C);if(F==0){WatCore.setParameter(D,G,top.DC.TEXT,C);WatCore.sendACallToChart(D,G,"fwr_iclost")}else alert("IC\u5361\u6302\u5931\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_ReadIC=function(C,F,B){var A=top.E_getObject(C,F,B);try{var D=$("#"+F+"tieluyb",A);if(D!=null){var E=D.ReadIC();WatCore.setParameter(C,F,top.DC.TEXT,E);WatCore.sendACallToChart(C,F,"fwr_readic")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_MNDK=function(D,G,B,C){var A=top.E_getObject(D,G,B);try{var E=$("#"+G+"tieluyb",A);if(E!=null){var F=E.RiCard(C);if(F==0){WatCore.setParameter(D,G,top.DC.TEXT,as_str2);WatCore.sendACallToChart(D,G,"fwr_mndk")}else alert("\u6a21\u62df\u8bfbIC\u5361\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_COMMENT=function(C,F,B){var A=top.E_getObject(C,F,B);try{var D=$("#"+F+"tieluyb",A);if(D!=null){var E=D.commit();if(E==0){WatCore.setParameter(C,F,top.DC.TEXT,E);WatCore.sendACallToChart(C,F,"fwr_comment")}else alert("\u63d0\u4ea4\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_ROLLBACK=function(C,F,B){var A=top.E_getObject(C,F,B);try{var D=$("#"+F+"tieluyb",A);if(D!=null){var E=D.rollback();if(E==0){WatCore.setParameter(C,F,top.DC.TEXT,E);WatCore.sendACallToChart(C,F,"fwr_rollback")}else alert("\u56de\u6eda\u5931\u8d25")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_MZSF1=function(D,G,B,C){var A=top.E_getObject(D,G,B);try{var E=$("#"+G+"tieluyb",A);if(E!=null){var F=E.MZSF1(C);WatCore.setParameter(D,G,top.DC.TEXT,F);WatCore.sendACallToChart(D,G,"fwr_mzsf1")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_MZJS1=function(D,G,B,C){var A=top.E_getObject(D,G,B);try{var E=$("#"+G+"tieluyb",A);if(E!=null){var F=E.MZJS1(C);WatCore.setParameter(D,G,top.DC.TEXT,F);WatCore.sendACallToChart(D,G,"fwr_mzjs1")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_MZYJS1=function(D,G,B,C){var A=top.E_getObject(D,G,B);try{var E=$("#"+G+"tieluyb",A);if(E!=null){var F=E.MZYJS1(C);WatCore.setParameter(D,G,top.DC.TEXT,F);WatCore.sendACallToChart(D,G,"fwr_mzyjs1")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_TreatInfoEntry=function(D,G,B,C){var A=top.E_getObject(D,G,B);try{var E=$("#"+G+"tieluyb",A);if(E!=null){var F=E.TreatInfoEntry(C);WatCore.setParameter(D,G,top.DC.TEXT,F);WatCore.sendACallToChart(D,G,"fwr_treatinfoentry")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_FormularyEntry1=function(D,G,B,C){var A=top.E_getObject(D,G,B);try{var E=$("#"+G+"tieluyb",A);if(E!=null){var F=E.FormularyEntry1(C);WatCore.setParameter(D,G,top.DC.TEXT,F);WatCore.sendACallToChart(D,G,"fwr_formularyentry1")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.Fwr_ExpenseCalc1=function(D,G,B,C){var A=top.E_getObject(D,G,B);try{var E=$("#"+G+"tieluyb",A);if(E!=null){var F=E.ExpenseCalc1(C);WatCore.setParameter(D,G,top.DC.TEXT,F);WatCore.sendACallToChart(D,G,"fwr_expensecalc1")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){alert(_.message)}};DxTieluyb.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="Fwr_INIT")top.DxTieluyb.Fwr_INIT($,B,H);else if(K=="Fwr_XG")top.DxTieluyb.Fwr_XG($,B,H,E[0]);else if(K=="Fwr_ICLOST")top.DxTieluyb.Fwr_ICLOST($,B,H,E[0]);else if(K=="Fwr_ReadIC")top.DxTieluyb.Fwr_ReadIC($,B,H);else if(K=="Fwr_MNDK")top.DxTieluyb.Fwr_MNDK($,B,H,E[0]);else if(K=="Fwr_COMMENT")top.DxTieluyb.Fwr_COMMENT($,B,H);else if(K=="Fwr_ROLLBACK")top.DxTieluyb.Fwr_ROLLBACK($,B,H);else if(K=="Fwr_MZSF1")top.DxTieluyb.Fwr_MZSF1($,B,H,E[0]);else if(K=="Fwr_MZJS1")top.DxTieluyb.Fwr_MZJS1($,B,H,E[0]);else if(K=="Fwr_MZYJS1")top.DxTieluyb.Fwr_MZYJS1($,B,H,E[0]);else if(K=="Fwr_TreatInfoEntry")top.DxTieluyb.Fwr_TreatInfoEntry($,B,H,E[0]);else if(K=="Fwr_FormularyEntry1")top.DxTieluyb.Fwr_FormularyEntry1($,B,H,E[0]);else if(K=="Fwr_ExpenseCalc1")top.DxTieluyb.Fwr_ExpenseCalc1($,B,H,E[0]);break;default:break}}};function DxHttpPostAction(){}DxHttpPostAction.postAction=function(C,G,F){var K=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,K),I=top.E_getObject(C,G,B),N,L=$(I).attr("posturl");if(L==""||L==undefined){alert("\u8bf7\u6c42\u5730\u5740\u4e3a\u7a7a");return}var _=$(I).attr("header"),J=WatCore.getXMLHttp();J.open("post",L,true);var M=_.split("|");if(top.isIE||true){for(var H=0;H<M.length;H++){var A=M[H].split("@wat@");J.setRequestHeader(A[0],A[1])}}else{var E="",D="";for(H=0;H<M.length;H++){A=M[H].split(":");if(H==0){E=A[0];D=A[1]}else D+=";"+A[0]+"="+A[1]}J.setRequestHeader(E,D)}J.onreadystatechange=function(){if(J.readyState==4)if(J.status==200){var $=J.responseText;$=$.replaceAll("[\\x00-\\x08\\x0b-\\x0c\\x0e-\\x1f]"," ");WatCore.setParameter(C,G,top.DC.TEXT,$);WatCore.sendACallToChart(C,G,"click")}else alert("HTTP\u8bf7\u6c42\u9519\u8bef\uff01\u9519\u8bef\u7801\uff1a"+J.status)};J.send(F)};DxHttpPostAction.postHzlzAction=function(C,G,F){var K=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,K),I=top.E_getObject(C,G,B),N,L=$(I).attr("posturl"),_=$(I).attr("header"),J=WatCore.getXMLHttp();J.open("post",L,true);var M=_.split("|");if(top.isIE||true){for(var H=0;H<M.length;H++){var A=M[H].split("@wat@");J.setRequestHeader(A[0],A[1])}}else{var E="",D="";for(H=0;H<M.length;H++){A=M[H].split(":");if(H==0){E=A[0];D=A[1]}else D+=";"+A[0]+"="+A[1]}J.setRequestHeader(E,D)}J.onreadystatechange=function(){if(J.readyState==4)if(J.status==200){var $=J.responseText;$=$.replaceAll("[\\x00-\\x08\\x0b-\\x0c\\x0e-\\x1f]"," ");WatCore.setParameter(C,G,top.DC.TEXT,$);WatCore.sendACallToChart(C,G,"click")}else alert("HTTP\u8bf7\u6c42\u9519\u8bef\uff01\u9519\u8bef\u7801\uff1a"+J.status)};J.send(F)};DxHttpPostAction.render=function(_,E,C){var F=C.getAttribute("cid"),B=C.selectNodes("*");for(var H=0;H<B.length;H++){var G=B[H].nodeName;G=G.substring(1,G.length);var D=top.isIE?B[H].text:B[H].textContent;switch(G){case top.DC.URL:var A=top.E_getObject(_,F,E);$(A).attr("posturl",D);break;case top.DC.PARAMS:DxHttpPostAction.postAction(_,F,D);break;case top.DC.UPDATE_DATA:A=top.E_getObject(_,F,E);$(A).attr("header",D);break;default:break}}};function DxSxsYb(){}DxSxsYb.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<object classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\" "+"codebase=\"http://java.sun.com/update/1.6.0/jinstall-6u10-windows-i586.cab#Version=6,0,0,32\""+"\tWIDTH=\"0\" HEIGHT=\"0\" id=\""+_+"_rd\">"+"\t<PARAM NAME=CODE VALUE=\"com.mic.applet.MICApplet\">"+"\t<PARAM NAME=CODEBASE VALUE=\"./applets\">"+"\t<PARAM NAME=ARCHIVE\tVALUE=\"ojdbc6.jar,mic.jar,jna-4.1.0.jar,gson-2.2.4.jar;\">"+"\t<PARAM NAME=NAME VALUE=\""+_+"_rd\">"+"\t<param name=\"type\" value=\"application/x-java-applet;version=1.6\">"+"\t<param name=\"scriptable\" value=\"false\"> \t\t </object>";A.innerHTML=D}catch($){alert($)}};DxSxsYb.onDischargeRegistration=function(strWinID,strConID,oDoc,params){var charge=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.DischargeRegistration(JSON.stringify(charge));DxSxsYb.processReturn(strWinID,strConID,obj,"dischargeRegistration")}catch(e){alert(e.message)}};DxSxsYb.onDischargeRegistrationOffset=function(strWinID,strConID,oDoc,params){var reg=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.DischargeRegistrationOffset(JSON.stringify(reg));DxSxsYb.processReturn(strWinID,strConID,obj,"dischargeRegistrationOffset")}catch(e){alert(e.message)}};DxSxsYb.onIPDCharge=function(strWinID,strConID,oDoc,params,items){var chargeItems=eval("("+items+")"),charge=eval("("+params+")");charge.chargeItems=chargeItems;var ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.IPDCharge(JSON.stringify(charge));DxSxsYb.processReturn(strWinID,strConID,obj,"iPDCharge")}catch(e){alert(e.message)}};DxSxsYb.onIPDChargeOffset=function(strWinID,strConID,oDoc,params){var charge=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.IPDChargeOffset(JSON.stringify(charge));DxSxsYb.processReturn(strWinID,strConID,obj,"iPDChargeOffset")}catch(e){alert(e.message)}};DxSxsYb.onIPDDoctorAdvice=function(strWinID,strConID,oDoc,params,items){var charge=eval("("+params+")"),chargeItems=eval("("+items+")");charge.chargeItems=chargeItems;var ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.IPDDoctorAdvice(JSON.stringify(charge));DxSxsYb.processReturn(strWinID,strConID,obj,"iPDDoctorAdvice")}catch(e){alert(e.message)}};DxSxsYb.onIPDRegistration=function(strWinID,strConID,oDoc,params){var reg=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.IPDRegistration(JSON.stringify(reg));DxSxsYb.processReturn(strWinID,strConID,obj,"iPDRegistration")}catch(e){alert(e.message)}};DxSxsYb.onIPDRegistrationOffset=function(strWinID,strConID,oDoc,params){var reg=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.IPDRegistrationOffset(JSON.stringify(reg));DxSxsYb.processReturn(strWinID,strConID,obj,"iPDRegistrationOffset")}catch(e){alert(e.message)}};DxSxsYb.onOPDCharge=function(strWinID,strConID,oDoc,params,items){var charge=eval("("+params+")"),chargeItems=eval("("+items+")");charge.chargeItems=chargeItems;var ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.OPDCharge(JSON.stringify(charge));DxSxsYb.processReturn(strWinID,strConID,obj,"oPDCharge")}catch(e){alert(e.message)}};DxSxsYb.onOPDChargeOffset=function(strWinID,strConID,oDoc,params){var charge=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.OPDChargeOffset(JSON.stringify(charge));DxSxsYb.processReturn(strWinID,strConID,obj,"oPDChargeOffset")}catch(e){alert(e.message)}};DxSxsYb.onOPDRegistration=function(strWinID,strConID,oDoc,params){var reg=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.OPDRegistration(JSON.stringify(reg));DxSxsYb.processReturn(strWinID,strConID,obj,"oPDRegistration")}catch(e){alert(e.message)}};DxSxsYb.onOPDRegistrationOffset=function(strWinID,strConID,oDoc,params){var reg=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.OPDRegistrationOffset(JSON.stringify(reg));DxSxsYb.processReturn(strWinID,strConID,obj,"oPDRegistrationOffset")}catch(e){alert(e.message)}};DxSxsYb.onReadCard=function(E,_,B,F){var G=F,A=top.E_getObject(E,_,B),C=B.getElementById(_+"_rd");try{var D=C.readCard(G);DxSxsYb.processReturn(E,_,D,"readCard")}catch($){alert($.message)}};DxSxsYb.onSystemLogin=function(strWinID,strConID,oDoc,params,items){var url=eval("("+params+")"),user=eval("("+items+")");user.url=url;var ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.systemLogin(JSON.stringify(user));DxSxsYb.processReturn(strWinID,strConID,obj,"systemLogin")}catch(e){alert(e.message)}};DxSxsYb.onSystemLogout=function(E,_,B){var A=top.E_getObject(E,_,B),C=B.getElementById(_+"_rd");try{var D=C.systemLogout();DxSxsYb.processReturn(E,_,D,"systemLogout")}catch($){alert($.message)}};DxSxsYb.onHCChargePrint=function(strWinID,strConID,oDoc,params){var aae072=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.HCChargePrint(aae072);DxSxsYb.processReturn(strWinID,strConID,obj,"onHCChargePrint")}catch(e){alert(e.message)}};DxSxsYb.onOPChargeReports=function(strWinID,strConID,oDoc,params){var chargeReport=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.OPChargeReports(JSON.stringify(chargeReport));DxSxsYb.processReturn(strWinID,strConID,obj,"onOPChargeReports")}catch(e){alert(e.message)}};DxSxsYb.onCDOPChargeReports=function(strWinID,strConID,oDoc,params){var chargeReport=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.CDOPChargeReports(JSON.stringify(chargeReport));DxSxsYb.processReturn(strWinID,strConID,obj,"onCDOPChargeReports")}catch(e){alert(e.message)}};DxSxsYb.onGPChargeReports=function(strWinID,strConID,oDoc,params){var chargeReport=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.GPChargeReports(JSON.stringify(chargeReport));DxSxsYb.processReturn(strWinID,strConID,obj,"onGPChargeReports")}catch(e){alert(e.message)}};DxSxsYb.onSettlementAccount=function(strWinID,strConID,oDoc,params){var reconciliation=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.SettlementAccount(JSON.stringify(reconciliation));DxSxsYb.processReturn(strWinID,strConID,obj,"onSettlementAccount")}catch(e){alert(e.message)}};DxSxsYb.onChangeCardPasswrod=function(strWinID,strConID,oDoc,params){var cardData=eval("("+params+")"),ob=top.E_getObject(strWinID,strConID,oDoc),micApplet=oDoc.getElementById(strConID+"_rd");try{var obj=micApplet.ChangeCardPasswrod(JSON.stringify(cardData));DxSxsYb.processReturn(strWinID,strConID,obj,"onChangeCardPasswrod")}catch(e){alert(e.message)}};DxSxsYb.onJZYBInit=function(F,_,C,G){var B=G,A=top.E_getObject(F,_,C),D=C.getElementById(_+"_rd");try{var E=D.userBargaingInit(B);WatCore.setParameter(F,_,top.DC.TEXT,E);WatCore.sendACallToChart(F,_,"onJZYBInit")}catch($){alert($.message)}};DxSxsYb.onJZYBApply=function(F,_,C,G){var B=G,A=top.E_getObject(F,_,C),D=C.getElementById(_+"_rd");try{var E=D.userBargaingApply(B);WatCore.setParameter(F,_,top.DC.TEXT,E);WatCore.sendACallToChart(F,_,"onJZYBApply")}catch($){alert($.message)}};DxSxsYb.onJZYBClose=function(E,_,B){var A=top.E_getObject(E,_,B),C=B.getElementById(_+"_rd");try{var D=C.userBargaingClose();WatCore.setParameter(E,_,top.DC.TEXT,D);WatCore.sendACallToChart(E,_,"onJZYBClose")}catch($){alert($.message)}};DxSxsYb.clear=function(_,$,A){};DxSxsYb.processReturn=function(A,$,_,B){if(!_.head)_=JSON.parse(_);WatCore.setParameter(A,$,top.DC.TEXT,JSON.stringify(_));WatCore.sendACallToChart(A,$,B)};DxSxsYb.pubicybApply=function(E,_,B,F){var A=top.E_getObject(E,_,B),C=B.getElementById(_+"_rd");try{var D=C.pubicybApply(F);DxSxsYb.processReturn(E,_,D,"pubicybApply")}catch($){alert($.message)}};DxSxsYb.render=function(_,E,B){var G=B.getAttribute("cid"),A=B.selectNodes("*");for(var I=0;I<A.length;I++){var H=A[I].nodeName;H=H.substring(1,H.length);var D=top.isIE?A[I].text:A[I].textContent;switch(H){case top.DC.UPDATE_DATA:var $=D.split("$wat$"),F=$[0];if(F=="dischargeRegistration")DxSxsYb.onDischargeRegistration(_,G,E,$[1]);else if(F=="dischargeRegistrationOffset")DxSxsYb.onDischargeRegistrationOffset(_,G,E,$[1]);else if(F=="iPDCharge"){var C=$[1].split("@wat@");DxSxsYb.onIPDCharge(_,G,E,C[0],C[1])}else if(F=="iPDChargeOffset")DxSxsYb.onIPDChargeOffset(_,G,E,$[1]);else if(F=="iPDDoctorAdvice"){C=$[1].split("@wat@");DxSxsYb.onIPDDoctorAdvice(_,G,E,C[0],C[1])}else if(F=="iPDRegistration")DxSxsYb.onIPDRegistration(_,G,E,$[1]);else if(F=="iPDRegistrationOffset")DxSxsYb.onIPDRegistrationOffset(_,G,E,$[1]);else if(F=="oPDCharge"){C=$[1].split("@wat@");DxSxsYb.onOPDCharge(_,G,E,C[0],C[1])}else if(F=="oPDChargeOffset")DxSxsYb.onOPDChargeOffset(_,G,E,$[1]);else if(F=="oPDRegistration")DxSxsYb.onOPDRegistration(_,G,E,$[1]);else if(F=="oPDRegistrationOffset")DxSxsYb.onOPDRegistrationOffset(_,G,E,$[1]);else if(F=="readCard")DxSxsYb.onReadCard(_,G,E,$[1]);else if(F=="systemLogin"){C=$[1].split("@wat@");DxSxsYb.onSystemLogin(_,G,E,C[0],C[1])}else if(F=="systemLogout")DxSxsYb.onSystemLogout(_,G,E,$[1]);else if(F=="onHCChargePrint")DxSxsYb.onHCChargePrint(_,G,E,$[1]);else if(F=="onOPChargeReports")DxSxsYb.onOPChargeReports(_,G,E,$[1]);else if(F=="onCDOPChargeReports")DxSxsYb.onCDOPChargeReports(_,G,E,$[1]);else if(F=="onGPChargeReports")DxSxsYb.onGPChargeReports(_,G,E,$[1]);else if(F=="onSettlementAccount")DxSxsYb.onSettlementAccount(_,G,E,$[1]);else if(F=="onChangeCardPasswrod")DxSxsYb.onChangeCardPasswrod(_,G,E,$[1]);else if(F=="onJZYBInit")DxSxsYb.onJZYBInit(_,G,E,$[1]);else if(F=="onJZYBApply")DxSxsYb.onJZYBApply(_,G,E,$[1]);else if(F=="onJZYBClose")DxSxsYb.onJZYBClose(_,G,E);else if(F=="pubicybApply")DxSxsYb.pubicybApply(_,G,E,$[1]);break;default:break}}};function DxTysyb(){}DxTysyb.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"tysyb' codebase='./TYSYBYHinterfaceProj1.ocx#version=1,0,0,0' CLASSID=\"clsid:C0E7E734-B1B8-4EE5-93BF-01A0A9A14082\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxTysyb.yh_interface_call=function(B,F,A,_,D){var $=top.E_getObject(B,F,A),C=$.ownerDocument.getElementById(F+"tysyb");if(C!=null){_="57";var D="<?xml version=\"1.0\" encoding=\"GBK\" standalone=\"yes\"?><input></input>";alert("astr_jylsh="+_+",astr_jysc_xml="+D);var E=C.yh_interface_call(_,D);alert("ls_str="+E);WatCore.setParameter(B,F,top.DC.TEXT,E);WatCore.sendACallToChart(B,F,"yh_interface_call")}else alert("\u63a7\u4ef6\u4e3anull")};DxTysyb.yh_interface_confirm=function(C,F,B,A,$){var _=top.E_getObject(C,F,B),D=_.ownerDocument.getElementById(F+"tysyb");if(D!=null){var E=D.yh_interface_confirm(A,$);WatCore.setParameter(C,F,top.DC.TEXT,E);WatCore.sendACallToChart(C,F,"yh_interface_confirm")}};DxTysyb.yh_interface_cancel=function(B,E,A,_){var $=top.E_getObject(B,E,A),C=$.ownerDocument.getElementById(E+"tysyb");if(C!=null){var D=C.yh_interface_cancel(_);WatCore.setParameter(B,E,top.DC.TEXT,D);WatCore.sendACallToChart(B,E,"yh_interface_cancel")}};DxTysyb.yh_interface_getuncertaintytrade=function(B,E,A,_){var $=top.E_getObject(B,E,A),C=$.ownerDocument.getElementById(E+"tysyb");if(C!=null){var D=C.yh_interface_getuncertaintytrade(_,"2");WatCore.setParameter(B,E,top.DC.TEXT,D);WatCore.sendACallToChart(B,E,"yh_interface_getuncertaintytrade")}};DxTysyb.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="yh_interface_call")top.DxTysyb.yh_interface_call($,B,H,E[0],E[1]);else if(K=="yh_interface_confirm")top.DxTysyb.yh_interface_confirm($,B,H,E[0],E[1]);else if(K=="yh_interface_cancel")top.DxTysyb.yh_interface_cancel($,B,H,E[0]);else if(K=="yh_interface_getuncertaintytrade")top.DxTysyb.yh_interface_getuncertaintytrade($,B,H,E[0]);break;default:break}}};function DxXzdwOCX(){}DxXzdwOCX.initSystem=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"sei' codeBase='XZDWOCX.CAB#Version=1,0,0,2' width=0 height=0 CLASSID=\"CLSID:94B1E4AA-00FC-4FCA-9CAF-739C35E66577\"></OBJECT>\n";A.innerHTML=_}catch($){}};DxXzdwOCX.resetvar=function(C,D,B){var A=top.E_getObject(C,D,B),$=A.ownerDocument.getElementById(D+"sei");if($!=null){var _=$.resetvar();if(_==0){WatCore.setParameter(C,D,top.DC.TEXT,_);WatCore.sendACallToChart(C,D,"action")}else alert(DxXzdwOCX.get_errtext($))}};DxXzdwOCX.putvarstring=function(E,F,C,B,D){var A=top.E_getObject(E,F,C),$=A.ownerDocument.getElementById(F+"sei");if($!=null){var _=$.putvarstring(B,D);if(_==0){WatCore.setParameter(E,F,top.DC.TEXT,_);WatCore.sendACallToChart(E,F,"action")}else alert(DxXzdwOCX.get_errtext($))}};DxXzdwOCX.putvardec=function(E,F,C,B,D){var A=top.E_getObject(E,F,C),$=A.ownerDocument.getElementById(F+"sei");if($!=null){var _=$.putvardec(B,D);if(_==0){WatCore.setParameter(E,F,top.DC.TEXT,_);WatCore.sendACallToChart(E,F,"action")}else alert(DxXzdwOCX.get_errtext($))}};DxXzdwOCX.putvardatetime=function(E,F,C,B,D){var A=top.E_getObject(E,F,C),$=A.ownerDocument.getElementById(F+"sei");if($!=null){var _=$.putvardatetime(B,D);if(_==0){WatCore.setParameter(E,F,top.DC.TEXT,_);WatCore.sendACallToChart(E,F,"action")}else alert(DxXzdwOCX.get_errtext($))}};DxXzdwOCX.request_service=function(C,D,B,E){var A=top.E_getObject(C,D,B),$=A.ownerDocument.getElementById(D+"sei");if($!=null){var _=$.request_service(E);if(_==0){WatCore.setParameter(C,D,top.DC.TEXT,_);WatCore.sendACallToChart(C,D,"action")}else alert(DxXzdwOCX.get_errtext($))}};DxXzdwOCX.getvarstring=function(D,E,C,B){var A=top.E_getObject(D,E,C),$=A.ownerDocument.getElementById(E+"sei");if($!=null){var _=$.getvarstring(B);WatCore.setParameter(D,E,top.DC.TEXT,_);WatCore.sendACallToChart(D,E,"action")}};DxXzdwOCX.getvardec=function(D,E,C,B){var A=top.E_getObject(D,E,C),$=A.ownerDocument.getElementById(E+"sei");if($!=null){var _=$.getvardec(B);WatCore.setParameter(D,E,top.DC.TEXT,_);WatCore.sendACallToChart(D,E,"action")}};DxXzdwOCX.getvardatetime=function(D,E,C,B){var A=top.E_getObject(D,E,C),$=A.ownerDocument.getElementById(E+"sei");if($!=null){var _=$.getvardatetime(B);WatCore.setParameter(D,E,top.DC.TEXT,_);WatCore.sendACallToChart(D,E,"action")}};DxXzdwOCX.get_errtext=function($){var _=$.get_errtext();return _};DxXzdwOCX.init=function($,B,A,_){$.resetvar();$.putvarstring("yybm",B);$.putvarstring("gzrybh",A);$.putvarstring("pwd",_);vi=$.request_service("init");if(vi==-800){alert("\u63a5\u53e3\u9700\u8981\u5347\u7ea7");return false}else if(vi!=0){alert("\u767b\u9646\u5931\u8d25,\u9519\u8bef\u4fe1\u606f\uff1a"+$.get_errtext());return false}return true};DxXzdwOCX.read_card=function($,C,A,_){$.resetvar();$.putvarstring("yltclb",C);$.putvarstring("jymmbz",A);$.putvarstring("readertype",_);if($.request_service("read_card")!=0){alert("\u8c03\u7528\u8bfb\u5361\u670d\u52a1\u5931\u8d25,\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return}var B=new Object();B.sbjgbh=$.getvarstring("sbjgbh");B.rqlb=$.getvarstring("rqlb");B.kh=$.getvarstring("kh");B.grbh=$.getvarstring("grbh");B.xm=$.getvarstring("xm");B.xb=$.getvarstring("xb");B.ye=$.getvardec("ye");B.zfbz=$.getvarstring("zfbz");B.zfsm=$.getvarstring("zfsm");B.dwmc=$.getvarstring("dwmc");B.ylrylb=$.getvarstring("ylrylb");B.ydbz=$.getvarstring("ydbz");B.mzdbjbs=$.getvarstring("mzdbjbs");B.zhzybz=$.getvarstring("zhzybz");B.zhzysm=$.getvarstring("zhzysm");B.zcyymc=$.getvarstring("zcyymc");B.zccyrq=$.getvarstring("zccyrq");B.sfzhm=$.getvarstring("sfzhm");B.csrq=$.getvarstring("csrq");return B};DxXzdwOCX.query_person_info=function($,D,_,C,B){$.resetvar();$.putvarstring("grbh",D);$.putvarstring("xm",_);$.putvarstring("yltclb",C);$.putvarstring("sbjgbh",B);if($.request_service("query_person_info")!=0){alert("\u8c03\u7528\u8bfb\u5361\u670d\u52a1\u5931\u8d25,\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return}var A=new Object();A.grbh=$.getvarstring("grbh");A.sfzhm=$.getvarstring("sfzhm");A.xm=$.getvarstring("xm");A.csrq=$.getvarstring("csrq");A.xb=$.getvarstring("xb");A.zfbz=$.getvarstring("zfbz");A.zfsm=$.getvarstring("zfsm");A.dwmc=$.getvarstring("dwmc");A.ylrylb=$.getvarstring("ylrylb");A.ydbz=$.getvarstring("ydbz");A.mzdbjbs=$.getvarstring("mzdbjbs");A.zhzybz=$.getvarstring("zhzybz");A.zhzysm=$.getvarstring("zhzysm");A.zcyymc=$.getvarstring("zcyymc");A.zccyrq=$.getvarstring("zccyrq");A.yfdxbz=$.getvarstring("yfdxbz");A.yfdxlb=$.getvarstring("yfdxlb");A.rqlb=$.getvarstring("rqlb");return A};DxXzdwOCX.print_dj=function($,A,_){$.resetvar();$.putvarstring("jshid",A);$.putvarstring("djlx",_);vi=$.request_service("print_dj");if(vi!=0){alert("\u6253\u5370\u5355\u636e\u9519\u8bef,\u9519\u8bef\u4fe1\u606f\uff1a"+$.get_errtext());return false}return true};DxXzdwOCX.save_zydj=function(L,B,T,O,C,P,E,A,R,_,U,S,K,N,D,$,M,G,J,H,F,Q,I){L.resetvar();L.putvarstring("blh",B);L.putvarstring("grbh",T);L.putvarstring("kh",O);L.putvarstring("xm",C);L.putvarstring("xb",P);L.putvarstring("yltclb",E);L.putvarstring("yltclbmx",A);L.putvarstring("sbjgbh",R);L.putvarstring("ksbm",_);L.putvardatetime("zyrq",U);L.putvarstring("qzys",S);L.putvarstring("mzks",K);L.putvarstring("zyfs",N);L.putvarstring("xzbz",D);L.putvarstring("jylb",$);L.putvarstring("fj",M);L.putvarstring("cw",G);L.putvarstring("bqsm",J);L.putvarstring("rqlb",H);L.putvarstring("yltcdjh",F);L.putvarstring("jyyybm",Q);L.putvarstring("ryzd",I);vi=L.request_service("save_zydj");if(vi!=0){alert("\u4f4f\u9662\u767b\u8bb0\u9519\u8bef\uff01\u9519\u8bef\u4fe1\u606f:"+L.get_errtext());return}return L.getvarstring("bz")};DxXzdwOCX.init_zy=function($,A){var _=false;$.resetvar();$.putvarstring("blh",A);vi=$.request_service("init_zy");if(vi==0)_=true;else alert("\u4f4f\u9662\u521d\u59cb\u5316\u9519\u8bef\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return _};DxXzdwOCX.print_gzd=function($,A){var _=false;if(DxXzdwOCX.init_zy($,A)){$.resetvar();vi=$.request_service("print_gzd");if(vi!=0){alert("\u6253\u5370\u544a\u77e5\u5355\u51fa\u9519\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return _}_=true}return _};DxXzdwOCX.put_fymx=function(E,_,J,H,$,M,G,I,F,B,K,L,A,D,C){E.resetvar();E.putvarstring("yyxmbm",_);E.putvarstring("yyxmmc",J);E.putvardec("dj",H);E.putvardec("sl",$);E.putvardec("bzsl",M);E.putvardec("zje",G);E.putvarstring("gg",I);E.putvardec("sxzfbl",F);E.putvardatetime("fyfssj",B);E.putvarstring("zxksbm",K);E.putvarstring("kdksbm",L);E.putvarstring("sm",A);E.putvarstring("yzlsh",D);E.putvarstring("sfryxm",C);vi=E.request_service("put_fymx");if(vi!=0){alert("\u5f55\u5165\u8d39\u7528\u5931\u8d25\uff01\u9519\u8bef\u4fe1\u606f:"+E.get_errtext());return false}return true};DxXzdwOCX.save_zy_script=function($,_,B,A){$.resetvar();$.putvarstring("ysbm",_);$.putvardatetime("date",B);vi=$.request_service("save_zy_script");if(vi!=0){alert("\u4fdd\u5b58\u4f4f\u9662\u4fe1\u606f\u51fa\u9519\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return}return $.getvarstring("fyid")};DxXzdwOCX.trans_zy_script=function($,B,A){var _=false;if(DxXzdwOCX.init_zy($,A)){$.resetvar();$.putvarstring("sbjgbh",B);$.putvarstring("blh",A);vi=$.request_service("trans_zy_script");if(vi!=0){alert("\u8d39\u7528\u51ed\u5355\u4e0a\u4f20\u533b\u4fdd\u51fa\u9519\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return _}_=true}return _};DxXzdwOCX.settle_zy=function($,A,_){var B=new Object();if(DxXzdwOCX.init_zy($,A)){$.resetvar();$.putvarstring("jkyjsbz",_);vi=$.request_service("settle_zy");if(vi!=0){alert("\u51fa\u9662\u7ed3\u7b97\u9519\u8bef\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return}if(1==_){B.brfdje=$.getvardec("brfdje");B.ybfdje=$.getvardec("ybfdje");B.ylbzje=$.getvardec("ylbzje");B.grzhzf=$.getvardec("grzhzf");B.dezf=$.getvardec("dezf");B.desybx=$.getvardec("desybx");B.gwybz=$.getvardec("gwybz");B.czlz=$.getvardec("czlz");B.tczf=$.getvardec("tczf");B.qttczf=$.getvardec("qttczf")}else{B.jshid=$.getvarstring("jshid");B.brfdje=$.getvardec("brfdje");B.ybfdje=$.getvardec("ybfdje");B.ylbzje=$.getvardec("ylbzje");B.grzhzf=$.getvardec("grzhzf");B.gwybz=$.getvardec("gwybz");B.czlz=$.getvardec("czlz");B.dezf=$.getvardec("dezf");B.desybx=$.getvardec("desybx");B.tczf=$.getvardec("tczf");B.fph=$.getvarstring("fph");B.brjsrq=$.getvardatetime("brjsrq");B.qtjshid=$.getvarstring("qtjshid")}}return B};DxXzdwOCX.destroy_cy=function($,A){var _=false;if(DxXzdwOCX.init_zy($,A)){$.resetvar();vi=$.request_service("destroy_cy");if(vi!=0){alert("\u64a4\u9500\u51fa\u9662\u9519\u8bef\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return _}_=true}return _};DxXzdwOCX.destroy_zyjs=function($,A,B){var _=false;if(DxXzdwOCX.init_zy($,A)){$.resetvar();$.putvarstring("jshid",B);vi=$.request_service("destroy_zyjs");if(vi!=0){alert("\u64a4\u9500\u4f4f\u9662\u7ed3\u7b97\u9519\u8bef\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return _}_=true}return _};DxXzdwOCX.delete_fypd=function($,A,B){var _=false;if(DxXzdwOCX.init_zy($,A)){$.resetvar();$.putvarstring("fyid",B);vi=$.request_service("delete_fypd");if(vi!=0){alert("\u5220\u9664\u4e00\u6761\u4f4f\u9662\u8d39\u7528\u5931\u8d25\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return _}_=true}return _};DxXzdwOCX.delete_all_fypd=function($,A){var _=false;if(DxXzdwOCX.init_zy($,A)){$.resetvar();vi=$.request_service("delete_all_fypd");if(vi!=0){alert("\u5220\u9664\u4f4f\u9662\u8d39\u7528\u5931\u8d25\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return _}_=true}return _};DxXzdwOCX.destroy_zydj=function($,A){var _=false;if(DxXzdwOCX.init_zy($,A)){$.resetvar();vi=$.request_service("destroy_zydj");if(vi!=0){alert("\u64a4\u9500\u4f4f\u9662\u767b\u8bb0\u9519\u8bef\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return _}_=true}return _};DxXzdwOCX.init_mz=function(G,L,F,E,M,D,I,_,B,H,C,$,A,K){var J=new Object();G.resetvar();G.putvarstring("sbjgbh",L);G.putvarstring("yltclb",F);G.putvarstring("xzbz",E);G.putvarstring("grbh",M);G.putvarstring("xm",D);G.putvarstring("xb",I);G.putvarstring("jbbm",_);G.putvardatetime("fyrq",B);G.putvarstring("kh",H);G.putvarstring("ysbm",C);G.putvarstring("mzlx",$);G.putvarstring("jylb",A);G.putvarstring("jyyybm",K);vi=G.request_service("init_mz");if(vi!=0){alert("\u95e8\u8bca\u521d\u59cb\u5316\u5931\u8d25\uff01\u9519\u8bef\u4fe1\u606f:"+G.get_errtext());return}J.zylsh=G.getvarstring("zylsh");J.jshid=G.getvarstring("jshid");J.fyid=G.getvarstring("fyid");return J};DxXzdwOCX.settle_mz_pre=function($){var _=new Object();$.resetvar();vi=$.request_service("settle_mz_pre");if(vi!=0){alert("\u95e8\u8bca\u9884\u7ed3\u7b97\u5931\u8d25\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return}_.brfdje=$.getvardec("brfdje");_.yyfdje=$.getvardec("yyfdje");_.ybfdje=$.getvardec("ybfdje");_.grzhzf=$.getvardec("grzhzf");_.ylbzje=$.getvardec("ylbzje");_.yltcdjh=$.getvarstring("yltcdjh");_.tjrylb=$.getvarstring("tjrylb");_.fph=$.getvarstring("fph");_.brjsrq=$.getvardatetime("brjsrq");_.zje=$.getvardec("zje");_.fprylb=$.getvarstring("fprylb");_.tczf=$.getvardec("tczf");_.dezf=$.getvardec("dezf");_.desybx=$.getvardec("desybx");_.gwybz=$.getvardec("gwybz");_.czlz=$.getvardec("czlz");_.zhzf=$.getvardec("zhzf");_.yljmje=$.getvardec("yljmje");_.ljtczf=$.getvardec("ljtczf");_.ljdezf=$.getvardec("ljdezf");_.ljmzed=$.getvardec("ljmzed");_.ljfrzf=$.getvardec("ljgrzf");_.qttczf=$.getvardec("qttczf");_.zhye=$.getvardec("zhye");return _};DxXzdwOCX.settle_mz_real=function($){var _=new Object();$.resetvar();vi=$.request_service("settle_mz");if(vi!=0){alert("\u95e8\u8bca\u6b63\u5f0f\u7ed3\u7b97\u5931\u8d25\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return}_.jshid=$.getvarstring("jshid");_.brfdje=$.getvardec("brfdje");_.yyfdje=$.getvardec("yyfdje");_.ybfdje=$.getvardec("ybfdje");_.grzhzf=$.getvardec("grzhzf");_.ylbzje=$.getvardec("ylbzje");_.yltcdjh=$.getvarstring("yltcdjh");_.tjrylb=$.getvarstring("tjrylb");_.fph=$.getvarstring("fph");_.brjsrq=$.getvardatetime("brjsrq");_.zje=$.getvardec("zje");_.fprylb=$.getvarstring("fprylb");_.tczf=$.getvardec("tczf");_.dezf=$.getvardec("dezf");_.desybx=$.getvardec("desybx");_.gwybz=$.getvardec("gwybz");_.czlz=$.getvardec("czlz");_.zhzf=$.getvardec("zhzf");_.yljmje=$.getvardec("yljmje");_.ljtczf=$.getvardec("ljtczf");_.ljdezf=$.getvardec("ljdezf");_.ljmzed=$.getvardec("ljmzed");_.ljfrzf=$.getvardec("ljgrzf");_.qttczf=$.getvardec("qttczf");_.zhye=$.getvardec("zhye");return _};DxXzdwOCX.destroy_mz=function($,A){var _=false;$.resetvar();$.putvarstring("jshid",A);vi=$.request_service("destroy_mz");if(vi!=0){alert("\u64a4\u9500\u95e8\u8bca\u7ed3\u7b97\u5931\u8d25\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return _}_=true;return _};DxXzdwOCX.init_gz=function($){var _=false;$.resetvar();vi=$.request_service("init_gz");if(vi!=0){alert("\u4e2a\u8d26\u521d\u59cb\u5316\u5931\u8d25\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return _}_=true;return _};DxXzdwOCX.settle_gz=function($,B,_){var A=new Object();$.resetvar();$.putvarstring("sbjgbh",B);$.putvarstring("kh",_);vi=$.request_service("settle_gz");if(vi!=0){alert("\u95e8\u8bca\u6b63\u5f0f\u7ed3\u7b97\u5931\u8d25\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return}A.mzzdlsh=$.getvarstring("mzzdlsh");A.zje=$.getvardec("zje");A.grzhzf=$.getvardec("grzhzf");A.jmje=$.getvardec("jmje");A.xj=$.getvardec("xj");A.zhye=$.getvardec("zhye");return A};DxXzdwOCX.destroy_gz=function($,C,_,A){var B=new Object();$.resetvar();$.putvarstring("sbjgbh",C);$.putvarstring("kh",_);$.putvarstring("mzzdlsh",A);vi=$.request_service("destroy_gz");if(vi!=0){alert("\u95e8\u8bca\u6b63\u5f0f\u7ed3\u7b97\u5931\u8d25\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return}B.cxlsh=$.getvarstring("cxlsh");B.zje=$.getvardec("zje");B.grzhzf=$.getvardec("grzhzf");B.jmje=$.getvardec("jmje");B.xj=$.getvardec("xj");B.zhye=$.getvardec("zhye");return B};DxXzdwOCX.get_zfbl=function(_,B,A,$){_.resetvar();_.putvarstring("sbjgbh",B);_.putvarstring("yyxmbm",A);_.putvardatetime("rq",$);vi=_.request_service("get_zfbl");if(vi!=0){alert("\u83b7\u53d6\u81ea\u4ed8\u6bd4\u4f8b\u51fa\u9519\uff01\u9519\u8bef\u4fe1\u606f:"+_.get_errtext());return false}return _.getvarstring("zfbl")};DxXzdwOCX.down_yyxm=function($,B,_,A,C){$.resetvar();$.putvarstring("sbjgbh",B);$.putvarstring("filename",_);$.putvardec("filetype",A);$.putvardec("has_head",C);vi=$.request_service("down_yyxm");if(vi!=0){alert("\u4e0b\u8f7d\u533b\u9662\u9879\u76ee\u51fa\u9519\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return false}return true};DxXzdwOCX.down_ml=function($,C,A,_,B,D){$.resetvar();$.putvarstring("sbjgbh",C);$.putvarstring("filename",A);$.putvarstring("filename2",_);$.putvardec("filetype",B);$.putvardec("has_head",D);vi=$.request_service("down_ml");if(vi!=0){alert("\u4e0b\u8f7d\u836f\u54c1\u9879\u76ee\u548c\u81ea\u4ed8\u6bd4\u4f8b\u51fa\u9519\uff01\u9519\u8bef\u4fe1\u606f:"+$.get_errtext());return false}return true};DxXzdwOCX.add_yyxm_info_all=function(J,$,P,_,N,O,E,Q,R,I,C,M,G,B,L,F,H,A,D,K){J.resetvar();J.putvarstring("yyxmbm",$);J.putvarstring("yyxmmc",P);J.putvarstring("ypbz",_);J.putvardec("dj",N);J.putvarstring("zxgg",O);J.putvardec("bhsl",E);J.putvarstring("mllb",Q);J.putvarstring("syz",R);J.putvarstring("jj",I);J.putvarstring("scqy",C);J.putvarstring("zdgg",M);J.putvarstring("spm",G);J.putvarstring("dw",B);J.putvarstring("gmpbz",L);J.putvarstring("cfybz",F);J.putvarstring("mzjsxmbh",H);J.putvarstring("zyjsxmbh",A);J.putvarstring("jxmc",D);J.putvardec("kcl",K);vi=J.request_service("add_yyxm_info_all");if(vi!=0){alert("\u589e\u52a0\u533b\u9662\u9879\u76ee\u51fa\u9519\uff01\u9519\u8bef\u4fe1\u606f:"+J.get_errtext());return false}return true};DxXzdwOCX.add_ys=function(H,L,$,E,F,B,C,P,N,I,J,Q,M,A,G,D,K,_,O){H.resetvar();H.putvarstring("flag",L);H.putvarstring("ysbh",$);H.putvarstring("xm",E);H.putvarstring("sfzh",F);H.putvarstring("ksbm",B);H.putvarstring("bz",C);H.putvardatetime("csrq",P);H.putvarstring("xb",N);H.putvarstring("zw",I);H.putvarstring("zyyszbh",J);H.putvarstring("zcyszbh",Q);H.putvarstring("yszc",M);H.putvarstring("zylb",A);H.putvarstring("zyfw",G);H.putvarstring("zydd",D);H.putvarstring("bgxx",K);H.putvarstring("yszt",_);H.putvarstring("sbjgbh",O);vi=H.request_service("add_ys");if(vi!=0){alert("\u589e\u52a0\u533b\u5e08\u9519\u8bef\uff01\u9519\u8bef\u4fe1\u606f:"+H.get_errtext());return false}return true};DxXzdwOCX.on_init=function(E,F,B,D,C,_){var A=top.E_getObject(E,F,B),$=A.ownerDocument.getElementById(F+"sei");if($!=null){var G=false;G=DxXzdwOCX.init($,D,C,_);WatCore.setParameter(E,F,top.DC.TEXT,G);WatCore.sendACallToChart(E,F,"on_init")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_init_zy=function(D,E,B,A){var _=top.E_getObject(D,E,B),$=_.ownerDocument.getElementById(E+"sei");if($!=null){var C=DxXzdwOCX.init_zy($,A);WatCore.setParameter(D,E,top.DC.TEXT,C);WatCore.sendACallToChart(D,E,"on_init_zy")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_init_zy_=function($,_){var A=DxXzdwOCX.init_zy($,_);return A};DxXzdwOCX.on_read_card=function(G,H,C,F,B,_){var A=top.E_getObject(G,H,C),$=A.ownerDocument.getElementById(H+"sei");if($!=null){var E=DxXzdwOCX.read_card($,F,B,_);if(E!=null){var D="{\"Data\":[{";D+="\"\u793e\u4fdd\u673a\u6784\u7f16\u53f7\":\""+E.sbjgbh+"\","+"\"\u4eba\u7fa4\u7c7b\u522b\":\""+E.rqlb+"\","+"\"\u5361\u53f7\":\""+E.kh+"\","+"\"\u4e2a\u4eba\u7f16\u53f7\":\""+E.grbh+"\","+"\"\u59d3\u540d\":\""+E.xm+"\","+"\"\u6027\u522b\":\""+E.xb+"\","+"\"\u8d26\u6237\u4f59\u989d\":\""+E.ye+"\","+"\"\u7070\u540d\u5355\u6807\u5fd7\":\""+E.zfbz+"\","+"\"\u7070\u540d\u5355\u539f\u56e0\":\""+E.zfsm+"\","+"\"\u5355\u4f4d\u540d\u79f0\":\""+E.dwmc+"\","+"\"\u533b\u7597\u4eba\u5458\u7c7b\u522b\":\""+E.ylrylb+"\","+"\"\u5f02\u5730\u6807\u5fd7\":\""+E.ydbz+"\","+"\"\u75be\u75c5\u7f16\u7801\":\""+E.mzdbjbs+"\","+"\"\u4f4f\u9662\u8bb0\u5f55\":\""+E.zhzybz+"\","+"\"\u4f4f\u9662\u8bb0\u5f55\u8bf4\u660e\":\""+E.zhzysm+"\","+"\"\u8f6c\u51fa\u533b\u9662\u540d\u79f0\":\""+E.zcyymc+"\","+"\"\u8f6c\u9662\u51fa\u9662\u65e5\u671f\":\""+E.zccyrq+"\","+"\"\u8eab\u4efd\u8bc1\u53f7\u7801\":\""+E.sfzhm+"\","+"\"\u793e\u4fdd\u7801\":\""+E.sbm+"\","+"\"\u51fa\u751f\u65e5\u671f\":\""+E.csrq+"\"}]}";WatCore.setParameter(G,H,top.DC.TEXT,D);WatCore.sendACallToChart(G,H,"on_read_card")}}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_query_person_info=function(G,H,B,I,A,F,E){var _=top.E_getObject(G,H,B),$=_.ownerDocument.getElementById(H+"sei");if($!=null){var D=DxXzdwOCX.query_person_info($,I,A,F,E);if(D!=null){var C="{\"Data\":[{";C+="\"\u4eba\u7fa4\u7c7b\u522b\":\""+D.rqlb+"\","+"\"\u4e2a\u4eba\u7f16\u53f7\":\""+D.grbh+"\","+"\"\u59d3\u540d\":\""+D.xm+"\","+"\"\u6027\u522b\":\""+D.xb+"\","+"\"\u7070\u540d\u5355\u6807\u5fd7\":\""+D.zfbz+"\","+"\"\u7070\u540d\u5355\u539f\u56e0\":\""+D.zfsm+"\","+"\"\u5355\u4f4d\u540d\u79f0\":\""+D.dwmc+"\","+"\"\u533b\u7597\u4eba\u5458\u7c7b\u522b\":\""+D.ylrylb+"\","+"\"\u5f02\u5730\u6807\u5fd7\":\""+D.ydbz+"\","+"\"\u75be\u75c5\u7f16\u7801\":\""+D.mzdbjbs+"\","+"\"\u4f4f\u9662\u8bb0\u5f55\":\""+D.zhzybz+"\","+"\"\u4f4f\u9662\u8bb0\u5f55\u8bf4\u660e\":\""+D.zhzysm+"\","+"\"\u8f6c\u51fa\u533b\u9662\u540d\u79f0\":\""+D.zcyymc+"\","+"\"\u8f6c\u9662\u51fa\u9662\u65e5\u671f\":\""+D.zccyrq+"\","+"\"\u8eab\u4efd\u8bc1\u53f7\u7801\":\""+D.sfzhm+"\","+"\"\u51fa\u751f\u65e5\u671f\":\""+D.csrq+"\","+"\"\u4f18\u629a\u5bf9\u8c61\u6807\u5fd7\":\""+D.yfdxbz+"\","+"\"\u4f18\u629a\u5bf9\u8c61\u7c7b\u522b\":\""+D.yfdxlb+"\"}]}";WatCore.setParameter(G,H,top.DC.TEXT,C);WatCore.sendACallToChart(G,H,"on_query_person_info")}}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_save_zydj=function(N,S,K,J,a,C,$,E,M,I,X,H,F,Z,U,W,_,G,B,O,A,R,P,Y,T,Q){var L=null,D=top.E_getObject(N,S,K),V=D.all(S+"sei");if(V!=null){L=DxXzdwOCX.save_zydj(V,J,a,C,$,E,M,I,X,H,F,Z,U,W,_,G,B,O,A,R,P,Y,T,Q);if(L!=null){WatCore.setParameter(N,S,top.DC.TEXT,L);WatCore.sendACallToChart(N,S,"on_save_zydj")}}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_print_gzd=function(D,E,C,B){var A=top.E_getObject(D,E,C),$=A.ownerDocument.getElementById(E+"sei");if($!=null){var _=DxXzdwOCX.print_gzd($,B);WatCore.setParameter(D,E,top.DC.TEXT,_);WatCore.sendACallToChart(D,E,"on_print_gzd")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_save_zy_script=function(strWinID,strCtrID,oDoc,blh,ysbm,date,fymxList){try{var ob=top.E_getObject(strWinID,strCtrID,oDoc),sei=ob.ownerDocument.getElementById(strCtrID+"sei");if(sei!=null){var scresult="",obj=null;if(DxXzdwOCX.on_init_zy_(sei,blh)){var arrObj=eval("("+fymxList+")").Data;for(var i=0;i<arrObj.length;i++){var yyxmbm=arrObj[i].yyxmbm,yyxmmc=arrObj[i].yyxmmc,dj=arrObj[i].dj,sl=arrObj[i].sl,bzsl=arrObj[i].bzsl,zje=arrObj[i].zje,gg=arrObj[i].gg,sxzfbl=arrObj[i].sxzfbl,fyfssj=arrObj[i].fyfssj,zxksbm=arrObj[i].zxksbm,kdksbm=arrObj[i].kdksbm,sm=arrObj[i].sm,yzlsh=arrObj[i].yzlsh,sfryxm=arrObj[i].sfryxm,result=DxXzdwOCX.put_fymx(sei,yyxmbm,yyxmmc,dj,sl,bzsl,zje,gg,sxzfbl,fyfssj,zxksbm,kdksbm,sm,yzlsh,sfryxm);if(result)scresult+="1";else scresult+="0";if(i<arrObj.length-1)scresult+=","}var fyid=DxXzdwOCX.save_zy_script(sei,ysbm,date,blh);WatCore.setParameter(strWinID,strCtrID,top.DC.TEXT,fyid+"@"+scresult);WatCore.sendACallToChart(strWinID,strCtrID,"on_save_zy_script")}}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")}catch(e){alert(e.message)}};DxXzdwOCX.on_trans_zy_script=function(E,F,C,D,B){var A=top.E_getObject(E,F,C),$=A.ownerDocument.getElementById(F+"sei");if($!=null){var _=DxXzdwOCX.trans_zy_script($,D,B);WatCore.setParameter(E,F,top.DC.TEXT,_);WatCore.sendACallToChart(E,F,"on_trans_zy_script")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_settle_zy=function(F,G,C,B,_){var A=top.E_getObject(F,G,C),$=A.ownerDocument.getElementById(G+"sei");if($!=null){var E=DxXzdwOCX.settle_zy($,B,_);if(E!=null){if(_=="1"){var D="{\"Data\":[{";D+="\"\u75c5\u4eba\u8d1f\u62c5\u91d1\u989d\":\""+E.brfdje+"\","+"\"\u533b\u4fdd\u8d1f\u62c5\u91d1\u989d\":\""+E.ybfdje+"\","+"\"\u533b\u7597\u8865\u52a9\u91d1\u989d\":\""+E.ylbzje+"\","+"\"\u4e2a\u4eba\u8d26\u6237\u652f\u4ed8\":\""+E.grzhzf+"\","+"\"\u5927\u989d\u652f\u4ed8\":\""+E.dezf+"\","+"\"\u5927\u989d\u5546\u4e1a\u4fdd\u9669\":\""+E.desybx+"\","+"\"\u516c\u52a1\u5458\u8865\u52a9\":\""+E.gwybz+"\","+"\"\u8d22\u653f\u5217\u652f\":\""+E.czlz+"\","+"\"\u7edf\u7b79\u652f\u4ed8\":\""+E.tczf+"\","+"\"\u5176\u4ed6\u7edf\u7b79\u652f\u4ed8\":\""+E.qttczf+"\"}]}";WatCore.setParameter(F,G,top.DC.TEXT,D);WatCore.sendACallToChart(F,G,"on_settle_zy")}else{D="{\"Data\":[{";D+="\"\u7ed3\u7b97\u53f7ID\":\""+E.jshid+"\","+"\"\u75c5\u4eba\u8d1f\u62c5\u91d1\u989d\":\""+E.brfdje+"\","+"\"\u533b\u4fdd\u8d1f\u62c5\u91d1\u989d\":\""+E.ybfdje+"\","+"\"\u533b\u7597\u8865\u52a9\u91d1\u989d\":\""+E.ylbzje+"\","+"\"\u4e2a\u4eba\u8d26\u6237\u652f\u4ed8\":\""+E.grzhzf+"\","+"\"\u516c\u52a1\u5458\u8865\u52a9\":\""+E.gwybz+"\","+"\"\u8d22\u653f\u5217\u652f\":\""+E.czlz+"\","+"\"\u5927\u989d\u652f\u4ed8\":\""+E.dezf+"\","+"\"\u5927\u989d\u5546\u4e1a\u4fdd\u9669\":\""+E.desybx+"\","+"\"\u7edf\u7b79\u652f\u4ed8\":\""+E.tczf+"\","+"\"\u53d1\u7968\u53f7\":\""+E.fph+"\","+"\"\u75c5\u4eba\u7ed3\u7b97\u65e5\u671f\":\""+E.brjsrq+"\","+"\"\u5176\u4ed6\u7ed3\u7b97\u53f7ID\":\""+E.qtjshid+"\"}]}";WatCore.setParameter(F,G,top.DC.TEXT,D);WatCore.sendACallToChart(F,G,"on_settle_zy")}}else alert("\u4e0a\u4f20\u4e0d\u6210\u529f")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_print_dj=function(D,F,C,E,A){var B=top.E_getObject(D,F,C),$=B.ownerDocument.getElementById(F+"sei");if($!=null){var _=DxXzdwOCX.print_dj($,E,A);WatCore.setParameter(D,F,top.DC.TEXT,_);WatCore.sendACallToChart(D,F,"on_print_dj")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_destroy_cy=function(D,E,C,B){var A=top.E_getObject(D,E,C),$=A.ownerDocument.getElementById(E+"sei");if($!=null){var _=DxXzdwOCX.destroy_cy($,B);WatCore.setParameter(D,E,top.DC.TEXT,_);WatCore.sendACallToChart(D,E,"on_destroy_cy")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_destroy_zyjs=function(D,F,C,B,E){var A=top.E_getObject(D,F,C),$=A.ownerDocument.getElementById(F+"sei");if($!=null){var _=DxXzdwOCX.destroy_zyjs($,B,E);WatCore.setParameter(D,F,top.DC.TEXT,_);WatCore.sendACallToChart(D,F,"on_destroy_zyjs")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_delete_fypd=function(E,F,C,B,D){var A=top.E_getObject(E,F,C),$=A.ownerDocument.getElementById(F+"sei");if($!=null){var _=DxXzdwOCX.delete_fypd($,B,D);WatCore.setParameter(E,F,top.DC.TEXT,_);WatCore.sendACallToChart(E,F,"on_delete_fypd")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_delete_all_fypd=function(D,E,C,B){var A=top.E_getObject(D,E,C),$=A.ownerDocument.getElementById(E+"sei");if($!=null){var _=DxXzdwOCX.delete_all_fypd($,B);WatCore.setParameter(D,E,top.DC.TEXT,_);WatCore.sendACallToChart(D,E,"on_delete_all_fypd")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_destroy_zydj=function(D,E,C,B){var A=top.E_getObject(D,E,C),$=A.ownerDocument.getElementById(E+"sei");if($!=null){var _=DxXzdwOCX.destroy_zydj($,B);WatCore.setParameter(D,E,top.DC.TEXT,_);WatCore.sendACallToChart(D,E,"on_destroy_zydj")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_save_mz_script=function(strWinID,strCtrID,oDoc,fymxList,settleFlag,sbjgbh,yltclb,xzbz,grbh,xm,xb,jbbm,fyrq,kh,ysbm,mzlx,jylb,jyyybm){var ob=top.E_getObject(strWinID,strCtrID,oDoc),sei=ob.ownerDocument.getElementById(strCtrID+"sei");if(sei!=null){var mzcshObj=DxXzdwOCX.init_mz(sei,sbjgbh,yltclb,xzbz,grbh,xm,xb,jbbm,fyrq,kh,ysbm,mzlx,jylb,jyyybm);if(null!=mzcshObj){var yscFymxList=new Array(),arrObj=eval("("+fymxList+")").Data;for(var i=0;i<arrObj.length;i++){var yyxmbm=arrObj[i].yyxmbm,yyxmmc=arrObj[i].yyxmmc,dj=arrObj[i].dj,sl=arrObj[i].sl,bzsl=arrObj[i].bzsl,zje=arrObj[i].zje,gg=arrObj[i].gg,sxzfbl=arrObj[i].sxzfbl,fyfssj=arrObj[i].fyfssj,zxksbm=arrObj[i].zxksbm,kdksbm=arrObj[i].kdksbm,sm=arrObj[i].sm,yzlsh=arrObj[i].yzlsh,sfryxm=arrObj[i].sfryxm,result=DxXzdwOCX.put_fymx(sei,yyxmbm,yyxmmc,dj,sl,bzsl,zje,gg,sxzfbl,fyfssj,zxksbm,kdksbm,sm,yzlsh,sfryxm);if(result)yscFymxList[yscFymxList.length+1]=arrObj[i]}var mzSettleObj=null;if("0"==settleFlag){var obj=DxXzdwOCX.settle_mz_pre(sei),jsonStr="{\"Data\":[{";jsonStr+="\"\u7ed3\u7b97\u53f7id\":\""+obj.jshid+"\","+"\"\u75c5\u4eba\u8d1f\u62c5\u91d1\u989d\":\""+obj.brfdje+"\","+"\"\u533b\u9662\u8d1f\u62c5\u91d1\u989d\":\""+obj.yyfdje+"\","+"\"\u533b\u4fdd\u8d1f\u62c5\u91d1\u989d\":\""+obj.ybfdje+"\","+"\"\u4e2a\u4eba\u8d26\u6237\u652f\u4ed8\":\""+obj.grzhzf+"\","+"\"\u533b\u7597\u8865\u52a9\u91d1\u989d\":\""+obj.ylbzje+"\","+"\"\u533b\u7597\u7edf\u7b79\u767b\u8bb0\u53f7\":\""+obj.yltcdjh+"\","+"\"\u7edf\u8ba1\u4eba\u5458\u7c7b\u522b\":\""+obj.tjrylb+"\","+"\"\u53d1\u7968\u53f7\":\""+obj.fph+"\","+"\"\u75c5\u4eba\u7ed3\u7b97\u65e5\u671f\":\""+obj.brjsrq+"\","+"\"\u672c\u6b21\u7ed3\u7b97\u8d39\u7528\u603b\u989d\":\""+obj.zje+"\","+"\"\u53d1\u7968\u4eba\u5458\u7c7b\u522b\":\""+obj.fprylb+"\","+"\"\u672c\u6b21\u7edf\u7b79\u652f\u4ed8\":\""+obj.tczf+"\","+"\"\u672c\u6b21\u5927\u989d\u652f\u4ed8\":\""+obj.dezf+"\","+"\"\u5927\u989d\u5546\u4e1a\u4fdd\u9669\":\""+obj.desybx+"\","+"\"\u672c\u6b21\u516c\u52a1\u5458\u8865\u52a9\":\""+obj.gwybz+"\","+"\"\u672c\u6b21\u8d22\u653f\u5217\u652f\":\""+obj.czlz+"\","+"\"\u6682\u7f13\u652f\u4ed8\":\""+obj.zhzf+"\","+"\"\u533b\u7597\u51cf\u514d\u91d1\u989d\":\""+obj.yljmje+"\","+"\"\u7d2f\u8ba1\u7edf\u7b79\u652f\u4ed8\":\""+obj.ljtczf+"\","+"\"\u7d2f\u8ba1\u5927\u989d\u652f\u4ed8\":\""+obj.ljdezf+"\","+"\"\u7d2f\u8ba1\u95e8\u8bca\u989d\u5ea6\":\""+obj.ljmzed+"\","+"\"\u7d2f\u79ef\u4e2a\u4eba\u652f\u4ed8\":\""+obj.ljfrzf+"\","+"\"\u5176\u4ed6\u7edf\u7b79\u652f\u4ed8\":\""+obj.qttczf+"\","+"\"\u8d26\u6237\u4f59\u989d\":\""+obj.zhye+"\"}]}";WatCore.setParameter(strWinID,strCtrID,top.DC.TEXT,jsonStr);WatCore.sendACallToChart(strWinID,strCtrID,"on_save_mz_script")}else{obj=DxXzdwOCX.settle_mz_real(sei),jsonStr="{\"Data\":[{";jsonStr+="\"\u7ed3\u7b97\u53f7id\":\""+obj.jshid+"\","+"\"\u75c5\u4eba\u8d1f\u62c5\u91d1\u989d\":\""+obj.brfdje+"\","+"\"\u533b\u9662\u8d1f\u62c5\u91d1\u989d\":\""+obj.yyfdje+"\","+"\"\u533b\u4fdd\u8d1f\u62c5\u91d1\u989d\":\""+obj.ybfdje+"\","+"\"\u4e2a\u4eba\u8d26\u6237\u652f\u4ed8\":\""+obj.grzhzf+"\","+"\"\u533b\u7597\u8865\u52a9\u91d1\u989d\":\""+obj.ylbzje+"\","+"\"\u533b\u7597\u7edf\u7b79\u767b\u8bb0\u53f7\":\""+obj.yltcdjh+"\","+"\"\u7edf\u8ba1\u4eba\u5458\u7c7b\u522b\":\""+obj.tjrylb+"\","+"\"\u53d1\u7968\u53f7\":\""+obj.fph+"\","+"\"\u75c5\u4eba\u7ed3\u7b97\u65e5\u671f\":\""+obj.brjsrq+"\","+"\"\u672c\u6b21\u7ed3\u7b97\u8d39\u7528\u603b\u989d\":\""+obj.zje+"\","+"\"\u53d1\u7968\u4eba\u5458\u7c7b\u522b\":\""+obj.fprylb+"\","+"\"\u672c\u6b21\u7edf\u7b79\u652f\u4ed8\":\""+obj.tczf+"\","+"\"\u672c\u6b21\u5927\u989d\u652f\u4ed8\":\""+obj.dezf+"\","+"\"\u5927\u989d\u5546\u4e1a\u4fdd\u9669\":\""+obj.desybx+"\","+"\"\u672c\u6b21\u516c\u52a1\u5458\u8865\u52a9\":\""+obj.gwybz+"\","+"\"\u672c\u6b21\u8d22\u653f\u5217\u652f\":\""+obj.czlz+"\","+"\"\u6682\u7f13\u652f\u4ed8\":\""+obj.zhzf+"\","+"\"\u533b\u7597\u51cf\u514d\u91d1\u989d\":\""+obj.yljmje+"\","+"\"\u7d2f\u8ba1\u7edf\u7b79\u652f\u4ed8\":\""+obj.ljtczf+"\","+"\"\u7d2f\u8ba1\u5927\u989d\u652f\u4ed8\":\""+obj.ljdezf+"\","+"\"\u7d2f\u8ba1\u95e8\u8bca\u989d\u5ea6\":\""+obj.ljmzed+"\","+"\"\u7d2f\u79ef\u4e2a\u4eba\u652f\u4ed8\":\""+obj.ljfrzf+"\","+"\"\u5176\u4ed6\u7edf\u7b79\u652f\u4ed8\":\""+obj.qttczf+"\","+"\"\u8d26\u6237\u4f59\u989d\":\""+obj.zhye+"\"}]}";WatCore.setParameter(strWinID,strCtrID,top.DC.TEXT,jsonStr);WatCore.sendACallToChart(strWinID,strCtrID,"on_save_mz_script")}}}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_destroy_mz=function(C,E,B,D){var A=top.E_getObject(C,E,B),$=A.ownerDocument.getElementById(E+"sei");if($!=null){var _=DxXzdwOCX.destroy_mz($,D);WatCore.setParameter(C,E,top.DC.TEXT,_);WatCore.sendACallToChart(C,E,"on_destroy_mz")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_get_zfbl=function(E,G,C,D,A,_){var B=top.E_getObject(E,G,C),$=B.ownerDocument.getElementById(G+"sei");if($!=null){var F=DxXzdwOCX.get_zfbl($,D,A,_);if(F!=0)F=F.split("/")[0].split("#v")[0];WatCore.setParameter(E,G,top.DC.TEXT,F);WatCore.sendACallToChart(E,G,"on_get_zfbl")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_down_yyxm=function(F,H,B,E,C,D,G){var A=top.E_getObject(F,H,B),$=A.ownerDocument.getElementById(H+"sei");if($!=null){var _=DxXzdwOCX.down_yyxm($,E,C,D,G);WatCore.setParameter(F,H,top.DC.TEXT,_);WatCore.sendACallToChart(F,H,"on_down_yyxm")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_add_yyxm_info_all=function(Q,R,P,_,V,N,L,U,C,W,M,H,A,J,F,B,T,E,G,O,D,I){var K=top.E_getObject(Q,R,P),S=K.ownerDocument.getElementById(R+"sei");if(S!=null){var $=DxXzdwOCX.add_yyxm_info_all(S,_,V,N,L,U,C,W,M,H,A,J,F,B,T,E,G,O,D,I);WatCore.setParameter(Q,R,top.DC.TEXT,$);WatCore.sendACallToChart(Q,R,"on_add_yyxm_info_all")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.on_add_ys=function(M,O,L,R,H,B,C,J,A,T,G,D,P,V,S,_,N,K,E,I,U){var F=top.E_getObject(M,O,L),Q=F.ownerDocument.getElementById(O+"sei");if(Q!=null){var $=DxXzdwOCX.add_ys(Q,R,H,B,C,J,A,T,G,D,P,V,S,_,N,K,E,I,U);WatCore.setParameter(M,O,top.DC.TEXT,$);WatCore.sendACallToChart(M,O,"on_add_ys")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.readexcel=function(D,E,B,C){var A=top.E_getObject(D,E,B),$=A.ownerDocument.getElementById(E+"sei");if($!=null){var _=$.xlstojson(C,"0","0",true);WatCore.setParameter(D,E,top.DC.TEXT,_);WatCore.sendACallToChart(D,E,"readexcel")}else alert("\u5730\u7eac\u63a7\u4ef6\u52a0\u8f7d\u5931\u8d25")};DxXzdwOCX.render=function($,G,F){var B=F.getAttribute("cid"),_=F.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),I=C,J;if(A>-1){C=I.substring(0,A);J=I.substring(A+1,I.length)}var H=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.DICM_STRINGADD:top.DxXzdwOCX.add($,B,H);break;case top.DC.UPDATE_DATA:var E=H.split("@wat@");if(J=="resetvar")DxXzdwOCX.resetvar($,B,G);else if(J=="putvarstring")DxXzdwOCX.putvarstring($,B,G,E[0],E[1]);else if(J=="putvardec")DxXzdwOCX.putvardec($,B,G,E[0],E[1]);else if(J=="putvardatetime")DxXzdwOCX.putvardatetime($,B,G,E[0],E[1]);else if(J=="request_service")DxXzdwOCX.request_service($,B,G,E[0]);else if(J=="getvarstring")DxXzdwOCX.getvarstring($,B,G,E[0]);else if(J=="getvardec")DxXzdwOCX.getvardec($,B,G,E[0]);else if(J=="getvardatetime")DxXzdwOCX.getvardatetime($,B,G,E[0]);else if(J=="on_init")DxXzdwOCX.on_init($,B,G,E[0],E[1],E[2]);else if(J=="on_init_zy")DxXzdwOCX.on_init_zy($,B,G,E[0]);else if(J=="on_read_card")DxXzdwOCX.on_read_card($,B,G,E[0],E[1],E[2]);else if(J=="on_query_person_info")DxXzdwOCX.on_query_person_info($,B,G,E[0],E[1],E[2],E[3]);else if(J=="on_save_zydj")DxXzdwOCX.on_save_zydj($,B,G,E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15],E[16],E[17],E[18],E[19],E[20],E[21],E[22]);else if(J=="on_print_gzd")DxXzdwOCX.on_print_gzd($,B,G,E[0]);else if(J=="on_save_zy_script")DxXzdwOCX.on_save_zy_script($,B,G,E[0],E[1],E[2],E[3]);else if(J=="on_settle_zy")DxXzdwOCX.on_settle_zy($,B,G,E[0],E[1]);else if(J=="on_print_dj")DxXzdwOCX.on_print_dj($,B,G,E[0],E[1]);else if(J=="on_destroy_cy")DxXzdwOCX.on_destroy_cy($,B,G,E[0]);else if(J=="on_destroy_zyjs")DxXzdwOCX.on_destroy_zyjs($,B,G,E[0],E[1]);else if(J=="on_delete_fypd")DxXzdwOCX.on_delete_fypd($,B,G,E[0],E[1]);else if(J=="on_delete_all_fypd")DxXzdwOCX.on_delete_all_fypd($,B,G,E[0]);else if(J=="on_destroy_zydj")DxXzdwOCX.on_destroy_zydj($,B,G,E[0]);else if(J=="on_destroy_mz")DxXzdwOCX.on_destroy_mz($,B,G,E[0]);else if(J=="on_get_zfbl")DxXzdwOCX.on_get_zfbl($,B,G,E[0],E[1],E[2]);else if(J=="on_down_yyxm")DxXzdwOCX.on_down_yyxm($,B,G,E[0],E[1],E[2],E[3]);else if(J=="on_add_yyxm_info_all")DxXzdwOCX.on_add_yyxm_info_all($,B,G,E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15],E[16],E[17],E[18]);else if(J=="on_add_ys")DxXzdwOCX.on_add_ys($,B,G,E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15],E[16],E[17]);else if(J=="on_save_mz_script")DxXzdwOCX.on_save_mz_script($,B,G,E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14]);else if(J=="readexcel")DxXzdwOCX.readexcel($,B,G,E[0]);break;default:break}}};function DxYcyb(){}DxYcyb.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"ycyb' codebase='./YCYBINTERFACEProj.ocx#version=1,0,0,0' CLASSID=\"clsid:E368BC47-6024-4ACF-A8EB-681BAAEAD243\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxYcyb.Fwr_request=function(D,G,C,$,A){var B=top.E_getObject(D,G,C);try{var E=B.ownerDocument.getElementById(G+"ycyb");if(E!=null){var F=E.Frw_reuqest($,A);WatCore.setParameter(D,G,top.DC.TEXT,F);WatCore.sendACallToChart(D,G,"Fwr_request")}else alert("\u63a7\u4ef6\u4e3anull")}catch(_){}};DxYcyb.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="fwr_request")top.DxYcyb.Fwr_request($,B,H,E[0],E[1]);break;default:break}}};function DxYfyb(){}DxYfyb.init=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B);try{var _="<OBJECT ID='"+E+"gdyfyb' codebase='./YunFuInterFace.ocx#version=1,0,0,0' CLASSID=\"clsid:D631AE6C-0C5F-4418-B94B-74EF73911440\" width=1 height=1 align=center></OBJECT>\n";A.innerHTML=_}catch($){}};DxYfyb.yunfu_init=function(C,F,A,B){var _=top.E_getObject(C,F,A);try{var D=_.all(F+"gdyfyb");if(D!=null){var E=D.YF_inits(B);WatCore.setParameter(C,F,top.DC.TEXT,E);WatCore.sendACallToChart(C,F,"yunfu_init")}else alert("\u63a7\u4ef6\u4e3anull")}catch($){}};DxYfyb.yunfu_buinesed=function(C,F,A,B){var _=top.E_getObject(C,F,A);try{var D=_.ownerDocument.getElementById(F+"gdyfyb");if(D!=null){var E=D.YF_BusinessHandled(B);WatCore.setParameter(C,F,top.DC.TEXT,E);WatCore.sendACallToChart(C,F,"yunfu_buinesed")}else alert("\u63a7\u4ef6\u4e3anull")}catch($){}};DxYfyb.render=function($,H,G){var B=G.getAttribute("cid"),_=G.selectNodes("*");for(var D=0;D<_.length;D++){var C=_[D].nodeName;C=C.substring(1,C.length);var A=C.indexOf("_"),J=C,K;if(A>-1){C=J.substring(0,A);K=J.substring(A+1,J.length);var F=K.split("-");K=F[0]}var I=top.isIE?_[D].text:_[D].textContent;switch(C){case top.DC.UPDATE_DATA:var E=I.split("@wat@");if(K=="yunfu_init")top.DxYfyb.yunfu_init($,B,H,E[0]);else if(K=="yunfu_buinesed")top.DxYfyb.yunfu_buinesed($,B,H,E[0]);break;default:break}}};function DxIDCard4CVRWebSocket(){}var websocket;DxIDCard4CVRWebSocket.initWebSocket=function(B,$,A,C){var _=top.E_getObject(B,$,A);if(websocket==null)websocket=new WebSocket(C);else if(websocket.url.indexOf(C)<0)websocket=new WebSocket(C);websocket.onopen=function(_){WatCore.setParameter(B,$,top.DC.TEXT,_.data);WatCore.sendACallToChart(B,$,"open")};websocket.onclose=function(_){websocket=null;WatCore.setParameter(B,$,top.DC.TEXT,_.data);WatCore.sendACallToChart(B,$,"close")};websocket.onmessage=function(_){WatCore.setParameter(B,$,top.DC.TEXT,_.data);WatCore.sendACallToChart(B,$,"enter")};websocket.onerror=function(_){WatCore.setParameter(B,$,top.DC.TEXT,_.data);WatCore.sendACallToChart(B,$,"error")}};DxIDCard4CVRWebSocket.doSend=function(C,_,B,$){var A=top.E_getObject(C,_,B);websocket.send($)};DxIDCard4CVRWebSocket.setShowLabel=function(C,$,B,A){var _=top.E_getObject(C,$,B);_.showLabel=A};DxIDCard4CVRWebSocket.clear=function(_,$,A){};DxIDCard4CVRWebSocket.render=function($,C,A){var D=A.getAttribute("cid"),_=A.selectNodes("*");for(var F=0;F<_.length;F++){var E=_[F].nodeName;E=E.substring(1,E.length);var B=top.isIE?_[F].text:_[F].textContent;switch(E){case top.DC.UPDATE_DATA:DxIDCard4CVRWebSocket.doSend($,D,C,B);break;case top.DC.URL:DxIDCard4CVRWebSocket.initWebSocket($,D,C,B);break;case top.DC.DISPLAY:DxIDCard4CVRWebSocket.setShowLabel($,D,C,B);break;default:break}}};function DxIDCard4DCT10(){}DxIDCard4DCT10.init=function(E,_){try{var C=top.E_clientModel.E_getWindow(E),B=WatCore.getWindowDoc(E,C),F=WatCore.getWindow(E,C),A=top.E_getObject(E,_,B),D="<OBJECT id=\""+_+"_DCT10\" width=0 height=0 classid=\"CLSID:924640CE-32F2-49DD-A14E-7D986B0827D5\"></OBJECT>";A.innerHTML=D}catch($){alert($)}};DxIDCard4DCT10.read=function(D,A,C,F){var E,B=top.E_getObject(D,A,C),G=C.getElementById(A+"_DCT10");if("4001"==F){E=G.DeviceOpen();if(!E){alert("\u8bbe\u5907\u6253\u5f00\u5931\u8d25");return}E=G.DeviceBeep(10);if(!E){alert("\u8bbe\u5907\u8702\u9e23\u5931\u8d25");return}var $=G.readidcard("c:photo.bmp");WatCore.setParameter(D,A,top.DC.TEXT,$);WatCore.sendACallToChart(D,A,"enter");E=G.DeviceClose();if(!E){alert("\u8bbe\u5907\u5173\u95ed\u5931\u8d25");return}}else if("4002"==F){E=G.DeviceOpen();if(!E){alert("\u8bbe\u5907\u6253\u5f00\u5931\u8d25");return}E=G.DeviceBeep(10);if(!E){alert("\u8bbe\u5907\u8702\u9e23\u5931\u8d25");return}$=G.ReadSBCardHolderInfo();WatCore.setParameter(D,A,top.DC.TEXT,$);WatCore.sendACallToChart(D,A,"enter");E=G.DeviceClose();if(!E){alert("\u8bbe\u5907\u5173\u95ed\u5931\u8d25");return}}else if("4003"==F){try{E=G.DeviceOpen();if(!E){alert("\u8bbe\u5907\u6253\u5f00\u5931\u8d25");return}E=G.DeviceBeep(10);if(!E){alert("\u8bbe\u5907\u8702\u9e23\u5931\u8d25");return}$=G.ReadSBCardInfo();WatCore.setParameter(D,A,top.DC.TEXT,$);WatCore.sendACallToChart(D,A,"enter");E=G.DeviceClose();if(!E){alert("\u8bbe\u5907\u5173\u95ed\u5931\u8d25");return}}catch(_){alert(_)}}else if("4004"==F){try{E=G.DeviceOpen();if(!E){alert("\u8bbe\u5907\u6253\u5f00\u5931\u8d25");return}E=G.DeviceBeep(10);if(!E){alert("\u8bbe\u5907\u8702\u9e23\u5931\u8d25");return}$="<span>"+G.readqrcode(20)+"</span>";WatCore.setParameter(D,A,top.DC.TEXT,$);WatCore.sendACallToChart(D,A,"enter");E=G.DeviceClose();if(!E){alert("\u8bbe\u5907\u5173\u95ed\u5931\u8d25");return}}catch(_){alert(_)}}else alert("\u672a\u652f\u6301\u7684\u8bfb\u5361\u7c7b\u578b")};DxIDCard4DCT10.clear=function(_,$,A){};DxIDCard4DCT10.render=function($,C,A){var D=A.getAttribute("cid"),_=A.selectNodes("*");for(var F=0;F<_.length;F++){var E=_[F].nodeName;E=E.substring(1,E.length);var B=top.isIE?_[F].text:_[F].textContent;switch(E){case top.DC.UPDATE_DATA:DxIDCard4DCT10.read($,D,C,B);break;default:break}}};function DxButtonPanel(){}DxButtonPanel.init=function(G,I,A,_,H,J,C,F){var E=top.E_clientModel.E_getWindow(G),D=WatCore.getWindowDoc(G,E),B=top.E_getObject(G,I,D);B.dataDom=top.WatCore.createXmlDom("<functions/>");B.changeDom=top.WatCore.createXmlDom("<functions/>");B.fwidth=A;B.fheight=_;B.margin=H;B.bkcolor=J;B.ptop=C;B.strWinId=G;B.strCtrId=I;B.firstmargin=F;$(B).unbind("click");$(B).bind("click",G,function($){top.DxButtonPanel.mousedown(B,$);EventUtil.stopPropagation($)});top.DxButtonPanel.changeSize(B,G,I)};DxButtonPanel.createActionFunction=function(C,D,I,G,Q){var W=G.getAttribute("functionid"),R=G.getAttribute("title"),L=G.getAttribute("icon"),F=G.getAttribute("title"),K=G.getAttribute("autoExtend"),U=G.getAttribute("color"),P=G.getAttribute("bkcolor"),X=G.getAttribute("floatValue"),O=G.getAttribute("textCount"),N=G.getAttribute("isAction"),T=I.fwidth,H=I.fheight,J=I.margin,V=I.firstmargin;if(Q==0)J=V;var A="";if(N=="true")A="cursor:hand;";if(K=="true"){var E=top.Desktop.textCounter(F);T=parseInt(parseFloat(O)*E)}var M=I.ptop,_=G.getAttribute("title"),B=G.getAttribute("borderColor"),S="<span class='DxButtonPanelButton' onselectstart='return false;' isAction='"+N+"' functionid='"+W+"' style='margin-top:"+M+";border:1px solid "+B+";color:"+U+";border-radius:4px;"+A+"background:"+P+";width:"+T+"px;height:"+H+"px;line-height:"+H+"px;text-align:center;float:"+X+";margin-left:"+J+"px;'>"+R+"</span>";$(I).append(S)};DxButtonPanel.mousedown=function(G,A){var _=EventUtil.getEvent(A),C=EventUtil.getTarget(A),B=G.strWinId,F=G.strCtrId;if(C.className=="DxButtonPanelButton"){var D=$(C).attr("functionid"),E=$(C).attr("isAction");if(E=="true")DxButtonPanel.doClick(B,F,D)}};DxButtonPanel.mouseover=function(_){$(_).css("background","#C9DFF4")};DxButtonPanel.mouseout=function(A,_){$(A).css("background",_)};DxButtonPanel.changeSize=function(C,F,G){var E=$(C),D=parseInt($(C.parentElement.parentElement.parentElement).width()),B=parseInt(C.fwidth),A=parseInt(C.fheight),_=parseInt(C.fmargin)};DxButtonPanel.clearFunction=function(_){$(_).html("")};DxButtonPanel.updateData=function(F,G,D,_){var E=top.E_clientModel.E_getWindow(F),C=D.getElementById(G);if(top.isIE)C.dataDom.loadXML(_);else C.dataDom=WatCore.createXmlDom(_);var A=C.dataDom.documentElement,$=A.selectNodes("function");DxButtonPanel.clearFunction(C);for(var H=0;H<$.length;H++){var B=$[H];DxButtonPanel.createActionFunction(F,G,C,B,H)}};DxButtonPanel.doClick=function($,A,_,B){WatCore.setParameter($,A,top.DC.TEXT,_);WatCore.call($,A,"action")};DxButtonPanel.render=function(D,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=top.isIE?_[G].text:_[G].textContent;switch(F){case top.DC.UPDATE_DATA:DxButtonPanel.updateData(D,E,C,B);break;case top.DC.DISPLAY:var $=top.E_getObject(D,"E_SW_"+E,C);if(B=="true"){$.style.visibility="visible";$.style.display="block"}else{$.style.visibility="hidden";$.style.display="none"}break;case top.DC.CSSNAME:top.E_getObject(D,E,C).className=B;break;case top.DC.WIDTH:top.E_getObject(D,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject(D,E,C).style.height=B;break;case top.DC.BORDERSTYLE:top.E_getObject(D,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject(D,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject(D,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject(D,"E_SW_"+E,C).style.left=B;break;case top.DC.Y:top.E_getObject(D,"E_SW_"+E,C).style.top=B;break;case top.DC.ENABLED:DxButtonPanel.setEnabled(D,E,C,B);break;case top.DC.BACKGROUND:top.E_getObject(D,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject(D,E,C).style.color=B;break;default:break}}};function DxContainerPanel(){}DxContainerPanel.init=function(C,E,K,_,D,G,F,A,H,L){var J=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,J),I=top.E_getObject(C,E,B);I.hasaction=K;I.hasdblaction=_;I.hasPopMenu=D;I.popupMenuFormID=G;I.popupMenuID=F;I.jgheightnum=A;I.jgwidth=L;I.dataDom=top.WatCore.createXmlDom("<beds/>");I.changeDom=top.WatCore.createXmlDom("<beds/>");I.isdblclick=H;I.panelend=true;I.strWinId=C;I.strCtrId=E;$(I).unbind("resize");$(I).bind("resize",C,function($){top.DxContainerPanel.changeSize(C,E)});$(I).unbind("mousedown");$(I).bind("mousedown",C,function($){top.DxContainerPanel.mousedown(I,$)});$(I).unbind("dblclick");$(I).bind("dblclick",C,function($){top.DxContainerPanel.dblclick(I,$)});top.DxContainerPanel.changeSize(C,E)};DxContainerPanel.mousedown=function(H,B){var D=H.strWinId,E=H.strCtrId,_=EventUtil.getEvent(B),C=EventUtil.getTarget(B),A=DxContainerPanel.getBed(C);if(A!=null)if(1==_.which){var G=$(A).attr("key");top.DxContainerPanel.clickprocess(D,E,G,false,_)}else if(3==_.which){var G=$(A).attr("key"),F=$(A).attr("popupMenuID");if(F){top.DxContainerPanel.onpop(D,E,F,G,_);EventUtil.stopPropagation(B)}}};DxContainerPanel.dblclick=function(G,B){var D=G.strWinId,E=G.strCtrId,_=EventUtil.getEvent(B),C=EventUtil.getTarget(B),A=DxContainerPanel.getBed(C);if(A!=null){var F=$(A).attr("key");top.DxContainerPanel.clickprocess(D,E,F,true,_)}};DxContainerPanel.contextMenu=function(H,B){var D=H.strWinId,E=H.strCtrId,_=EventUtil.getEvent(B),C=EventUtil.getTarget(B),A=DxContainerPanel.getBed(C);if(A!=null){var G=$(A).attr("key"),F=$(A).attr("popupMenuID");top.DxContainerPanel.onpop(D,E,F,G,_)}};DxContainerPanel.getBed=function(A){var B=A,_=null;if($(B).attr("isBed")=="true"){_=B;return _}while(!B.panelend&&$(B).attr("isBed")!="true"){B=B.parentElement;if($(B).attr("isBed")=="true"){_=B;break}if(B.panelend)break}return _};DxContainerPanel.changeSize=function(C,D){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=A.getElementById(D),$=parseInt(_.clientWidth);if($>0&&$==_.oldwidth)return;_.oldwidth=$};DxContainerPanel.updateData=function(C,D,A,$){var B=top.E_clientModel.E_getWindow(C),A=WatCore.getWindowDoc(C,B),_=top.E_getObject(C,D,A);if(top.isIE)_.dataDom.loadXML($);else _.dataDom=WatCore.createXmlDom($);DxContainerPanel.createBeds(C,D,_)};DxContainerPanel.createBeds=function(C,F,N){var K=N.dataDom.documentElement,A=parseInt(K.getAttribute("bedwidth")),_=parseInt(K.getAttribute("bedheight")),a=parseInt(K.getAttribute("childrenheight"));N.bedwidth=A;N.bedheight=_;N.innerHTML="";var W=N.jgheightnum,J="",c=K.selectNodes("bed"),D=K.selectNodes("children"),d=c.length,Q=N.clientWidth,X=N.jgwidth,R=N.hasaction,T=N.hasdblaction,E=N.hasPopMenu,H=N.popupMenuFormID,G=N.popupMenuID,Y=1,e=0,L=N.scrollTop;if(c.length>0){for(var b=0;b<c.length;b++){var M=c[b],S=M.getAttribute("key"),f=M.getAttribute("sonkey"),O=isIE?M.text:M.textContent,I=M.getAttribute("selected"),Z=N.bkcolor,O=isIE?M.text:M.textContent,U=M.getAttribute("isMother"),V="<div overflow-x='hidden' overflow-y='hidden' isBed='true' ";if(E=="true"&&H!=""&&G!="")V+=" popupMenuID='"+G+"' ";var P="";if(I=="true"){P="border:2px solid #DB7FCD;background:#E1D1F6;";N.oldSelected=S}else P="border:2px solid transparent;";V+=" id='"+F+S+"' key='"+S+"' class='DxContainerPanel-bed' style='"+P+"position:relative;float:left;margin:"+X+"px;overflow:hidden;width:"+A+"px;height:"+_+"px'>"+O+"</div>";if(U=="true")V+=DxContainerPanel.createChildren(C,F,D,f,N,A,_,a);if(I=="true")L=top;J+=V}}else J="<div></div>";$(N).html(J);var B=parseInt(N.clientHeight)+parseInt(N.scrollTop);if(L>B||L<N.scrollTop)N.scrollTop=L};DxContainerPanel.createChildren=function(A,D,B,V,I,_,$,R){var Q=I.jgwidth,L=I.hasaction,N=I.hasdblaction,C=I.hasPopMenu,F=I.popupMenuFormID,E=I.popupMenuID,P="<div overflow-x='hidden' overflow-y='hidden' class='DxContainerPanel-bed' style='border:2px solid transparent;position:relative;float:left;margin:"+Q+"px;overflow:hidden;width:"+(_)+"px;height:"+$+"px'>";for(var S=0;S<B.length;S++){var H=B[S],M=H.getAttribute("key"),J=isIE?H.text:H.textContent,G=H.getAttribute("selected"),T=I.bkcolor,J=isIE?H.text:H.textContent,U=H.getAttribute("motherkey");if(U!=V)continue;var O="<div overflow-x='hidden' overflow-y='hidden' isBed='true' ";if(C=="true"&&F!=""&&E!="")O+=" popupMenuID='"+E+"' ";var K="";if(G=="true"){K="border:2px solid #DB7FCD;background:#E1D1F6;";I.oldSelected=M}else K="border:2px solid transparent;";O+=" id='"+D+M+"' key='"+M+"' class='DxContainerPanel-bed' style='"+K+"position:relative;float:left;margin-bottom:"+Q+"px;overflow:hidden;width:"+(_-4)+"px;height:"+R+"px'>"+J+"</div>";P+=O}P+="</div>";return P};DxContainerPanel.changeData=function(C,D,A,$){var B=top.E_clientModel.E_getWindow(C),_=A.getElementById(D);if(top.isIE)_.changeDom.loadXML($);else _.changeDom=WatCore.createXmlDom($);DxContainerPanel.changeBeds(C,D,_)};DxContainerPanel.changeBeds=function(B,E,M){var H=M.changeDom.documentElement,N=M.dataDom.documentElement,K=H.selectNodes("bed"),C=N.selectNodes("bed"),I=M.scrollTop;for(var F=0;F<K.length;F++){var L=K[F],P=L.getAttribute("key"),O=isIE?L.text:L.textContent,G=L.getAttribute("selected");for(var D=0;D<C.length;D++){var A=C[D],J=A.getAttribute("key");if(P==J){if(isIE)A.text=O;else A.textContent=O;break}}var $=M.ownerDocument.getElementById(E+P);if($!=null){if($.length>0){for(D=0;D<$.length;D++){$[D].innerHTML="";$[D].insertAdjacentHTML("BeforeEnd",O)}}else{$.innerHTML="";$.insertAdjacentHTML("BeforeEnd",O)}if(G=="true")I=parseInt($.style.top)}}var _=parseInt(M.clientHeight)+parseInt(M.scrollTop);if(I>_||I<M.scrollTop)M.scrollTop=I};DxContainerPanel.clickprocess=function(C,H,G,$,E){var D=top.E_clientModel.E_getWindow(C),B=WatCore.getWindowDoc(C,D),F=WatCore.getWindow(C,D),A=top.E_getObject(C,H,B);if(!top.isIE&&A.isdblclick=="true"){var _=A.clickFlag;if(_==null)_=0;if(!_)F.setTimeout("top.DxContainerPanel.tt2('"+C+"','"+H+"','"+G+"');",230);_++;A.clickFlag=_}else if($)DxContainerPanel.doDblClick(C,H,G,E);else DxContainerPanel.doClick(C,H,G,E)};DxContainerPanel.tt2=function(B,F,E){var C=top.E_clientModel.E_getWindow(B),A=WatCore.getWindowDoc(B,C),D=WatCore.getWindow(B,C),_=top.E_getObject(B,F,A),$=_.clickFlag;if($==1)DxContainerPanel.doClick(B,F,E);else DxContainerPanel.doDblClick(B,F,E);_.clickFlag=0;_.oThis=null};DxContainerPanel.doClick=function(E,H,J,F){var D=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,D),G=WatCore.getWindow(E,D),B=top.E_getObject(E,H,C),_=$("#"+H+J,B),A=B.oldSelected;if(A!=null&&A!=J)$("#"+H+A,B).css({"background":"transparent","border":"2px solid transparent"});_.css({"background":"#E1D1F6","border":"2px solid #DB7FCD"});B.oldSelected=J;WatCore.setParameter(E,H,top.DC.SELECTED,J);var I=B.hasaction;if(I=="true")WatCore.call(E,H,"click")};DxContainerPanel.doDblClick=function(F,I,J,G){var E=top.E_clientModel.E_getWindow(F),D=WatCore.getWindowDoc(F,E),H=WatCore.getWindow(F,E),C=top.E_getObject(F,I,D),_=$("#"+I+J,C),B=C.oldSelected;if(B!=null&&B!=J)$("#"+I+B,C).css({"background":"transparent","border":"2px solid transparent"});_.css({"background":"#E1D1F6","border":"2px solid #DB7FCD"});C.oldSelected=J;WatCore.setParameter(F,I,top.DC.SELECTED,J);var A=C.hasdblaction;if(hasaction=="true")WatCore.call(F,I,"dblclick")};DxContainerPanel.selected=function(D,E,C,F){var B=top.E_getObject(D,E,C),_=$("#"+E+F,B),A=B.oldSelected;if(A!=null&&A!=F)$("#"+E+A,B).css({"background":"transparent","border":"2px solid transparent"});_.css({"background":"#E1D1F6","border":"2px solid #DB7FCD"});B.oldSelected=F};DxContainerPanel.onpop=function(E,H,J,I,F){var D=top.E_clientModel.E_getWindow(E),C=WatCore.getWindowDoc(E,D),G=WatCore.getWindow(E,D),B=top.E_getObject(E,H,C),_=$("#"+H+I,B),A=B.oldSelected;if(A!=null&&A!=I)$("#"+H+A,B).css({"background":"transparent","border":"2px solid transparent"});_.css({"background":"#E1D1F6","border":"2px solid #DB7FCD"});B.oldSelected=I;WatCore.setParameter(E,H,top.DC.SELECTED,I);top.DxMenu.onpop(E,H,J,F)};DxContainerPanel.htmlCall=function(_,B,A,$){top.WatCore.call(_,B,"htmlCall#"+A)};DxContainerPanel.render=function(D,C,A){var E=A.getAttribute("cid"),_=A.selectNodes("*");for(var G=0;G<_.length;G++){var F=_[G].nodeName;F=F.substring(1,F.length);var B=top.isIE?_[G].text:_[G].textContent;switch(F){case top.DC.UPDATE_DATA:DxContainerPanel.updateData(D,E,C,B);break;case top.DC.CHANGE_DATA:DxContainerPanel.changeData(D,E,C,B);break;case top.DC.SELECTED:DxContainerPanel.selected(D,E,C,B);break;case top.DC.CSSNAME:top.E_getObject(D,E,C).className=B;break;case top.DC.VISIBLE:C.getElementById(E).style.visibility=B;break;case top.DC.DISPLAY:var $=top.E_getObject(D,"E_SW_"+E,C);if(B=="true"){$.style.visibility="visible";$.style.display="block"}else{$.style.visibility="hidden";$.style.display="none"}break;case top.DC.WIDTH:top.E_getObject(D,E,C).style.width=B;break;case top.DC.HEIGHT:top.E_getObject(D,E,C).style.height=B;break;case top.DC.BORDERSTYLE:top.E_getObject(D,E,C).style.borderStyle=B;break;case top.DC.BORDERWIDTH:top.E_getObject(D,E,C).style.borderWidth=B;break;case top.DC.BORDERCOLOR:top.E_getObject(D,E,C).style.borderColor=B;break;case top.DC.X:top.E_getObject(D,"E_SW_"+E,C).style.left=B;break;case top.DC.Y:top.E_getObject(D,"E_SW_"+E,C).style.top=B;break;case top.DC.ENABLED:DxContainerPanel.setEnabled(D,E,C,B);break;case top.DC.BACKGROUND:top.E_getObject(D,E,C).style.backgroundColor=B;break;case top.DC.FOREGROUND:top.E_getObject(D,E,C).style.color=B;break;case top.DC.JGHEIGHT:$=top.E_getObject(D,E,C);$.jgheightnum=B;break;default:break}}};function DxNewMediaplayer(){}DxNewMediaplayer.init=function($,_){};DxNewMediaplayer.player=function(C,E,A,B){var D=$("#wat_voice_video"),_=D.get(0);if(_!=null){if(B!=null&&B!="")_.src=B;_.play()}};DxNewMediaplayer.pause=function(){var A=$("#wat_voice_video"),_=A.get(0);if(_!=null)_.pause()};DxNewMediaplayer.pause_=function(D,E){var C=top.E_clientModel.E_getWindow(D),B=WatCore.getWindowDoc(D,C),A=top.E_getObject(D,E,B),_=$("#"+E+"player",A).get(0);if(_!=null)_.controls.pause()};DxNewMediaplayer.close=function(_,A,$){DxNewMediaplayer.pause()};DxNewMediaplayer.render=function(_,D,B){var F=B.getAttribute("cid"),A=B.selectNodes("*");for(var H=0;H<A.length;H++){var G=A[H].nodeName;G=G.substring(1,G.length);var C=top.isIE?A[H].text:A[H].textContent;switch(G){case top.DC.UPDATE_DATA:var $=C.split("@wat@"),E=$[0];if(E=="player")DxNewMediaplayer.player(_,F,D,$[1]);else if(E=="pause")DxNewMediaplayer.pause();else if(E=="close")DxNewMediaplayer.close(_,F,D);break;default:break}}};