var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,d,a){b instanceof String&&(b=String(b));for(var c=b.length,e=0;e<c;e++){var f=b[e];if(d.call(a,f,e,b))return{i:e,v:f}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,d,a){if(b==Array.prototype||b==Object.prototype)return b;b[d]=a.value;return b};$jscomp.getGlobal=function(b){b=["object"==typeof globalThis&&globalThis,b,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var d=0;d<b.length;++d){var a=b[d];if(a&&a.Math==Math)return a}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(b,d){var a=$jscomp.propertyToPolyfillSymbol[d];if(null==a)return b[d];a=b[a];return void 0!==a?a:b[d]};
$jscomp.polyfill=function(b,d,a,c){d&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(b,d,a,c):$jscomp.polyfillUnisolated(b,d,a,c))};$jscomp.polyfillUnisolated=function(b,d,a,c){a=$jscomp.global;b=b.split(".");for(c=0;c<b.length-1;c++){var e=b[c];if(!(e in a))return;a=a[e]}b=b[b.length-1];c=a[b];d=d(c);d!=c&&null!=d&&$jscomp.defineProperty(a,b,{configurable:!0,writable:!0,value:d})};
$jscomp.polyfillIsolated=function(b,d,a,c){var e=b.split(".");b=1===e.length;c=e[0];c=!b&&c in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<e.length-1;f++){var h=e[f];if(!(h in c))return;c=c[h]}e=e[e.length-1];a=$jscomp.IS_SYMBOL_NATIVE&&"es6"===a?c[e]:null;d=d(a);null!=d&&(b?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:d}):d!==a&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(a=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+a+"$"+e),$jscomp.defineProperty(c,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:d})))};$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(d,a){return $jscomp.findInternal(this,d,a).v}},"es6","es3");(function(){null==jQuery||jQuery._data||(jQuery._data=jQuery.data)})();var orgFldCls=null;
$(function(){USE_FOCUS_HILIGHT&&(setEvent('textarea,select,input[type="text"]',"focusin",function(){doFocus2(this)}),setEvent('textarea,select,input[type="text"]',"focusout",function(){doBlur2(this)}))});function doFocus2(b){null!=b&&(null==b.className||0>b.className.indexOf("must"))&&("SELECT"==b.tagName?(b.orgBgColor=b.style.backgroundColor,b.style.backgroundColor="#ffcccc"):(orgFldCls=b.className,b.className="focusField "+orgFldCls))}
function doBlur2(b){null!=b&&(null==b.className||0>b.className.indexOf("must"))&&("SELECT"==b.tagName?b.style.backgroundColor=b.orgBgColor:b.className=null!=orgFldCls?orgFldCls:"notFocusField")}oldDoFocusFlag=!0;function doFocus(b){oldDoFocusFlag&&(oldDoFocusFlag=!1,setTimeout(alert("Old Script Error!!\ncustom/query_info.jsp,custom/result_info.jsp Please delete the following part.\n<script>Tag(Header fix and Focus) , BODY onLoad and oncontextmenu Attribute"),100))}function doBlur(b){}
$(function(){setEvent('textarea,select,input[type="text"]',"focusout",function(){convert(this,!0)})});function isNumeric(b){return!isNaN(parseFloat(b))&&isFinite(b)}
function convert(b,d){var a=b.className,c=b.value;null!=a&&null!=c&&(a.match(/XL/)?(c=zen2han(c),a.match(/XLU/)?b.value=c.replace(/\s+$/,"").toUpperCase():b.value=c.replace(/\s+$/,"").toLowerCase()):a.match(/XU/)?(c=zen2han(c),b.value=c.replace(/\s+$/,"").toUpperCase()):a.match(/S9/)||a.match(/R/)&&!a.match(/NVAR/)&&!a.match(/CRYPT/)?(c=zen2han(c),a.match(/R/)&&(c=c.replace(/\.0+$/,"")),b.value=c.replace(/,/g,"")):!a.match(/X/)||a.match(/XK/)||a.match(/KX/)||a.match(/XH/)||(b.value=zen2han(c)));return d&&
(a.match(/S9/)||a.match(/X9/)||a.match(/R/)&&!a.match(/NVAR/)&&!a.match(/CRYPT/))&&!isNumeric(b.value)?!1:!0}var zen2han=function(b){return b=b.replace(/[\uff21-\uff3a\uff41-\uff5a\uff10-\uff19\uff0e\u2010\uff0d]/g,function(d){return String.fromCharCode(d.charCodeAt(0)-65248)})},colMap,notFireCols,jH_evElm;
$(function(){"undefined"!=typeof EC_NAME&&(jH_evElm=$(".h_evElm"),makeColMapping(),setEvent('textarea,select,input[type="text"]',"change",function(){makeColumn(this)},".h_evCol",!0,addEvColCls),setEvent("input[type=checkbox],input[type=radio]","click",function(){makeColumn(this)},".h_evCol",!0))});
function makeColMapping(){var b,d,a;if(!colMap)for(colMap={},b=0;b<EC_EVCOL.length;b++){var c=EC_EVCOL[b].split(",");for(d=0;d<c.length;d++){var e=c[d];"_"==e.charAt(0)&&(e=e.substring(1),null==notFireCols&&(notFireCols=","),notFireCols+=e,notFireCols+=",");(a=colMap[e])||(a=[]);a[a.length]=EC_NAME[b];colMap[e]=a}}}function addEvColCls(){for(var b in colMap)$("#"+b+",[id^="+b+"__]").addClass("h_evCol")}
function makeColumn(b){var d;jH_evElm&&isEndInitEvent()&&(jH_evElm=null);var a=$(b);var c=a.attr("id");var e=c.split("__")[0];if((d=colMap[e])&&!(!isEndInitEvent()&&notFireCols&&0<=notFireCols.indexOf(","+e+","))&&convert(b,!0))for(b=0;b<d.length;b++){var f=c==e?"":"__"+c.split("__")[1];var h=d[b]+f;var u=h.split("__")[0];var l=isEndInitEvent()?$(".h_evElm[h_evCid="+h+"]"):jH_evElm.filter("[h_evCid="+h+"]");var y=l.attr("h_evWrtbl");eventColumn(a,l,h,u,f,y)}}
function eventColumn(b,d,a,c,e,f){var h,u,l={};if(d&&0!=d.length){if(!isEndInitEvent()){var y=b.get(0).value;if(!y||null==y||""==y)return}try{var n=eval("EC_"+c+"_URL")}catch(p){alert("[SYSTEM_ERROR] : URL that processes the event is not specified. (variable undefinition). ["+c+"]");return}if(n&&""!=n){y="";try{y=f?eval("EC_"+c+"_EDITPARAM"):eval("EC_"+c+"_RENDPARAM")}catch(p){}try{var v=f?eval("EC_"+c+"_EDITPARAMKEYS"):eval("EC_"+c+"_RENDPARAMKEYS")}catch(p){}if("true"===eval("EC_"+c+"_FLGENCRYPT")){if(v){var m=
v.split(",");for(h=0;h<m.length;h++){var w=m[h];v=""==e?$("#"+w).get(0).value:$("#"+w+e).get(0).value;l[w]=v}}}else if(null!=y&&""!=y)for(n+="?",h=v=0;-1!=(v=y.indexOf("{@",h));)h=y.indexOf("}",v),m=y.substring(v+2,h),0>m.indexOf(".")&&(h="{@"+m+"}",w=function(p){console.log("noDifined:");console.log(p);return null},w=""==e?$("#"+m)[0]?$("#"+m).get(0).value:w(m):$("#"+m+e)[0]?$("#"+m+e).get(0).value:w(m+e),w=null==w?"":w,y=y.replace(h,w),n+=m+"="+encodeURIComponent(w)+"&"),h=v+1;valsql="";try{valsql=
eval("EC_"+c+"_VALSQL")}catch(p){}if(null!=valsql&&""!=valsql)for(h=v=0;-1!=(v=valsql.indexOf("{@",h));)h=valsql.indexOf("}",v),m=valsql.substring(v+2,h),0>m.indexOf(".")&&(h="{@"+m+"}",w=""==e?$("#"+m).get(0).value:$("#"+m+e).get(0).value,w=null==w?"":w,valsql=valsql.replace(h,w)),h=v+1;m=function(){_firstOption=t.children("option").get(0);return null==_firstOption||""!=_firstOption.value?!1:!0};var K=function(){t.attr("isfocus","true")};var t=null!=a&&""!=a?d.find("#"+a):[];if(0<t.length&&isEndInitEvent())t.on("focus",
K);v="";0<t.length&&(v=isEndInitEvent()?null==t.val()?"":t.val():null==d.attr("h_evVal")?"":d.attr("h_evVal"));w="";try{w=eval("EC_"+c+"_RENDERER")}catch(p){}var M="";try{M=eval("EC_"+c+"_EDITOR")}catch(p){}var O="title style tabindex readonly disabled onClick onChange onBlur onFocus ondblClick onMouseDown onMouseUp onMouseMove onMouseOut onMouseOver onSelect onKeydown onKeypress onKeyup eventCallBack multiple".split(" ");var z="";if(0<t.length)for(h=0;h<O.length;h++){var F=t.attr(O[h]);if(null!=
F){var k=typeof F;var N=!1;"function"==k?(F=F.toString(),N=0<F.length?!0:!1,F="("+F+")()"):N="boolean"==k?F:0<F.length?!0:!1;N&&(z+=O[h]+"='"+F+"' ")}}l.EC_CID=null==a?"":a;l.EC_CNAME=null==c?"":c;l.EC_RENDERER=w;l.EC_EDITOR=M;l.EC_PARAM=y;l.EC_SQL=y;l.EC_VALSQL=valsql;l.EC_WRITABLE=null==f?"":f;l.EC_CVALUE=v;l.EC_NOVALUE=0==t.length?"":m();l.EC_CLASS=0==t.length?"":t.attr("class");l.EC_SIZE=0==t.length?"":t.attr("size");l.EC_MAXLENGTH=0==t.length?"":t.attr("maxlength");l.EC_OPTATTRS=z;l.EC_PNAME=
null==b.attr("id")?"":b.attr("id").split("__")[0];l.EC_PVALUE=null==b.get(0).value?"":b.get(0).value;l.EC_USESLBL=null==e||""==e?"false":"true";$.ajax({url:n,data:l,type:"POST",dataType:"html",async:isEndInitEvent(),error:function(p,G,L){0>n.indexOf(".htm")&&alert("EventColumnError:"+p+":"+G+":"+L+":"+c)},success:function(p,G){p=$(p);0<t.length&&(isEndInitEvent()&&t.off("focus",K),bindOldEvents(p.get(0),jQuery._data(t.clone(!0).get(0)).events));null!=a&&""!=a&&"text"==$("#"+a).attr("type")?$("#"+
a).val(p.val()):d.empty().append(p);0<t.length&&(d.find("input,select,textarea").attr("name",a).attr("id",a),isEndInitEvent()&&t.attr("isfocus")&&p.get(0).focus(),isEndInitEvent()||p.trigger("change"),t.attr("eventCallback")&&(u=function(){eval(t.attr("eventCallback")+"(arguments);")},u(a,p.val(),t.get(0).value)));null!=e&&""!=e&&isEndInitEvent()&&$("table#viewTable").resizeView()}})}else alert("[SYSTEM_ERROR] : URL that processes the event is not specified. ["+c+"]")}else alert("[SYSTEM_ERROR] : jTag is null. The element of the replacement object doesn't exist. ["+
c+"]")}function bindOldEvents(b,d){var a,c;for(a in d)for(c in d[a])0!==d[a][c]&&jQuery.event.add(b,a,d[a][c],d[a][c].data)}var isShowTip=!1;
$(function(){USE_REAL_TIME_CHECK&&(setEvent('textarea:not([realTimeChk="false"]),select:not([realTimeChk="false"]),input[type="text"]:not([realTimeChk="false"])',"focusout",function(){location.pathname.match(RegExp(/jsp/));check(this,RegExp.leftContext+"jsp/common/realtimecheck.jsp")}),$("table#viewTable").parent().parent().on("scroll",function(){isShowTip&&(isShowTip=!1,$(".tipErr").remove())}),$("table#viewTable").parent().parent().trigger("click"))});
function check(b,d){var a,c;var e=b.name;if("undefined"!=typeof jQuery&&0!=e.indexOf("h_")){var f=b.value;"null"!=b.rtOption&&"undefined"!=b.rtOption&&(c=b.getAttribute("rtOption"));var h=e.split("__");var u=2==h.length;e="command=RENEW&checkType="+(u?"ENTRY":"NEW")+(u?"&h_rowSel="+h[1]:"")+"&column="+h[0]+"&"+e+"="+encodeURIComponent(f)+(c?"&"+c:"");d={dataType:"html",type:"POST",url:d,data:e,error:function(){},success:function(l){a=$(b).data("tipId");$("#"+a).remove();0<=l.indexOf("row_error")&&
(showCheckTip(b,l),isShowTip=!0)}};$.ajax(d)}return!0}
function showCheckTip(b,d){var a=$(b).offset();if(30<=a.top){d=$("<div class='tipErr'><div id='tipArrowBottom'></div><div>"+d+"</div></div>").appendTo(document.body);var c=a.left;a=a.top+(-11-d[0].offsetHeight)}else d=$("<div class='tipErr'><div id='tipArrowTop'></div><div>"+d+"</div></div>").appendTo(document.body),c=a.left,a=a.top+11+d[0].offsetHeight;var e=(new Date).getTime();$(b).data("tipId",e);d.css({left:c+"px",top:a+"px"}).attr("id",e).on("click",function(){$(this).remove()}).show()}$(function(){bindEvents()});
$.fn.simpleColorPickerOg=function(b){var d={colorsPerLine:8,colors:"#000000 #444444 #666666 #999999 #cccccc #eeeeee #f3f3f3 #ffffff #ff0000 #ff9900 #ffff00 #00ff00 #00ffff #0000ff #9900ff #ff00ff #f4cccc #fce5cd #fff2cc #d9ead3 #d0e0e3 #cfe2f3 #d9d2e9 #ead1dc #ea9999 #f9cb9c #ffe599 #b6d7a8 #a2c4c9 #9fc5e8 #b4a7d6 #d5a6bd #e06666 #f6b26b #ffd966 #93c47d #76a5af #6fa8dc #8e7cc3 #c27ba0 #cc0000 #e69138 #f1c232 #6aa84f #45818e #3d85c6 #674ea7 #a64d79 #990000 #b45f06 #bf9000 #38761d #134f5c #0b5394 #351c75 #741b47 #660000 #783f04 #7f6000 #274e13 #0c343d #073763 #20124d #4C1130".split(" "),
showEffect:"",hideEffect:"",onChangeColor:!1},a=$.extend(d,b);return this.each(function(){function c(m){"fade"==a.hideEffect?m.fadeOut():"slide"==a.hideEffect?m.slideUp():m.hide()}for(var e=$(this),f="",h=e.attr("id").replace(/-/g,"")+"_",u=0;u<a.colors.length;u++){var l=a.colors[u],y="";0==u%a.colorsPerLine&&(y="clear: both; ");f+='<li id="'+h+"color-"+u+'" class="color-box" style="'+y+"background-color: "+l+'" title="'+l+'"></li>'}var n=$('<div id="'+h+'color-picker" class="color-picker" style="position: absolute; left: 0px; top: 0px;"><ul>'+
(f+('<li id="'+h+'color-default" class="color-box" style="width:80px; text-align:center; clear: both; background-color:white;" title="clear">clear</li></ul><div style="clear: both;"></div></div>')));$("body").append(n);n.hide();n.find("li.color-box").on("click",function(){var m=isNaN(this.id.substr(this.id.indexOf("-")+1))?"":a.colors[this.id.substr(this.id.indexOf("-")+1)];e.is("input")||(e.val(m),e.blur());"function"===typeof d.onChangeColor&&d.onChangeColor.call(e,m);c(n)});$("body").on("click",
function(){c(n)});n.on("click",function(m){m.stopPropagation()});var v=function(m){var w=e.offset(),K=w.left+e.outerWidth()-m.outerWidth();K<w.left&&(K=w.left);m.css({left:K,top:w.top+e.outerHeight()});"fade"==a.showEffect?m.fadeIn():"slide"==a.showEffect?m.slideDown():m.show()};e.on("click",function(m){e=$(this);m.stopPropagation();e.is("input")||v(n)});e.on("focus",function(){v(n)});e.on("change",function(m){e.val()!=e.css("background-color")&&e.css("background-color",e.val()).css("color",e.val())})})};
$(function(){$.fn.simpleColorPickerOg&&$("input.colorPicker").simpleColorPickerOg({onChangeColor:function(b){$(this).val(b).css("background-color",b).css("color",b).trigger("change")}})});
jQuery.fn.ogClockpicker=function(b,d){function a(f){if(f.starthour>=f.endhour)return alert("Error - start hour must be less than end hour."),!1;if(0!=60%f.minutedivisions)return alert("Error - param minutedivisions must divide evenly into 60."),!1}var c={starthour:6,endhour:20,showminutes:"true",minutedivisions:4,military:!0,event:"click",layout:"vertical",valuefield:null,useBgiframe:!1,hoursopacity:1,minutesopacity:1,second:""};b&&jQuery.extend(c,b);d=d||function(){};var e="vertical"==c.layout;a(c);
jQuery(this).on(c.event,function(f){function h(g){return k.military?"":12<=g?" PM":" AM"}function u(g){var q=document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight,r=parseInt(g[0].style.top),C=parseInt(g[0].style.left),B=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;r<=B&&!g.is("#CP_minutecont")?g.css("top",B+10+"px"):r+g.height()-B>q&&g.css("top",B+q-g.height()-10+"px");0>=C&&g.css("left","10px")}function l(g){"function"==
typeof jQuery.fn.bgIframe?g.bgIframe():alert("bgIframe plugin not loaded.")}function y(g){if("CP_hourcont"==g.attr("id"))g.on("mouseout",function(q){try{jQuery(q.toElement?q.toElement:q.relatedTarget).is("div[class^=CP], iframe")||t()}catch(r){t()}});else if("CP_minutecont"==g.attr("id"))g.on("mouseout",function(q){try{jQuery(q.toElement?q.toElement:q.relatedTarget).is("div[class^=CP], iframe")||t()}catch(r){t()}});else"CP_hour"==g.attr("class")?(g.on("mouseover",function(q){n(g,q)}),g.on("mouseout",
function(){v(g)}),g.on("click",function(){var q=g.attr("id").split("_")[1];h(q);q=g.attr("value");q=-1!=q.indexOf(" ")?q.substring(0,q.indexOf(" ")):q;g.text(q+"00"+k.second);K(g);t()})):"CP_minute"==g.attr("class")&&(g.on("mouseover",function(){m(g)}),g.on("mouseout",function(){w(g)}),g.on("click",function(){g.text(g.attr("value")+k.second);K(g);t()}))}function n(g,q){var r=g.attr("id").split("_")[1],C=g.attr("id").split("_")[2];g.addClass("CP_over");var B=Math.ceil((Math.floor(r/12)-Math.floor(k.starthour/
12))/2);if("true"==k.showminutes){E.hide();var H=!k.military&&12<r?r-12:r,x=r;if(k.military||0!=r)k.military||12!=r||(H="0");k.military&&10>r&&(H="0"+H);10>r&&(x="0"+x);E.empty();for(var J=60/k.minutedivisions,P=h(r),A=1,I=0;60>I;I+=J)$md=jQuery("<div class='CP_minute' id='"+r+"_"+I+"' value='"+x+(10>I?"0":"")+I+"'>"+H+":"+(10>I?"0":"")+I+P+"</div>"),e||($md.css("float","left"),6<k.minutedivisions&&A==k.minutedivisions/2+1&&E.append("<div style='clear:left' />")),E.append($md),y($md),A++;e?(q="mouseover"==
q.type?q.pageY-15:p.offset().top+2+g.height()*C,g=p.offset().left+2*G[0].width()*B+E.width()*(B-1)+4*B-2):(g="mouseover"==q.type?q.pageX-10:p.offset().left+(g.width()-5)*C,q=p.offset().top+(p.height()-(E.height()+2)*(Math.ceil(G.length/2)-1))/G.length*2*B+E.height()*(B-1)+2*B-1);E.css("left",g+"px").css("top",q+"px");u(E);E.show();k.useBgiframe&&l(E)}return!1}function v(g){g.removeClass("CP_over");return!1}function m(g){g.addClass("CP_over");return!1}function w(g){g.removeClass("CP_over");return!1}
function K(g){k.valuefield?jQuery("input[name="+k.valuefield+"]").val(g.text()).trigger("change"):O.value=g.text();d.apply(z,[g.text()]);z.off("keydown",M)}function t(){"true"==k.showminutes&&E.hide();p.slideUp("fast");z.off("keydown",M)}function M(g){function q(D){if(D.prev().length)eval(J+"div_out($obj)"),eval(J+"div_over($obj.prev(), e)");else return!1}function r(D){if(D.next().length)eval(J+"div_out($obj)"),eval(J+"div_over($obj.next(), e)");else return!1}function C(D){$newobj=jQuery(".CP_hour[id$=_"+
P+"]","#hourcol"+(0==(Math.floor(A/12)-Math.floor(k.starthour/12))%2?String(Math.floor(A/12)-Math.floor(k.starthour/12)+1):String(Math.floor(A/12)-Math.floor(k.starthour/12)-1)));if($newobj.length)v(D),n($newobj,g);else return!1}function B(D){v(D);m($(".CP_minute:first"))}function H(D,Q){w(D);0>Q?0==(Math.floor(A/12)-Math.floor(k.starthour/12))%2?(D=String(Math.floor(A/12)-Math.floor(k.starthour/12)+Q),A=String(Number(A)-12)):D=String(Math.floor(A/12)-Math.floor(k.starthour/12)):0==(Math.floor(A/
12)-Math.floor(k.starthour/12))%2?D=String(Math.floor(A/12)-Math.floor(k.starthour/12)):(D=String(Math.floor(A/12)-Math.floor(k.starthour/12)+Q),A=String(Number(A)+12));D="#hourcol"+D;jQuery(".CP_hour[id^=hr_"+A+"]",D);D=jQuery(".CP_hour[id^=hr_"+A+"]",D);n(D,g)}var x=$("div.CP_over").length?$("div.CP_over"):$("div.CP_hour:first"),J=x.is(".CP_hour")?"hour":"minute",P="hour"==J?x[0].id.split("_")[2]:0,A="minute"==J?x[0].id.split("_")[0]:x[0].id.split("_")[1],I="minute"==J?0==Math.floor(A/12)-Math.floor(k.starthour/
12)?"m1":0==Math.floor(A/12)-Math.floor(k.endhour/12)&&0!=(Math.floor(A/12)-Math.floor(k.starthour/12))%2?"m2":"m3":0==(Math.floor(A/12)-Math.floor(k.starthour/12))%2?"h1":"h2";switch(g.keyCode){case 37:if(e)switch(I){case "m1":return!1;case "m2":H(x,-1);break;case "m3":H(x,-1);break;case "h1":B(x);break;case "h2":C(x)}else q(x);break;case 38:if(e)q(x);else switch(I){case "m1":return!1;case "m2":H(x,-1);break;case "m3":H(x,-1);break;case "h1":B(x);break;case "h2":C(x)}break;case 39:if(e)switch(I){case "m1":H(x,
1);break;case "m2":return!1;case "m3":H(x,1);break;case "h1":C(x);break;case "h2":B(x)}else r(x);break;case 40:if(e)r(x);else switch(I){case "m1":H(x,1);break;case "m2":return!1;case "m3":H(x,1);break;case "h1":C(x);break;case "h2":B(x)}break;case 13:eval(J+"div_click($obj)");break;default:return!0}return!1}var O=this,z=jQuery(this),F=jQuery("body"),k=jQuery.extend(!0,{},c);z.attr("valuefield")&&(k.valuefield=z.attr("valuefield"));z.attr("starthour")&&(k.starthour=parseInt(z.attr("starthour")));z.attr("endhour")&&
(k.endhour=parseInt(z.attr("endhour")));z.attr("minutedivisions")&&(k.minutedivisions=parseInt(z.attr("minutedivisions")));z.attr("military")&&(k.military=z.attr("military"));z.attr("showminutes")&&(k.showminutes=z.attr("showminutes"));"true"==z.attr("usesecond")&&(k.second="00");z.attr("layout")&&(k.layout=z.attr("layout"),c.layout=k.layout,e="vertical"==k.layout);a(k);if(k.valuefield){var N=jQuery("[name="+k.valuefield+"]");N.off("keydown").on("keydown",M)[0].focus();N.on("click",function(){N.off("keydown")})}else z.off("keydown").on("keydown",
M);jQuery("#CP_hourcont,#CP_minutecont").remove();var p=jQuery("<div id='CP_hourcont' class='CP' />").appendTo(F);k.useBgiframe||p.css("opacity",k.hoursopacity);y(p);for(var G=[],L=0;L<Math.floor(k.endhour/12)-Math.floor(k.starthour/12)+1;L++)G.push(jQuery("<div class='CP_hourcol' id='hourcol"+L+"' />").appendTo(F));if("true"==k.showminutes){var E=jQuery("<div id='CP_minutecont' class='CP' />").appendTo(F);k.useBgiframe||E.css("opacity",k.minutesopacity);y(E)}if(e)for(L=0;L<G.length;L++)G[L].addClass("floatleft");
else p.css("width","auto"),"true"==k.showminutes&&E.css("width","auto");(function(){for(var g=1,q=0,r=k.starthour;r<=k.endhour;r++){0==r%12&&(g=1);var C=!k.military&&12<r?r-12:r,B=r;if(k.military||0!=r)k.military||12!=r||(C="0");k.military&&10>r&&(C="0"+C);10>r&&(B="0"+B);C=jQuery("<div class='CP_hour' id='hr_"+r+"_"+g+"' value='"+B+"' >"+C+h(r)+"</div>");k.military&&C.width(20);y(C);e||C.css("float","left");G[q].append(C);0==(r+1)%12&&q++;g++}for(g=0;g<G.length;g++)e?0!=g&&0==g%2&&G[g].css("margin-left",
E.width()+4+"px"):(p.append("<div style='clear:left' />"),0!=g&&0==g%2&&G[g].css("margin-top","19px")),p.append(G[g])})();"focus"!=f.type?(p[0].style.left=f.pageX-5+"px",p[0].style.top=f.pageY-Math.floor(p.height()/2)+"px",u(p)):z.after(p);p.slideDown("fast");k.useBgiframe&&l(p);return!1});return this};$(function(){$.fn.ogClockpicker&&$(document).ready(function(){$(".clockpick").ogClockpicker()})});
function likeComp(b){var d=b.substring(6);b=$("#"+b).attr("aimaiType");var a=$("#"+d).val();if(null!=a&&""!=a){a=a.replace(/^%+|%+$/g,"");var c=$("#"+d).attr("maxlength");if(null==c||a.length<parseInt(c,10))switch(b){case "1":a+="%";break;case "2":a="%"+a;break;case "3":a="%"+a+"%"}$("#"+d).val(a)}}$(function(){$("form").on("submit",function(){$("[id^='AIMAI_']").each(function(){likeComp(this.id)})})});
$.fn.aimaiPickerOg=function(b){var d=$.extend({iconDir:ICON_ADRS,icons:["aimai0.png","aimai1.png","aimai2.png","aimai3.png"],titls:["\u5b8c\u5168\u4e00\u81f4","\u524d\u65b9\u4e00\u81f4","\u5f8c\u65b9\u4e00\u81f4","\u524d\u5f8c\u66d6\u6627"]},b);return this.each(function(){function a(n){"fade"==d.hideEffect?n.fadeOut():"slide"==d.hideEffect?n.slideUp():n.hide()}for(var c=$(this),e="PIC_"+c.attr("id").replace(/-/g,"")+"_",f="",h=0;h<d.icons.length;h++){var u=d.titls[h];f+='<span id="'+e+"text-"+h+'" class="text-box"" title="'+
u+'"> '+('<img src="'+d.iconDir+d.icons[h]+'" alt="'+u+'"> </span>')}var l=$('<div id="'+e+'aimai-picker" class="aimai-picker" style="position: absolute; left: 0px; top: 0px;">'+f+'<div style="clear: both;"></div></div>');$("body").append(l);l.hide();l.find("span.text-box").on("click",function(){var n=this.id.substr(this.id.indexOf("-")+1);c.attr("aimaiType",n);c.attr("title",d.titls[n]);c.children("img").attr("src",d.iconDir+d.icons[n]);c.blur();a(l)});$("body").on("click",function(){a(l)});l.on("click",
function(n){n.stopPropagation()});var y=function(n){var v=c.offset(),m=v.left+c.outerWidth()-n.outerWidth();m<v.left&&(m=v.left);n.css({left:m,top:v.top+c.outerHeight()});"fade"==d.showEffect?n.fadeIn():"slide"==d.showEffect?n.slideDown():n.show()};c.on("click",function(n){n.stopPropagation();c.is("input")||y(l)});c.on("focus",function(){y(l)})})};$(function(){$.fn.aimaiPickerOg&&$(".aimaiClm").aimaiPickerOg()});
function selectScroll(b){var d=4;b.getAttribute("size")&&(d=b.getAttribute("size"));for(var a=b.options,c=0;c<a.length;c++)if(a[c].selected){"OPTGROUP"==a[c].parentNode.tagName.toUpperCase()&&(c+=$(a[c].parentNode).prev().length);var e=c*($(b).height()/d);break}$(b).scrollTop(e)}$(function(){$("select[multiple]").each(function(){selectScroll(this)})});
function dateFeedRtn(b,d,a,c,e){var f=parseInt(c.match(/[+-]?\d+/g));if(isNumeric(f))if(0==f)var h=a?a:_getSysDate(b);else(a=$("#"+d).val().replace(/\//g,""))&&("Y"==b&&4==a.length||"YM"==b&&6==a.length||"YMD"==b&&8==a.length)&&_isDate(b,a)&&(h=_addDate(b,a,c,f));else h=_getSysDate(b);h&&($("#"+d).val(h).trigger("change"),"true"==e&&$("#queryButtonSubmit").trigger("click"))}
var _addDate=function(b,d,a,c){var e;switch(b){case "Y":var f=d;break;case "YM":f=d.replace(/(\d{4})(\d{2})/,"$1/$2")+"/01";break;default:f=d.replace(/(\d{4})(\d{2})(\d{2})/,"$1/$2/$3")}f=new Date(f);var h=f.getFullYear(),u=f.getMonth(),l=f.getDate();if(a.indexOf("SY"))if(a.indexOf("SD"))if(a.indexOf("SW"))if(a.indexOf("EY"))if(a.indexOf("ED"))if(a.indexOf("EW"))if(a.indexOf("Y"))if(a.indexOf("M"))a.indexOf("D")||f.setDate(l+c);else for(a=0<c?1:-1,e=0;e<Math.abs(c);e++)0<e&&(h=f.getFullYear(),u=f.getMonth(),
l=f.getDate()),_mNew=0<c?u+2:u,_dNew=(new Date(h,_mNew,0)).getDate(),l>_dNew?f=new Date(h,_mNew,0):f.setMonth(u+a);else f.setFullYear(h+c);else a=_reorgCnt(a,f,c,0),f.setDate(l-f.getDay()+7*a);else e=new Date(h,u+1,0),f=new Date(h,u,1),a=_reorgCnt(a,f,c,e.getDate()-l),f.setMonth(u+a),f=new Date(f.getFullYear(),f.getMonth()+1,0);else a=_reorgCnt(a,f,c,0),f.setFullYear(h+a),f=new Date(f.getFullYear(),12,0);else a=_reorgCnt(a,f,c,1),f.setDate(l-f.getDay()+(0==f.getDay()?-6:1)+7*a);else a=_reorgCnt(a,
f,c,l-1),f.setMonth(u+a),f=new Date(f.getFullYear(),f.getMonth(),1);else a=_reorgCnt(a,f,c,u),f.setFullYear(h+a),f=new Date(f.getFullYear(),0,1);return _fmtDate(b,f,d)},_getSysDate=function(b){return _fmtDate(b,new Date,null)},_fmtDate=function(b,d,a){var c=d.getFullYear();var e=("00"+(d.getMonth()+1)).slice(-2);d=("00"+d.getDate()).slice(-2);switch(b){case "Y":break;case "YM":c+=e;break;default:c=c+e+d}return _isDate(b,c)?c:a},_isDate=function(b,d){switch(b){case "Y":b=d+"/01/01";break;case "YM":b=
d.replace(/(\d{4})(\d{2})/,"$1/$2")+"/01";break;default:b=d.replace(/(\d{4})(\d{2})(\d{2})/,"$1/$2/$3")}d=new Date(b);return d.getFullYear()!=parseInt(b.split("/")[0])||d.getMonth()!=parseInt(b.split("/")[1])-1||d.getDate()!=parseInt(b.split("/")[2])?!1:!0},_reorgCnt=function(b,d,a,c){var e;~b.indexOf("W")?d.getDay()!=c&&1==Math.abs(a)&&(e=0<a?a:a+1):b.indexOf("S")?1==Math.abs(a)&&(e=0<a?0==c?a:0:-1):1==Math.abs(a)&&(e=0<a?a:0==c?-1:0);return null==e?a:e};
