function getParentByTagName(a,b,c){for(;a&&b!=a.tagName;){if(c&&a.tagName==c){a=null;break}a=a.parentNode}return a}function getRowClicked(a){var b;for(b=a;b;){a=b.tagName;if(("TR"==a||"TBODY"==a)&&-1<b.className.indexOf("row_"))break;b=b.parentNode}return b}function getTable(a){return getParentByTagName(a,"TABLE")}function IsTextField(a){var b=!1;switch(a.tagName){case "TD":case "CENTER":case "SPAN":case "DIV":case "PRE":case "STYLE":case "FONT":case "B":case "STRONG":case "A":b=!0}return b}
function getCurrentStyle(a,b,c){return a.currentStyle?(b=b.replace(/\-(\w)/g,function(g,f){return f.toUpperCase()}),a.currentStyle[b]):getComputedStyle?(b=b.replace(/([A-Z])/g,"-$1").toLowerCase(),getComputedStyle(a,c||null).getPropertyValue(b)):""}var csHybsCheckMarker="h_rowSel";function getHybsChkFromTBody(a){var b;var c=null;a=a.getElementsByTagName("INPUT");for(b=0;b<a.length;b++)if(csHybsCheckMarker==a[b].name){c=a[b];break}return c}
function hilightRow(a,b,c){var g,f="undefined"==typeof hybs_csHilightBGColor?"rgb(160,230,200)":hybs_csHilightBGColor;var e=null;var h=!1;if(a=a?a:window.event?window.event:null)e=a.target?a.target:a.srcElement?a.srcElement:null,h="undefined"!=typeof a.shiftKey?a.shiftKey:a.modifiers&&a.modifiers&Event.SHIFT_MASK;if(e){a=!0;b&&e.name!=csHybsCheckMarker&&(a=!1);"INPUT"==e.tagName&&"submit"==e.type&&(a=!1);b=getRowClicked(e);var d=e.getElementsByTagName("TABLE");if(a&&0>=d.length&&b&&b.className&&0>
b.className.indexOf("row_h"))if((d=getHybsChkFromTBody(b))&&(g="radio"==d.type||"A"==e.tagName),a=getTable(b),g)a.oldTBody2&&a.oldTBody2==b||(a.oldTBody2&&(a.oldTBody2.style.backgroundColor=a.oldBGColor,a.oldRadio.checked=!1),a.oldTBody2=b,a.oldBGColor=getCurrentStyle(b,"background-color"),a.oldRadio=d,b.style.backgroundColor=f,d.checked=!0,c&&d.click());else if(h){c=a.oldTBody||b;document.documentElement.compareDocumentPosition?(e=c.compareDocumentPosition(b),e=4==e||0==e):e=c.sourceIndex<=b.sourceIndex;
e?(e=c,c=b):e=b;for(;;){e.oldBGColor||(e.oldBGColor=getCurrentStyle(e,"background-color"),e.style.backgroundColor=f);(h=getHybsChkFromTBody(e))&&!h.checked&&(h.checked=!0);if(e==c)break;do e=e.nextSibling;while(e&&1!=e.nodeType)}a.oldTBody=b}else if(d&&(e.name==csHybsCheckMarker&&!d.checked||e.name!=csHybsCheckMarker&&d.checked)||!d&&b.oldBGColor){if(e==d||IsTextField(e))b.style.backgroundColor=b.oldBGColor,b.oldBGColor="",d&&(d.checked=!1),a.oldTBody=b}else b.oldBGColor=getCurrentStyle(b,"background-color"),
b.style.backgroundColor=f,d&&(d.checked=!0),a.oldTBody=b}}
function bulkSet(a){var b,c,g;convert(a,!1);var f=a.value;var e=a.name.substring(2)+"__";"checkbox"==a.type&&"1"==f&&(f=a.checked?"1":"0");navigator.clipboard||(-1<f.indexOf("$$ ")?f=replaceAll(f,"$$ ","\t"):0>f.indexOf("\t")&&-1<f.indexOf(" ")&&alert("\u8cbc\u308a\u4ed8\u3051\u6642\u306e\u30de\u30eb\u30c1\u30da\u30fc\u30b9\u30c8\u306f\u3001\u6539\u884c\u3092\u300e$$\u300f\u306b\u7f6e\u304d\u63db\u3048\u308c\u3070\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002"));a=f.split("\t");f=document.getElementsByTagName("FORM");
if(null!=f)for(g=0;g<f.length;g++){var h=f[g].elements;for(b=c=0;b<h.length;b++){var d=h[b];if(d.name&&0==d.name.indexOf(e)&&"hidden"!=d.type){if("checkbox"==d.type)d.checked="1"==a[c];else if("select-one"==d.type)d.value=a[c].split(":")[0];else if("radio"==d.type)if(d.value==a[c])d.checked=!0;else continue;else d.value=a[c];c<a.length-1&&c++;$(d).trigger("change")}}}}
function bulkPaste(a){var b,c;var g=a.name.substring(2)+"__";var f=document.getElementsByTagName("FORM");if(null!=f){for(b=0;b<f.length;b++){var e=f[b].elements;var h="";for(c=0;c<e.length;c++){var d=e[c];d.name&&0==d.name.indexOf(g)&&"hidden"!=d.type&&("checkbox"==d.type?h+=d.checked?"1":"0":"select-one"==d.type?h+=d.options[d.selectedIndex].value+":"+d.options[d.selectedIndex].text:"radio"==d.type?d.checked&&(h+=d.value):h+=d.value,h+="\t")}if("select-one"==a.type&&(e=document.getElementsByName(a.name))&&
1<e.length)for(l=0;l<e.length;l++)e[l].length++,e[l].options[a.length-1].value=h,e[l].options[a.length-1].text="Ctrl-C",e[l].selectedIndex=a.length-1}isEndInitEvent()&&$("table#viewTable").resizeView()}return h}
function bulkPasteBox(a){var b,c;var g=document.getElementsByTagName("FORM");if(null!=g){for(b=0;b<g.length;b++){var f=g[b].elements;var e="";var h=null;for(c=0;c<f.length;c++){var d=f[c];if(d.name&&"hidden"!=d.type){var k=d.name.indexOf("__");0>k||(k=d.name.substring(k+2,d.name.length),k!=h&&(null!=h&&(e+=";"),h=k),"checkbox"==d.type?e+=d.checked?"1":"0":"select-one"==d.type?e+=d.options[d.selectedIndex].value+":"+d.options[d.selectedIndex].text:"radio"==d.type?d.checked&&(e+=d.value):e+=d.value,
e+="\t")}}if("select-one"==a.type&&(f=document.getElementsByName(a.name))&&1<f.length)for(l=0;l<f.length;l++)f[l].length++,f[l].options[a.length-1].value=e,f[l].options[a.length-1].text="Ctrl-C",f[l].selectedIndex=a.length-1}isEndInitEvent()&&$("table#viewTable").resizeView()}return e}
function ctrlCV(a){var b=event.keyCode;var c=event.ctrlKey;keychar=String.fromCharCode(b).toUpperCase();if(c&&null!=a)if(event.preventDefault?(event.preventDefault(),event.stopPropagation()):(event.returnValue=!1,event.cancelBubble=!0),b=-1<navigator.userAgent.toLowerCase().indexOf("edge"),c=-1<navigator.userAgent.toLowerCase().indexOf("chrome"),b=b||c,"C"==keychar){var g=bulkPaste(a);g=null!=g?g:a.value;setClipboard(b,replaceAll(g,"\t","\r\n"))}else"B"==keychar?(g=bulkPasteBox(a),g=null!=g?g:a.value,
setClipboard(b,replaceAll(g,";","\r\n"))):"V"==keychar?getClipboard(b,function(f){g=replaceAll(f,"\r\n","\t");if("select-one"==a.type){if((f=document.getElementsByName(a.name))&&1<f.length){for(i=0;i<f.length;i++)f[i].length++,f[i].options[a.length-1].value=g,f[i].options[a.length-1].text="Ctrl-V",f[i].selectedIndex=a.length-1,f[i].value=g;isEndInitEvent()&&$("table#viewTable").resizeView()}}else a.value=g;bulkSet(a)}):"X"==keychar&&(a.value="",bulkSet(a))}
function setClipboard(a,b){a?navigator.clipboard?navigator.clipboard.writeText(b):(a=document.createElement("textarea"),a.setAttribute("id","target"),a.setAttribute("type","hidden"),a.value=b,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)):navigator.clipboard.writeText(b)}
function getClipboard(a,b){a?navigator.clipboard?navigator.clipboard.readText().then(function(c){b(c)}):(a=document.createElement("textarea"),a.setAttribute("id","target"),document.body.appendChild(a),a.focus(),document.execCommand("paste")?b(a.value):alert("\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u95a2\u4fc2\u3067\u3001\u30da\u30fc\u30b9\u30c8\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002"),document.body.removeChild(a)):(a=navigator.clipboard.readText(),b(a))}
function replaceAll(a,b,c){return a.split(b).join(c)}window.onbeforeprint=BeforPrint;window.onafterprint=AfterPrint;
function BeforPrint(){var a;var b=document.getElementsByName("divheader");var c=document.getElementsByName("layer");if(null!=b&&null!=c){for(a=0;a<b.length;a++)b[a].style.display="none";for(a=0;a<c.length;a++)c[a].oldScrollTop=c[a].scrollTop,c[a].scrollTop=0,c[a].oldWidth=c[a].style.width,c[a].style.width="",c[a].oldHeight=c[a].style.height,c[a].style.height="",c[a].oldOverflowX=c[a].style.overflowX,c[a].style.overflowX="visible",c[a].oldOverflowY=c[a].style.overflowY,c[a].style.overflowY="visible"}b=
document.getElementsByName("viewTable");if(null!=b)for(a=0;a<b.length;a++)b[a].oldFrame=b[a].frame,b[a].frame="box",b[a].oldBorderCollapse=b[a].style.borderCollapse,b[a].style.borderCollapse="collapse",b[a].oldCellspacing=b[a].cellspacing,b[a].cellspacing="0px"}
function AfterPrint(){var a;var b=document.getElementsByName("viewTable");if(null!=b)for(a=0;a<b.length;a++)b[a].style.borderCollapse=b[a].oldBorderCollapse,b[a].frame=b[a].oldFrame,b[a].cellspacing=b[a].oldCellspacing;b=document.getElementsByName("divheader");var c=document.getElementsByName("layer");if(null!=b&&null!=c){for(a=0;a<b.length;a++)b[a].style.display="block";for(a=0;a<c.length;a++)c[a].style.overflowX=c[a].oldOverflowX,c[a].style.overflowY=c[a].oldOverflowY,c[a].style.width=c[a].oldWidth,
c[a].style.height=c[a].oldHeight,c[a].scrollTop=c[a].oldScrollTop}}function setPageTiming(a){if((document.attachEvent?"complete"==document.readyState:1)&&parent.QUERY&&parent.QUERY.timecheck){a=document.getElementById("queryTime");var b=document.getElementById("viewTime");parent.QUERY.timecheck(a,b)}}
document.addEventListener?document.getBoxObjectFor?document.addEventListener("DOMContentLoaded",setPageTiming,null):window.addEventListener("load",setPageTiming,!1):document.attachEvent?document.attachEvent("onreadystatechange",setPageTiming):window.addEventListener("load",setPageTiming,!1);$(function(){$(".orgRowCntMsg").filter(":gt(0)").remove().end().filter(":first").replaceAll("#rowCountMessage")});
