var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,c,b){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(c.call(b,f,e,a))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(a,c,b){if(a==Array.prototype||a==Object.prototype)return a;a[c]=b.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<a.length;++c){var b=a[c];if(b&&b.Math==Math)return b}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(a,c){var b=$jscomp.propertyToPolyfillSymbol[c];if(null==b)return a[c];b=a[b];return void 0!==b?b:a[c]};
$jscomp.polyfill=function(a,c,b,d){c&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,c,b,d):$jscomp.polyfillUnisolated(a,c,b,d))};$jscomp.polyfillUnisolated=function(a,c,b,d){b=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];if(!(e in b))return;b=b[e]}a=a[a.length-1];d=b[a];c=c(d);c!=d&&null!=c&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:c})};
$jscomp.polyfillIsolated=function(a,c,b,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<e.length-1;f++){var h=e[f];if(!(h in d))return;d=d[h]}e=e[e.length-1];b=$jscomp.IS_SYMBOL_NATIVE&&"es6"===b?d[e]:null;c=c(b);null!=c&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:c}):c!==b&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(b=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+b+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:c})))};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(c,b){return $jscomp.findInternal(this,c,b).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(a){null!=a&&(null==a.className||0>a.className.indexOf("must"))&&("SELECT"==a.tagName?(a.orgBgColor=a.style.backgroundColor,a.style.backgroundColor="#ffcccc"):(orgFldCls=a.className,a.className="focusField "+orgFldCls))}
function doBlur2(a){null!=a&&(null==a.className||0>a.className.indexOf("must"))&&("SELECT"==a.tagName?a.style.backgroundColor=a.orgBgColor:a.className=null!=orgFldCls?orgFldCls:"notFocusField")}oldDoFocusFlag=!0;function doFocus(a){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(a){}
$(function(){setEvent('textarea,select,input[type="text"]',"focusout",function(){useConvert(this)})});function useConvert(a){var c=a.className;a.value=autoConvert(c,a.value);return(c.match(/S9/)||c.match(/X9/)||c.match(/R/)&&!c.match(/NVAR/)&&!c.match(/CRYPT/))&&!$.isNumeric(a.value)?!1:!0}
function autoConvert(a,c){var b=c;null!=a&&null!=c&&(a.match(/XL/)?(c=zen2han(c),b=a.match(/XLU/)?c.replace(/\s+$/,"").toUpperCase():c.replace(/\s+$/,"").toLowerCase()):a.match(/XU/)?(c=zen2han(c),b=c.replace(/\s+$/,"").toUpperCase()):a.match(/S9/)||a.match(/R/)&&!a.match(/NVAR/)&&!a.match(/CRYPT/)?(c=zen2han(c),b=c.replace(/,/g,"")):!a.match(/X/)||a.match(/XK/)||a.match(/KX/)||a.match(/XH/)||(b=zen2han(c)));return b}
var zen2han=function(a){return a=a.replace(/[\uff21-\uff3a\uff41-\uff5a\uff10-\uff19\uff0e\u2010\uff0d]/g,function(c){return String.fromCharCode(c.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 a,c,b;if(!colMap)for(colMap={},a=0;a<EC_EVCOL.length;a++){var d=EC_EVCOL[a].split(",");for(c=0;c<d.length;c++){var e=d[c];"_"==e.charAt(0)&&(e=e.substring(1),null==notFireCols&&(notFireCols=","),notFireCols+=e,notFireCols+=",");(b=colMap[e])||(b=[]);b[b.length]=EC_NAME[a];colMap[e]=b}}}function addEvColCls(){for(var a in colMap)$("#"+a+",[id^="+a+"__]").addClass("h_evCol")}
function makeColumn(a){var c;jH_evElm&&isEndInitEvent()&&(jH_evElm=null);var b=$(a);var d=b.attr("id");var e=d.split("__")[0];if((c=colMap[e])&&!(!isEndInitEvent()&&notFireCols&&0<=notFireCols.indexOf(","+e+","))&&useConvert(a))for(a=0;a<c.length;a++){var f=d==e?"":"__"+d.split("__")[1];var h=c[a]+f;var u=h.split("__")[0];var l=isEndInitEvent()?$(".h_evElm[h_evCid="+h+"]"):jH_evElm.filter("[h_evCid="+h+"]");var v=l.attr("h_evWrtbl");eventColumn(b,l,h,u,f,v)}}
function eventColumn(a,c,b,d,e,f){var h,u,l={};if(c&&0!=c.length){if(!isEndInitEvent()){var v=a.get(0).value;if(!v||null==v||""==v)return}try{var p=eval("EC_"+d+"_URL")}catch(n){alert("[SYSTEM_ERROR] : URL that processes the event is not specified. (variable undefinition). ["+d+"]");return}if(p&&""!=p){v="";try{v=f?eval("EC_"+d+"_EDITPARAM"):eval("EC_"+d+"_RENDPARAM")}catch(n){}try{var w=f?eval("EC_"+d+"_EDITPARAMKEYS"):eval("EC_"+d+"_RENDPARAMKEYS")}catch(n){}if("true"===eval("EC_"+d+"_FLGENCRYPT")){if(w){var m=
w.split(",");for(h=0;h<m.length;h++){var x=m[h];w=""==e?$("#"+x).get(0).value:$("#"+x+e).get(0).value;l[x]=w}}}else if(null!=v&&""!=v)for(p+="?",h=w=0;-1!=(w=v.indexOf("{@",h));)h=v.indexOf("}",w),m=v.substring(w+2,h),0>m.indexOf(".")&&(h="{@"+m+"}",x=function(n){console.log("noDifined:");console.log(n);return null},x=""==e?$("#"+m)[0]?$("#"+m).get(0).value:x(m):$("#"+m+e)[0]?$("#"+m+e).get(0).value:x(m+e),x=null==x?"":x,v=v.replace(h,x),p+=m+"="+encodeURIComponent(x)+"&"),h=w+1;valsql="";try{valsql=
eval("EC_"+d+"_VALSQL")}catch(n){}if(null!=valsql&&""!=valsql)for(h=w=0;-1!=(w=valsql.indexOf("{@",h));)h=valsql.indexOf("}",w),m=valsql.substring(w+2,h),0>m.indexOf(".")&&(h="{@"+m+"}",x=""==e?$("#"+m).get(0).value:$("#"+m+e).get(0).value,x=null==x?"":x,valsql=valsql.replace(h,x)),h=w+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!=b&&""!=b?c.find("#"+b):[];0<t.length&&isEndInitEvent()&&
t.bind("focus",K);w="";0<t.length&&(w=isEndInitEvent()?null==t.val()?"":t.val():null==c.attr("h_evVal")?"":c.attr("h_evVal"));x="";try{x=eval("EC_"+d+"_RENDERER")}catch(n){}var M="";try{M=eval("EC_"+d+"_EDITOR")}catch(n){}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==b?"":b;l.EC_CNAME=null==d?"":d;l.EC_RENDERER=x;l.EC_EDITOR=M;l.EC_PARAM=v;l.EC_SQL=v;l.EC_VALSQL=valsql;l.EC_WRITABLE=null==f?"":f;l.EC_CVALUE=w;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==a.attr("id")?"":a.attr("id").split("__")[0];l.EC_PVALUE=null==a.get(0).value?"":a.get(0).value;l.EC_USESLBL=null==e||""==e?"false":"true";$.ajax({url:p,data:l,type:"POST",dataType:"html",async:isEndInitEvent(),error:function(n,G,L){0>p.indexOf(".htm")&&alert("EventColumnError:"+n+":"+G+":"+L+":"+d)},success:function(n,G){n=$(n);0<t.length&&(isEndInitEvent()&&t.unbind("focus",K),bindOldEvents(n.get(0),jQuery._data(t.clone(!0).get(0)).events));null!=b&&""!=b&&"text"==$("#"+b).attr("type")?$("#"+
b).val(n.val()):c.empty().append(n);0<t.length&&(c.find("input,select,textarea").attr("name",b).attr("id",b),isEndInitEvent()&&t.attr("isfocus")&&(n.get(0).focus(),$.browser.msie&&n.get(0).focus()),isEndInitEvent()||n.change(),t.attr("eventCallback")&&(u=function(){eval(t.attr("eventCallback")+"(arguments);")},u(b,n.val(),t.get(0).value)));null!=e&&""!=e&&isEndInitEvent()&&$("table#viewTable").resizeView()}})}else alert("[SYSTEM_ERROR] : URL that processes the event is not specified. ["+d+"]")}else alert("[SYSTEM_ERROR] : jTag is null. The element of the replacement object doesn't exist. ["+
d+"]")}function bindOldEvents(a,c){var b,d;for(b in c)for(d in c[b])0!==c[b][d]&&jQuery.event.add(a,b,c[b][d],c[b][d].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().scroll(function(){isShowTip&&(isShowTip=!1,$(".tipErr").remove())}))});
function check(a,c){var b,d;var e=a.name;if("undefined"!=typeof jQuery&&0!=e.indexOf("h_")){var f=a.value;"null"!=a.rtOption&&"undefined"!=a.rtOption&&(d=a.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)+(d?"&"+d:"");c={dataType:"html",type:"POST",url:c,data:e,error:function(){},success:function(l){b=$(a).data("tipId");$("#"+b).remove();0<=$.trim(l).indexOf("row_error")&&
(showCheckTip(a,l),isShowTip=!0)}};$.ajax(c)}return!0}
function showCheckTip(a,c){var b=$(a).offset();if(30<=b.top){c=$("<div class='tipErr'><div id='tipArrowBottom'></div><div>"+c+"</div></div>").appendTo(document.body);var d=b.left;b=b.top+(-11-c[0].offsetHeight)}else c=$("<div class='tipErr'><div id='tipArrowTop'></div><div>"+c+"</div></div>").appendTo(document.body),d=b.left,b=b.top+11+c[0].offsetHeight;var e=(new Date).getTime();$(a).data("tipId",e);c.css({left:d+"px",top:b+"px"}).attr("id",e).click(function(){$(this).remove()}).show()}$(function(){bindEvents()});
$.fn.simpleColorPickerOg=function(a){var c={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},b=$.extend(c,a);return this.each(function(){function d(m){"fade"==b.hideEffect?m.fadeOut():"slide"==b.hideEffect?m.slideUp():m.hide()}for(var e=$(this),f="",h=e.attr("id").replace(/-/g,"")+"_",u=0;u<b.colors.length;u++){var l=b.colors[u],v="";0==u%b.colorsPerLine&&(v="clear: both; ");0<u&&v&&$.browser&&$.browser.msie&&7>=$.browser.version&&(v="",f+='<li style="float: none; clear: both; overflow: hidden; background-color: #fff; display: block; height: 1px; line-height: 1px; font-size: 1px; margin-bottom: -2px;"></li>');
f+='<li id="'+h+"color-"+u+'" class="color-box" style="'+v+"background-color: "+l+'" title="'+l+'"></li>'}var p=$('<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(p);p.hide();p.find("li.color-box").click(function(){var m=isNaN(this.id.substr(this.id.indexOf("-")+
1))?"":b.colors[this.id.substr(this.id.indexOf("-")+1)];e.is("input")||(e.val(m),e.blur());$.isFunction(c.onChangeColor)&&c.onChangeColor.call(e,m);d(p)});$("body").on("click",function(){d(p)});p.click(function(m){m.stopPropagation()});var w=function(m){var x=e.offset(),K=x.left+e.outerWidth()-m.outerWidth();K<x.left&&(K=x.left);m.css({left:K,top:x.top+e.outerHeight()});"fade"==b.showEffect?m.fadeIn():"slide"==b.showEffect?m.slideDown():m.show()};e.click(function(m){e=$(this);m.stopPropagation();
e.is("input")||w(p)});e.focus(function(){w(p)});e.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(a){$(this).val(a).css("background-color",a).css("color",a).change()}})});
jQuery.fn.ogClockpicker=function(a,c){function b(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 d={starthour:6,endhour:20,showminutes:"true",minutedivisions:4,military:!0,event:"click",layout:"vertical",valuefield:null,useBgiframe:!1,hoursopacity:1,minutesopacity:1,second:""};a&&jQuery.extend(d,a);c=c||function(){};var e="vertical"==d.layout;b(d);
jQuery(this)[d.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 v(g){"CP_hourcont"==g.attr("id")?g.mouseout(function(q){try{jQuery(q.toElement?q.toElement:q.relatedTarget).is("div[class^=CP], iframe")||t()}catch(r){t()}}):"CP_minutecont"==g.attr("id")?g.mouseout(function(q){try{jQuery(q.toElement?q.toElement:q.relatedTarget).is("div[class^=CP], iframe")||t()}catch(r){t()}}):"CP_hour"==g.attr("class")?(g.mouseover(function(q){p(g,q)}),g.mouseout(function(){w(g)}),g.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.mouseover(function(){m(g)}),g.mouseout(function(){x(g)}),g.click(function(){g.text(g.attr("value")+k.second);K(g);t()}))}function p(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,y=r;if(k.military||0!=r)k.military||12!=r||(H="0");k.military&&10>r&&(H="0"+H);10>r&&(y="0"+y);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='"+y+(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),v($md),A++;e?(q="mouseover"==q.type?q.pageY-15:n.offset().top+2+g.height()*C,g=n.offset().left+
2*G[0].width()*B+E.width()*(B-1)+4*B-2):(g="mouseover"==q.type?q.pageX-10:n.offset().left+(g.width()-5)*C,q=n.offset().top+(n.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 w(g){g.removeClass("CP_over");return!1}function m(g){g.addClass("CP_over");return!1}function x(g){g.removeClass("CP_over");return!1}function K(g){k.valuefield?jQuery("input[name="+k.valuefield+"]").val(g.text()).change():
O.value=g.text();c.apply(z,[g.text()]);z.unbind("keydown",M)}function t(){"true"==k.showminutes&&E.hide();n.slideUp("fast");z.unbind("keydown",M)}function M(g){function q(D){if(D.prev().size())eval(J+"div_out($obj)"),eval(J+"div_over($obj.prev(), e)");else return!1}function r(D){if(D.next().size())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.size())w(D),p($newobj,g);else return!1}function B(D){w(D);m($(".CP_minute:first"))}function H(D,Q){x(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);p(D,g)}var y=$("div.CP_over").size()?$("div.CP_over"):$("div.CP_hour:first"),J=y.is(".CP_hour")?"hour":"minute",P="hour"==J?y[0].id.split("_")[2]:0,A="minute"==J?y[0].id.split("_")[0]:y[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(y,-1);break;case "m3":H(y,-1);break;case "h1":B(y);break;case "h2":C(y)}else q(y);break;case 38:if(e)q(y);else switch(I){case "m1":return!1;case "m2":H(y,-1);break;case "m3":H(y,-1);break;case "h1":B(y);break;case "h2":C(y)}break;case 39:if(e)switch(I){case "m1":H(y,1);break;case "m2":return!1;case "m3":H(y,1);break;case "h1":C(y);
break;case "h2":B(y)}else r(y);break;case 40:if(e)r(y);else switch(I){case "m1":H(y,1);break;case "m2":return!1;case "m3":H(y,1);break;case "h1":C(y);break;case "h2":B(y)}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,{},d);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"),d.layout=k.layout,e="vertical"==k.layout);b(k);if(k.valuefield){var N=jQuery("[name="+k.valuefield+"]");N.unbind("keydown").bind("keydown",M)[0].focus();N.bind("click",function(){N.unbind("keydown")})}else z.unbind("keydown").bind("keydown",M);
jQuery("#CP_hourcont,#CP_minutecont").remove();var n=jQuery("<div id='CP_hourcont' class='CP' />").appendTo(F);k.useBgiframe||n.css("opacity",k.hoursopacity);v(n);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);v(E)}if(e)for(L=0;L<G.length;L++)G[L].addClass("floatleft");
else n.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);v(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"):(n.append("<div style='clear:left' />"),0!=g&&0==g%2&&G[g].css("margin-top","19px")),n.append(G[g])})();"focus"!=f.type?(n[0].style.left=f.pageX-5+"px",n[0].style.top=f.pageY-Math.floor(n.height()/2)+"px",u(n)):z.after(n);n.slideDown("fast");k.useBgiframe&&l(n);return!1});return this};$(function(){$.fn.ogClockpicker&&$(document).ready(function(){$(".clockpick").ogClockpicker()})});
function likeComp(a){var c=a.substring(6);a=$("#"+a).attr("aimaiType");var b=$("#"+c).val();b=b.replace(/^%+|%+$/g,"");var d=$("#"+c).attr("maxlength");if(""!=b&&(null==d||b.length<parseInt(d,10)))switch(a){case "1":b+="%";break;case "2":b="%"+b;break;case "3":b="%"+b+"%"}$("#"+c).val(b)}$(function(){$("form").submit(function(){$("[id^='AIMAI_']").each(function(){likeComp(this.id)})})});
$.fn.aimaiPickerOg=function(a){var c=$.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"]},a);return this.each(function(){function b(p){"fade"==c.hideEffect?p.fadeOut():"slide"==c.hideEffect?p.slideUp():p.hide()}for(var d=$(this),e="PIC_"+d.attr("id").replace(/-/g,"")+"_",f="",h=0;h<c.icons.length;h++){var u=c.titls[h];f+='<span id="'+e+"text-"+h+'" class="text-box"" title="'+
u+'"> '+('<img src="'+c.iconDir+c.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").click(function(){var p=this.id.substr(this.id.indexOf("-")+1);d.attr("aimaiType",p);d.attr("title",c.titls[p]);d.children("img").attr("src",c.iconDir+c.icons[p]);d.blur();b(l)});$("body").live("click",function(){b(l)});l.click(function(p){p.stopPropagation()});
var v=function(p){var w=d.offset(),m=w.left+d.outerWidth()-p.outerWidth();m<w.left&&(m=w.left);p.css({left:m,top:w.top+d.outerHeight()});"fade"==c.showEffect?p.fadeIn():"slide"==c.showEffect?p.slideDown():p.show()};d.click(function(p){p.stopPropagation();d.is("input")||v(l)});d.focus(function(){v(l)})})};$(function(){$.fn.aimaiPickerOg&&$(".aimaiClm").aimaiPickerOg()});
function selectScroll(a){var c=4;a.getAttribute("size")&&(c=a.getAttribute("size"));for(var b=a.options,d=0;d<b.length;d++)if(b[d].selected){"OPTGROUP"==b[d].parentNode.tagName.toUpperCase()&&(d+=$(b[d].parentNode).prev().length);var e=d*($(a).height()/c);break}$(a).scrollTop(e)}$(function(){$("select[multiple]").each(function(){selectScroll(this)})});
function dateFeedRtn(a,c,b,d,e){var f=parseInt(d.match(/[+-]?\d+/g));if($.isNumeric(f))if(0==f)var h=b?b:_getSysDate(a);else(b=$("#"+c).val().replace(/\//g,""))&&("Y"==a&&4==b.length||"YM"==a&&6==b.length||"YMD"==a&&8==b.length)&&_isDate(a,b)&&(h=_addDate(a,b,d,f));else h=_getSysDate(a);h&&($("#"+c).val(h).change(),"true"==e&&$("#queryButtonSubmit").click())}
var _addDate=function(a,c,b,d){var e;switch(a){case "Y":var f=c;break;case "YM":f=c.replace(/(\d{4})(\d{2})/,"$1/$2")+"/01";break;default:f=c.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(b.indexOf("SY"))if(b.indexOf("SD"))if(b.indexOf("SW"))if(b.indexOf("EY"))if(b.indexOf("ED"))if(b.indexOf("EW"))if(b.indexOf("Y"))if(b.indexOf("M"))b.indexOf("D")||f.setDate(l+d);else for(b=0<d?1:-1,e=0;e<Math.abs(d);e++)0<e&&(h=f.getFullYear(),u=f.getMonth(),
l=f.getDate()),_mNew=0<d?u+2:u,_dNew=(new Date(h,_mNew,0)).getDate(),l>_dNew?f=new Date(h,_mNew,0):f.setMonth(u+b);else f.setFullYear(h+d);else b=_reorgCnt(b,f,d,0),f.setDate(l-f.getDay()+7*b);else e=new Date(h,u+1,0),f=new Date(h,u,1),b=_reorgCnt(b,f,d,e.getDate()-l),f.setMonth(u+b),f=new Date(f.getFullYear(),f.getMonth()+1,0);else b=_reorgCnt(b,f,d,0),f.setFullYear(h+b),f=new Date(f.getFullYear(),12,0);else b=_reorgCnt(b,f,d,1),f.setDate(l-f.getDay()+(0==f.getDay()?-6:1)+7*b);else b=_reorgCnt(b,
f,d,l-1),f.setMonth(u+b),f=new Date(f.getFullYear(),f.getMonth(),1);else b=_reorgCnt(b,f,d,u),f.setFullYear(h+b),f=new Date(f.getFullYear(),0,1);return _fmtDate(a,f,c)},_getSysDate=function(a){return _fmtDate(a,new Date,null)},_fmtDate=function(a,c,b){var d=c.getFullYear();var e=("00"+(c.getMonth()+1)).slice(-2);c=("00"+c.getDate()).slice(-2);switch(a){case "Y":break;case "YM":d+=e;break;default:d=d+e+c}return _isDate(a,d)?d:b},_isDate=function(a,c){switch(a){case "Y":a=c+"/01/01";break;case "YM":a=
c.replace(/(\d{4})(\d{2})/,"$1/$2")+"/01";break;default:a=c.replace(/(\d{4})(\d{2})(\d{2})/,"$1/$2/$3")}c=new Date(a);return c.getFullYear()!=parseInt(a.split("/")[0])||c.getMonth()!=parseInt(a.split("/")[1])-1||c.getDate()!=parseInt(a.split("/")[2])?!1:!0},_reorgCnt=function(a,c,b,d){var e;~a.indexOf("W")?c.getDay()!=d&&1==Math.abs(b)&&(e=0<b?b:b+1):a.indexOf("S")?1==Math.abs(b)&&(e=0<b?0==d?b:0:-1):1==Math.abs(b)&&(e=0<b?b:0==d?-1:0);return null==e?b:e};
