var gDebug=true;var gkeyPressTime;var gLastTab=false;var gRegex=false;var ie=(document.all)?true:false;if(ie){document.expando=true}var gDebugWindow=false;function $x(b){try{var c;switch(typeof(b)){case"string":c=document.getElementById(b);break;case"object":c=b;break;default:c=false;break}if(c.nodeType==1){return c}else{return false}}catch(d){return false}}function $x_Hide(b){return $x_Style(b,"display","none")}function $x_Show(b){return $x_Style(b,"display","")}function $x_Toggle(b){if($x(b)){b=[b]}for(var c=0;c<b.length;c++){var d=$x(b[c]);if(d){if(d.style.display=="none"){$x_Show(d)}else{$x_Hide(d)}}}if(b.length==1){b=b[0]}return b}function $x_Style(c,b,f){if($x(c)){c=[c]}for(var d=0;d<c.length;d++){var e=$x(c[d]);if(e){e.style[b]=f}}if(c.length==1){c=c[0]}return c}function $x_Remove(c){if($x(c)){c=[c]}for(var d=0;d<c.length;d++){var e=$x(c[d]);var b=e.parentNode;if(e&&b){b.removeChild(e);b.normalize()}}if(c.length==1){c=c[0]}return c}function $x_Value(c,b){if($x(c)){c=[c]}for(var d=0;d<c.length;d++){var e=$x(c[d]);if(e){e.value=b}}}function $x_UpTill(g,d,c,b){var f=$x(g);if(f){var e=f.parentNode;if(c){while(e.nodeName!=d&&e.className!=c){e=e.parentNode}}else{while(e.nodeName!=d){e=e.parentNode}}return e}else{return false}}function $x_ItemRow(b,d){if($x(b)){b=[b]}for(var c=0;c<b.length;c++){var f=$x(b[c]);var e=$x_UpTill(f,"TR");switch(d){case"TOGGLE":$x_Toggle(e);break;case"SHOW":$x_Show(e);break;case"HIDE":$x_Hide(e);break;default:break}}return}function $x_HideAllExcept(b,d){var c=$x(b);if(c){$x_Hide(d);$x_Show(c)}return c}function $x_ShowSiblings(b){var c=$x(b);if(c){var d=c.parentNode.childNodes;$x_Show(d)}return c}function $x_Class(d,c){if($x(d)){d=[d]}var b=d.length;for(var e=0;e<b;e++){if($x(d[e])){$x(d[e]).className=c}}if(d.length==1){d=d[0]}}function $x_SetSiblingsClass(f,b,d){var c=$x(f);if(c){var e=c.parentNode.childNodes;$x_Class(e,b);if(d){c.className=d}}return c}function $x_ShowAllByClass(f,d,c){var e=$x(f);var b=getElementsByClass(d,e,c);if(b){$x_Show(b)}}function $x_ShowChildren(c){var b=$x(c);if(b&&b.hasChildNodes){$x_Show(b.childNodes)}}function $f_Hide_On_Value_Item(e,c,b){var d=html_CheckValueAgainst(e,b);if(d){$x_Hide(c)}else{$x_Show(c)}return d}function $f_Show_On_Value_Item(e,c,b){var d=html_CheckValueAgainst(e,b);if(d){$x_Show(c)}else{$x_Hide(c)}return d}function $f_Hide_On_Value_Item_Row(e,c,b){var d=html_CheckValueAgainst(e,b);if(d){$x_HideItemRow(c)}else{$x_ShowItemRow(c)}return d}function $f_Show_On_Value_Item_Row(e,c,b){var d=html_CheckValueAgainst(e,b);if(d){$x_ShowItemRow(c)}else{$x_HideItemRow(c)}return d}function $f_DisableOnValue(g,b,d){var e=html_CheckValueAgainst(g,b);if(d){var f=[];for(var c=2;c<arguments.length;c++){if(arguments[c]){f[f.length]=arguments[c]}}html_disableItem(f,e)}return e}function $x_disableItem(d,c){var b=c?"#ccc":"#fff";if($x(d)){d=[d]}for(var e=0;e<d.length;e++){var f=$x(d[e]);if(f){f.disabled=c;if(f.type=="radio"||f.type=="checkbox"){$x_Style(f,"color",b)}else{$x_Style(f,"background",b)}}}if(d.length==1){d=d[0]}return d}function getElementsByClass(h,f,b){var e=[];if(!f){f=document}else{f=$x(f)}if(!b){b="*"}var d=f.getElementsByTagName(b);var c=d.length;var g=new RegExp("(^|\\s)"+h+"(\\s|$)");for(i=0,j=0;i<c;i++){if(g.test(d[i].className)){e[j]=d[i];j++}}return e}function setStyleByClass(e,g,f,d){var b=getElementsByClass(g,false,e);$x_Style(b,f,d)}function setClassByClass(d,f,e){var b=getElementsByClass(f,false,d);$x_Class(b,e)}function $x_HideSiblings(b){return $x_HideAllExcept(b,$x(b).parentNode.childNodes)}function $x_HideItemRow(b){$x_ItemRow(b,"HIDE")}function $x_ShowItemRow(b){$x_ItemRow(b,"SHOW")}function $x_ToggleItemRow(b){$x_ItemRow(b,"TOGGLE")}function $v_PopupReturn(c,b){opener.$x_Value(b,$x(c).value);window.close()}function html_GetTarget(d){var c,b;if(!d){d=window.event}if(d.target){c=d.target}else{if(d.srcElement){c=d.srcElement}}if(c.nodeType==3){c=c.parentNode}return c}var gToggleWithImageA="pseudoButtonActive";var gToggleWithImageI="pseudoButtonInactive";function htmldb_ToggleWithImage(c,b){htmldb_ToggleTableBody(c,b)}function htmldb_ToggleTableBody(d,b){d=$x(d);if(html_CheckImageSrc(d,"plus")){d.className=gToggleWithImageI;d.src=html_replace(d.src,"plus","minus")}else{d.className=gToggleWithImageA;d.src=html_replace(d.src,"minus","plus")}var c=$x_Toggle(b);return}function findPosX(d){var c=$x(d),b=0,e=0;if(c.x){return c.x}else{if(c.offsetParent){while(c.offsetParent){if(c.style.left){e+=parseInt(c.style.left.substring(0,c.style.left.length-2));return e}else{e+=c.offsetLeft}c=c.offsetParent}}}return e}function findPosY(d){var b=$x(d),c=0;if(b.y){return b.y}else{if(b.offsetParent){while(b.offsetParent){if(b.style.top){c+=parseInt(b.style.top.substring(0,b.style.top.length-2));return c}else{c+=b.offsetTop}b=b.offsetParent}}}return c}function html_SubString(b,c){return(b.toString().indexOf(c.toString())!=-1)}function html_SwitchImageSrc(e,b,d){var c=$x(e);if(c&&c.nodeName=="IMG"){if(c.src.indexOf(b)!=-1){c.src=d}}return c}function html_CheckImageSrc(d,b){var c=$x(d),e=false;if(c&&c.nodeName=="IMG"){e=html_SubString(c.src,b)}return e}function html_RemoveAllChildren(c){var b=$x(c);if(b&&b.hasChildNodes&&b.removeChild){while(b.hasChildNodes()){b.removeChild(b.firstChild)}}}function html_replace(b,h,f){var d=b.length,g=h.length;if((d==0)||(g==0)){return b}var c=b.indexOf(h);if((!c)&&(h!=b.substring(0,g))){return b}if(c==-1){return b}var e=b.substring(0,c)+f;if(c+g<d){e+=html_replace(b.substring(c+g,d),h,f)}return e}function getScrollXY(){var c=0,b=0;if(typeof(window.pageYOffset)=="number"){b=window.pageYOffset;c=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){b=document.body.scrollTop;c=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){b=document.documentElement.scrollTop;c=document.documentElement.scrollLeft}}}return[c,b]}function html_Find(l,k,c,e){if(!c){c="DIV"}l=$x(l);if(l){var g=l.getElementsByTagName(c);l.style.display="none";if(!gRegex){gRegex=new RegExp("test")}gRegex.compile(k,"i");var h=new Date();for(var f=0,b=g.length;f<b;f++){if(gRegex.test(g[f].innerHTML)){g[f].style.display="block"}else{g[f].style.display="none"}}l.style.display="block"}return}function html_submitFormFromKeyPress(b){if(event.keyCode=="13"){$x("wwvFlowForm").submit()}}function html_InitTextFieldSubmits(){var c=document.getElementsByTagName("INPUT");for(var b=0;b<c.length;b++){if(c[b].type=="text"){c[b].onkeypress=html_submitFormFromKeyPress}}}function $d_TabClick(g,b,e,c,f){var d=$x(b),h=(e)?e:"current";if(!f){html_HideSiblings(d)}else{$x_HideAllExcept(b,c)}if(!c){$x_SetSiblingsClass(g,"",h)}else{$x_Class(c,"");$x(g).className=h}}function html_ShowLov(b){if(lovUI){lovUI.innerHTML=b;$x_Show(lovUI);lovUI.scrollIntoView(false)}return}var returnInput=null,returnDisplay=null;function setReturn(b,c){if(b){returnInput=$x(b)}if(c){returnDisplay=$x(c)}return}function html_Return_Form_Items(k,e){var c=(e)?e.toUpperCase():"ALL";var b=$x(k);var g=[];var d=[];var h=[];l_Selects=b.getElementsByTagName("SELECT");g=b.getElementsByTagName("INPUT");l_Textarea=b.getElementsByTagName("TEXTAREA");if(c=="SELECT"){g=l_Selects}else{if(c=="TEXTAREA"){g=l_Textarea}else{if(c=="ALL"){g=$dom_JoinNodeLists(g,l_Selects);g=$dom_JoinNodeLists(g,l_Textarea)}else{}}}if(c=="SELECT"||c=="TEXTAREA"||c=="ALL"){h=g}else{for(var f=0;f<g.length;f++){if(g[f].type.toUpperCase()==e.toUpperCase()){h[h.length]=g[f]}}}return h}function isEmpty(c){var b=/^\s{1,}$/g;if(($x(c).value.length==0)||($x(c).value==null)||(($x(c).value.search(b))>-1)){return true}else{return false}}function html_SetSelectValue(e,c){var f=$x(e);if(f.nodeName=="SELECT"){for(var d=0,b=f.options.length;d<b;d++){if(f.options[d].value==c){f.options[d].selected=true}else{f.options[d].selected=false}}}}function html_CheckValueAgainst(h,c){var f=false;var g=new Array();var e=false;var b=false;if(c.constructor==Array){g=c}else{g[0]=c}b=g.length;if(h.nodeName=="SELECT"){e=html_SelectValue(h)}else{e=$x(h).value}for(var d=0;d<b;d++){f=e==g[d];if(f){break}}return f}function addLoadEvent(b){var c=window.onload;if(typeof window.onload!="function"){window.onload=b}else{window.onload=function(){c();b()}}}function $f_Swap(e,c){if(e&&c){var d=$x(e).value;var b=$x(c).value;$x(e).value=b;$x(c).value=d}}function $f_SetValueSequence(e,c){var b=e.length;for(var d=0;d<b;d++){$x_Value(e[d],(d+1)*c)}}function $f_ValuesToArray(h,d,c){var g=getElementsByClass(d,$x(h),c);var b=g.length;var f=new Array();for(var e=0;e<b;e++){f[e]=g[e].value}return f}function html_CheckAll(g,f,d){if(d){e=d}else{var e=html_Return_Form_Items(g,"CHECKBOX")}for(var c=0,b=e.length;c<b;c++){e[c].checked=f}return}function $f_CheckFirstColumn(f){var d=$x_UpTill(f,"TABLE");var e=[];for(var c=0;c<d.rows.length;c++){var b=html_Return_Form_Items(d.rows[c],"CHECKBOX")[0];if(b){e[e.length]=b}}html_CheckAll(false,f.checked,e)}function $dom_AddTag(e,b,d){var c=document.createElement(b);if(e){$x(e).appendChild(c)}if(d){c.innerHTML=d}return c}function $dom_AddInput(pThis,pType,pId,pName,pValue){var lThis=$dom_AddTag($x(pThis),"INPUT");with(lThis){type=(pType)?pType:"text";id=(pId)?pId:"";name=(pName)?pName:"";value=(pValue)?pValue:""}return lThis}function $dom_JoinNodeLists(g,d){var f=[];var b=g.length;var e=d.length;for(var c=0;c<b;c++){f[c]=g[c]}for(var c=0;c<e;c++){f[f.length]=d[c]}return f}function $x_AddTag(d,b,c){return $dom_AddTag(d,b,c)}function $tr_AddTD(c,b){return $dom_AddTag($x(c),"TD",b)}function $tr_AddTH(c,b){return $dom_AddTag($x(c),"TH",b)}function html_CreateFormElement(d,b,c){return $dom_AddInput(false,d,"",b,c)}function detailTab(b){html_TabClick(b);return}function html_StringReplace(b,h,f){if(!f){f=""}var d=b.length,g=h.length;if((d==0)||(g==0)){return b}var c=b.indexOf(h);if((!c)&&(h!=b.substring(0,g))){return b}if(c==-1){return b}var e=b.substring(0,c)+f;if(c+g<d){e+=html_StringReplace(b.substring(c+g,d),h,f)}return e}function html_HideHolderDiv(c){var b=html_CascadeUpTillTag(c,"DIV");html_ToggleVis(b);if(tId){tId=null}return}function formHasValue(f){var b=false;var c="";for(var e=0,d=f.elements.length;e<d;e++){myType=f.elements[e].type;if(myType=="text"||myType=="textarea"){if(f.elements[e].value!=""){b=true}}if(myType=="select-one"||myType=="select-multiple"){if(f.elements[e].selectedIndex!=0&&f.elements[e].options[f.elements[e].selectedIndex].value!=""){b=true}}}return b}function html_GoToRelative(b){var c=location.pathname.substring(0,location.pathname.lastIndexOf("/"));document.location=c+"/"+b;return}function html_toggleNextCell(c){var b=html_CascadeUpTillTag(c,"TD");b=b.nextSibling;html_ToggleVis(b);return b}function html_ResetSelect(b){var d=$x(b);if(d.nodeName=="SELECT"){var c=d}else{var c=b.getElementsByTagName("select")[0]}c.selectedIndex=0;return}function html_PageTable(d,f,b){var e=$x(d);if(!f){f=1}if(!b){b=25}for(var c=0;c<e.rows.length;c++){if(c>=!f&&c<=b){$x_Show(e.rows[c])}else{$x_Hide(e.rows[c])}}}function timestamp(){var e,b="T:";var f=":";e=new Date();b+=e.getHours()+f;b+=e.getMinutes()+f;b+=e.getSeconds()+f;b+=e.getMilliseconds();return(b)}var dbaseTime1=null;var dbaseTime2=null;function timeC(b){if(dbaseTime1){dbaseTime2=new Date();dbaseTime1=null;dbaseTime2=null}else{dbaseTime1=new Date()}}function html_MakeParent(c,e){var d=$x(c);var b=$x(e);if(d.parentNode!=b){b.appendChild(d)}return d}var gCurrentRow=false;function html_RowHighlight(d,c){var b=d.getElementsByTagName("TD");$x_Style(b,"backgroundColor",c);gCurrentCells=d;return}function html_RowHighlightOff(d,c){var b=d.getElementsByTagName("TD");$x_Style(b,"backgroundColor","")}function html_Allow_Copy(c){l_return=false;var b=document.layers?evt.which:document.all?event.keyCode:document.getElementById?c.keyCode:0;if(c.ctrlKey&&b=="c"){l_return=true}return l_return}function html_SelectValue(d){var b=html_SelectedOptions(d);if($x(b)){b=[b]}var e=[];for(var c=0;c<b.length;c++){e[e.length]=b[c].value}if(e.length==1){e=e[0]}return e}function html_SelectedOptions(d){var f=$x(d);var e=[];if(f.nodeName=="SELECT"){var b=f.options;for(var c=0;c<b.length;c++){if(b[c].selected){e[e.length]=b[c]}}if(e.length==1){e=e[0]}return e}return false}function html_SetSelectValue(e,c){var f=$x(e);if(f.nodeName=="SELECT"){f.selectedIndex=0;for(var d=0,b=f.options.length;d<b;d++){if(f.options[d].value==c){f.options[d].selected=true}}}}function html_RadioValue(d){var f=false;var e=html_Return_Form_Items(d,"RADIO");var b=e.length;for(var c=0;c<b;c++){if(e[c].checked){f=e[c].value}}return f}function html_ReturnToTextSelection(e,f){if(document.selection){var d=$x(f);d.focus();var c=document.selection;var b=c.createRange();b.text=b.text+" "+e}else{d=$x(f);start=d.selectionStart;end=d.selectionEnd;d.value=d.value.slice(0,start)+" "+e+d.value.slice(end,d.value.length);d.focus();setCaretToPos(d,end+(e.length+2))}}function setSelectionRange(c,d,e){if(c.setSelectionRange){c.focus();c.setSelectionRange(d,e)}else{if(c.createTextRange){var b=c.createTextRange();b.collapse(true);b.moveEnd("character",e);b.moveStart("character",d);b.select()}}}function setCaretToEnd(b){setSelectionRange(b,b.value.length,b.value.length)}function setCaretToBegin(b){setSelectionRange(b,0,0)}function setCaretToPos(b,c){setSelectionRange(b,c,c)}function selectString(b,d){var c=new RegExp(d,"i").exec(b.value);if(c){setSelectionRange(b,c.index,c.index+c[0].length)}}function ob_PPR_TAB(b){top.gLastTab=b;var e=document.body;var d=new htmldb_Get(e,null,null,null,null,"f",b.substring(2));var c=d.get(null,'<body  style="padding:10px;">',"</body>");get=null;if(document.all){var f="window.parent.obFrameSize()";setTimeout(f,100)}else{window.parent.obFrameSize()}}function flowSelectAll(){var c;var b;if(typeof(flowSelectArray)=="undefined"){return true}else{for(a=0;a<flowSelectArray.length;a++){c=$x(flowSelectArray[a]);b=c.length;for(var d=0;d<=b-1;d++){c.options[d].selected=false}for(var d=0;d<=b-1;d++){c.options[d].selected=true}}}return true}function redirect(b){location.href=b;return}function doSubmit(b){flowSelectAll();$x_Value("pRequest",b);document.wwv_flow.submit()}function first_field(c){try{if($x(c)){var b=$x(c);if((b.type!="hidden")&&(!b.disabled)){b.focus()}}return true}catch(d){}}function charCount(e,d,g,f,c,p){var b=$x(e);var k=$x(g);var l=$x(f);var h=$x(c);var o=b.value.length/d*100;if(p!="Y"){if(b.value.length>=d){b.value=b.value.substring(0,d);b.style.color="red"}else{msg=null;b.style.color="black"}}k.innerHTML=b.value.length;l.innerHTML=d;if(b.value.length>0){h.style.visibility="visible"}else{h.style.visibility="hidden"}if(o>=90){h.style.color="red"}else{if(o>="80"){h.style.color="#EAA914"}else{h.style.color="black"}}}function confirmDelete(d,c){if(c==null){c="Delete"}var b=d;if(b==null){b=confirm("Would you like to perform this delete action?")}else{b=confirm(d)}if(b==true){doSubmit(c)}}function submitEnter(c,d){var b;if(window.event){b=window.event.keyCode}else{if(d){b=d.which}else{return true}}if(b==13){doSubmit(c.id);return false}else{return true}}function hideShow(g,c,b,d){var f=$x(c);var e=$x(g);if(e.style.display=="none"||e.style.display==""||e.style==null){f.src=d;$x(g).style.display="block"}else{f.src=b;$x(g).style.display="none"}return}function htmldbCheckCookie(b){SetCookie("ISCOOKIE","true");flow=GetCookie("ISCOOKIE");return}function getCookieVal(c){var b=document.cookie.indexOf(";",c);if(b==-1){b=document.cookie.length}return unescape(document.cookie.substring(c,b))}function GetCookie(e){var c=e+"=";var g=c.length;var b=document.cookie.length;var f=0;while(f<b){var d=f+g;if(document.cookie.substring(f,d)==c){return getCookieVal(d)}f=document.cookie.indexOf(" ",f)+1;if(f==0){break}}return null}function SetCookie(d,f){var b=SetCookie.arguments;var k=SetCookie.arguments.length;var c=(k>2)?b[2]:null;var h=(k>3)?b[3]:null;var e=(k>4)?b[4]:null;var g=(k>5)?b[5]:false;document.cookie=d+"="+escape(f)+((c==null)?"":("; expires="+c.toGMTString()))+((h==null)?"":("; path="+h))+((e==null)?"":("; domain="+e))+((g==true)?"; secure":"")}function quickLinks(b){if(b=="HIDE"){setClassByClass("a","eLinkOn","eLink");setClassByClass("img","eLinkOn","eLink");$x_Toggle("hideEdit");$x_Toggle("showEdit");SetCookie("MarvelQuickEdit",b)}else{setClassByClass("a","eLink","eLinkOn");setClassByClass("img","eLink","eLinkOn");$x_Toggle("hideEdit");$x_Toggle("showEdit");SetCookie("MarvelQuickEdit",b)}}var htmldb_ch=false;function htmldb_item_change(b){htmldb_ch=true}function htmldb_doUpdate(b){if(htmldb_ch){lc_SetChange();doSubmit(b)}else{doSubmit(b)}return}function htmldb_goSubmit(b){if(htmldb_ch){if(!htmldb_ch_message||htmldb_ch_message==null){htmldb_ch_message="Are you sure you want to leave this page without saving? /n Please use translatable string."}if(window.confirm(htmldb_ch_message)){doSubmit(b)}}else{doSubmit(b)}return}function html_PopUp(d,c,b,f,e,g){if(!d){d="about:blank"}if(!c){c="Popup"}if(!b){b=600}if(!f){f=600}if(!e){e="yes"}if(!g){g="yes"}l_Window=window.open(d,c,"toolbar=no,scrollbars="+e+",location=no,statusbar=no,menubar=no,resizable="+g+",width="+b+",height="+f);if(l_Window.opener==null){l_Window.opener=self}l_Window.focus();return l_Window}function callConditionsPopup(b,d){var c="f?p=4000:271:"+d+":::271:PASSBACK:"+b.name;html_PopUp(c,null,null,null)}function callPageTemplatePopup(d,f,c,b){var e="f?p=4000:74:"+f+":::74:F4000_P74_PASSBACK,F4000_P74_FLOW_ID,F4000_P74_PAGE_ID:"+d.name+","+c+","+b;html_PopUp(e,null,null,null)}function popupFieldHelp(d,e,b){var c;if(b){c="&p_close_button_name="+b}else{c=""}html_PopUp("wwv_flow_item_help.show_help?p_item_id="+d+"&p_session="+e+c,"Help",500,350);return}function confirmDelete2(d,c){if(c==null){c="Delete"}var b=d;if(b==null){b=confirm("Would you like to perform this delete action?")}else{b=confirm(d)}if(b==true){doSubmit(c);window.close()}}function LZ(b){return(b<0||b>9?b:"0"+b)}function whichElement(pForm,pElement,pOffset){n=parseInt(pElement.substring(3,pElement.length),10);m=n+parseInt(pOffset,10);return eval("document."+pForm+".p_t"+LZ(m))}function nullFields(e,f,d,b){var c=0;c=e.keyCode;if(c>45&&c<106||c==8){if(f){f.value=""}if(f){d.value=""}if(b){b.value=""}}}function selectAll(c){for(var b=0;b<=c.length-1;b++){c.options[b].selected=false}for(var b=0;b<=c.length-1;b++){c.options[b].selected=true}return true}function upperMe(b){var c=$x(b);if(c){c.value=c.value.toUpperCase()}}function disableItems(testString,item1,item2,item3,item4,item5,item6,item7,item8,item9,item10){var theTest=eval(testString);var i=1;if(theTest){for(i;i<12;i++){if(arguments[i]){disItem=$x(arguments[i]);disItem.style.background="#cccccc";disItem.disabled=true}}}else{for(i;i<12;i++){if(arguments[i]){disItem=$x(arguments[i]);disItem.disabled=false;disItem.style.background="#ffffff"}}}}function $f_SetValue(d,c){var b=$x(d);if(b){b.value=c}}function setValue(c,b){$f_SetValue(c,b)}function lc_SetChange(){if(gChangeCheck){gChangeCheck.value=1;gChangeCheck.type="text"}}function setValue2(d,c,b){obj=$x(d);if(obj){obj.value=c;if(obj.value!=c){alert(b)}}}var gCurrentAppMenu=false;var gCurrentAppMenuImage=false;var gSubMenuArray=new Array();function dhtml_CloseAllSubMenus(d){var e=null;if(!d){e=0}else{e=d}for(var c=e;c<=gSubMenuArray.length;c++){if(gSubMenuArray[c]){var b=$x_Hide(gSubMenuArray[c]);if(b){$x_Hide(b)}}}if(!d){gSubMenuArray.length=0}htmldb_IE_Select_Item_Fix(false);return}function dhtml_CloseAllSubMenusL(c){var b=parseInt($x_UpTill(c,"UL").getAttribute("htmldb:listlevel"))+1;dhtml_CloseAllSubMenus(b);return}function dhtml_DocMenuCheck(c){var b=html_GetTarget(c);var d=true;while(b.nodeName!="BODY"){b=b.parentNode;if(html_SubString(b.className,"dhtmlMenuLG")){d=!d}}if(d){app_AppMenuMultiClose();dhtml_CloseAllSubMenus();document.onclick=null}else{}return}function dhtml_ButtonDropDown(f,e,d,c,b){dhtml_SingeMenuOpen(f,e,"Bottom",c,b);return}function dhtml_MenuOpen(h,d,f,c){if($x(d)){document.onclick=dhtml_DocMenuCheck;if(!f){dhtml_CloseAllSubMenus();gCurrentAppMenu=d}else{var g=parseInt($x(d).getAttribute("htmldb:listlevel"));var b=gSubMenuArray[g];if(b){$x_Hide(b)}gSubMenuArray[g]=$x(d)}var e=$x(d);document.body.appendChild(e);if(!c||c=="Right"){e.style.position="absolute";e.style.top=parseInt(findPosY(h));e.style.left=parseInt(findPosX(h))}else{if(c=="Bottom"){e.style.position="absolute";e.style.top=parseInt(findPosY(h))+parseInt(h.offsetHeight);e.style.left=parseInt(findPosX(h))}else{if(c=="BottomRight"){e.style.position="absolute";e.style.top=parseInt(findPosY(h))+parseInt(h.offsetHeight);e.style.left=parseInt(findPosX(h))-parseInt(h.offsetWidth)}else{e.style.position="absolute";e.style.top=parseInt(findPosY(h));e.style.left=parseInt(findPosX(h))+parseInt(h.offsetWidth)}}}$x_Show(e);dhtml_FixLeft(h,e);htmldb_IE_Select_Item_Fix(e)}return}function dhtml_DocMenuSingleCheck(d,c){if(g_Single_Menu_Count>0){if(d){var b=html_GetTarget(d);var f=true;while(b.nodeName!="BODY"&&!c){b=b.parentNode;if(b==g_Single_Menu){f=!f}}}if(f||c){$x_Hide(g_Single_Menu);document.onclick=null}else{}}else{g_Single_Menu_Count=1}return}var g_Single_Menu=false;var g_Single_Menu_Count=0;function dhtml_SingeMenuOpen(h,e,d,c,b){var f=$x(e);var g=$x(h);f.style.zIndex=2001;document.body.appendChild(f);if(!d||d=="Right"){f.style.position="absolute";f.style.top=parseInt(findPosY(g));f.style.left=parseInt(findPosX(g))}else{if(d=="Bottom"){f.style.position="absolute";f.style.top=parseInt(findPosY(g))+parseInt(g.offsetHeight);f.style.left=parseInt(findPosX(g))}else{if(d=="BottomRight"){f.style.position="absolute";f.style.top=parseInt(findPosY(g))+parseInt(g.offsetHeight);f.style.left=parseInt(findPosX(g))-parseInt(g.offsetWidth)}else{if(d=="Set"){f.style.position="absolute";f.style.top=parseInt(b);f.style.left=parseInt(c)}else{f.style.position="absolute";f.style.top=parseInt(findPosY(g));f.style.left=parseInt(findPosX(g))+parseInt(g.offsetWidth)}}}}$x_Show(f);dhtml_FixLeft(g,f);htmldb_IE_Select_Item_Fix(true);g_Single_Menu_Count=0;g_Single_Menu=f;document.onclick=dhtml_DocMenuSingleCheck;return}function dhtml_FixLeft(d,c){var b;if(document.all){b=document.body.clientWidth}else{b=window.innerWidth}if(parseInt(b)<parseInt(findPosX(d))+parseInt(d.offsetWidth)+parseInt(c.offsetWidth)){c.style.position="absolute";c.style.left=(parseInt(findPosX(d))-parseInt(c.offsetWidth))}return}function htmldb_IE_Select_Item_Fix(b){var c=document.getElementsByTagName("SELECT").length>=1;if(document.all&&b&&c){if(b.firstChild&&b.firstChild.nodeName!="IFRAME"){b.innerHTML='<iframe  src="'+htmldb_Img_Dir+'blank.html" width="'+b.offsetWidth+'" height="'+b.offsetHeight+'" style="z-index:-10;position: absolute;left: 0;top: 0;filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);" scrolling="no" frameborder="0"></iframe>'+b.innerHTML}}return}var g_dhtmlMenuOn="dhtmlMenuOn";function app_AppMenuMultiOpenBottom(f,b,e){var d=$x(b);if(f!=gCurrentAppMenuImage){app_AppMenuMultiClose();var c=f.previousSibling.firstChild;f.className=g_dhtmlMenuOn;dhtml_MenuOpen(c,b,false,"Bottom");gCurrentAppMenuImage=f}else{dhtml_CloseAllSubMenus();app_AppMenuMultiClose()}return}function app_AppMenuMultiOpenBottom2(f,b,e){var d=$x(b);if(f!=gCurrentAppMenuImage){app_AppMenuMultiClose();var c=f.parentNode;f.className=g_dhtmlMenuOn;dhtml_MenuOpen(c,b,false,"Bottom");gCurrentAppMenuImage=f}else{dhtml_CloseAllSubMenus();app_AppMenuMultiClose()}return}var g_dhtmlMenu="dhtmlMenu";function app_AppMenuMultiClose(){if(gCurrentAppMenu){var b=$x(gCurrentAppMenu);gCurrentAppMenuImage.className=g_dhtmlMenu;$x_Hide(b);gCurrentAppMenu=false;gCurrentAppMenuImage=false}return}function html_CleanRegionId(e){var d=e.indexOf(".");var c=e.indexOf(",");var b=e;if(d>=0){b=b.substring(0,d)}else{if(c>=0){b=b.substring(0,c)}}return b}function html_PPR_Report_Page(c,h,e,d,k){var g=html_CleanRegionId(h);document.body.style.cursor="wait";var f=e;var b=f.indexOf("?");f=f.substring(b+1);f=html_replace(f,"pg_R_","FLOW_PPR_OUTPUT_"+g+"_pg_R_");f=html_replace(f,"fsp_sort_","FLOW_PPR_OUTPUT_"+g+"_fsp_sort_");var l=new htmldb_Get("report"+g,null,null,null,null,"f",f);l.get(null,"<htmldb:"+g+">","</htmldb:"+g+">");if(d){$x("report"+g).innerHTML=d+$x("report"+g).innerHTML}if(k){$x("report"+g).innerHTML+=k}document.body.style.cursor="";init_htmlPPRReport(g);l=null;return}function init_htmlPPRReport2(e){var c=$x("report"+e);if(c){var f=c.getElementsByTagName("TH");for(var d=0;d<f.length;d++){if(f[d].getElementsByTagName("A")[0]){var b=f[d].getElementsByTagName("A")[0].href;f[d].getElementsByTagName("A")[0].href="javascript:html_PPR_Report_Page(this,'"+e+"','"+b+"');"}}}return}function init_htmlPPRReport(b){if(document.all){var c="init_htmlPPRReport2('"+b+"')";setTimeout(c,100)}else{init_htmlPPRReport2(b)}return}function PPR_Tabluar_Submit(o,h,d,r,s,p,k){pThis=$x(o);if(s){var e=new htmldb_Get(o,h,r,d,null,"wwv_flow.accept")}else{var e=new htmldb_Get(null,h,r,d,null,"wwv_flow.accept")}var l=html_Return_Form_Items(pThis);for(var g=0;g<l.length;g++){if(l[g].type=="checkbox"){if(l[g].checked==true){e.addParam(l[g].name,l[g].value)}}else{if(l[g].name&&l[g].name!="fcs"){e.addParam(l[g].name,l[g].value)}}}var c=html_Return_Form_Items(pThis,"SELECT");for(var g=0;g<c.length;g++){e.addParam(c[g].name,html_SelectValue(c[g]))}var f=html_Return_Form_Items(pThis,"TEXTAREA");for(var g=0;g<f.length;g++){e.addParam(f[g].name,f[g].value)}if(k){var b=e.get(null,"<htmldb:"+k+">","</htmldb:"+k+">")}else{var b=e.get(null,"<htmldb:PPR_"+o+">","</htmldb:PPR_"+o+">")}if(p){init_htmlPPRReport(p)}e=null;return b}function html_RemoveRow(c){var b=$x("htmldbAddRowTable");var d=$x_UpTill(c,"TR");if(b.childNodes.length>=2&&d){b.removeChild(d);b.normalize()}return}var g_CheckedArray_IE;function ie_RowFixStart(d){if(document.all){var c=html_Return_Form_Items(d,"checkbox");g_CheckedArray_IE=new Array();for(var b=0;b<c.length;b++){if(c[b].type=="checkbox"){g_CheckedArray_IE[b]=c[b].checked}}}}function ie_RowFixFinish(d){if(document.all){var c=html_Return_Form_Items(d,"checkbox");for(var b=0;b<c.length;b++){if(c[b].type=="checkbox"){c[b].checked=g_CheckedArray_IE[b]}}}}function html_InitAddRowTable(){var b=$x("htmldbAddRowTable");var c=b.rows[0].cells[b.rows[0].cells.length-1];c.innerHTML="<br />";c.className=b.rows[0].cells[b.rows[0].cells.length-2].className;return}var gLastRowMoved=null;var gLastRowMovedColor="#CCCCCC";var gLastRowHighlight=true;function $tr_RowMoveFollow(c,b){if(gLastRowHighlight){if(b&&gLastRowMoved){html_RowHighlightOff(gLastRowMoved)}html_RowHighlight(c,gLastRowMovedColor)}gLastRowMoved=c}function html_RowUp(f,e){var d=$x_UpTill(f,"TR");ie_RowFixStart(d);$tr_RowMoveFollow(d,e);var b=d.parentNode;var c=d.previousSibling;while(c!=null){if(c.nodeType==1){break}c=c.previousSibling}if(c!=null&&c.firstChild!=null&&c.firstChild.nodeName!="TH"&&c.nodeName=="TR"){oElement=b.insertBefore(d,c)}else{oElement=b.appendChild(d)}ie_RowFixFinish(oElement);return oElement}function html_RowDown(f,e){var d=$x_UpTill(f,"TR");ie_RowFixStart(d);$tr_RowMoveFollow(d,e);var c=d.parentNode;var b=d.nextSibling;while(b!=null){if(b.nodeType==1){break}b=b.nextSibling}if(b!=null&&b.nodeName=="TR"){oElement=c.insertBefore(d,b.nextSibling)}else{oElement=c.insertBefore(d,c.getElementsByTagName("TR")[1])}ie_RowFixFinish(oElement);return oElement}function dhtml_CloseDialog(b){html_enableBase();$x_Hide($x_UpTill(b,"TABLE"));toolTip_disable()}function html_processing(){var c=$x("htmldbWait");if(!c){var b=document.createElement("DIV");b.className="htmldbProcessing";b.style.zIndex=20000;b.id="htmldbDisablePage";b.style.width="100%";b.style.height="100%";b.onclick="return false;";b.style.position="absolute";b.style.top="0";b.style.left="0";document.body.insertBefore(b,document.body.firstChild)}}function html_enableBase(){var b=$x("htmldbDisablePage");if(b){b.parentNode.removeChild(b)}}function html_disableBase(e,f){var d=$x("htmldbDisablePage");if(!d){var b=document.createElement("DIV");b.className=f!=null?f:"htmldbDisablePage";b.style.zIndex=e;b.id="htmldbDisablePage";b.style.width="100%";b.style.height="100%";b.onclick="return false;";b.style.position="absolute";b.style.top="0";b.style.left="0";document.body.insertBefore(b,document.body.firstChild)}}function html_Centerme(e){var c=$x(e);if(document.all){l_Width=document.body.clientWidth;l_Height=document.body.clientHeigth}else{l_Width=window.innerWidth;l_Height=window.innerHeight}var b=c.offsetWidth;var d=c.offsetHeight;c.style.top="40%";c.style.left="40%"}var tt_target;var gToolTipGraphic="arrow2.gif";var gToolTip=false;var gToopTipPointer=false;var gToolTipContent=false;function toolTip_init(){if(document&&document.body){gToolTipContent=$x("gToolTipContent");gToolTip=$x("dhtmltooltip");if(!gToolTip){gToolTip=$dom_AddTag(document.body,"DIV");gToolTip.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=10000}gToopTipPointer=$x("dhtmlpointer");if(!gToopTipPointer){gToopTipPointer=$dom_AddTag(document.body,"IMG");gToopTipPointer.id="dhtmlpointer";gToopTipPointer.src=htmldb_Img_Dir+gToolTipGraphic;gToopTipPointer.style.position="absolute";gToopTipPointer.style.zIndex=10001}return true}else{return false}}function toolTip_disable(){if(toolTip_init()){tt_target=null;gToolTip.style.visibility="hidden";gToolTip.style.backgroundColor="";gToolTip.style.width="";gToopTipPointer.style.visibility="hidden";if(gToolTipContent){gToolTipContent.innerHTML=""}else{gToolTip.innerHTML=""}}}function toolTip_enable(b,l,h,g,c){var b=(b)?b:((window.event)?event:null);var f=b.pageX?b.pageX:b.clientX+getScrollXY()[0];var d=b.pageY?b.pageY:b.clientY+getScrollXY()[1];if(toolTip_init()){tt_target=l;if(!h){h=l.getAttribute("htmldb:tip")}if(gToolTipContent){gToolTipContent.innerHTML=h}else{gToolTip.innerHTML=h}if(typeof g!="undefined"){gToolTip.style.width=g+"px"}if(typeof c!="undefined"&&c!=""){gToolTip.style.backgroundColor=c}else{gToolTip.style.backgroundColor="lightyellow"}gToopTipPointer.style.left=(10+f)+"px";gToopTipPointer.style.top=(15+d)+"px";gToolTip.style.left=(7+f)+"px";gToolTip.style.top=(28+d)+"px";gToolTip.style.visibility="visible";gToolTip.style.zIndex=10000;gToopTipPointer.style.zIndex=10001;gToopTipPointer.style.visibility="visible";try{l.addEventListener("mouseout",toolTip_disable,false)}catch(k){l.attachEvent("onmouseout",toolTip_disable)}}return false}function toolTip_follow(b,e){var b=(b)?b:((window.event)?event:null);var d=b.pageX?b.pageX:b.clientX+getScrollXY()[0];var c=b.pageY?b.pageY:b.clientY+getScrollXY()[1];if(gToolTip){gToolTip.style.left=(7+d)+"px";gToolTip.style.top=(28+c)+"px";gToolTip.style.visibility="visible";gToolTip.style.zIndex=10000;gToopTipPointer.style.left=(10+d)+"px";gToopTipPointer.style.top=(15+c)+"px";gToopTipPointer.style.zIndex=10001;gToopTipPointer.style.visibility="visible"}return false}function dhtml_ShuttleValue(g,d){var e=[];var f=$x(g);var b=$x(d);e=html_SelectedOptions(f);if($x(e)){e=[e]}for(var c=0;c<e.length;c++){b.appendChild(e[c])}}function dhtml_ShuttleObject(g,b){this.Select1=$x(g);this.Select2=$x(b);this.Select1ArrayInit=this.Select1.cloneNode(true);this.Select2ArrayInit=this.Select2.cloneNode(true);this.Op1Init=new Array();this.Op2Init=new Array();this.Op1Init=this.Select1ArrayInit.options;this.Op2Init=this.Select2ArrayInit.options;this.move=c;this.move_all=o;this.remove=h;this.remove_all=l;this.reset=k;this.sort1=e;this.sort2=d;this.sort=f;return;function c(){var p=html_SelectedOptions(this.Select1);if($x(p)){p=[p]}var r=p.length;for(var q=0;q<r;q++){this.Select2.appendChild(p[q])}}function h(){var p=html_SelectedOptions(this.Select2);if($x(p)){p=[p]}var r=p.length;for(var q=0;q<r;q++){this.Select1.appendChild(p[q])}}function k(){this.Select1.options.length=0;this.Select2.options.length=0;var r=this.Op1Init.length;for(var p=0;p<r;p++){this.Select1.options[p]=new Option(this.Op1Init[p].text,this.Op1Init[p].value)}var q=this.Op2Init.length;for(var p=0;p<q;p++){this.Select2.options[p]=new Option(this.Op2Init[p].text,this.Op2Init[p].value)}}function o(){for(var p=0;p<this.Select1.options.length;p++){this.Select1.options[p].selected=true}this.move()}function l(){for(var p=0;p<this.Select2.options.length;p++){this.Select2.options[p].selected=true}this.remove()}function e(p){this.sort(this.Select1,p)}function d(p){this.sort(this.Select2,p)}function f(t,s){var u;var q=t.options.length;if(s=="U"){for(var r=0;r<t.options.length;r++){if(t.options[r].selected==true){if(s=="U"){if(r!=0){t.insertBefore(t.options[r],t.options[r-1])}}}}}else{if(s=="D"){for(var r=t.options.length-1;r>=0;r--){if(t.options[r].selected==true){if(s=="D"){if(r!=t.options.length-1){t.insertBefore(t.options[r],t.options[r+2])}}}}}else{var p=new Array();for(var r=0;r<t.options.length;r++){if(t.options[r].selected==true){p[p.length]=t.options[r]}}if(s=="B"){for(var r=0;r<p.length;r++){t.appendChild(p[r])}}else{if(s=="T"){for(var r=p.length-1;r>=0;r--){t.insertBefore(p[r],t.firstChild)}}}}}}}function cDebug(c,b){}function $d_Overlap(f,b){var h=true;var o=true;var c=findPos(f);var k=c[0];var g=c[1];var p=findPos(b);var e=p[0];var d=p[1];if(e>k||k>e+b.offsetWidth){h=false}if(d>g||g>d+b.offsetHeight){h=false}return h}function apex_RefreshChart(b,e,d){var c=new htmldb_Get(null,$x("pFlowId").value,"FLOW_FLASH_CHART_R"+e+"_"+d,b);var f=c.get();c=null;if(ie){window["c"+e].SetXMLText(f)}else{document["c"+e].SetXMLText(f)}}function apex_SWFFormFix(c){if(!ie){return false}var b="SWFFormFix";document.write('<div id="'+b+'" onclick="apex_SWFFormFixCallback(this,\''+c+'\');return false;" style="display:none">&nbsp;</div>');$x(b).onclick()}function apex_SWFFormFixCallback(d,e){var c=document;var b=d;while(d=d.parentNode){if(d.nodeName.toLowerCase()=="form"){if(d.name!=undefined&&d.name!=null&&d.name.length>0){c=c.forms[d.name]}}}b.parentNode.removeChild(b);window[e]=c[e];return true}gReturn="F4000_P4017_SOURCE_CHART";function ChartSqlReturn(b){$v_PopupReturn("P4000_CHART_SQL",gReturn);window.close()}var gTestArray;var gTestId;var gReSequence=false;var gReSequenceBy=10;function reorder_init(e){var d=$x(e);var b=getElementsByClass("orderby",d,"INPUT");for(var c=0;c<d.rows.length;c++){if(c==0){$tr_AddTH(d.rows[c],"<br />")}else{$tr_AddTD(d.rows[c],'<img src="'+htmldb_Img_Dir+'htmldb/icons/up_arrow.gif" onclick="html_RowUp(this,true);reorder_set();" class="pb" alt="" /><img src="'+htmldb_Img_Dir+'htmldb/icons/down_arrow.gif" onclick="html_RowDown(this,true);reorder_set();" class="pb" alt="" />')}}if(gReSequence){$f_SetValueSequence(b,gReSequenceBy)}gTestArray=$f_ValuesToArray(d,"orderby","INPUT");gTestId=e;if($x("pview")){rpreview()}}function reorder_set(){var d=$x(gTestId);var b=getElementsByClass("orderby",d,"INPUT");for(var c=0;c<b.length;c++){$x_Value(b[c],gTestArray[c])}if($x("pview")){rpreview()}}function rpreview(){var b=$x(gTestId);var o=$x("pview");var c=getElementsByClass("orderby",b,"INPUT");o.innerHTML="";var p=$x_AddTag(o,"TABLE");p.className="itemlayout";lLastRow=false;lLastCell=false;for(var d=1;d<b.rows.length;d++){var e=html_Return_Form_Items(b.rows[d],"SELECT");var q=html_Return_Form_Items(b.rows[d],"TEXT");var l=b.rows[d].cells[0].innerHTML;var k=q[0].value;var h=q[2].value;if(h){}var r=e[0].value;var g=e[1].value;var f=e[2].value;if(h=="STOP_AND_START_HTML_TABLE"){$x_AddTag(o,"BR");var p=$x_AddTag(o,"TABLE");p.className="itemlayout"}else{if(r=="YES"||d==1){lLastRow=$x_AddTag(p,"TR")}if(h=="BUTTON"){k="<br />"}lLastCell=$tr_AddTD(lLastRow,k);lLastCell.setAttribute("style",rAlign(f));if(h=="HIDDEN"){lLastCell.setAttribute("style","font-weight:normal;background-color:#FFF;")}if(g=="YES"&&f!="ABOVE"&&f!="BELOW"){lLastCell=$tr_AddTD(lLastRow,l);lLastCell.className="itemlayout";if(h=="TEXTAREA"){lLastCell.setAttribute("style","height:75px;")}if(h=="HIDDEN"){lLastCell.setAttribute("style","font-weight:normal;background-color:#FFF;")}lLastCell.colSpan=q[1].value}else{if(f=="ABOVE"){lLastCell.innerHTML+="<br />"+l}else{if(f=="BELOW"){lLastCell.innerHTML=l+"<br />"+lLastCell.innerHTML}else{lLastCell.innerHTML+=l}}if(h=="TEXTAREA"){lLastCell.setAttribute("style","height:75px;")}lLastCell.colSpan=q[1].value}}}if(document.all){o.innerHTML=o.innerHTML}}function rAlign(d){var b;var c=d.split("-");switch(c[0]){case"CENTER":b="text-align:center;";break;case"RIGHT":b="text-align:right;";break;case"LEFT":b="text-align:left;";break;default:b=" ";break}if(c[1]){switch(c[1]){case"BOTTOM":b+="vertical-align:bottom;";break;case"CENTER":b+="vertical-align:middle;";break;case"TOP":b+="vertical-align:top;";break;default:b+=" ";break}}return b}var gThis=false;var lEl=false;var lH=false;function qF(c,b){filterAttributeRegions(c,b)}var gFARButtonListCurrent="htmldbButtonListCurrent";var gFARButtonList="htmldbButtonList2";var gFARCookieName="propHide";function filterAttributeRegions(h,c){try{var g=c.substr(1);if(g=="ALL"||g=="DEFAULTALL"){h.className=gFARButtonListCurrent;if(g!="DEFAULTALL"){SetCookie(gFARCookieName,$x("pFlowStepId").value+","+c)}uF();if($x("ContentArea")){$x_Show("ContentArea")}}else{if($x("ALL")){$x("ALL").className=gFARButtonList}uR();h.className=gFARButtonListCurrent;gThis=h;if($x("ContentArea")){lH=getElementsByClass("T",$x("ContentArea"),"TH")}else{lH=getElementsByClass("T",$x("ContentBody"),"TH")}for(var b=0;b<lH.length;b++){$x_Hide($x_UpTill(lH[b],"TABLE"));if(lH[b].getElementsByTagName("A")){var d=lH[b].getElementsByTagName("A")[0];if(d&&d.name&&d.name==g){lEl=d}}}if(lEl){$x_Show($x_UpTill(lEl,"TABLE"))}SetCookie(gFARCookieName,$x("pFlowStepId").value+","+c);if($x("ContentArea")){$x_Show("ContentArea")}}}catch(f){uF();if($x("ContentArea")){$x_Show("ContentArea")}}}function propTest(){var g=document.URL;var f=g.lastIndexOf("#");if(f!=-1){var e=g.substring(f)}else{if(GetCookie("propHide")){var c=GetCookie("propHide").split(",")[0];if($x("pFlowStepId").value==c&&f==-1){var e=GetCookie("propHide").split(",")[1]}}else{e=false}}if(e){var b=$x("ql").getElementsByTagName("A");for(var d=0;d<b.length;d++){if(b[d].getAttribute("href").lastIndexOf(e)!=-1){qF(b[d],e)}}}else{qF($x("ALL"),"#DEFAULTALL")}}function uF(){unfilterAttributeRegions()}function unfilterAttributeRegions(){try{if($x("ContentArea")){lH=getElementsByClass("T",$x("ContentArea"),"TH")}else{lH=getElementsByClass("T",$x("ContentBody"),"TH")}for(var b=0;b<lH.length;b++){$x_Show($x_UpTill(lH[b],"TABLE"))}uR();scroll(0,0)}catch(c){scroll(0,0)}}function uR(){if(gThis){gThis.className="htmldbButtonList";if(gThis==$x("ALL")){gThis=$x("ALL")}}}function shuttleItem(h,d,g){srcList=$x(h);destList=$x(d);var e=[];var k=[];var p=[];var f;if(g){for(f=0;f<=srcList.length-1;f++){srcList.options[f].selected=true}}for(f=0;f<destList.options.length;f++){p[destList.options[f].text]=destList.options[f].value;k[f]=destList.options[f].text}var o=0;var b=k.length;for(f=0;f<srcList.options.length;f++){p[srcList.options[f].text]=srcList.options[f].value;if(srcList.options[f].selected&&srcList.options[f].value!=""){k[b]=srcList.options[f].text;b++}else{e[o]=srcList.options[f].text;o++}}e.sort();k.sort();srcList.length=0;destList.length=0;var l;for(l=0;l<e.length;l++){var q=new Option();q.value=p[e[l]];q.text=e[l];srcList[l]=q}for(l=0;l<k.length;l++){var q=new Option();q.value=p[k[l]];q.text=k[l];destList[l]=q}}function colorPopUp(b){w=html_PopUp("wwv_flow_utilities.gen_popup_color?p_item_name="+escape(b),"ColorPicker",250,255,"no","no")}function changePreviewColor(c){var b=$x(c).value;$x_Style(c.id+"_PREVIEW","background",b)}function html_VisibleElement(b){var c=$x(b);if(c){c.style.visibility="visible"}return c}function html_HiddenElement(b){var c=$x(b);if(c){c.style.visibility="hidden"}return c}function html_TabMakeCurrent(e){var d=$x(e);if(d){var c=d.parentNode.parentNode.childNodes;for(var b=0;b<c.length;b++){if(c[b]&&c[b].nodeType==1&&c[b].getElementsByTagName("A")[0]){c[b].getElementsByTagName("A")[0].className=""}}e.className="tabcurrent"}return d}function html_GetElement(b){return $x(b)}function $x_El(b){return $x(b)}function html_ToggleElement(b){return $x_Toggle(b)}function html_HideElement(b){return $x_Hide(b)}function html_ShowElement(b){return $x_Show(b)}function html_CascadeUpTill(e,d,c,b){return $x_UpTill(e,d,c,b)}function html_HideItemRow(b){$x_HideItemRow(b)}function html_ShowItemRow(b){$x_ShowItemRow(b)}function html_ToggleItemRow(b){$x_ToggleItemRow(b)}function html_HideSiblings(b){return $x_HideAllExcept($x(b),$x(b).parentNode.childNodes)}function html_ShowSiblings(b){return $x_ShowSiblings(b)}function html_ShowAllByClass(d,c,b){$x_ShowAllByClass(d,c,b)}function html_ShowAllChildren(b){$x_ShowChildren(b)}function setStyle(d,c,b){return $x_Style(d,c,b)}function f_Hide_On_Value_Item(d,c,b){return $f_Hide_On_Value_Item(d,c,b)}function f_Hide_On_Value_Item_Row(d,c,b){return $f_Hide_On_Value_Item_Row(d,c,b)}html_DisableOnValue=$f_DisableOnValue;function html_disableItems(b,e){if(e){var d=[];for(var c=1;c<arguments.length;c++){if(arguments[c]){d[d.length]=arguments[c]}}html_disableItem(d,b)}return}function html_disableItem(c,b){return $x_disableItem(c,b)}function html_GetPageScroll(){return getScrollXY()[1]}function popUpNamed(c,b){html_PopUp(c,b,null,null)}function popUp2(c,b,d){day=new Date();pName=day.getTime();html_PopUp(c,pName,b,d)}function popUp(b){day=new Date();pName=day.getTime();html_PopUp(b,pName,null,null)}function popupURL(b){html_PopUp(b,"winLov",800,600)}function $x_SetClassArray(c,b){$x_Class(c,b)}function html_TabClick(f,e){var d=$x(f).parentNode.parentNode.childNodes,b=[];for(var c=0;c<d.length;c++){if($x(d[c])&&d[c].getElementsByTagName("A")[0]){b[b.length]=d[c].getElementsByTagName("A")[0]}}$d_TabClick(f,e,"tabcurrent",b);return}function retFalse(){return false}function getSelected(c){var d=[];for(var b=0;b<c.length;b++){if(c[b].selected){d[d.length]=c[b]}}return d}function $f_SetValue(c,b){$x_Value(c,b)}function setValue(c,b){$x_Value(c,b)};

