var tt_target,gToolTipGraphic="arrow2.gif",gToolTip=!1,gToopTipPointer=!1,gToolTipContent=!1;function toolTip_init(){return!(!document||!document.body)&&(gToolTipContent=$x("gToolTipContent"),(gToolTip=$x("dhtmltooltip"))||((gToolTip=$dom_AddTag(document.body,"DIV")).id="dhtmltooltip",gToolTip.className="htmldbToolTip",gToolTip.style.position="absolute",gToolTip.style.border="1px solid black",gToolTip.style.padding="2px",gToolTip.style.backgroundColor="",gToolTip.style.visibility="hidden",gToolTip.style.zIndex=1e4),(gToopTipPointer=$x("dhtmlpointer"))||((gToopTipPointer=$dom_AddTag(document.body,"IMG")).id="dhtmlpointer",gToopTipPointer.src=htmldb_Img_Dir+gToolTipGraphic,gToopTipPointer.style.position="absolute",gToopTipPointer.style.zIndex=10001),!0)}function toolTip_disable(){toolTip_init()&&(tt_target=null,gToolTip.style.visibility="hidden",gToolTip.style.backgroundColor="",gToolTip.style.width="",gToopTipPointer.style.visibility="hidden",gToolTipContent?gToolTipContent.innerHTML="":gToolTip.innerHTML="")}function toolTip_enable(e,t,n,o,l){var i=(e=e||(window.event?event:null)).pageX?e.pageX:e.clientX+getScrollXY()[0],s=e.pageY?e.pageY:e.clientY+getScrollXY()[1];if(toolTip_init()){tt_target=t,n||(n=t.getAttribute("htmldb:tip")),gToolTipContent?gToolTipContent.innerHTML=n:gToolTip.innerHTML=n,o&&(gToolTip.style.width=o+"px"),gToolTip.style.backgroundColor=l||"lightyellow",gToopTipPointer.style.left=10+i+"px",gToopTipPointer.style.top=15+s+"px",gToolTip.style.left=7+i+"px",gToolTip.style.top=28+s+"px",gToolTip.style.visibility="visible",gToolTip.style.zIndex=1e4,gToopTipPointer.style.zIndex=10001,gToopTipPointer.style.visibility="visible";try{t.addEventListener("mouseout",toolTip_disable,!1)}catch(e){t.attachEvent("onmouseout",toolTip_disable)}}return!1}function toolTip_follow(e,t){var n=(e=e||(window.event?event:null)).pageX?e.pageX:e.clientX+getScrollXY()[0],o=e.pageY?e.pageY:e.clientY+getScrollXY()[1];return gToolTip&&(gToolTip.style.left=7+n+"px",gToolTip.style.top=28+o+"px",gToolTip.style.visibility="visible",gToolTip.style.zIndex=1e4,gToopTipPointer.style.left=10+n+"px",gToopTipPointer.style.top=15+o+"px",gToopTipPointer.style.zIndex=10001,gToopTipPointer.style.visibility="visible"),!1}function htmldb_Get(e,t,n,o,l,i,s){this.obj=$x(e),this.proc=i||"wwv_flow.show","wwv_flow.show"!==this.proc&&"wwv_flow.accept"!==this.proc&&"wwv_flow.ajax"!==this.proc||(this.proc=this.proc+"?"+apex.util.getContextString()),this.flow=t||$v("pFlowId"),this.request=n||"",this.page=o||"0",this.queryString=s||null,this.params="",this.response="",this.base=null,this.syncMode=!1,this.addParam=htmldb_Get_addParam,this.add=htmldb_Get_addItem,this.getPartial=htmldb_Get_trimPartialPage,this.getFull=function(e){var t,n;return e&&(this.obj=$x(e)),this.obj&&("INPUT"==this.obj.nodeName?this.obj.value=this.response:document.all?(t=this.response,n=this.obj,setTimeout((function(){htmldb_get_WriteResult(n,t)}),100)):$s(this.obj,this.response)),this.response},this.get=function(e,t,n){var o;try{o=new XMLHttpRequest}catch(e){o=new ActiveXObject("Msxml2.XMLHTTP")}try{return o.open("POST",this.base,this.syncMode),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(null==this.queryString?this.params:this.queryString),this.response=o.responseText,this.node&&this.replaceNode(o.responseXML),null==e||"PPR"==e?this.getPartial(t,n):"XML"==e?o.responseXML:this.getFull()}catch(e){return}},this.url=htmldb_Get_getUrl,this.escape=htmldb_Get_escape,this.clear=htmldb_Get_clear,this.sync=htmldb_Get_sync,this.setNode=function(e){this.node=$x(e)},this.replaceNode=function(e){var t;for(t=this.node.childNodes.length-1;t>=0;t--)this.node.removeChild(this.node.childNodes[t]);this.node.appendChild(e)},this.base=this.proc,this.instance=null==l||""==l?$v("pInstance"):l,s||(this.addParam("p_request",this.request),this.addParam("p_instance",this.instance),this.addParam("p_flow_id",this.flow),this.addParam("p_flow_step_id",this.page))}function htmldb_Get_sync(e){this.syncMode=e}function htmldb_Get_clear(e){this.addParam("p_clear_cache",e)}function htmldb_Get_getUrl(){return null==this.queryString?this.base+"?"+this.params:this.queryString}function htmldb_Get_escape(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e+="").replace(/\%/g,"%25")).replace(/\+/g,"%2B")).replace(/\ /g,"%20")).replace(/\./g,"%2E")).replace(/\*/g,"%2A")).replace(/\?/g,"%3F")).replace(/\\/g,"%5C")).replace(/\//g,"%2F")).replace(/\>/g,"%3E")).replace(/\0){this.response=this.response.substring(i+e.length);var s=this.response.indexOf(t);this.response=this.response.substring(0,s)}return this.obj&&(document.all?(o=this.response,l=this.obj,setTimeout((function(){htmldb_get_WriteResult(l,o)}),100)):$s(this.obj,this.response)),this.response}function htmldb_get_WriteResult(e,t){$s(e,t)}function $a_PostClob(e,t,n,o){var l=new htmldb_Get(null,$v("pFlowId"),t,n,null,"wwv_flow.accept");l.AddArrayClob($x(e).value,1),l.GetAsync(o),l=null}function $a_GetClob(e,t,n){new htmldb_Get(null,$v("pFlowId"),e,t,null,"wwv_flow.accept").GetAsync(n)}function ob_PPR_TAB(e){top.gLastTab=e,new htmldb_Get(document.body,null,null,null,null,"f",e.substring(2)).get(null,'',""),apex.env.APP_PAGE_ID=$v("pFlowStepId")}function htmldb_ExternalPost(e,t,n){var o="f?p="+$x("pFlowId").value+":"+$x("pFlowStepId").value+":"+$x("pInstance").value+":FLOW_FOP_OUTPUT_R"+t;document.body.innerHTML=document.body.innerHTML+'';var l=new htmldb_Get($x("vXML"),null,null,null,null,"f",o.substring(2));l.get(),l=null,setTimeout((function(){$x("xmlFormPost").submit()}),10)}function item_menu(e,t){$x_Style("item_menu","position","absolute");for(var n=$x("item_menu").getElementsByTagName("a"),o=0,l=n.length;o"+e.title+"

"+e.title+"

"+e.helpText+"
"),l.document.close())}),htmldb_Get.prototype.GetAsync=function(e){var t;try{t=new XMLHttpRequest}catch(e){t=new ActiveXObject("Msxml2.XMLHTTP")}try{if(t.open("POST",this.base,!0),t)return t.onreadystatechange=function(){p=t,e(t)},t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.send(null==this.queryString?this.params:this.queryString),t}catch(e){return!1}},htmldb_Get.prototype.AddArray=function(e,t){var n="f";n+=(t=$nvl(t,1))<10?"0"+t:t;for(var o=0,l=e.length;o0&&(dhtml_CloseAllSubMenusL(l[0]),l.trigger("focus").data("setParent",!1));break;case 39:(n.parent().hasClass("dhtmlSubMenuN")||n.parent().hasClass("dhtmlSubMenuS"))&&(n.trigger("mouseover"),$gCurrentAnchorList[0].focus(),n.data("setParent",!0));break;case 13:return}e.preventDefault()}function dhtml_MenuOpen(e,t,n,o,l){var i;if($x(t)){if(i="menu_keys_"+t,document.onclick=dhtml_DocMenuCheck,apex.jQuery(document).off("keydown."+i+"_esc").on("keydown."+i+"_esc",(function(e){27===e.which&&(app_AppMenuMultiClose(),dhtml_CloseAllSubMenus(),document.onclick=null,l&&apex.jQuery(l).trigger("focus"))})),n){var s=parseInt($x(t).getAttribute("htmldb:listlevel"),10),r=gSubMenuArray[s];r&&$x_Hide(r),gSubMenuArray[s]=$x(t)}else dhtml_CloseAllSubMenus(),gCurrentAppMenu=t;$gCurrentAnchorList=apex.jQuery("#"+t).children().children().filter("a[class!=eLink]"),apex.jQuery(document).off("keydown."+i).on("keydown."+i,(function(e){apex.jQuery("#"+t+":visible").filter("ul")[0]&&-1!==apex.jQuery.inArray(e.which,[40,38,37,39,13])&&dhtml_KeyAction(e,i)}));var a=$x(t);document.body.appendChild(a),o&&"Right"!=o?"Bottom"==o?(a.style.position="absolute",a.style.top=parseInt(findPosY(e),10)+parseInt(e.offsetHeight,10)+"px",a.style.left=parseInt(findPosX(e),10)+"px"):"BottomRight"==o?(a.style.position="absolute",a.style.top=parseInt(findPosY(e),10)+parseInt(e.offsetHeight,10)+"px",a.style.left=parseInt(findPosX(e),10)-parseInt(e.offsetWidth,10)+"px"):(a.style.position="absolute",a.style.top=parseInt(findPosY(e),10)+"px",a.style.left=parseInt(findPosX(e),10)+parseInt(e.offsetWidth,10)+"px"):(a.style.position="absolute",a.style.top=parseInt(findPosY(e),10)+"px",a.style.left=parseInt(findPosX(e),10)+"px"),$x_Show(a),dhtml_FixLeft(e,a,o),htmldb_IE_Select_Item_Fix(a)}}function dhtml_DocMenuSingleCheck(e,t){if(g_Single_Menu_Count>0){var n=!0;if(e)for(var o=html_GetTarget(e);"BODY"!=o.nodeName&&!t;)(o=o.parentNode)==g_Single_Menu&&(n=!n);(n||t)&&($x_Hide(g_Single_Menu),document.onclick=null)}else g_Single_Menu_Count=1}function dhtml_SingeMenuOpen(e,t,n,o,l){var i=$x(t),s=$x(e);i.style.zIndex=2001,document.body.appendChild(i),n&&"Right"!=n?"Bottom"==n?(i.style.position="absolute",i.style.top=parseInt(findPosY(s),10)+parseInt(s.offsetHeight,10)+"px",i.style.left=parseInt(findPosX(s),10)+"px"):"BottomRight"==n?(i.style.position="absolute",i.style.top=parseInt(findPosY(s),10)+parseInt(s.offsetHeight,10)+"px",i.style.left=parseInt(findPosX(s),10)-parseInt(s.offsetWidth,10)+"px"):"Set"==n?(i.style.position="absolute",i.style.top=parseInt(l,10)+"px",i.style.left=parseInt(o,10)+"px"):(i.style.position="absolute",i.style.top=parseInt(findPosY(s),10)+"px",i.style.left=parseInt(findPosX(s),10)+parseInt(s.offsetWidth,10)+"px"):(i.style.position="absolute",i.style.top=parseInt(findPosY(s),10)+"px",i.style.left=parseInt(findPosX(s),10)+"px"),$x_Show(i),dhtml_FixLeft(s,i,n),htmldb_IE_Select_Item_Fix(!0),g_Single_Menu_Count=0,g_Single_Menu=i,document.onclick=dhtml_DocMenuSingleCheck}function dhtml_FixLeft(e,t,n){var o;o=document.all?document.body.clientWidth:window.innerWidth,"Bottom"==n?parseInt(o,10)=1;document.all&&e&&t&&e.firstChild&&"IFRAME"!=e.firstChild.nodeName&&(e.innerHTML=''+e.innerHTML)}var g_dhtmlMenuOn="dhtmlMenuOn";function app_AppMenuMultiOpenBottom(e,t,n){if(e!=gCurrentAppMenuImage){app_AppMenuMultiClose();var o=e.previousSibling.firstChild;e.className=g_dhtmlMenuOn,dhtml_MenuOpen(o,t,!1,"Bottom",e),gCurrentAppMenuImage=e}else dhtml_CloseAllSubMenus(),app_AppMenuMultiClose()}function app_AppMenuMultiOpenBottom2(e,t,n){if(e!=gCurrentAppMenuImage){app_AppMenuMultiClose();var o=e.parentNode;e.className=g_dhtmlMenuOn,dhtml_MenuOpen(o,t,!1,"Bottom",e),gCurrentAppMenuImage=e}else dhtml_CloseAllSubMenus(),app_AppMenuMultiClose()}function app_AppMenuMultiOpenBottom3(e,t,n,o){if(e!=gCurrentAppMenuImage){app_AppMenuMultiClose();var l=$x(n);e.className=g_dhtmlMenuOn,dhtml_MenuOpen(l,t,!1,"Bottom",e),gCurrentAppMenuImage=e}else dhtml_CloseAllSubMenus(),app_AppMenuMultiClose()}function $d_LOV_from_JSON(){var e=this;this.l_Type=!1,this.l_Json=!1,this.l_This=!1,this.l_JSON=!1,this.l_Id="json_temp",this.l_NewEls=[],this.create=function(t,n,o,l,i,s){var r,a=JSON.parse(n);if("SHUTTLE"==e.l_Type){$x(t).innerHTML='
ResetMove AllMoveRemoveRemove AllTopUpDownBottom
';var d=$dom_AddTag("shuttle1","select"),p=$dom_AddTag("shuttle2","select");d.multiple=!0,p.multiple=!0;for(var u=0,h=a.row.length;u