+(function(window,undefined){var document=window.document;document.createElement("zcover");var Z=window.Z=window.zhiqim=function(selector){return new Z.Query({selector:selector})};Z.v="1.4.0";Z.u=undefined;Z.d=window.document;Z.l=window.location;Z.n=window.navigator;Z.ua=Z.n.userAgent.toLowerCase();Z._D_="0123456789";Z._LU_="ABCDEFGHIJKLMNOPQRSTUVWXYZ";Z._LL_="abcdefghijklmnopqrstuvwxyz";Z._L_=Z._LU_+Z._LL_;Z._DL_=Z._D_+Z._L_;Z._DLL_=Z._D_+Z._LL_;Z._DLU_=Z._D_+Z._LU_;Z._DH_=Z._D_+"abcdefABCDEF";Z._DHL_=Z._D_+"abcdef";Z._DHU_=Z._D_+"ABCDEF";Z._SYM_="._-`~!@#$%";Z.body=function(){if(Z.d.body){return Z.d.body}else{Z.alert("未初始化body,请在Z.onload之后调用!");throw"nobody"}};Z.assert=function(require,exception,message){if(!require){Z.alert(message);throw exception}};Z.evals=function(expression){try{return eval("("+expression+")")}catch(e){return null}};Z.loads=function(src,callback){var $script=document.createElement("script");$script.src=src;$script.onload=callback;document.body.appendChild($script)};Z.alert=function(text,callback,param){alert(text);if(Z.T.isFunction(callback)){callback()}};Z.success=function(text,callback,param){param=param||{};param.type="success";Z.alert(text,callback,param)};Z.failure=function(text,callback,param){param=param||{};param.type="failure";Z.alert(text,callback,param)};Z.confirm=function(text,callback,param){if(confirm(text)){callback()}};Z.prompt=function(text,value,callback,param){if(prompt(text,value)){callback()}};Z.copy=function(text,type){if(!text){Z.alert("请输入要复制的文本");return}if(!document.execCommand){Z.alert("当前浏览器不支持复制");return}var $textarea=Z("").appendTo("body");type=type||"text";if(type=="val"){$textarea.val(text)}else{if(type=="html"){$textarea.html(text)}else{$textarea.text(text)}}$textarea.select();document.execCommand("copy");$textarea.remove()};Z.bind=function(f,$this){if(!Z.bind.fs){Z.bind.fs=[];Z.bind.ts=[];Z.bind.ns=[]}var ind=-1;Z.each(Z.bind.fs,function(_f,i){if(_f!==f){return}if(Z.bind.ts[i]!==$this){return}ind=i;return true});if(ind==-1){ind=Z.bind.fs.length;Z.bind.fs[ind]=f;Z.bind.ts[ind]=$this;Z.bind.ns[ind]=function(){f.apply($this,arguments)}}return Z.bind.ns[ind]};Z.each=function(object,callback){return Z.eachof(null,object,callback)};Z.eachof=function($this,object,callback){if(!object||!Z.T.isFunction(callback)){return}if(!Z.T.isLikeArray(object)&&!Z.T.isPlainObject(object)&&!Z.T.isString(object)&&!Z.T.isNumber(object)){return}var args=[];for(var a=0;a=times){clearInterval(timer);if(complete){complete.call($this)}}else{if(process){process.call($this,curTimes)}}}return timer};Z.rootPath=function(contextPath,path){return((contextPath==null||contextPath=="/")?"":contextPath)+(Z.S.startWith(path,"/")?"":"/")+path};Z.textLineNum=function(text,width,fontSize,fontFamily,letterSpacing){fontFamily=fontFamily||('"微软雅黑","宋体",Arial,sans-serif');letterSpacing=letterSpacing||"normal";var $textarea=Z('").css("width",width).css("fontSize",fontSize).css("fontFamily",fontFamily).css("letterSpacing",letterSpacing).appendTo("body");var lineNum=$textarea[0].scrollHeight/50;if(window.devicePixelRatio&&window.devicePixelRatio!==1){}$textarea.remove();return Math.ceil(lineNum)};Z.drag=function(elem,param,callback,$this){if(Z.T.isString(elem)){elem=Z.D.id(elem)}if(!elem||!elem.nodeType){return null}if(Z.T.isString(param)){param={drag:Z.D.id(param)}}else{if(param.nodeType){param={drag:param}}}return new Z.Draggable({immediate:true,elem:elem,param:param,callback:callback,callthis:$this})};Z.dragInParent=function(elem,drag,parent,callback,$this){if(Z.T.isString(elem)){elem=Z.D.id(elem)}if(!elem||!elem.nodeType){return null}if(Z.T.isString(drag)){drag=Z.D.id(drag)}if(!drag||!drag.nodeType){return null}if(Z.T.isString(parent)){parent=Z.D.id(parent)}if(!parent||!parent.nodeType){return null}var width=parent.offsetWidth-elem.offsetWidth;var height=parent.offsetHeight-elem.offsetHeight;var param={drag:drag,left:parent.offsetLeft,top:parent.offsetTop,width:width,height:height};return new Z.Draggable({immediate:true,elem:elem,param:param,callback:callback,callthis:$this})};Z.$elem=function(elem,clazz){if(elem instanceof Z.Query){if(!elem[0]){Z.alert("["+clazz+"]的[elem]参数无效");throw"elem does not exist"}return elem}else{if(Z.T.isElement(elem)||Z.T.isWindow(elem)||Z.T.isDocument(elem)){return Z(elem)}else{if(Z.T.isString(elem)){if(Z(elem)[0]){return Z(elem)}if(!/^#/.test(elem)&&Z("#"+elem)[0]){return Z("#"+elem)}}}}if(clazz){Z.alert("["+clazz+"]的[elem]参数必须是元素对象或元素编号");throw"elem does not exist"}return Z("")};Z.$selector=function(selector,target){return target==null?Z(selector):Z.$elem(target).find(selector)};Z.$cover=function($elem){$elem=Z.$elem($elem);var $parent=$elem.parent();if($parent.length>0&&$parent[0].tagName.toLowerCase()=="zcover"){return $parent}var $cover=Z("").insertAfter($elem).cssMaybe("float",$elem.css("float")).cssMaybe("margin-left",$elem.css("marginLeft")).cssMaybe("margin-right",$elem.css("marginRight")).cssMaybe("margin-top",$elem.css("marginTop")).cssMaybe("margin-bottom",$elem.css("marginBottom"));if($elem.css("width").indexOf("%")!=-1){$cover.cssMaybe("width",$elem.css("width"));$elem.css("width","100%")}$elem.appendTo($cover).css("margin",0);return $cover};Z.R=Z.Regexps={SPACE:/\s+/,SPACE_LEFT:/^\s+/,SPACE_RIGHT:/\s+$/,NUMERIC:/^\d+$/,INTEGER:/^(0|[\+\-]?[1-9]\d*)$/,INTEGER_P:/^[1-9]\d*$/,INTEGER_N_N:/^(0|[1-9]\d*)$/,FLOAT:/^(0|[\+\-]?[1-9]\d*)(\.\d+)?$/,FLOAT_N_N:/^(0|[1-9]\d*)(\.\d+)?$/,AMOUNT_2R:/^(0|[\+\-]?[1-9]\d*)(\.\d{1,2})?$/,AMOUNT_2R_FIXED:/^(0|[\+\-]?[1-9]\d*)(\.\d{2})$/,AMOUNT_N_N_2R:/^(0|[1-9]\d*)(\.\d{1,2})?$/,AMOUNT_N_N_2R_FIXED:/^(0|[1-9]\d*)(\.\d{2})$/,ALPHABAT:/^[A-Za-z]+$/,ALPHABAT_UPPER:/^[A-Z]+$/,ALPHABAT_LOWER:/^[a-z]+$/,ALPHA_LOWER_NUMERIC:/^[a-z0-9]+$/,ALPHA_UPPER_NUMERIC:/^[A-Z0-9]+$/,ALPHA_NUMERIC:/^[A-Za-z0-9]+$/,ALPHA_NUMERIC_PA:/^[A-Za-z][A-Za-z0-9]*$/,ALPHABAT_DOUBLE:/^[^x00-xff]+$/,CHINESE:/^[\u4e00-\u9fa5]+$/,CHINESE_ALPHA_NUMERIC:/^[\u4e00-\u9fa5A-Za-z0-9]+$/,DATE:/^((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))$/,TIME:/^([0-1][0-9]|[2][0-3]):([0-5][0-9]):([0-5][0-9])$/,DATE_TIME:/^((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))\s(([0-1][0-9]|[2][0-3]):([0-5][0-9]):([0-5][0-9]))$/,DATE_TIME_MATCH:/^(\d{4})-(\d{2})-(\d{2})\s(\d{2}):(\d{2}):(\d{2})$/,HTML:/<|&#?\w+;/,HTML_TAG:/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,HTML_TAG_NAME:/<([\w:]+)/,ACCOUNT:/^(?!(_|@|\.))(?!.*?(_|@|\.)$)[\w@\.\u4e00-\u9fa5]{5,25}$/,PASSWORD:/^[\w@\.#$!~%]{6,16}$/,MOBILE:/^((\+86)|(86)|)?(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|170|18[0|1|2|3|5|6|7|8|9])\d{8}$/,MOBILE_11:/^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|170|18[0|1|2|3|5|6|7|8|9])\d{8}$/,IP:/^((?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])$/,MAC:/^[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}$/,QQ:/^[1-9]\d{4,10}$/,POSTAL_CODE:/^[1-9]\d{5}$/,EMAIL:/^([\w-_]+(?:\.[\w-_]+)*)@((?:[a-z0-9]+(?:-[a-zA-Z0-9]+)*)+\.[a-z]{2,6})$/,IDCARD:/^(\d{6})((((19|20)[0-9]{2})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))(\d{3}[0-9xX*])$/};Z.C=Z.Class={newInstance:function(){return function(){this.immediate=false;this.set=function(name,value){this[name]=value};Z.C.copyFields(this,this.defaults);Z.C.copyFields(this,arguments);if(this.init){this.init.apply(this)}if(this.immediate&&this.execute){this.execute.apply(this)}}},copyFields:function(target,obj){if(!target||!obj){return}if(Z.T.isLikeArray(obj)){for(var i=0;ithis.right){offsetLeft=this.right}if("top" in this&&offsetTopthis.bottom){offsetTop=this.bottom}}if(Z.T.isFunction(this.callback)){this.callback.call(this.callthis||this,e,this.dragging)}Z(this.elem).css({left:offsetLeft,top:offsetTop});Z.D.clearSelection()},doStopDrag:function(e){Z(document).offmousemove(this.doDragging,this).offmouseup(this.doStopDrag,this);if(Z.T.isFunction(this.callback)){this.callback.call(this.callthis||this,e,this.dragging)}}}})(window);+(function(b){b.B=b.Browser={mobile:/mobile/.test(b.ua),iphone:/iphone/.test(b.ua),ipad:/ipad/.test(b.ua),win64:/wow64/.test(b.ua),firefox:/firefox/.test(b.ua),webkit:/webkit/.test(b.ua),safari:/safari/.test(b.ua),chrome:/chrome/.test(b.ua),opera:/opera/.test(b.ua),mozilla:/mozilla/.test(b.ua)&&!/compatible/.test(b.ua),msie:(/msie/.test(b.ua)||/trident/.test(b.ua))&&!/opera/.test(b.ua),msieOnly:/msie/.test(b.ua),msie11:/trident\/7/.test(b.ua),msie10:/msie 10/.test(b.ua),msie9:/msie 9/.test(b.ua),msie8:/msie 8/.test(b.ua),msie7:/msie 7/.test(b.ua),msie6:/msie 6/.test(b.ua),msieVer:/msie/.test(b.ua)?parseInt(b.ua.match(/msie (\d+)/)[1]):100};if(b.B.msieVer<=8){var c=["abbr","article","aside","datalist","details","dialog","eventsource","figure","footer","header","hgroup","main","mark","menu","meter","nav","output","progress","section","time","audio","canvas","video"];var a=c.length;while(a--){document.createElement(c[a])}}b.D=b.Document={id:function(e,d){d=d||document;return d.getElementById(e)},has:function(e,d){d=d||document;return d.getElementById(e)!=null},create:function(d,e){e=e||document;return e.createElement(d)},names:function(d,e){e=e||document;return e.getElementsByName(d)},tagNames:function(d,e){e=e||document;return e.getElementsByTagName(d)},classNames:function(e,f){f=f||document;if(f.getElementsByClassName){return f.getElementsByClassName(e)}var d=[];b.each(this.tagNames("*"),function(g){b.each(g.className.split(" "),function(h){if(h==e){d.push(g)}})});return d},attrs:function(e,f,g){g=g||document;var d=[];b.each(this.tagNames("*"),function(h){if(f==b.EL.get(h,e)){d.push(h)}});return d},scrollTop:function(d){d=d||document;return d.body.scrollTop+d.documentElement.scrollTop},scrollLeft:function(d){d=d||document;return d.body.scrollLeft+d.documentElement.scrollLeft},scrollWidth:function(d){d=d||document;return Math.max(d.body.scrollWidth,d.documentElement.scrollWidth)},scrollHeight:function(d){d=d||document;return Math.max(d.body.scrollHeight,d.documentElement.scrollHeight)},clientWidth:function(d){d=d||document;return d.documentElement.clientWidth||d.body.clientWidth},clientHeight:function(d){d=d||document;return d.documentElement.clientHeight||d.body.clientHeight},offsetWidth:function(d){d=d||document;return Math.max(d.body.offsetWidth,d.documentElement.offsetWidth)},offsetHeight:function(d){d=d||document;return Math.max(d.body.offsetHeight,d.documentElement.offsetHeight)},clearSelection:function(){window.getSelection?window.getSelection().removeAllRanges():document.selection.empty()}};b.E=b.Event={KEY:{ESC:27,ENTER:13,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},add:function(g,d,e,f){e=f?b.bind(e,f):e;if(g.addEventListener){g.addEventListener(d,e,false)}else{if(g.attachEvent){g.attachEvent("on"+d,e)}else{g["on"+d]=e}}},remove:function(g,d,e,f){e=f?b.bind(e,f):e;if(g.removeEventListener){g.removeEventListener(d,e,false)}else{if(g.detachEvent){g.detachEvent("on"+d,e)}else{g["on"+d]=null}}},event:function(d){return d||window.event},key:function(d){d=this.event(d);return d.which||d.keyCode},target:function(d){d=this.event(d);return d.target||d.srcElement},current:function(d){d=this.event(d);return d.currentTarget||d.srcElement},cancel:function(d){if(d&&d.preventDefault){d.preventDefault()}else{if(window.event){window.event.returnValue=false}}return false},stop:function(d){if(d&&d.stopPropagation){d.stopPropagation()}else{if(window.event){window.event.cancelBubble=true}}return false},forbidden:function(d){b.E.stop(d);b.E.cancel(d)},clientX:function(d){return this.event(d).clientX},clientY:function(d){return this.event(d).clientY},screenX:function(d){return this.event(d).clientX},screenY:function(d){return this.event(d).clientY},wheelDelta:function(d){return b.B.firefox?(-this.event(d).detail*40):this.event(d).wheelDelta},isCtrl:function(d){return b.E.event(d).ctrlKey},isEsc:function(d){return b.E.key(d)===27},isBackspace:function(d){return b.E.key(d)===8},isEnter:function(d){return b.E.key(d)===13},isCtrlC:function(d){return b.E.isCtrl(d)&&b.E.key(d)==67},isCtrlV:function(d){return b.E.isCtrl(d)&&b.E.key(d)==86}};b.EL=b.Element={PX:["top","bottom","left","right","width","height","min-width","max-width","min-height","max-height","line-height","text-indent","minWidth","maxWidth","minHeight","maxHeight","lineHeight","textIndent","margin-top","margin-bottom","margin-left","margin-right","padding-top","padding-bottom","padding-left","padding-right","font-size","marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","padding-Left","paddingRight","fontSize"],has:function(e,d){if(!e||!e.nodeType){return false}if(d in e){return true}else{if(e.hasAttribute&&e.hasAttribute(d)){return true}}return false},get:function(e,d){if(!e||!e.nodeType){return null}if(d in e){return e[d]}else{if(e.getAttribute){return e.getAttribute(d)}}return null},set:function(e,d,f){if(!e||!e.nodeType){return}if(d in e){e[d]=f}else{if(e.setAttribute){e.setAttribute(d,f)}}},equals:function(e,d,f){if(!e||!e.nodeType){return false}return b.EL.get(e,d)==f},style:function(f,e){if(!this.has(f,"style")){return}if(e===b.u){return f.style}var g=b.AR.toObject(e,";");for(var d in g){f.style[d]=g[d]}},css:function(e,d,f){if(!this.has(e,"style")){return}if(d=="opacity"){return this.opacity(e,f)}if(arguments.length==2){if(e.style[d]){return e.style[d]}if(e.currentStyle){return e.currentStyle[d]}if(document.defaultView){return document.defaultView.getComputedStyle(e,null)[d]}return""}else{if(arguments.length==3){if(b.AR.contains(b.EL.PX,d)){f=(b.T.isNumber(f)||b.V.isInteger(f)||b.V.isFloat(f))?f+"px":f}e.style[d]=f}}},cssNum:function(e,d){return b.S.prefixNum(this.css(e,d))},opacity:function(f,g){if(!this.has(f,"style")){return}if(g===b.u){if("opacity" in f.style){return f.style.opacity?parseFloat(f.style.opacity):0}else{var e=f.style.filter;var d=(!e)?null:e.match(/opacity=([\d.]*)[\)\,\s]/i);if(!d||d.length<2){return 0}return d[1]/100}}else{if(b.T.isNumber(g)||b.V.isFloat(g)){g=+g;if("opacity" in f.style){f.style.opacity=g}else{f.style.filter="alpha(opacity="+g*100+")"}}}},className:function(e,d){if(!this.has(e,"className")){return null}if(d===b.u){return e.className}e.className=d},addClass:function(e,d){if(!this.has(e,"className")){return}var f=b.AR.toArray(e.className,b.R.SPACE);if(b.AR.contains(f,d)){return}f.push(d);e.className=b.AR.toString(f," ")},removeClass:function(e,d){if(!this.has(e,"className")){return}var g=b.AR.toArray(e.className,b.R.SPACE);var f=b.AR.indexOf(g,d);if(f==-1){return}g.splice(f,1);e.className=b.AR.toString(g," ")},hasClass:function(e,d){if(!this.has(e,"className")){return false}var f=b.AR.toArray(e.className,b.R.SPACE);return b.AR.contains(f,d)},toggleClass:function(e,d){this.hasClass(e,d)?this.removeClass(e,d):this.addClass(e,d)},select:function(d){if(!d||!d.nodeType){return}d.select()},selection:function(e){if(!this.has(e,"value")){return""}var f=this.get(e,"value");if(b.V.isEmpty(f)){return""}if(!("selectionStart" in e)){return""}var g=e.selectionStart;var d=e.selectionEnd;return f.substring(g,d)},isSelection:function(d){return b.V.isNotEmpty(this.selection(d))},focus:function(d){if(!d||!d.nodeType){return}d.focus()},focusEnd:function(f,d){if(!f||!f.nodeType){return}d=d||0;if(b.B.msieOnly){var e=f.createTextRange();(d==0)?e.collapse(false):e.move("character",d);e.select()}else{d=(d==0)?f.value.length:d;f.setSelectionRange(d,d);f.focus()}},parent:function(e){if(!e||!e.nodeType){return null}var d=e.parentNode;return d&&d.nodeType!==11?d:null},parentIndex:function(d){var e=0;while(d=d.previousSibling){if(d.nodeType==1){e++}}return e},childs:function(d){if(!d||!d.nodeType){return null}return d.childNodes},children:function(d){if(!d||!d.nodeType){return null}return d.children},html:function(d,e){if(!d||!d.nodeType){return}if(e===b.u){return d.innerHTML}else{d.innerHTML=e}},htmlc:function(d,k){if(!d||!d.nodeType){return}if(k===b.u){return d.innerHTML}d.innerHTML=k;if(b.Input&&b.Input.load){b.Input.load(d)}if(b.ButtonGroup&&b.ButtonGroup.load){b.ButtonGroup.load(d)}if(b.Checkbox&&b.Checkbox.load){b.Checkbox.load(d)}if(b.Radio&&b.Radio.load){b.Radio.load(d)}if(b.Select&&b.Select.load){b.Select.load(d)}if(b.Dropdown&&b.Dropdown.load){b.Dropdown.load(d)}if(b.Textarea&&b.Textarea.load){b.Textarea.load(d)}if(b.CallFrame&&b.CallFrame.load){b.CallFrame.load()}if(b.Tooltip&&b.Tooltip.load){b.Tooltip.load()}if(b.Clipboard&&b.Clipboard.onload){b.Clipboard.onload()}var n=d.querySelectorAll("script");for(var g=0;g",""],optgroup:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tbody:[1,"","
"],tfoot:[1,"","
"],colgroup:[1,"","
"],caption:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],th:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},createElement:function(e){if(!e){return[]}if(e.nodeType){return[e]}if(b.T.isNumber(e)){e+=""}if(!b.T.isString(e)){return[]}if(!b.R.HTML.test(e)){return[document.createTextNode(e)]}e=e.replace(b.R.HTML_XHTML_TAG,"<$1>");var d=(b.R.HTML_TAG_NAME.exec(e)||["",""])[1].toLowerCase(),f=b.H.wrapMap[d]||b.H.wrapMap._default,g=f[0],h=document.createElement("div");h.innerHTML=f[1]+e+f[2];while(g--){h=h.lastChild}return h.childNodes},displayCache:{},displayDefault:function(e){if(this.displayCache[e]){return this.displayCache[e]}var d=document.body;var g=b.D.create(e);d.appendChild(g);var h=b.EL.css(g,"display");d.removeChild(g);if(h!==""&&h!=="none"){this.displayCache[e]=h;return h}var f=b.D.create("iframe");f.frameBorder=f.width=f.height=0;d.appendChild(f);var i=(f.contentWindow||f.contentDocument).document;i.write((document.compatMode==="CSS1Compat"?"":"")+"");i.close();g=i.createElement(e);i.body.appendChild(g);h=this.css(g,"display");d.removeChild(f);this.displayCache[e]=h;return h}};b.L=b.Location={protocol:location.href.match(/^https/i)?"https":"http",reload:function(d){d=d||window;d.location.reload()},access:function(e,f){b.A.assertNotEmptyBlank(e,"Z.Location的所有函数url不能为空");f=f||window;if(f==="open"){var d=b("
").appendTo("body");d.attr({action:e,method:"post",target:"blank"})[0].submit();d.remove()}else{if(f.name&&f.name=="zCallFrame"){e+=((e.indexOf("?")==-1)?"?":"&")+"zCallFrame=true";f.location.href=e}else{f.location.href=e}}},check:function(e,d,f,h){b.A.assertNotEmptyBlank(e,"Z.Location的所有函数url不能为空");if(f){if(!(f instanceof HTMLFormElement)&&h==null){h=f;f=null}}var g=b.FM.getChecked(d,f);if(!g){return}e+=(e.indexOf("?")==-1)?"?":"&";e+=d+"="+encodeURIComponent(g);b.L.access(e,h)},confirm:function(e,g,d,f,i){b.A.assertNotEmptyBlank(e,"Z.Location的所有函数url不能为空");if(f){if(!(f instanceof HTMLFormElement)&&i==null){i=f;f=null}}if(d){var h=b.FM.getChecked(d,f);if(!h){return}e+=(e.indexOf("?")==-1)?"?":"&";e+=d+"="+encodeURIComponent(h)}b.confirm(g,function(){b.L.access(e,i)})},href:function(j,i){if(b.T.isString(j)){b.L.access(j,i)}else{if(b.T.isPlainObject(j)){var e=j.url||null;var g=j.message||null;var d=j.name||null;var f=j.form||null;var h=i||j.target||null;if(d==null){b.L.access(e,h)}else{if(g==null){b.L.check(e,d,f,h)}else{b.L.confirm(e,g,d,f,h)}}}else{b.alert("Z.L.href函数第一个参数必须是字符串或纯对象")}}}};b.CK=b.Cookie={all:function(){return document.cookie},add:function(g,i,d,k,h,j){if(!cookie||!cookie.name||b.V.isEmptyBlank(cookie.name)){return}var g=escape(b.S.trim(cookie.name));var i=escape(cookie.value||"");var e=g+"="+i;if(b.T.isNumber(cookie.expires)||b.V.isInteger(cookie.expires)){var f=new Date();f.setTime(f.getTime()+(+cookie.expires*1000));e+=";expires="+f.toGMTString()}e+=(cookie.path)?";path="+cookie.path:"";e+=(cookie.domain)?";domain="+cookie.domain:"";e+=(cookie.secure===true)?";secure":"";document.cookie=e},remove:function(e){var d=new Date();d.setTime(d.getTime()-10*1000);document.cookie=e+"=value;expires="+d.toGMTString()},get:function(d){if(b.V.isEmptyBlank(d)){return""}d=escape(b.S.trim(d));var g=b.AR.toArray(document.cookie,";");for(var f=0;f1){e=e.slice(0,-1)}e+="}";return e}};d.Ids={HEX_LETTERS:[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70],uuid:function(){var h=new Array(32);var f=0,g=0,e=0;for(g=0;g<8;g++){h[f++]=this.HEX_LETTERS[Math.floor(Math.random()*16)]}for(g=0;g<3;g++){for(e=0;e<4;e++){h[f++]=this.HEX_LETTERS[Math.floor(Math.random()*16)]}}var l=new Date().getTime();var k=("0000000"+l.toString(16).toUpperCase()).substr(-8);for(g=0;g<8;g++){h[f++]=k.charCodeAt(g)}for(g=0;g<4;g++){h[f++]=this.HEX_LETTERS[Math.floor(Math.random()*16)]}return String.fromCharCode.apply(null,h)}};d.T=d.Types={isBoolean:function(e){return d.O.toString(e)==="Boolean"},isNumber:function(e){return d.O.toString(e)==="Number"},isString:function(e){return d.O.toString(e)==="String"},isPrimitive:function(e){return d.T.isBoolean(e)||d.T.isNumber(e)||d.T.isString(e)},isFunction:function(e){return d.O.toString(e)==="Function"},isArray:function(e){return d.O.toString(e)==="Array"},isDate:function(e){return d.O.toString(e)==="Date"},isRegExp:function(e){return d.O.toString(e)==="RegExp"},isObject:function(e){return d.O.toString(e)==="Object"},isPlainObject:function(f){if(!f||!d.T.isObject(f)||f.nodeType||d.T.isWindow(f)){return false}if(f.constructor&&!b.call(f,"constructor")&&!b.call(f.constructor.prototype,"isPrototypeOf")){return false}var e;for(e in f){}return e===d.u||b.call(f,e)},isLikeArray:function(f){if(!f||!d.T.isNumber(f.length)){return false}if(d.T.isFunction(f)&&f instanceof d.Query){return true}var e=d.O.toString(f);if(e==="Array"||e==="Arguments"||e==="HTMLCollection"||e==="NodeList"||f.callee||f.item){return true}if(d.T.isString(f)||d.T.isFunction(f)||d.T.isWindow(f)){return false}return f[0]!=d.u},isNull:function(e){return e===null},isUndefined:function(e){return e===d.u},isNaN:function(e){return !(e==e)},isInfinity:function(e){return e===Infinity},isNonInfinity:function(e){return e===-Infinity},isNil:function(e){return e===null||e===d.u||!(e==e)||e===Infinity||e===-Infinity},isWindow:function(e){return e&&typeof(e)==="object"&&"setInterval" in e},isNode:function(e){return e&&e.nodeType},isDocument:function(e){return e&&e.nodeType===9},isElement:function(e){return e&&e.nodeType&&e.nodeType!==9},isArguments:function(e){return e&&d.O.toString(e)==="Arguments"&&d.T.isNumber(e.length)}};d.V=d.Validates={isDigit:function(e){return e>=48&&e<=57},isMinus:function(e){return e==45},isDot:function(e){return e===46},isColon:function(e){return e==58},isDigitOrMinus:function(e){return(e>=48&&e<=57)||e===45},isDigitOrDot:function(e){return(e>=48&&e<=57)||e===46},isDigitOrColon:function(e){return(e>=48&&e<=57)||e===58},isLetter:function(e){return(e>=65&&e<=90)||(e>=97&&e<=122)},isLetterLowercase:function(e){return e>=97&&e<=122},isLetterUppercase:function(e){return e>=65&&e<=90},isLetterOrDigit:function(e){return isLetter(e)||isDigit(e)},isRegexp:function(f,e){return f.test(e)},isEmpty:function(e){return(e==null||e==""||e.length<1)},isNotEmpty:function(e){return !d.V.isEmpty(e)},isEmptyBlank:function(f){if(f==null||f==""||f.length<1){return true}for(var e=0;eString.fromCharCode(32)){return false}}return true},isNotEmptyBlank:function(e){return !d.V.isEmptyBlank(e)},isNumeric:function(e){return d.R.NUMERIC.test(e)},isNumericLen:function(g,f,e){return d.R.NUMERIC.test(g)&&g.length>=f&&g.length<=e},isInteger:function(e){return d.R.INTEGER.test(e)},isIntegerValue:function(g,f,e){return d.R.INTEGER.test(g)&&+g>=f&&+g<=e},isIntegerPositive:function(e){return d.R.INTEGER_P.test(e)},isFloat:function(e){return d.R.FLOAT.test(e)},isAmount2R:function(e){return d.R.AMOUNT_2R.test(e)},isDate:function(e){return d.R.DATE.test(e)},isTime:function(e){return d.R.TIME.test(e)},isDateTime:function(e){return d.R.DATE_TIME.test(e)},isEmail:function(e){return d.R.EMAIL.test(e)},isMobile:function(e){return d.R.MOBILE.test(e)},isMobile11:function(e){return d.R.MOBILE_11.test(e)},isContain:function(g,h,e){var f=d.AR.toArray(g,h);return d.AR.contains(f,e)},isLeapYear:function(e){return(e%4==0)&&((!(e%100==0))||(e%400==0))},};d.FM=d.Forms={formData:function(e){if(!e||!e.length){return null}var f="";d.each(e,function(g){if(g.disabled||!g.name||!g.value){return}f+=g.name+"="+encodeURIComponent(g.value)+"&"});return(f.length>0)?f.slice(0,-1):null},clearForm:function(h){if(!h){return}h.reset();var g=h.elements.length;for(var e=0;e0){f.options[0].selected=true}}}}},clearSelect:function(e){e.options.length=0},isChecked:function(f,g){if(!f){return false}var e=g?g[f]:d.D.names(f);if(!e){return false}if(!d.T.isNumber(e.length)){return e.checked}else{return d.each(e,function(h){if(h.checked){return true}})}},getChecked:function(f,h){if(!f){d.alert("[Z.FM.getChecked]第一个参数必传");throw"[Z.FM.getChecked]第一个参数必传"}var e=h?h[f]:d.D.names(f);if(!e){d.alert("[Z.FM.getChecked]没有找到["+f+"]的对象");throw"[Z.FM.getChecked]没有找到["+f+"]的对象"}if(!d.T.isNumber(e.length)){if(e.checked){return e.value}else{d.alert("请选择一个选项");throw"请选择一个选项"}}else{for(var g=0;gi.length){var l=k.value.substring(0,i.length);if(l==i){if(h){k.checked=true}else{k.checked=false}}}else{if(k.value.length0){e=e.slice(0,-g.length)}return e},toJSONString:function(f){if(!f){return"[]"}var e="[";d.each(f,function(g){e+=d.Jsons.toString(g)+","});if(e.length>1){e=e.slice(0,-1)}e+="]";return e}};d.S=d.Strings={trim:a?function(e){return e==null?"":a.call(e)}:function(e){return e==null?"":e.toString().replace(d.R.SPACE_LEFT,"").replace(d.R.SPACE_RIGHT,"")},trimLeft:function(e){return e==null?"":e.toString().replace(d.R.SPACE_LEFT,"")},trimRight:function(e){return e==null?"":e.toString().replace(d.R.SPACE_RIGHT,"")},startWith:function(f,e){if(f==null||e==null||f.length==0||e.length==0||e.length>f.length){return false}return new RegExp("^"+e).test(f)},endWith:function(f,e){if(f==null||e==null||f.length==0||e.length==0||e.length>f.length){return false}return new RegExp(e+"$").test(f)},equalsIgnoreCase:function(f,e){if(!d.T.isString(f)||!d.T.isString(e)){return false}return f.toUpperCase()==e.toUpperCase()},replaceAll:function(g,h,f,e){if(!RegExp.prototype.isPrototypeOf(h)){return g.replace(new RegExp(h,(e?"gi":"g")),f)}else{return g.replace(h,f)}},lengthUnicode:function(g){if(g==null||g.length==0){return 0}var e=0;for(var f=0;f127){e+=2}else{e+=1}}return e},lengthUnicode35:function(g){if(g==null||g.length==0){return 0}var e=0;for(var f=0;f127){e+=5}else{e+=3}}return e},toString:function(e){if(e===d.u){return"undefined"}else{if(e===null){return""}else{if(d.T.isString(e)){return e}else{return e.toString()}}}},toUTF8:function(g){var e=[];for(var f=0;f>6)&31));e.push(128|(h&63))}else{e.push(224|((h>>12)&15));e.push(128|((h>>6)&63));e.push(128|(h&63))}}}return new Int8Array(e)},toHexString:function(e){var f="";for(var g=0;g"9")&&h!="."){return true}f+=h});if(f.length==0){return 0}return e?-parseFloat(f,10):parseFloat(f,10)},prefixZeroRemove:function(e){while(e.length>1&&e.charAt(0)=="0"&&e.charAt(1)!="."){e=e.substring(1)}return e},removeSecondDot:function(f){var e=f.indexOf(".");if(e==-1){return f}var g=f.indexOf(".",e+1);return(g==-1)?f:f.substring(0,g)},removeAmountZero:function(h){var g=h.indexOf(".");if(g==-1){return h}var f=-1;for(var e=h.length-1;e>=g;e--){var j=h.charAt(e);if(j!="0"&&j!="."){break}f=e}return(f==-1)?h:h.substring(0,f)}};d.Maths={multiply:function(h,x){if(d.T.isNumber(h)){h=h.toString()}else{if(!d.T.isString(h)||!d.V.isFloat(h)){d.alert("不支持["+h+"]["+x+"]非数字相乘")}}if(d.T.isNumber(x)){x=x.toString()}else{if(!d.T.isString(x)||!d.V.isFloat(h)){d.alert("不支持["+h+"]["+x+"]非数字相乘")}}var u,q,f,n;var g=h.indexOf(".");if(g==-1){u=h;q="0";f=0;n=false}else{u=h.substring(0,g);q=h.substring(g+1);f=q.length;if(u.charAt(0)=="-"){n=true}}var o,k,e,r;var s=x.indexOf(".");if(s==-1){o=x;k="0";e=0;r=false}else{o=x.substring(0,s);k=x.substring(s+1);e=k.length;if(o.charAt(0)=="-"){r=true}}var p=parseInt(u)*parseInt(o);if(f==0&&e==0){return p}var w=0,v=0,t=0,j;if(f!=0){w=((n)?-q:q)*o;for(j=0;j"&&this.selector.length>=3){if(this.selector.length<=12){var f=this.selector.substring(1,this.selector.length-1);if(d.AR.contains(a,f)){this[0]=document.createElement(f);this.length=1;return this}}var j=d.H.createElement(this.selector);d.eachof(this,j,function(l,k){this[k]=l});this.length=j.length;return this}var h=document.querySelectorAll(this.selector);for(g=0;g "+f+':not([id="'+g+'"])')}try{g="_zhiqim_siblings_"+d.random(4)+"_";d.EL.set(this[0],"id",g);return this.parent().find("> "+f+':not([id="'+g+'"])')}finally{d.EL.remove(this[0],"id")}},next:function(f){f=f||"*";return this.find("+ "+f)},nextAll:function(f){f=f||"*";return this.find("~ "+f)},prev:function(f){var g=[];this.each(function(i){var h=i.previousSibling;if(h){g.push(h)}});return d(g).find(f)},prevAll:function(f){var g=[];this.each(function(i){var h=i.previousSibling;while(h){g.push(h);h=h.previousSibling}});return d(g).find(f)},children:function(f){f=f||"*";return this.find("> "+f)},nth:function(h,f){var g=-1;this.find(f).each(function(k,j){if(k!=h){return}g=j;return true});return(g==-1)?-1:(g+1)},appendToPos:function(f){if(!(f instanceof d.Query)){f=d(f)}if(f.css("position")==="static"){f.css("position","relative")}return this.appendTo(f)},remove:function(){for(var f=0;f0)?d.EL.get(this[0],"value"):null}if(d.T.isFunction(f)){this.each(function(h,g){var j=f.call(h,h,g);if(d.T.isString(j)){d.EL.set(h,"value",j)}})}else{this.each(function(g){d.EL.set(g,"value",f)})}return this},attr:function(i,h){if(arguments.length==1){if(d.T.isString(i)){return d.EL.get(this[0],i)}for(var f in i){var g=i[f];this.each(function(j){d.EL.set(j,f,g)})}}else{if(arguments.length==2){this.each(function(j){d.EL.set(j,i,h)})}}return this},removeAttr:function(f){this.each(function(g){d.EL.remove(g,f)});return this},className:function(f){if(this.length==0){return this}if(f===d.u){return d.EL.className(this[0])}d.EL.className(this[0],f);return this},addClass:function(f){this.each(function(h){var j=d.AR.toArray(f,d.R.SPACE);for(var g=0;g0)?d.EL.hasClass(this[0],f):false},toggleClass:function(f){return this.hasClass(f)?this.removeClass(f):this.addClass(f)},style:function(f){if(f===d.u){return d.EL.style(this[0])}this.each(function(g){d.EL.style(g,f)});return this},css:function(g,f){if(!g){return this}if(f===d.u){if(d.T.isString(g)){return d.EL.css(this[0],g)}this.each(function(h){d.each(g,function(j,i){d.EL.css(h,i,j)})})}else{this.each(function(h){d.EL.css(h,g,f)})}return this},cssNum:function(f){return d.EL.cssNum(this[0],f)},cssMaybe:function(f,g){if(d.T.isNil(g)){return this}this.css(f,g);return this},opacity:function(f){return this.css("opacity",f)},display:function(f){return this.css("display",f)},inline:function(){return this.display("inline")},block:function(){return this.display("block")},inBlock:function(){return this.display("inline-block")},isHidden:function(){return"hidden"===this.css("visibility")},hidden:function(){return this.css("visibility","hidden")},visible:function(){return this.css("visibility","visible")},isHide:function(){return"none"===this.display()},hide:function(){this.each(function(f){var g=d.EL.css(f,"display");if(g!=null&&g!=="none"){d.EL.set(f,"data-zhiqim-display",g)}d.EL.css(f,"display","none")});return this},show:function(){this.each(function(f){var g=d.EL.get(f,"data-zhiqim-display");if(g==null||g==="none"){g=d.H.displayDefault(f.nodeName)}d.EL.css(f,"display",g)});return this},toggle:function(){return this.isHide()?this.show():this.hide()},text:function(f){if(this.length>0){if(f===d.u){return d.EL.text(this[0])}else{d.EL.text(this[0],f)}}return this},html:function(f){if(this.length>0){if(f===d.u){return d.EL.html(this[0])}else{d.EL.html(this[0],f)}}return this},htmlc:function(f){if(this.length>0){if(f===d.u){return d.EL.htmlc(this[0])}else{d.EL.htmlc(this[0],f)}}return this},htmlx:function(){if(this.length==0){return null}var f=d.EL.html(this[0]);f=d.S.replaceAll(f,'readonly=""',"readonly");f=d.S.replaceAll(f,'disabled=""',"disabled");f=d.S.replaceAll(f,'checked=""',"checked");f=d.S.replaceAll(f,'selected=""',"selected");f=d.S.replaceAll(f,'single=""',"single");f=d.S.replaceAll(f,'multiple=""',"multiple");if(f.indexOf("")==-1){f=d.S.replaceAll(f,"","");f=d.S.replaceAll(f,"","")}return f},htmlt:function(){if(this.length==0){return null}var f=this.htmlx();f=d.S.replaceAll(f,"<","<");f=d.S.replaceAll(f,">",">");return f},htmls:function(){if(this.length==0){return null}return d("
").append(this[0]).html()},focusEnd:function(){if(this.length>0&&this[0].nodeType){d.EL.focusEnd(this[0])}return this},select:function(){if(this.length>0&&this[0].nodeType){this[0].select()}return this},selection:function(){return(this.length>0)?d.EL.selection(this[0]):""},isSelection:function(){return d.V.isNotEmpty(this.selection())},offsetParent:function(){if(this.length==0||!this[0].nodeType){return null}return d(this[0].offsetParent)},offsetWidth:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.offsetWidth(this[0])}else{return this[0].offsetWidth}},offsetHeight:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.offsetHeight(this[0])}else{return this[0].offsetHeight}},offsetLeft:function(){if(this.length==0||!this[0].nodeType){return 0}return d.EL.offsetLeft(this[0])},offsetTop:function(){if(this.length==0||!this[0].nodeType){return 0}return d.EL.offsetTop(this[0])},offsetLeftBody:function(){if(this.length==0||!this[0].nodeType||this[0].nodeType===9){return 0}return d.EL.offsetLeftBody(this[0])},offsetTopBody:function(){if(this.length==0||!this[0].nodeType||this[0].nodeType===9){return 0}return d.EL.offsetTopBody(this[0])},clientWidth:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.clientWidth(this[0])}else{return this[0].clientWidth}},clientHeight:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.clientHeight(this[0])}else{return this[0].clientHeight}},clientLeft:function(){if(this.length==0||!this[0].nodeType){return 0}return this[0].clientLeft},clientTop:function(){if(this.length==0||!this[0].nodeType){return 0}return this[0].clientHeight},clientX:function(){if(this.length==0||!this[0].nodeType){return 0}return this.offsetLeftBody()-(d.body().scrollLeft+document.documentElement.scrollLeft)},clientY:function(){if(this.length==0||!this[0].nodeType){return 0}return this.offsetTopBody()-(d.body().scrollTop+document.documentElement.scrollTop)},scrollIntoView:function(f,g){if(this.length==0||!this[0].nodeType){return this}this[0].scrollIntoView(f);if(g){window.scrollTo(d.D.scrollLeft(),d.D.scrollTop()+g)}},animate:function(q,k,h){if(this.length==0||!this[0].nodeType){return this}if(!q||!d.T.isPlainObject(q)){return this}k=(!d.T.isNumber(k)||k<13)?200:k;var g=Math.ceil(k/13);var n=[],p=[],o=[],m=[],j=0;for(var f in q){var l=j++;n[l]=f;if(f in this[0]){p[l]=d.S.prefixNum(this[0][f])}else{p[l]=d.EL.cssNum(this[0],f)}o[l]=+d.S.prefixNum(q[f]);m[l]=(o[l]-p[l])/g}d.timer(13,g,this,function(){for(var i=0;i0&&h.length>0&&this[0].nodeType){var g=(this[0].nodeType===9)?d("body"):this;d.EL[f].call(null,g[0],h[0])}return this}});var e=["appendTo","prependTo","insertBefore","insertAfter"];d.each(e,function(g,f){d.Q.fn[g]=function(i){if(!(i instanceof d.Query)){i=d(i)}if(this.length>0&&i.length>0&&i[0].nodeType){var h=(i[0].nodeType===9)?d("body"):i;d.EL[c[f]].call(null,h[0],this[0])}return this}});var b=["keydown","keypress","keyup","click","dblclick","change","blur","focusin","focusout","focus","input","mouseenter","mouseleave","mouseover","mouseout","mouseup","mousedown","mousemove","resize","scroll","load","unload","beforeunload"];d.each(b,function(f){d.Q.fn[f]=function(h,g){if(arguments.length>0){return this.on(f,h,g)}this.each(function(i){if(i[f]){i[f]()}});return this};d.Q.fn["off"+f]=function(h,g){return this.off(f,h,g)}})})(zhiqim);+(function(a){a.MD5=a.Class.newInstance();a.MD5.V=[1732584193,-271733879,-1732584194,271733878];a.MD5.S=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21];a.MD5.T=[3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745];a.MD5.PAD=128;a.MD5.prototype={defaults:{abcd:a.MD5.V},digest:function(e){var g;var f=Math.floor((e.length+8)/64)+1;var h=f*64-8-e.length-1;var d=new Int8Array(64*f);for(g=0;g>>(32-i));return this.add(g,f)},ff:function(g,f,k,j,e,i,h){return this.cc(this.f(f,k,j),g,f,k,j,e,i,h)},gg:function(g,f,k,j,e,i,h){return this.cc(this.g(f,k,j),g,f,k,j,e,i,h)},hh:function(g,f,k,j,e,i,h){return this.cc(this.h(f,k,j),g,f,k,j,e,i,h)},ii:function(g,f,k,j,e,i,h){return this.cc(this.i(f,k,j),g,f,k,j,e,i,h)},f:function(b,d,c){return(b&d)|((~b)&c)},g:function(b,d,c){return(b&c)|(d&(~c))},h:function(b,d,c){return b^d^c},i:function(b,d,c){return d^(b|(~c))},getInt:function(c,d){return((c[d+0]&255)<<0)+((c[d+1]&255)<<8)+((c[d+2]&255)<<16)+((c[d+3]&255)<<24)},putInt:function(c,e,d){c[e+0]=(d>>>0);c[e+1]=(d>>>8);c[e+2]=(d>>>16);c[e+3]=(d>>>24)},add:function(b,e){var d=(b&65535)+(e&65535);var c=(b>>16)+(e>>16)+(d>>16);return(c<<16)|(d&65535)},slice:function(d,h,e){var c=e-h,f=0;var b=new Int32Array(c);for(var g=h;g';f+='
';f+='
';f+='
';f+='
';f+="
";f+="
";this.$dialog=a(f);if(a.T.isDocument(this.target)){this.$dialog.appendTo("body")}else{this.$dialog.appendToPos(this.target)}a.Dialog.cache.put(this.id,this);this.active=document.activeElement;if(this.active!=null&&this.active.blur){this.active.blur()}var c=this.width+(this.hasBackground?10:0);var e=this.height+(this.hasBackground?10:0)+(this.hasTitle?40:0);var b=this.calcPosition(c,e);this.$dialog.css(b);this.$dialog.css({width:c,height:e});this.$background=this.$dialog.find(".z-background");this.$wrap=this.$dialog.find(".z-wrap");if(!this.hasBackground){this.$background.remove();this.$wrap.css({top:0,left:0,width:c,height:e})}else{this.$background.css("backgroundColor",this.backgroundColor);this.$wrap.css({top:5,left:5,width:(c-10),height:(e-10)})}this.$title=this.$wrap.find(".z-title");this.$content=this.$wrap.find(".z-content");this.$content.css({height:this.height,borderColor:this.borderColor});if(!this.hasTitle){this.$title.remove();this.$content.css("top",0)}else{this.$title.css({borderColor:this.borderColor,backgroundColor:this.titleBgColor});this.$title.find("span").html(this.title);this.$title.find("i").click(this.close,this).mouseover(function(g){a.E.stop(g)})}if(this.fixed&&this.target===document){this.$dialog.css("position","fixed")}if(this.text){this.$content.html(this.text)}else{var d=this.url+((this.url.indexOf("?")==-1)?"?":"&")+"zDialogFrame=true";this.$content.css({overflowY:"hidden"});this.$content.append("")}if(this.scroll){this.doScroll()}if(this.shadow){this.$shadow=a('
');if(a.T.isDocument(this.target)){this.$shadow.appendTo("body").css({left:this.targetLeft,top:this.targetTop})}else{this.$shadow.appendToPos(this.target)}this.$shadow.css({backgroundColor:this.shadowColor}).css({width:this.targetWidth,height:this.targetHeight}).fadeTo(500,this.shadowOpacity)}if(this.drag&&this.hasTitle){this.$dialog.drag(this.$title,this.doDrag,this)}this.status=1;if(a.T.isFunction(this.callback)){this.callback.call(this,this.status)}if(this.timeout>0){this.$dialog.fadeOut(this.timeout,a.bind(this.close,this))}},calcPosition:function(b,e){if(a.T.isPlainObject(this.position)){return this.position}var h=0,g=0;if(a.T.isDocument(this.target)){h+=this.targetLeft;g+=this.targetTop}var i=h+(this.targetClientWidth-b)/2;var f=g+(this.targetClientHeight-e)/2;if(!a.T.isNumber(this.position)){return{left:i,top:f}}var d=this.targetWidth-b;var c=this.targetHeight-e;if(a.T.isDocument(this.target)){d+=this.targetLeft;c+=this.targetTop}switch(this.position){case 1:return{left:h,top:g};case 2:return{left:h,top:f};case 3:return{left:h,top:c};case 4:return{left:i,top:g};case 5:return{left:i,top:c};case 6:return{left:d,top:g};case 7:return{left:d,top:f};case 8:return{left:d,top:c};default:return{left:i,top:f}}},close:function(b,c){if(b instanceof Event){a.E.forbidden(b)}if(this.status==0){return}a.Dialog.cache.remove(this.id);this.remove(b===true);if(a.T.isFunction(c)){c.call(this,b)}},remove:function(b){if(this.status==0){return}this.$dialog.remove();window.focus();if(this.shadow===true){if(b){this.$shadow.remove()}else{this.$shadow.fadeOut(500,function(){a(this).remove()})}}this.status=0;if(a.T.isFunction(this.callback)){this.callback.call(this,this.status)}},doDrag:function(c,b){if(!this.dragOpacity){return}this.$dialog.children("div").css("opacity",b?this.dragOpacity:1)},doScroll:function(){if(this.text||/http(s?):\/\//i.test(this.url)){return}var c=this.$content.find("iframe")[0].contentWindow;var b=c.document;a.E.add(b,"DOMContentLoaded",this.doScrollLoaded,this);a.E.add(c,"load",this.doScrollLoaded,this)},doScrollLoaded:function(d){var f=this.$content.find("iframe")[0].contentWindow;var c=f.document;var b=this.scrollHeight;if(!b){b=a.D.scrollHeight(c)-a.D.clientHeight(c)}b-=this.scrollPad;f.scrollTo(0,b);a.E.remove(f,"DOMContentLoaded",this.doScrollLoaded,this);a.E.remove(c,"load",this.doScrollLoaded,this)}};a.dialog=function(d){var c=new a.Dialog();for(var b in d){c.set(b,d[b])}c.execute()};a.Dialog.innerWidth=function(){var b=250;if(screen.width>1440){b=450}else{if(screen.width>1024){b=350}else{if(screen.width>800){b=300}}}var c=a.D.clientWidth();return(c>0)?Math.min(b,parseInt(c*0.8)):b};a.alert=function(l,k,c){var b=c&&c.width||a.Dialog.innerWidth();var d=a.textLineNum(l,b-77,14);var h=d==1?36:d*22;var j=d==1?36:22;var m=c&&c.height||(80+h);var g=c&&c.type||"alert";var e='
确定
';var f=new a.Dialog();f.fixed=true;f.hasBackground=c&&c.hasBackground||false;f.title=g=="success"?"成功":g=="failure"?"失败":"注意";f.text=e;f.width=b;f.height=m;f.execute();f.$content.css("overflow","hidden");f.$content.find(".z-console").find(".z-cancel").focus().click(function(n){f.close(n,k)});if(a.T.isFunction(k)){f.$title.find("i").click(k)}function i(n){if(a.E.key(n)!=a.E.KEY.ENTER){return}if(f.shadow){f.$shadow.offkeydown(i)}f.$dialog.offkeydown(i);f.close(n,k)}if(f.shadow){f.$shadow.keydown(i)}f.$dialog.focus().keydown(i)};a.confirm=function(k,j,c){var b=c&&c.width||a.Dialog.innerWidth();var d=a.textLineNum(k,b-77,14);var g=d==1?36:d*22;var i=d==1?36:22;var l=c&&c.height||(80+g);var e='
确定
取消
';var f=new a.Dialog();f.fixed=true;f.hasBackground=c&&c.hasBackground||false;f.title="询问";f.text=e;f.width=b;f.height=l;f.execute();f.$content.css("overflow","hidden");f.$content.find(".z-console").find(".z-cancel").click(function(m){f.close(m)});f.$content.find(".z-console").find(".z-ok").focus().click(function(m){f.close(m,j)});function h(m){if(a.E.key(m)!=a.E.KEY.ENTER){return}if(f.shadow){f.$shadow.offkeydown(h)}f.$dialog.offkeydown(h);f.close(m,j)}if(f.shadow){f.$shadow.keydown(h)}f.$dialog.focus().keydown(h);throw"stop"};a.prompt=function(o,s,g,k){var l=k&&k.type=="textarea";var c=k&&k.type=="select";var r=k&&k.width||a.Dialog.innerWidth();var p=k&&k.height||(l?150:120);var w=k&&k.style||"";var d="";if(k&&k.className){d=" "+k.className}var h="";if(k&&k.maxLength){h=" maxlength='"+k.maxLength+"'"}var j="";if(k&&k.placeholder){j=" placeholder='"+k.placeholder+"'";if(l){j+=" data-role='z-placeholder'"}}var f=p-75;var t='
';if(l){t+='"}else{if(c){var x=k&&k.selects||[];t+='"}else{var m="";if(k&&k.dataOptions){m=" data-options='"+k.dataOptions+"'"}t+='"}}t+='
确定
取消
';var v=new a.Dialog();v.fixed=true;v.hasBackground=k&&k.hasBackground||false;v.title=a.S.toString(o||"提示修改");v.text=t;v.width=r;v.height=p;v.execute();v.$dialog.css("position","fixed");v.$content.css("overflow","hidden");v.$content.find(".z-console").find(".z-cancel").click(function(){v.close()});if(c){a.Select.load(v.$content)}else{if(l&&(h||j)){a.Textarea.load(v.$content)}else{if(!l&&!c&&m){a.Input.load(v.$content)}}}var e=v.$content.find(".z-container").find(".z-prompt").find(l?"textarea":c?"select":"input");if(!c){e.focusEnd()}function n(){v.close();if(a.T.isFunction(g)){g(e.val())}}v.$content.find(".z-console").find(".z-ok").click(n);function b(i){if(a.E.key(i)!=a.E.KEY.ENTER){return}if(v.shadow){v.$shadow.offkeydown(b)}v.$dialog.offkeydown(b);n()}if(!l){if(v.shadow){v.$shadow.keydown(b)}v.$dialog.focus().keydown(b)}throw"stop"};a.loading=function(i){var h="正在加载...";if(a.T.isString(i)){h=i;i=null}h=i&&i.text||h;var c=i&&i.radius||"z-bd-rd5";var e=i&&i.background||"#fff";var g=i&&i.target||document;var b=i&&i.position||null;var f='
'+h+"
";var d=new a.Dialog();d.fixed=g===document;d.hasTitle=false;d.hasBackground=false;d.target=g;d.position=b;d.shadow=i&&i.shadow||false;d.borderColor=i&&i.borderColor||"#d8d8d8";d.width=i&&i.width||150;d.height=i&&i.height||50;d.text=f;d.execute();d.$content.css("overflow","hidden");d.$content.addClass(c);d.$content.css("background",e);return d};a.tips=function(c){var l="处理成功";if(a.T.isString(c)){l=c;c=null}l=c&&c.text||l;var g=c&&c.radius||"z-bd-rd5";var d=c&&c.color||"#fff";var b=c&&c.background||"#333";var i=c&&c.target||document;var e=c&&c.position||null;var f=c&&c.ico||"z-finish";var k=c&&c.timeout||1500;var h='
'+l+"
";var j=new a.Dialog();j.fixed=i===document;j.hasTitle=false;j.hasBackground=false;j.target=i;j.position=e;j.shadow=c&&c.shadow||false;j.borderColor=c&&c.borderColor||"#d8d8d8";j.width=c&&c.width||120;j.height=c&&c.height||50;j.text=h;j.timeout=k;j.execute();j.$content.css("overflow","hidden").addClass(g).css("background",b).css("color",d);return j}})(zhiqim);+(function(a){a.Ajax=a.Class.newInstance();a.Ajax.v="1.4.0";a.Ajax.prototype={defaults:{contextPath:null,className:null,methodName:null,token:"",async:true,params:[],paramMap:new a.HashMap(),paramData:null,callback:null,callbackMethod:"htmlc",success:null,failure:null,loading:null,loadingParam:null,loadingAttr:null,loadingProcess:false,responseStatus:0,responseText:null},init:function(){if(window.ActiveXObject){try{this.httpRequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{this.httpRequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}else{if(window.XMLHttpRequest){this.httpRequest=new XMLHttpRequest()}}},execute:function(){if(!this.httpRequest){a.failure("[Z.Ajax]浏览器不支持AJAX");return false}if(!this.className){a.failure("[Z.Ajax]未设置className");return false}if(!this.methodName){a.failure("[Z.Ajax]未设置methodName");return false}var b=null;try{b=window.location.pathname}catch(h){b="null"}var d=a.rootPath(this.contextPath,"/service/ajax?path="+b+"&time="+(new Date()).getTime());var c=null;if(this.paramMap.size()>0){c="";a.eachof(this,this.paramMap.keySet(),function(e){c+=e+"="+encodeURIComponent(this.paramMap.get(e))+"&"});c=c.slice(0,-1)}else{if(this.paramData){c=this.paramData}else{if(this.params.length>0){c="";a.eachof(this,this.params,function(e){e=""+e;if(e.indexOf("#")!=-1){e=e.replace(/\#/g,"-%2-%-3%-")}c+="%23"+encodeURIComponent(e)+"%23"})}}}if(this.async){this.httpRequest.onreadystatechange=a.bind(this.receive,this)}this.httpRequest.open("POST",d,this.async);this.httpRequest.setRequestHeader("X-Requested-With","XMLHttpRequest");this.httpRequest.setRequestHeader("X-RMI-Class",this.className);this.httpRequest.setRequestHeader("X-RMI-Method",this.methodName);if(this.token){this.httpRequest.setRequestHeader("X-RMI-Token",this.token)}if(this.paramMap.size()>0||this.paramData){this.httpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8")}else{this.httpRequest.setRequestHeader("Content-Type","text/plain; charset=UTF-8")}this.httpRequest.send(c);if(!this.async){this.processResult();return}if(!this.loading||(a.Dialog&&this.loading instanceof a.Dialog)){return}if(a.T.isFunction(this.loading)){this.loading.call(this)}else{if(a.T.isDocument(this.loading)){this.loading=a.loading({target:document,shadow:true===this.loadingParam})}else{if(a.T.isElement(this.loading)||a.T.isString(this.loading)){if(a.T.isString(this.loadingParam)){var g=a.T.isString(this.loading)?a("#"+this.loading):a(this.loading);var f=g.html();g.html(this.loadingParam);this.loadingParam=f;if(this.loadingAttr&&this.loadingAttr.disabled===true){g.attr("disabled",true)}}else{if(a.loading){this.loading=a.loading({target:this.loading,shadow:true===this.loadingParam})}}}else{if(a.T.isObject(this.loading)&&this.loading.execute){this.loading.execute()}}}}},receive:function(){if(this.httpRequest.readyState!=4){return}if(this.loading){if(a.T.isObject(this.loading)&&this.loading.close){this.loading.close(true)}else{if((a.T.isString(this.loading)||a.T.isElement(this.loading))&&this.loading!=this.callback){this.processRecoveryLoading()}}}this.processResult()},processRecoveryLoading:function(){if(this.loadingProcess){return}var b=a.T.isString(this.loading)?a("#"+this.loading):a(this.loading);if(!(this.loadingAttr&&this.loadingAttr.recovery===false)){if(this.loadingParam){b.html(this.loadingParam)}}if(this.loadingAttr&&this.loadingAttr.disabled===true&&this.loadingAttr.recovery!==false){b.attr("disabled",false)}},processResult:function(){if(this.httpRequest.status==200){this.responseStatus=0;this.responseText=this.httpRequest.responseText}else{this.responseStatus=(this.httpRequest.status==0)?91:this.httpRequest.status;this.responseText=this.httpRequest.responseText}this.httpRequest=null;if(this.responseStatus>=601&&this.responseStatus<=603){var b;var c=this.responseText.lastIndexOf("#");if(c!=-1){b=this.responseText.substring(c+1);this.responseText=this.responseText.substring(0,c)}if(a.V.isEmpty(b)){this.processRedirect()}else{a.failure(b,a.bind(this.processRedirect,this))}throw"stop"}else{if(this.responseStatus!=0&&a.T.isFunction(this.failure)){this.failure.call(this,this.responseText,this.responseStatus)}else{if(this.responseStatus!=0&&a.T.isString(this.failure)){this.showValue(this.failure)}else{if(this.responseStatus==0&&a.T.isFunction(this.success)){this.success.call(this,this.responseText,this.responseStatus)}else{if(this.responseStatus==0&&a.T.isString(this.success)){this.showValue(this.success)}else{if(a.T.isFunction(this.callback)){this.callback.call(this,this.responseText,this.responseStatus)}else{if(a.T.isString(this.callback)){this.showValue(this.callback)}}}}}}}},showValue:function(b){if(this.callbackMethod=="val"){a("#"+b).val(this.responseText)}else{if(this.callbackMethod=="text"){a("#"+b).text(this.responseText)}else{if(this.callbackMethod=="html"){a("#"+b).html(this.responseText)}else{a("#"+b).htmlc(this.responseText)}}}},processRedirect:function(){switch(this.responseStatus){case 601:window.parent.location.href=this.responseText;break;case 602:window.location.href=this.responseText;break;case 603:window.top.location.href=this.responseText;break}},setContextPath:function(b){this.contextPath=b;return this},setClassName:function(b){this.className=b;return this},setMethodName:function(b){this.methodName=b;return this},setToken:function(b){this.token=b;return this},setSync:function(){this.async=false;return this},setCallback:function(b){this.callback=b;return this},setCallbackMethod:function(b){this.callbackMethod=b;return this},setSuccess:function(b){this.success=b;return this},setSuccessLocation:function(c,b){this.success=function(){a.L.href(c,b)}},setSuccessLocationResponse:function(c,b){this.success=function(){a.L.href(this.responseText,b)}},setSuccessReload:function(){this.success=function(){a.L.reload()}},setSuccessReloadParent:function(){this.success=function(){parent.Z.L.reload()}},setSuccessReloadTop:function(){this.success=function(){top.Z.L.reload()}},setSuccessAlertLocation:function(d,c,b){this.success=function(){a.success(d,function(){a.L.href(c,b)})}},setSuccessAlertReload:function(b){this.success=function(){a.success(b,function(){a.L.reload()})}},setSuccessAlertReloadParent:function(b){this.success=function(){a.success(b,function(){parent.Z.L.reload()})}},setSuccessAlertReloadTop:function(b){this.success=function(){a.success(b,function(){top.Z.L.reload()})}},setFailure:function(b){this.failure=b;return this},setFailureAlert:function(){this.failure=function(){a.failure(this.responseText)};return this},setFailureAlertRecovery:function(){this.failure=function(){if(this.loadingAttr){this.loadingAttr.recovery=true;this.processRecoveryLoading()}a.failure(this.responseText)};return this},addParam:function(c,b){(b==a.u)?this.params.push(c):this.paramMap.put(c,b);return this},setParamData:function(b){this.paramData=b;return this},setParamForm:function(b){this.paramData=a.FM.formData(b);return this},setLoading:function(c,d,b){this.loading=c;this.loadingParam=d;this.loadingAttr=b;return this}};a.ajax=function(b,e,d){var c=new a.Ajax();if(b){c.setClassName(b)}if(e){c.setMethodName(e)}if(d){c.setCallback(d)}return c};a.submit=function(b,h,g,c,f,d){a(c).attr("type","button");if(validateForm&&validateForm(c.form)){return}var e=a.ajax(b,h,g);e.setParamData(a.FM.formData(c.form));e.setLoading(c,f,d);e.execute()};a.log=function(b,c){a.ajax("Logs",c||"info").addParam(b).execute()}})(zhiqim);+(function(a){a.Calendar=a.Class.newInstance();a.Calendar.v="1.4.0";a.Calendar.prototype={defaults:{hasTime:false,hasSecond:true,selectYear:null,selectMonth:null,selectDay:null,selectHour:null,selectMinute:null,selectSecond:null,elem:null,elemDate:null,currDate:new Date(),dateMap:new a.HashMap()},init:function(){this.$elem=a.$elem(this.elem,"Z.Calendar");this.random=a.random(10);this.html='