var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,c,b){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<e;d++){var r=a[d];if(c.call(b,r,d,a))return{i:d,v:r}}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,e){c&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,c,b,e):$jscomp.polyfillUnisolated(a,c,b,e))};$jscomp.polyfillUnisolated=function(a,c,b,e){b=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var d=a[e];if(!(d in b))return;b=b[d]}a=a[a.length-1];e=b[a];c=c(e);c!=e&&null!=c&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:c})};
$jscomp.polyfillIsolated=function(a,c,b,e){var d=a.split(".");a=1===d.length;e=d[0];e=!a&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var r=0;r<d.length-1;r++){var h=d[r];if(!(h in e))return;e=e[h]}d=d[d.length-1];b=$jscomp.IS_SYMBOL_NATIVE&&"es6"===b?e[d]:null;c=c(b);null!=c&&(a?$jscomp.defineProperty($jscomp.polyfills,d,{configurable:!0,writable:!0,value:c}):c!==b&&(void 0===$jscomp.propertyToPolyfillSymbol[d]&&(b=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[d]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(d):$jscomp.POLYFILL_PREFIX+b+"$"+d),$jscomp.defineProperty(e,$jscomp.propertyToPolyfillSymbol[d],{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(){convert(this)})});function convert(a){var c=a.value;var b=a.className;if(null!=c&&null!=b)if(b.match(/XL/)&&!b.match(/XLU/))a.value=c.toLowerCase();else if(b.match(/XU/)&&!b.match(/XUL/)||b.match(/PN2/))a.value=c.replace(/\s+$/,"").toUpperCase();return!0}var 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 e=EC_EVCOL[a].split(",");for(c=0;c<e.length;c++){var d=e[c];"_"==d.charAt(0)&&(d=d.substring(1),null==notFireCols&&(notFireCols=","),notFireCols+=d,notFireCols+=",");(b=colMap[d])||(b=[]);b[b.length]=EC_NAME[a];colMap[d]=b}}}function addEvColCls(){for(var a in colMap)$("#"+a+",[id^="+a+"__]").addClass("h_evCol")}
function makeColumn(a){var c,b;jH_evElm&&isEndInitEvent()&&(jH_evElm=null);a=$(a);var e=a.attr("id");var d=e.split("__")[0];if((c=colMap[d])&&!(!isEndInitEvent()&&notFireCols&&0<=notFireCols.indexOf(","+d+",")))for(b=0;b<c.length;b++){var r=e==d?"":"__"+e.split("__")[1];var h=c[b]+r;var x=h.split("__")[0];var q=isEndInitEvent()?$(".h_evElm[h_evCid="+h+"]"):jH_evElm.filter("[h_evCid="+h+"]");var k=q.attr("h_evWrtbl");eventColumn(a,q,h,x,r,k)}}
function eventColumn(a,c,b,e,d,r){var h,x,q={};if(c&&0!=c.length){if(!isEndInitEvent()){var k=a.get(0).value;if(!k||null==k||""==k)return}try{var y=eval("EC_"+e+"_URL")}catch(m){alert("[SYSTEM_ERROR] : URL that processes the event is not specified. (variable undefinition). ["+e+"]");return}if(y&&""!=y){k="";try{k=r?eval("EC_"+e+"_EDITPARAM"):eval("EC_"+e+"_RENDPARAM")}catch(m){}try{var u=r?eval("EC_"+e+"_EDITPARAMKEYS"):eval("EC_"+e+"_RENDPARAMKEYS")}catch(m){}if("true"===eval("EC_"+e+"_FLGENCRYPT")){if(u){var l=
u.split(",");for(h=0;h<l.length;h++){var v=l[h];u=""==d?$("#"+v).get(0).value:$("#"+v+d).get(0).value;q[v]=u}}}else if(null!=k&&""!=k)for(y+="?",h=u=0;-1!=(u=k.indexOf("{@",h));)h=k.indexOf("}",u),l=k.substring(u+2,h),0>l.indexOf(".")&&(h="{@"+l+"}",v=function(m){console.log("noDifined:");console.log(m);return null},v=""==d?$("#"+l)[0]?$("#"+l).get(0).value:v(l):$("#"+l+d)[0]?$("#"+l+d).get(0).value:v(l+d),v=null==v?"":v,k=k.replace(h,v),y+=l+"="+encodeURIComponent(v)+"&"),h=u+1;valsql="";try{valsql=
eval("EC_"+e+"_VALSQL")}catch(m){}if(null!=valsql&&""!=valsql)for(h=u=0;-1!=(u=valsql.indexOf("{@",h));)h=valsql.indexOf("}",u),l=valsql.substring(u+2,h),0>l.indexOf(".")&&(h="{@"+l+"}",v=""==d?$("#"+l).get(0).value:$("#"+l+d).get(0).value,v=null==v?"":v,valsql=valsql.replace(h,v)),h=u+1;l=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);u="";0<t.length&&(u=isEndInitEvent()?null==t.val()?"":t.val():null==c.attr("h_evVal")?"":c.attr("h_evVal"));v="";try{v=eval("EC_"+e+"_RENDERER")}catch(m){}var M="";try{M=eval("EC_"+e+"_EDITOR")}catch(m){}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 g=typeof F;var N=!1;"function"==g?(F=F.toString(),N=0<F.length?!0:!1,F="("+F+")()"):N="boolean"==g?F:0<F.length?!0:!1;N&&(z+=O[h]+"='"+F+"' ")}}q.EC_CID=null==b?"":b;q.EC_CNAME=null==e?"":e;q.EC_RENDERER=v;q.EC_EDITOR=M;q.EC_PARAM=k;q.EC_SQL=k;q.EC_WRITABLE=null==r?"":r;q.EC_CVALUE=u;q.EC_NOVALUE=0==t.length?"":l();q.EC_CLASS=0==t.length?"":t.attr("class");q.EC_SIZE=0==t.length?"":t.attr("size");q.EC_MAXLENGTH=0==t.length?"":t.attr("maxlength");q.EC_OPTATTRS=z;q.EC_PNAME=null==a.attr("id")?
"":a.attr("id").split("__")[0];q.EC_PVALUE=null==a.get(0).value?"":a.get(0).value;q.EC_USESLBL=null==d||""==d?"false":"true";$.ajax({url:y,data:q,type:"POST",dataType:"html",async:isEndInitEvent(),error:function(m,G,L){0>y.indexOf(".htm")&&alert("EventColumnError:"+m+":"+G+":"+L+":"+e)},success:function(m,G){m=$(m);0<t.length&&(isEndInitEvent()&&t.unbind("focus",K),bindOldEvents(m.get(0),jQuery._data(t.clone(!0).get(0)).events));c.empty().append(m);0<t.length&&(c.find("input,select,textarea").attr("name",
b).attr("id",b),isEndInitEvent()&&t.attr("isfocus")&&(m.get(0).focus(),$.browser.msie&&m.get(0).focus()),isEndInitEvent()||m.change(),t.attr("eventCallback")&&(x=function(){eval(t.attr("eventCallback")+"(arguments);")},x(b,m.val(),t.get(0).value)));null!=d&&""!=d&&isEndInitEvent()&&$("table#viewTable").resizeView()}})}else alert("[SYSTEM_ERROR] : URL that processes the event is not specified. ["+e+"]")}else alert("[SYSTEM_ERROR] : jTag is null. The element of the replacement object doesn't exist. ["+
e+"]")}function bindOldEvents(a,c){var b,e;for(b in c)for(e in c[b])0!==c[b][e]&&jQuery.event.add(a,b,c[b][e],c[b][e].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,e;var d=a.name;if("undefined"!=typeof jQuery&&0!=d.indexOf("h_")){var r=a.value;"null"!=a.rtOption&&"undefined"!=a.rtOption&&(e=a.getAttribute("rtOption"));var h=d.split("__");var x=2==h.length;d="command=RENEW&checkType="+(x?"ENTRY":"NEW")+(x?"&h_rowSel="+h[1]:"")+"&column="+h[0]+"&"+d+"="+encodeURIComponent(r)+(e?"&"+e:"");c={dataType:"html",type:"POST",url:c,data:d,error:function(){},success:function(q){b=$(a).data("tipId");$("#"+b).remove();0<=$.trim(q).indexOf("row_error")&&
(showCheckTip(a,q),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 e=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),e=b.left,b=b.top+11+c[0].offsetHeight;var d=(new Date).getTime();$(a).data("tipId",d);c.css({left:e+"px",top:b+"px"}).attr("id",d).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 e(l){"fade"==b.hideEffect?l.fadeOut():"slide"==b.hideEffect?l.slideUp():l.hide()}for(var d=$(this),r="",h=d.attr("id").replace(/-/g,"")+"_",x=0;x<b.colors.length;x++){var q=b.colors[x],k="";0==x%b.colorsPerLine&&(k="clear: both; ");0<x&&k&&$.browser&&$.browser.msie&&7>=$.browser.version&&(k="",r+='<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>');
r+='<li id="'+h+"color-"+x+'" class="color-box" style="'+k+"background-color: "+q+'" title="'+q+'"></li>'}var y=$('<div id="'+h+'color-picker" class="color-picker" style="position: absolute; left: 0px; top: 0px;"><ul>'+(r+('<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(y);y.hide();y.find("li.color-box").click(function(){var l=isNaN(this.id.substr(this.id.indexOf("-")+
1))?"":b.colors[this.id.substr(this.id.indexOf("-")+1)];d.is("input")||(d.val(l),d.blur());$.isFunction(c.onChangeColor)&&c.onChangeColor.call(d,l);e(y)});$("body").on("click",function(){e(y)});y.click(function(l){l.stopPropagation()});var u=function(l){var v=d.offset(),K=v.left+d.outerWidth()-l.outerWidth();K<v.left&&(K=v.left);l.css({left:K,top:v.top+d.outerHeight()});"fade"==b.showEffect?l.fadeIn():"slide"==b.showEffect?l.slideDown():l.show()};d.click(function(l){d=$(this);l.stopPropagation();
d.is("input")||u(y)});d.focus(function(){u(y)});d.change(function(l){d.val()!=d.css("background-color")&&d.css("background-color",d.val()).css("color",d.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(r){if(r.starthour>=r.endhour)return alert("Error - start hour must be less than end hour."),!1;if(0!=60%r.minutedivisions)return alert("Error - param minutedivisions must divide evenly into 60."),!1}var e={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(e,a);c=c||function(){};var d="vertical"==e.layout;b(e);
jQuery(this)[e.event](function(r){function h(f){return g.military?"":12<=f?" PM":" AM"}function x(f){var n=document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight,p=parseInt(f[0].style.top),C=parseInt(f[0].style.left),B=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;p<=B&&!f.is("#CP_minutecont")?f.css("top",B+10+"px"):p+f.height()-B>n&&f.css("top",B+n-f.height()-10+"px");0>=C&&f.css("left","10px")}function q(f){"function"==
typeof jQuery.fn.bgIframe?f.bgIframe():alert("bgIframe plugin not loaded.")}function k(f){"CP_hourcont"==f.attr("id")?f.mouseout(function(n){try{jQuery(n.toElement?n.toElement:n.relatedTarget).is("div[class^=CP], iframe")||t()}catch(p){t()}}):"CP_minutecont"==f.attr("id")?f.mouseout(function(n){try{jQuery(n.toElement?n.toElement:n.relatedTarget).is("div[class^=CP], iframe")||t()}catch(p){t()}}):"CP_hour"==f.attr("class")?(f.mouseover(function(n){y(f,n)}),f.mouseout(function(){u(f)}),f.click(function(){var n=
f.attr("id").split("_")[1];h(n);n=f.attr("value");n=-1!=n.indexOf(" ")?n.substring(0,n.indexOf(" ")):n;f.text(n+"00"+g.second);K(f);t()})):"CP_minute"==f.attr("class")&&(f.mouseover(function(){l(f)}),f.mouseout(function(){v(f)}),f.click(function(){f.text(f.attr("value")+g.second);K(f);t()}))}function y(f,n){var p=f.attr("id").split("_")[1],C=f.attr("id").split("_")[2];f.addClass("CP_over");var B=Math.ceil((Math.floor(p/12)-Math.floor(g.starthour/12))/2);if("true"==g.showminutes){E.hide();var H=!g.military&&
12<p?p-12:p,w=p;if(g.military||0!=p)g.military||12!=p||(H="0");g.military&&10>p&&(H="0"+H);10>p&&(w="0"+w);E.empty();for(var J=60/g.minutedivisions,P=h(p),A=1,I=0;60>I;I+=J)$md=jQuery("<div class='CP_minute' id='"+p+"_"+I+"' value='"+w+(10>I?"0":"")+I+"'>"+H+":"+(10>I?"0":"")+I+P+"</div>"),d||($md.css("float","left"),6<g.minutedivisions&&A==g.minutedivisions/2+1&&E.append("<div style='clear:left' />")),E.append($md),k($md),A++;d?(n="mouseover"==n.type?n.pageY-15:m.offset().top+2+f.height()*C,f=m.offset().left+
2*G[0].width()*B+E.width()*(B-1)+4*B-2):(f="mouseover"==n.type?n.pageX-10:m.offset().left+(f.width()-5)*C,n=m.offset().top+(m.height()-(E.height()+2)*(Math.ceil(G.length/2)-1))/G.length*2*B+E.height()*(B-1)+2*B-1);E.css("left",f+"px").css("top",n+"px");x(E);E.show();g.useBgiframe&&q(E)}return!1}function u(f){f.removeClass("CP_over");return!1}function l(f){f.addClass("CP_over");return!1}function v(f){f.removeClass("CP_over");return!1}function K(f){g.valuefield?jQuery("input[name="+g.valuefield+"]").val(f.text()).change():
O.value=f.text();c.apply(z,[f.text()]);z.unbind("keydown",M)}function t(){"true"==g.showminutes&&E.hide();m.slideUp("fast");z.unbind("keydown",M)}function M(f){function n(D){if(D.prev().size())eval(J+"div_out($obj)"),eval(J+"div_over($obj.prev(), e)");else return!1}function p(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(g.starthour/12))%2?String(Math.floor(A/
12)-Math.floor(g.starthour/12)+1):String(Math.floor(A/12)-Math.floor(g.starthour/12)-1)));if($newobj.size())u(D),y($newobj,f);else return!1}function B(D){u(D);l($(".CP_minute:first"))}function H(D,Q){v(D);0>Q?0==(Math.floor(A/12)-Math.floor(g.starthour/12))%2?(D=String(Math.floor(A/12)-Math.floor(g.starthour/12)+Q),A=String(Number(A)-12)):D=String(Math.floor(A/12)-Math.floor(g.starthour/12)):0==(Math.floor(A/12)-Math.floor(g.starthour/12))%2?D=String(Math.floor(A/12)-Math.floor(g.starthour/12)):(D=
String(Math.floor(A/12)-Math.floor(g.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);y(D,f)}var w=$("div.CP_over").size()?$("div.CP_over"):$("div.CP_hour:first"),J=w.is(".CP_hour")?"hour":"minute",P="hour"==J?w[0].id.split("_")[2]:0,A="minute"==J?w[0].id.split("_")[0]:w[0].id.split("_")[1],I="minute"==J?0==Math.floor(A/12)-Math.floor(g.starthour/12)?"m1":0==Math.floor(A/12)-Math.floor(g.endhour/12)&&0!=(Math.floor(A/12)-
Math.floor(g.starthour/12))%2?"m2":"m3":0==(Math.floor(A/12)-Math.floor(g.starthour/12))%2?"h1":"h2";switch(f.keyCode){case 37:if(d)switch(I){case "m1":return!1;case "m2":H(w,-1);break;case "m3":H(w,-1);break;case "h1":B(w);break;case "h2":C(w)}else n(w);break;case 38:if(d)n(w);else switch(I){case "m1":return!1;case "m2":H(w,-1);break;case "m3":H(w,-1);break;case "h1":B(w);break;case "h2":C(w)}break;case 39:if(d)switch(I){case "m1":H(w,1);break;case "m2":return!1;case "m3":H(w,1);break;case "h1":C(w);
break;case "h2":B(w)}else p(w);break;case 40:if(d)p(w);else switch(I){case "m1":H(w,1);break;case "m2":return!1;case "m3":H(w,1);break;case "h1":C(w);break;case "h2":B(w)}break;case 13:eval(J+"div_click($obj)");break;default:return!0}return!1}var O=this,z=jQuery(this),F=jQuery("body"),g=jQuery.extend(!0,{},e);z.attr("valuefield")&&(g.valuefield=z.attr("valuefield"));z.attr("starthour")&&(g.starthour=parseInt(z.attr("starthour")));z.attr("endhour")&&(g.endhour=parseInt(z.attr("endhour")));z.attr("minutedivisions")&&
(g.minutedivisions=parseInt(z.attr("minutedivisions")));z.attr("military")&&(g.military=z.attr("military"));z.attr("showminutes")&&(g.showminutes=z.attr("showminutes"));"true"==z.attr("usesecond")&&(g.second="00");z.attr("layout")&&(g.layout=z.attr("layout"),e.layout=g.layout,d="vertical"==g.layout);b(g);if(g.valuefield){var N=jQuery("[name="+g.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 m=jQuery("<div id='CP_hourcont' class='CP' />").appendTo(F);g.useBgiframe?null:m.css("opacity",g.hoursopacity);k(m);for(var G=[],L=0;L<Math.floor(g.endhour/12)-Math.floor(g.starthour/12)+1;L++)G.push(jQuery("<div class='CP_hourcol' id='hourcol"+L+"' />").appendTo(F));if("true"==g.showminutes){var E=jQuery("<div id='CP_minutecont' class='CP' />").appendTo(F);g.useBgiframe?null:E.css("opacity",g.minutesopacity);k(E)}if(d)for(L=0;L<G.length;L++)G[L].addClass("floatleft");
else m.css("width","auto"),"true"==g.showminutes&&E.css("width","auto");(function(){for(var f=1,n=0,p=g.starthour;p<=g.endhour;p++){0==p%12&&(f=1);var C=!g.military&&12<p?p-12:p,B=p;if(g.military||0!=p)g.military||12!=p||(C="0");g.military&&10>p&&(C="0"+C);10>p&&(B="0"+B);C=jQuery("<div class='CP_hour' id='hr_"+p+"_"+f+"' value='"+B+"' >"+C+h(p)+"</div>");g.military&&C.width(20);k(C);d||C.css("float","left");G[n].append(C);0==(p+1)%12&&n++;f++}for(f=0;f<G.length;f++)d?0!=f&&0==f%2&&G[f].css("margin-left",
E.width()+4+"px"):(m.append("<div style='clear:left' />"),0!=f&&0==f%2&&G[f].css("margin-top","19px")),m.append(G[f])})();"focus"!=r.type?(m[0].style.left=r.pageX-5+"px",m[0].style.top=r.pageY-Math.floor(m.height()/2)+"px",x(m)):z.after(m);m.slideDown("fast");g.useBgiframe&&q(m);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 e=$("#"+c).attr("maxlength");if(""!=b&&(null==e||b.length<parseInt(e,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({texts:[" V "," V*","*V ","*V*"],titls:["\u5b8c\u5168\u4e00\u81f4","\u524d\u65b9\u4e00\u81f4","\u5f8c\u65b9\u4e00\u81f4","\u524d\u5f8c\u66d6\u6627"]},a);return this.each(function(){function b(k){"fade"==c.hideEffect?k.fadeOut():"slide"==c.hideEffect?k.slideUp():k.hide()}for(var e=$(this),d="PIC_"+e.attr("id").replace(/-/g,"")+"_",r="",h=0;h<c.texts.length;h++)r+='<span id="'+d+"text-"+h+'" class="text-box"" title="'+c.titls[h]+'">('+c.texts[h]+") </span>";
var x=$('<div id="'+d+'aimai-picker" class="aimai-picker" style="position: absolute; left: 0px; top: 0px;">'+r+'<div style="clear: both;"></div></div>');$("body").append(x);x.hide();x.find("span.text-box").click(function(){var k=this.id.substr(this.id.indexOf("-")+1);e.attr("aimaiType",k);e.attr("title",c.titls[k]);e.text(c.texts[k]);e.blur();b(x)});$("body").live("click",function(){b(x)});x.click(function(k){k.stopPropagation()});var q=function(k){var y=e.offset(),u=y.left+e.outerWidth()-k.outerWidth();
u<y.left&&(u=y.left);k.css({left:u,top:y.top+e.outerHeight()});"fade"==c.showEffect?k.fadeIn():"slide"==c.showEffect?k.slideDown():k.show()};e.click(function(k){k.stopPropagation();e.is("input")||q(x)});e.focus(function(){q(x)})})};$(function(){$.fn.aimaiPickerOg&&$(".aimaiClm").aimaiPickerOg()});
function selectScroll(a){var c=4;a.getAttribute("size")&&(c=a.getAttribute("size"));for(var b=a.options,e=0;e<b.length;e++)if(b[e].selected){"OPTGROUP"==b[e].parentNode.tagName.toUpperCase()&&(e+=$(b[e].parentNode).prev().length);var d=e*($(a).height()/c);break}$(a).scrollTop(d)}$(function(){$("select[multiple]").each(function(){selectScroll(this)})});
