var NameSpaceOnly=false;var apex={};if(apex===null||typeof(apex)!="object"){apex={}}if(apex.page===null||typeof(apex.page)!="object"){apex.page={}}if(apex.tabular===null||typeof(apex.tabular)!="object"){apex.tabular={}}if(apex.spreadsheet===null||typeof(apex.spreadsheet)!="object"){apex.spreadsheet={}}if(apex.items===null||typeof(apex.items)!="object"){apex.items={}}if(apex.util===null||typeof(apex.util)!="object"){apex.util={}}if(apex.ajax===null||typeof(apex.ajax)!="object"){apex.ajax={}}if(apex.dhtml===null||typeof(apex.dhtml)!="object"){apex.dhtml={}}if(apex.worksheet===null||typeof(apex.worksheet)!="object"){apex.worksheet={}}if(apex.validation===null||typeof(apex.validation)!="object"){apex.validation={}}if(apex.widget===null||typeof(apex.widget)!="object"){apex.widget={}}apex={util:function(){var a=this;this.el=false;this.init=function(b){a.el=$x(b);if(!a.el){return false}};this.select={};this.select.clean=function(b){a.init(b);if(a.el.length==1&&a.el.options[0].value=="DELETE ME"){a.el.length--}};return a}};var gUtil=new apex.util();apex.page={form:function(b){var a=this;a.request=b;a.supress=false;a.submit=function(c){if(c){a.request=c}if(!a.supress){flowSelectAll();$s("pRequest",a.request);document.wwv_flow.submit()}};this.confirm=function(d,c){if(!!!c){c="Delete"}a.supress=!confirm((!!!d)?"Would you like to perform this delete action?":d);a.submit(c)}},item:function(a){var c=this;this.node=false;this.item_type=false;this.id=false;this.value=d;this.valueArray=b;this.init=e;this.set=f;this.init(a);return;function e(h){try{switch(typeof(h)){case"string":c.node=document.getElementById(h);break;case"object":c.node=h;break;default:c.node=false;break}if(c.node.nodeType==1){}else{c.node=false}}catch(l){c.node=false}if(c.node){c.id=c.node.id;var j=c.node.nodeName.toUpperCase();var k=c.node.className.toUpperCase();if(j=="FIELDSET"){c.item_type=k;switch(k){case"CHECKBOX_GROUP":break;case"RADIO_GROUP":break;case"SHUTTLE":break;case"LISTMANAGER":break;default:c.item_type=false;break}}else{if(j=="INPUT"){c.item_type=c.node.type.toUpperCase();switch(c.item_type){case"CHECKBOX":break;case"RADIO":break;case"TEXT":var g=c.node.parentNode.className.toUpperCase();switch(g){case"LOV":c.item_type=g;break;case"COLORPICKER":c.item_type=g;break;case"CALCULATOR":c.item_type=g;break;case"DATEPICKER":c.item_type=g;break;default:break}break;case"PASSWORD":break;case"HIDDEN":break;case"FILE":break;default:c.item_type=false;break}}else{c.item_type=j;switch(c.item_type){case"TEXTAREA":if(c.node.parentNode.className=="html_editor"&&c.node.parentNode.tagName=="FIELDSET"){c.item_type="FCKEDITOR"}break;case"SELECT":break;case"SPAN":c.item_type=false;break;default:c.item_type=false;break}}}}}function b(){if(!c.node){return false}var l=true,m=[];switch(c.item_type){case"RADIO_GROUP":h=$x_FormItems(c.node,"RADIO");for(var j=0,g=h.length;j';$x(j).innerHTML=v;var n=$dom_AddTag("shuttle1","select");var t=$dom_AddTag("shuttle2","select");n.multiple=true;t.multiple=true;for(var s=0,u=d.row.length;s';endTag="";var f=p.responseText.indexOf(startTag);var e=p.responseText.substring(f+startTag.length);var d=e.indexOf(endTag);e=e.substring(0,d);b.lCSS.cssText=e}document.onclick=null;b.init();if(!!b.l_LastFunction){b.l_LastFunction();b.l_LastFunction=false}b.ajax_busy=false;return};this._BusyGraphic=function(d){if(d==1){$x_Show("apexir_LOADER")}else{$x_Hide("apexir_LOADER")}return};this._Return=function(){if(p.readyState==1){b._Loading()}else{if(p.readyState==2){}else{if(p.readyState==3){}else{if(p.readyState==4){$x_Hide("searchdrop").innerHTML="";if(b.l_Action=="CONTROL"){if(b.current_control=="COL_LOV"){var m=new $d_LOV_from_JSON();m.l_Type="SELECT";m.create(gReport.controls.lov_dom,p.responseText);$s(m.l_Dom,gReport.controls.value);m.l_Dom.focus();m.l_Dom.onblur=function(l){cellsave(l,this)}}else{if(b.current_control=="SORT_WIDGET"){var j=$u_eval("("+p.responseText+")");b.dialog.id=j.dialog.id;var e=$x("apexir_rollover").getElementsByTagName("TABLE")[0];$x_Show_Hide([e,"apexir_sortup","apexir_sortdown","apexir_removefilter","apexir_hide","apexir_break","apexir_info","apexir_computation"],j.dialog.hide);$x_Hide(j.dialog.hide);if(j.dialog.uv){var k=j.dialog.row.length;for(var g=0;g10){$x_Style("apexir_rollover_content","height","210px")}else{$x_Style("apexir_rollover_content","height","")}$x_Show("apexir_rollover_content");$s("apexir_search","")}else{$x_Hide("apexir_rollover_content")}var f=$x(b.current_col_dom);$x_Show("apexir_rollover");$x_Style("apexir_rollover","left",(findPosX(f.parentNode))+"px");$x_Style("apexir_rollover","top",(findPosY(f)+f.offsetHeight+5)+"px");$x_Class(f.parentNode,"current");b.last_col_id=f.id;document.body.onclick=b.dialog.check}else{if(b.current_control=="SHOW_FILTER"||b.current_control=="SHOW_HIGHLIGHT"){var d=b.item.control_panel_drop();$s(d,p.responseText);$x_Show(d);ws_ColumnCheck($x("apexir_COLUMN_NAME"))}else{if(b.current_control=="NARROW"||b.current_control=="FORMAT_MASK_LOV"){var m=new $d_LOV_from_JSON();m.l_Type="a";m.create(r,p.responseText);m.l_Dom.id="apexir_col_values_drop";$x_Style(m.l_Dom,"height","200px");$x_Style(m.l_Dom,"display","block");if(!$x("apexir_col_values_drop_space")){lThis=$dom_AddTag($x(b.temp_return_element).parentNode,"BR");lThis.id="apexir_col_values_drop_space"}$x(b.temp_return_element).parentNode.appendChild(m.l_Dom);for(var g=0,k=m.l_NewEls.length;g")}else{var l=$tr_AddTD(e[g]);var k=this.create(l,b.src_up,b.class_name,function(){b.row.up(this)});var j=this.create(l,b.src_down,b.class_name,function(){b.row.down(this)})}}return;function f(r,q,n,m){var o=$dom_AddTag(r,"IMG");o.src=q;o.className=n;o.onclick=m;return o}}}};function ws_OperatorCheck(d){var b=$x("apexir_COLUMN_NAME").options[$x("apexir_COLUMN_NAME").selectedIndex].className;var a=$v(d);var c=[];c[0]=$x("apexir_EXPR").parentNode;c[1]=$x("apexir_EXPR2").parentNode;c[2]=$x("apexir_EXPR3").parentNode;c[3]=$x("apexir_BETWEEN_FROM_fieldset").parentNode;c[4]=$x("apexir_BETWEEN_TO_fieldset").parentNode;$x_Show_Hide("apexir_EXPR_ICON",c);if(a=="is null"||a=="is not null"){$x_Hide("apexir_EXPRESSION_LABEL");return}else{$x_Show("apexir_EXPRESSION_LABEL");if(b=="DATE"&&!(a=="is in the last"||a=="is not in the last"||a=="is in the next"||a=="is not in the next")){$x_Show(c[3]);(a=="between")?$x_Show(c[4]):null}else{$x_Show(c[0]);(a=="between")?$x_Show(c[1]):null;(a=="is in the last"||a=="is not in the last"||a=="is in the next"||a=="is not in the next")?$x_Show_Hide(c[2],"apexir_EXPR_ICON"):null}}return}function ws_ColumnCheck(b){var a=b.options[b.selectedIndex].className;$x_HideSiblings("apexir_"+a+"_OPT");ws_OperatorCheck("apexir_"+a+"_OPT")}function item_menu(f,b){$x_Style("item_menu","position","absolute");var d=$x("item_menu").getElementsByTagName("a");for(var c=0,a=d.length;c