/*jslint nomen: false, evil: false, browser: true, eqeqeq: false, white: false, undef: false */ /* Oracle Database Application Express, Release 3.1 B32468-02 Copyright © 2003, 2008, Oracle. All rights reserved. Primary Author: Carl Backstrom The Programs (which include both the software and documentation) contain proprietary information; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited. The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. This document is not warranted to be error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose. If the Programs are delivered to the United States Government or anyone licensing or using the Programs on behalf of the United States Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the Programs, including documentation and technical data, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19, Commercial Computer Software--Restricted Rights (June 1987). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065. The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and we disclaim liability for any damages caused by such use of the Programs. Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. The Programs may provide links to Web sites and access to content, products, and services from third parties. Oracle is not responsible for the availability of, or any content provided on, third-party Web sites. You bear all risks associated with the use of such content. If you choose to purchase any products or services from a third party, the relationship is directly between you and the third party. Oracle is not responsible for: (a) the quality of third-party products or services; or (b) fulfilling any of the terms of the agreement with the third party, including delivery of products or services and warranty obligations related to purchased products or services. Oracle is not responsible for any loss or damage of any sort that you may incur from dealing with any third party. */ /** * @fileOverview * This file contains javascript specific to apex builder enviroment functions and objects for Oracle Application Express * * */ try{ var gReturn = 'F4000_P4017_SOURCE_CHART'; /** @ignore */ function ChartSqlReturn(pThis){ $v_PopupReturn('P4000_CHART_SQL',gReturn); window.close(); } var gTestArray; var gTestId; var gReSequence = false; var gReSequenceBy = 10; var gId = false; var gReorder; /** @ignore */ function rAlign(pThis){ var lText; var lThis = pThis.split("-"); switch(lThis[0]){ case 'CENTER' : lText='text-align:center;'; break; case 'RIGHT' : lText='text-align:right;'; break; case 'LEFT' : lText='text-align:left;'; break; default : lText = ' '; break; } if(lThis[1]){ switch(lThis[1]){ case 'BOTTOM' : lText+='vertical-align:bottom;'; break; case 'CENTER' : lText+='vertical-align:middle;'; break; case 'TOP' : lText+='vertical-align:top;'; break; default : lText += ' '; break; } } return lText; } /** @ignore the following runs item layout preview */ function rpreview(gId){ var lnode = $x('pview'); var node = $x(gId); node = (node)?node:$x(g_rpreview_global); if(!lnode){return false;} var lH = getElementsByClass('orderby',node,'INPUT'); lnode.innerHTML = ''; var lTable = $x_AddTag(lnode,'TABLE'); lTable.className='itemlayout'; lLastRow = false; lLastCell = false; for (var i=1;i' + lLastCell.innerHTML;} else{lLastCell.innerHTML += lValue;} if(lType == 'TEXTAREA'){lLastCell.setAttribute('style','height:75px;');} lLastCell.colSpan = lText[1].value; } } } if(document.all){lnode.innerHTML = lnode.innerHTML;} } /** @ignore */ function a4000pg749_init(){rpreview();} /** @ignore */ function callConditionsPopup(s1, sessionId) { var pURL = 'f?p=4000:271:' + sessionId + ':::271:PASSBACK:' + s1.name; html_PopUp(pURL,null,null,null); } /** @ignore * * used for custom popup of page template preview * */ function callPageTemplatePopup(s1, sessionId, flowId, pageId) { var pURL = 'f?p=4000:74:' + sessionId + ':::74:F4000_P74_PASSBACK,F4000_P74_FLOW_ID,F4000_P74_PAGE_ID:' + s1.name + ',' + flowId + ',' + pageId; html_PopUp(pURL,null,null,null); } var gThis = false; var lEl = false; var lH = false; var gFARButtonListCurrent = 'htmldbButtonListCurrent'; var gFARButtonList = 'htmldbButtonList2'; var gFARCookieName = 'ORA_WWV_ATTRIBUTE_PAGE'; /** * @ignore **/ function uR(){ if(gThis){ gThis.className='htmldbButtonList'; if(gThis==$x('ALL')){gThis=$x('ALL');} } } /** * @ignore **/ function filterAttributeRegions(pThis,pThat){ var lHolder = ($x('BB'))?$x('BB'):$x('ContentArea'); lHolder = (!lHolder)?$x('ContentBody'):lHolder; try{ var lThis = pThat.substr(1); if(lThis == 'ALL' || lThis == 'DEFAULTALL'){ pThis.className = gFARButtonListCurrent; if(lThis != 'DEFAULTALL'){SetCookie(gFARCookieName,$x('pFlowStepId').value+','+pThat);} uF(); $x_Show(['BB','ContentArea','ContentBody']); }else{ if($x('ALL')){$x('ALL').className = gFARButtonList;} uR(); pThis.className = gFARButtonListCurrent; gThis = pThis; lH = $x_ByClass('T',lHolder,'TH'); for (var i=0;i