var gCurrentNode=null;var gObjectType=null;var vFrame=false;var vSearchObject=false;var vCurrentTypeObject=false;var vCurrentId=false;var vObjectsSlider=false;var vObjectsTitle=false;var vObjectsDetail=false;var vRollOver=false;var debugIframe=0;var vCurrentAppArea=false;var vLastKeyTime=false;var gSideBar=false;function initCap(A){var B=A.replace("_"," ");B=B.charAt(0).toUpperCase()+B.substring(1).toLowerCase();var C=B.indexOf(" ");if(C>-1){B=B.substring(0,C+1)+B.charAt(C+1).toUpperCase()+B.substring(C+2).toLowerCase()}return B}function ob_initObject(){if(!vFrame){vFrame=$x("dbaseContent")}if(!vSearchObject){vSearchObject=$x("OB_FIND")}if(!vObjectsSlider){vObjectsSlider=$x("ob_ObjectsSlider")}if(!vObjectsDetail){vObjectsDetail=$x("ob_ObjectsDetail")}if(!vCurrentId){vCurrentId=$x("OB_CURRENT_ITEMID")}if(!vCurrentTypeObject){vCurrentTypeObject=$x("obObjectSelect")}if(!vRollOver){vRollOver=$x("dbaseFloater")}if(!gSideBar){gSideBar=new ObjectList("obObjectSelect","OB_FIND","ob_ObjectsSlider","OB_SCHEMA","ob_ObjectsDetail")}top.$x_Show($x("htmldbDropHere").rows[0]);return }var gHeight=null;var g_SkipResize=false;function ob_Resize(){try{if(!g_SkipResize){if(document.all){l_Height=parseInt(document.body.clientHeight*0.7);l_Width=parseInt($x("htmldbBreadcrumbTop").offsetWidth)-24}else{l_Height=parseInt(window.innerHeight)*0.75;l_Width=parseInt($x("htmldbBreadcrumbTop").offsetWidth)-24}gHeight=l_Height;if(window.frames.dbaseContent){$x("dbaseContent").style.width=200;$x("dbaseContent").style.height=200;$x("ob_ObjectsSlider").style.height=200;$x("obTable").style.width=l_Width;obFrameSize()}}else{window.frames.dbaseContent.maximize()}return }catch(A){setTimeout(ob_Resize,150)}}function obFrameSize(){try{if(!g_SkipResize){$x("dbaseContent").style.width=200;$x("dbaseContent").style.height=200;$x("ob_ObjectsSlider").style.height=200;var A=$x("dbaseFrameHolder").offsetWidth;var D=$x("dbaseFrameHolder").offsetHeight-$x("obRightHeader").offsetHeight;var C=parseInt(window.frames.dbaseContent.document.body.scrollWidth);var E=parseInt(window.frames.dbaseContent.document.body.scrollHeight);if(D>E){E=D}if(gHeight>E){E=gHeight-$x("obRightHeader").offsetHeight}$x("dbaseContent").style.height=E;$x("ob_ObjectsSlider").style.height=$x("dbaseFrameHolder").offsetHeight-parseInt($x("obLeftHeader").offsetHeight);if(A>C){C=A}$x("dbaseContent").style.width=C}}catch(B){setTimeout(obFrameSize,150)}}function ob_SideBarControl(A){if(A){$x_Hide("obLeftColumn")}else{$x_Toggle("obLeftColumn")}obFrameSize();return }function ob_GroupObject(B,C,D,A){if(html_SelectValue("obObjectSelect")!=B){ob_initObject();gSideBar.reload(B,C)}return }function ob_Object(C,B,A){top.$x_Show($x("htmldbDropHere").rows[0]);ob_initObject();if(!A){ob_Navigate(C)}ob_Resize();obFrameSize();return }function o(A){gSideBar.setCurrent(A);ob_Object(A)}function ob_CreateObject(B){var C=null;if(B=="TABLE"){C="DEMO_APPLICATION.TABLE"}else{if(B=="VIEW"){C="LAYOUT.T_VIEW_BUTTON"}else{if(B=="INDEX"){C="INDEX_NOUN"}else{if(B=="SEQUENCE"){C="DEMO_APPLICATION.SEQUENCE"}else{if(B=="TYPE"){C="PAGE_REGION.TREE_TYPE"}else{if(B=="PACKAGE"){C="DEMO_APPLICATION.PACKAGE"}else{if(B=="PROCEDURE"){C="SQL_INJECT_PROCEDURE"}else{if(B=="FUNCTION"){C="4500_1002_QB_CLONE_FUNCTION"}else{if(B=="TRIGGER"){C="DEMO_APPLICATION.TRIGGER"}else{if(B=="DATABASE_LINK"){C="DATABASE_LINK"}else{if(B=="MATERIALIZED_LINK"){C="MATERIALIZED_VIEW"}else{if(B=="SYNONYM"){C="SYNONYM_NOUN"}}}}}}}}}}}}var A=new htmldb_Get(null,4500,"INTERNAL_APPLICATION_PROCESS=251509908846066406",0);A.add("SYSTEM_MESSAGE",C);var D=A.get();if(!B){B=vCurrentTypeObject.value}vObjectsDetail.innerHTML=initCap(D);ob_IframeUrl("f?p=4500:"+B+"_CREATE:"+$x("pInstance").value+":::602,604,145,149,48,98,107,100,57,77,94,135,117,118,131,186,187,120,124,125,121,122,123,97,99,3,84,182,183,91,TBL_WIZ_COLUMNS,TBL_WIZ_FKS,TBL_WIZ_CONS:::");$x_Hide($x("htmldbDropHere").rows[0]);ob_MenuDrop();ob_SideBarControl(true);return }function ob_Iframe_Init(B){var A=document.createElement("DIV");A.className="htmldbInvisDiv";A.id="htmldbDisablePage";A.style.width="100%";A.style.height="100%";A.onclick=ob_MenuDrop;A.style.position="absolute";A.style.top="0";A.style.left="0";document.body.appendChild(A)}function ob_MenuDrop(A){html_enableBase();dhtml_DocMenuSingleCheck(A,true)}function ob_IframeUrl(A){vFrame.src=A;return }function obSetScroll(A){}function ob_Reset(A){if(A){top.ob_Object(top.$x(A),null,false)}if(gLastTab){top.ob_IframeUrl(gLastTab);top.gSideBar.setHeader();top.gSideBar.highlight()}else{top.ob_IframeUrl("f?p=4500:BLANK_IFRAME:"+$x("pInstance").value);top.gSideBar.setHeader(" ")}top.$x_Show("obLeftColumn");top.$x_Show($x("htmldbDropHere").rows[0]);return }function ob_createClick(){ob_IframeUrl="f?p=4500:81:"+$x("pInstance").value}function ob_Navigate(E){top.$x_Show($x("htmldbDropHere").rows[0]);this.DomEl=$x(E);var D=null;if(!gLastTab){D=html_SelectValue("obObjectSelect")+"_DETAIL"}else{D=gLastTab.split(":")[1]}var B="f?p=4500:"+D+":"+$x("pInstance").value+":GETOBJECT_TREE:NO::OB_OBJECT_NAME,OBJECT_ID:"+E+","+E+":";var C=window.frames.dbaseContent.document.getElementById("htmldbPage");if(C){var A=new htmldb_Get(C,null,null,null,null,"f",B.substring(2));A.get(null,'
','');get=null}else{vFrame.src=B}gLastTab=B}function ob_pg2250(){ob_Resize()};