var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<e;d++){var f=a[d];if(b.call(c,f,d,a))return{i:d,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,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.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 b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}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,b){var c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]};
$jscomp.polyfill=function(a,b,c,e){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,e):$jscomp.polyfillUnisolated(a,b,c,e))};$jscomp.polyfillUnisolated=function(a,b,c,e){c=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var d=a[e];if(!(d in c))return;c=c[d]}a=a[a.length-1];e=c[a];b=b(e);b!=e&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})};
$jscomp.polyfillIsolated=function(a,b,c,e){var d=a.split(".");a=1===d.length;e=d[0];e=!a&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<d.length-1;f++){var g=d[f];if(!(g in e))return;e=e[g]}d=d[d.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?e[d]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,d,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[d]&&(c=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[d]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(d):$jscomp.POLYFILL_PREFIX+c+"$"+d),$jscomp.defineProperty(e,$jscomp.propertyToPolyfillSymbol[d],{configurable:!0,writable:!0,value:b})))};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(b,c){return $jscomp.findInternal(this,b,c).v}},"es6","es3");var dystart,qTime=0,vTime=0,pView=0,tTime;function timeSet(){dystart=new Date;return!0}
function getValue(a){var b=0,c;if(null!=a)if(null!=a.length)for(c=0;c<a.length;c++)b+=parseInt(a[c].getAttribute("value"),10);else b=a.getAttribute("value");return b}var viewRatio=50,maxViewTime=5E3;
function timecheck(a,b){var c=document.getElementById("queryTbl");if(null!=c&&0!=dystart&&null!=dystart){var e=document.getElementById("viewTbl");var d=document.getElementById("pageTbl");var f=document.getElementById("totalTbl");a=getValue(a);b=getValue(b);var g=new Date;var h=g-dystart-a-b;g-=dystart;h=0>h?0:h;f.style.backgroundColor="transparent";c.title="DB: "+a+" [ms]";e.title="JSP: "+b+" [ms]";d.title="IE: "+h+" [ms]";f.innerHTML=Math.round(g/100)/10+" [s]";g>maxViewTime&&(f.style.backgroundColor=
"#ffff33",viewRatio=viewRatio*maxViewTime/g);c.innerHTML="&nbsp;";e.innerHTML="&nbsp;";d.innerHTML="&nbsp;";c.width=Math.floor(a/viewRatio+1);e.width=Math.floor(b/viewRatio+1);d.width=Math.floor(h/viewRatio+1);dystart=0}}$(function(){$(".toggleTop").click(function(){toggleTopFrame(this)});$(".toggleSub").click(function(){toggleSubFrame(this)});$(".toggleAll").click(function(){toggleAllFrame(this)})});var old_cols=null,old_rows=null,old_prnt=null,toggleCol=!1,toggleRow=!1,toggleAll=!1,togglePrnt=!1;
function toggleTopFrame(a){var b=top.document.getElementById("TOP_FRAME");if(!b){var c=top.document.getElementsByName("TOP_FRAME");1==c.length&&(b=c[0])}!b||0>b.cols.indexOf(",")||(toggleCol?(toggleCol=!1,10>=old_cols.split(",")[0]||512<old_cols.split(",")[0]?b.cols="160,*":b.cols=old_cols,null!=a&&(0==a.className.length?a.style.backgroundColor="Red":a.className="toggleTop")):(toggleCol=!0,old_cols=b.cols,b.cols="10,*",null!=a&&(0==a.className.length?a.style.backgroundColor="Gray":a.className="toggleOff")))}
function toggleSubFrame_Iframe(a){var b=$("iframe[name=QUERY]",parent.document);if(!(1>b.length)){if(toggleRow){toggleRow=!1;var c=Number($(b).attr("old_height"));b.height(c);null!=a&&(0==a.className.length?a.style.backgroundColor="Green":a.className="toggleSub")}else toggleRow=!0,c=$(b).contents().find("#QUERY_TBL")[0],c=c.offsetTop+c.offsetHeight+c.parentNode.offsetTop,$(b).attr("old_height",b.height()),b.height(c),null!=a&&(0==a.className.length?a.style.backgroundColor="Gray":a.className="toggleOff");
a=$("iframe[name=RESULT]",parent.document);$(a).css("height","calc(100% - "+c+"px - 8px)")}}
function toggleSubFrame(a){var b;toggleSubFrame_Iframe(a);var c=parent.document.getElementById("SUB_FRAME");if(!c){var e=parent.document.getElementsByName("SUB_FRAME");1==e.length&&(c=e[0])}if(c)if(toggleRow)toggleRow=!1,old_rows&&(c.rows=old_rows),null!=a&&(0==a.className.length?a.style.backgroundColor="Green":a.className="toggleSub");else{toggleRow=!0;if(1E3>c.rows.split(",")[0]&&(old_rows=c.rows,null!=parent.QUERY)){var d=parent.QUERY.document.getElementById("QUERY_TBL");if(null!=d){e=c.rows.split(",");
d=d.offsetTop+d.offsetHeight+d.parentNode.offsetTop+",*";for(b=2;b<e.length;b++)d=d+","+e[b];c.rows=d}}null!=a&&(0==a.className.length?a.style.backgroundColor="Gray":a.className="toggleOff")}}
function toggleAllFrame(a){toggleAll?(toggleAll=!1,toggleCol&&toggleTopFrame(),toggleRow&&toggleSubFrame(),null!=a&&(0==a.className.length?a.style.backgroundColor="Blue":a.className="toggleAll")):(toggleAll=!0,toggleCol||toggleTopFrame(),toggleRow||toggleSubFrame(),null!=a&&(0==a.className.length?a.style.backgroundColor="Gray":a.className="toggleOff"))}
function toggleFrame(a){var b=parent.document.getElementsByTagName("FRAMESET");1==b.length&&(oSubFrame=b[0]);if(oSubFrame)if(togglePrnt)togglePrnt=!1,oSubFrame.rows=old_prnt,a&&(a.innerHTML="(-)");else{togglePrnt=!0;old_prnt=oSubFrame.rows;var c=-1;for(b=0;b<parent.frames.length;b++)if(self.frames.name==parent.frames[b].name){c=b;break}b=oSubFrame.rows.split(",");null==a?b[c]="0":(b[c]=a.offsetTop+a.offsetHeight+a.parentNode.offsetTop,a.innerHTML="(+)");c=b[0];for(a=1;a<b.length;a++)c=c+","+b[a];
oSubFrame.rows=c}}function adjustFrameHeightSleep(){0==$("body").width()||100==$("body").width()?setTimeout(function(){adjustFrameHeightSleep()},10):adjustFrameHeight()}$(function(){0==$("body").width()||100==$("body").width()?setTimeout(function(){adjustFrameHeightSleep()},1):adjustFrameHeight()});$(function(){"undefined"!=typeof h_qryFcs&&"false"==h_qryFcs||focusFirstElm()});
function focusFirstElm(){var a;var b=document.getElementsByTagName("FORM");if(0<b.length){var c=!1;var e=b[0];for(a=0;a<e.elements.length;a++){var d=e.elements[a];if(!(null==d||d.disabled||d.readOnly||"text"!=d.type&&"checkbox"!=d.type&&"radio"!=d.type&&"passwd"!=d.type&&"textarea"!=d.type&&"select-one"!=d.type&&"select-multiple"!=d.type)&&(document.getBoxObjectFor?(b=document.getBoxObjectFor(d),0!=b.width&&(c=!0)):d.getBoundingClientRect&&(b=d.getBoundingClientRect(),b.left!=b.right&&(c=!0)),c)){d.focus();
break}}historyBack()}}function focus1(){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")};
