function isLoadedFromUI5AdminApp(){try{top.ui5AdminApp}catch(a){return false}return top.ui5AdminApp}function getLanguageCodeForUi5(a){if(a==="zh"||a==="zh-CN"){a="zh-Hans"
}else{if(a==="zf"||a==="zh-TW"){a="zh-Hant"}}return a}function updateIframeBodyCssClassForUI5AdminApp(a){$($("#"+a)[0].contentDocument.body).addClass("isLoadedFromUI5AdminApp");
$($("#"+a)[0]).css("opacity","1");setAppBusy(false)}if(!window.pslCommonLoaded){var isIE=navigator.userAgent.indexOf("MSIE")>-1;var isSafari=(navigator.userAgent.indexOf("Safari")!=-1)&&(navigator.userAgent.substr(navigator.userAgent.indexOf("Safari/")+7,1)<5)?true:false;
var isMozilla=!isIE&&!isSafari&&navigator.userAgent.indexOf("Gecko")>-1;var Mac=(navigator.userAgent.indexOf("mac")!=-1)||(navigator.userAgent.indexOf("Mac")!=-1);
var NS6=(navigator.userAgent.indexOf("Netscape")!=-1&&navigator.userAgent.indexOf("Gecko")!=-1);var dom;var SCROLL_ADJ_MINOR=10;var ADMIN_VIRTUAL_VIEW_DEFAULT=-5;
var ADMIN_VIRTUAL_VIEW_HOME=-10;var ADMIN_VIRTUAL_VIEW_SEARCH_CONTENT=-22;var ADMIN_VIRTUAL_VIEW_SEARCH_ENTERCRITERIA=-20;var ADMIN_VIRTUAL_VIEW_SEARCH_RESULTS=-21;
var SCREEN_TYPE_HOME=2;var SCREEN_SUBTYPE_SNAPSHOT_TOOL=1;var preventDefaultModuleTabBehavior=false;var openingPickerWindow=false;if(isIE||isMozilla||isSafari){dom=1
}function stripPX(b){var a;if(!b){return 0}a=b.indexOf("px");if(a>=0){b=b.substring(0,a)}a=parseInt(b,10);return isNaN(a)?0:a}function toggleLayer(a,h){var g,f,k,j,b,c,l,m,i,e;
var d=$("body").hasClass("rtl");g=document.getElementById(h);f=g;k=g.offsetLeft;while(f.offsetParent){f=f.offsetParent;k+=f.offsetLeft}f=g;j=g.offsetTop;while(f.offsetParent){f=f.offsetParent;
j+=f.offsetTop}b=window.innerWidth;if(!b){b=document.body.parentNode.clientWidth;if(!b){b=document.body.clientWidth}}c=window.innerHeight;if(!c){c=document.body.parentNode.clientHeight;
if(!c){c=document.body.clientHeight}}l=document.getElementById(a).style;l.display=l.display?"":"block";if(a=="expandCriteria"){l.left=k+g.offsetWidth+5;if(d&&b){l.left=stripPX(l.left)-stripPX(l.width)-g.offsetWidth-10
}m=j;i=c-document.getElementById(a).offsetHeight+document.body.scrollTop;if(m>i){m=i}if(m<0){m=0}l.top=m}if(a=="fieldChooser"){l.left=k+g.offsetWidth+5;l.top=j}if(a=="savedSearch"){l.left=k-document.getElementById(a).offsetWidth+g.offsetWidth;
l.top=j+g.offsetHeight+5}if(b){e=b-stripPX(l.width)-25;if(stripPX(l.left)>e){l.left=Math.max(e,0)}}}function doSearch(b,e,a){var c,d;c=a?a:"Search";if(document.layers){setObjVisibility(document.layers[b],e)
}else{if(document.getElementById){d=document.getElementById(b);setObjVisibility(d,e)}else{if(document.all){setObjVisibility(document.all[b],e)}}}if(e){if(isSafari){setTimeout("submitForm(action, '', '');",safariLatency)
}else{submitForm(c,"","")}}}function setAppBusy(a){if(isLoadedFromUI5AdminApp()){getAdminMainApp().setBusy(a)}}function showSearchResultsBreadcrumb(a){var b=document.getElementById(a);
if(a){b.style.visibility="visible"}}function setObjVisibility(b,a){if(document.layers){b.visibility=a?"show":"hide"}else{if(a){b.style.visibility="visible";b.style.display="block"
}else{b.style.visibility="hidden";b.style.display="none"}}}function criteria_showLayer(f){var c,i,e,b,k,d,a,j,h,g;c=criteria_getLayer(f);if(!c){return}i=isSafari?window.innerWidth:document.body.clientWidth;
e=isSafari?window.innerHeight:document.body.clientHeight;b=document.body.scrollLeft;k=document.body.scrollTop;d=i;a=e;c.style.left=-1000;c.style.top=-1000;setObjVisibility(c,true);
j=0;if(top.window[1]!=null){j=top.window[1].document.body.clientWidth}h=b+(d-c.clientWidth-j)/2;if(h<0){h=0}g=k+(a-c.clientHeight)/2;c.style.left=h;c.style.top=g
}function criteria_hideLayer(a){var b=criteria_getLayer(a);if(!b){return}if(document.layers){b.visibility="hidden"}else{setObjVisibility(b,false)}}function criteria_doHide(a){if(document.layer){return
}}if(document.layers){criteria_hideLayer("expandCriteria")}else{}function criteria_getLayer(a){if(document.layers){return document.layers[a]}else{if(document.all&&!document.getElementById){return document.all[a]
}else{if(document.getElementById){return document.getElementById(a)}else{return null}}}}function optionSelected(b,a){if(b.options[b.selectedIndex].value=="OP_NULL"){a.disabled=true
}else{a.disabled=false}}function componentCriterionOptionSelected(c,b,a){if(c.options[c.selectedIndex].value=="OP_NULL"){b.disabled=true;a.disabled=true}else{b.disabled=false;
a.disabled=false}}function toggleNBox(a,f,b,e,d){var c;alert(1);if(document.layers){alert("document.layers:"+document.layers);setObjVisibility(document.layers[a],f)
}else{if(document.getElementById){alert("document.getElementById:"+document.getElementById);c=document.getElementById(a);setObjVisibility(c,f)}else{if(document.all){alert("document.all:"+document.all);
setObjVisibility(document.all[a],f)}}}alert(2);if(f){alert("isSafari:"+isSafari);if(isSafari){setTimeout("submitForm(type, param1, param2);",safariLatency)}else{alert(3);
submitForm(b,e,d)}}}function closeDivWindow(b){if(parent.document.layers){parent.document.layers[b].style.visibility="hidden"}else{if(parent.document.all&&!parent.document.getElementById){parent.document.all[b].style.display="none"
}else{if(parent.document.getElementById){parent.document.getElementById(b).style.display="none"}else{}}}if(b==="savedSearch"){var a=jQuery(parent.document.getElementById("savedSearchImage")).parent("a")[0];
if(a&&a.focus){a.focus()}}}function closeParentDivWindow(a){if(document.layers){document.layers[a].style.visibility="hidden"}else{if(document.all&&!document.getElementById){document.all[a].style.display="none"
}else{if(document.getElementById){document.getElementById(a).style.display="none"}else{}}}}function showLayer(i,h,c,d){var a,b,f,e,g;if(document.layer){return}a=criteria_getLayer(i);
if(!a){return}b=criteria_getLayer(h);if(!b){return}if(b.x){f=b.x}else{g=b;f=b.offsetLeft;while(g.offsetParent){g=g.offsetParent;f+=g.offsetLeft}}if(b.y){e=b.y}else{g=b;
e=b.offsetTop;while(g.offsetParent){g=g.offsetParent;e+=g.offsetTop}}a.style.visibility="visible";a.style.display="block";a.style.left=f+b.offsetWidth+c;a.style.top=e+d
}function hideLayer(a){var b=criteria_getLayer(a);if(!b){return}if(document.layers){b.visibility="hidden"}else{b.style.display="none";b.style.visibility="hidden"
}}function _focus(b){if(!(b&&b.focus)){throw new Error("focus() not defined for object: "+b)}try{b.focus()}catch(a){}}function setFocusInForm(d,c){var b,a;b=true;
if(d&&window.jQuery){a=window.jQuery("button:visible, input[type!='hidden']:visible, select:visible, textarea:visible");if(a.length>0){_focus(a.get(0));b=false}}if(b&&c){_focus(c)
}}function scrollResultsIntoView(){if(!window.jQuery){alert("ERROR: scrollResultsIntoView needs to have jQuery loaded!");return}var b=window.jQuery,c=window.parent.document,a=b("#getPathBuffer",c),d;
if(a.length>0){if(a.length>1){a=a.eq(0)}d=a.offset();b("html, body",c).scrollTop(d.top)}}function scrollAnchorIntoView(c,b){if(!window.jQuery){alert("ERROR: scrollAnchorIntoView needs to have jQuery loaded!");
return false}if(!c){return false}var f=window.jQuery,a='[name="'+c+'"]',d=f("a"+a+", div"+a),i,h;if(d.length>0){if(d.length>1){d=d.eq(0)}i=d.offset();h=i.top;h-=(isNaN(b)?d.parent().height():b);
f("html, body").scrollTop(h);try{if(d.attr("href")){d.focus()}}catch(g){}}return false}function scrollAnchorIntoViewFromHRef(b,d){var c=b,a=(c?c.lastIndexOf("#"):-1);
if(a>=0){c=c.substring(a+1)}return scrollAnchorIntoView(c,d)}function getMainElementById(c){var a=null;try{a=window.parent.document.getElementById(c)}catch(b){}try{if((!a)&&window.parent.parent){a=window.parent.parent.document.getElementById(c)
}}catch(b){}try{if((!a)&&window.opener){a=window.opener.document.getElementById(c)}}catch(b){}try{if((!a)&&window.parent.opener){a=window.parent.opener.document.getElementById(c)
}}catch(b){}return a}function getMainElementWindowById(c){var b=null;try{if(window.parent.document.getElementById(c)){b=window.parent}}catch(a){}try{if((!b)&&window.parent.parent){if(window.parent.parent.document.getElementById(c)){b=window.parent.parent
}}}catch(a){}try{if((!b)&&window.opener){if(window.opener.document.getElementById(c)){b=window.opener}}}catch(a){}try{if((!b)&&window.parent.opener){if(window.parent.opener.document.getElementById(c)){b=window.parent.opener
}}}catch(a){}return b}function getPlateauIFrameLib(c){var d=null,a;if(!c){c=window}do{if(c.plateau){d=c.plateau.iframe;if(d){break}}try{a=c.parent}catch(b){break
}if((a==null)||(a==c)){break}c=a}while(true);try{if((!d)&&c.opener&&c.opener.plateau){d=c.opener.plateau.iframe}}catch(b){}return d}function getPlateauPopupLib(d){var b=null,a;
if(!d){d=window}if(isPageEmbeddedInAdminMainApp()||isPageInPlateauPopupContentFrame()||isPageInCatalogSearchIFrame()){d=d.parent}do{if(d.plateau){b=d.plateau.popup;
if(b){break}}try{a=d.parent}catch(c){break}if((a==null)||(a==d)){break}d=a}while(true);if(!b){try{d=d.opener}catch(c){d=null}if(d!=null){b=getPlateauPopupLib(d)}}return b
}function getAdminMainAppID(){return"adminMainApp"}function getAdminTabsAppID(){return"adminTabsApp"}function getAdminMainApp(){if(isLoadedFromUI5AdminApp()){return window.top.AdminApp
}else{if(isPageInPlateauPopupContentFrame()){return null}return getMainElementById(getAdminMainAppID())}}function getAdminTabsApp(){return getMainElementById(getAdminTabsAppID())
}function getAdminMainAppWindow(){if(isPageInPlateauPopupContentFrame()){return null}return getMainElementWindowById(getAdminMainAppID())}function isPageInAdminTabsAppFrame(){var b=window;
while(true){try{if(b.frameElement&&b.frameElement.className&&(b.frameElement.className.indexOf("adminTabsAppFrame")>=0)){return true}if((!b.parent)||(b==b.parent)){break
}b=b.parent}catch(a){break}}return false}function isPageInCatalogSearchIFrame(){var b=window;while(true){try{if(b.frameElement&&b.frameElement.className&&(b.frameElement.className.indexOf("catalogSearchIFrame")>=0)){return true
}if((!b.parent)||(b==b.parent)){break}b=b.parent}catch(a){break}}return false}function isPageInPlateauPopupContentFrame(){var b=window;while(true){try{if(b.frameElement&&b.frameElement.className&&(b.frameElement.className.indexOf("plateauPopupContentFrame")>=0)){return true
}if((!b.parent)||(b==b.parent)){break}b=b.parent}catch(a){break}}return false}function isPageEmbeddedInAdminMainApp(){return(getAdminMainApp()!=null)}function isPageEmbeddedAsHomeSnapshotToolInAdminMainApp(){return isPageInPlateauPopupContentFrame()
}function doesPopupHaveProperty(d,b){var c,e,a;if(!isPageInPlateauPopupContentFrame()){return false}c=getPlateauPopupLib(d);if(c==null){return false}e=c.getInstanceByFrameWindow(d);
if(!e||(e.length<=0)){return false}a=e.get(0);return a[b]?true:false}function isPageInAddNewPopup(a){return doesPopupHaveProperty(a,"isAddNewPopup")}function isPageInAdvancedTabsPopup(a){return doesPopupHaveProperty(a,"isAdvancedTabsPopup")
}function isPageInReferencePopup(a){return doesPopupHaveProperty(a,"isReferencePopup")}function isPageInToolsPopup(a){return doesPopupHaveProperty(a,"isToolsPopup")
}function getBaseURL(){var a=window.location.toString(),b=a.lastIndexOf("/");if(b>=0){a=a.substring(0,b)}return a}function resolveURL(a){if(a&&(a.charAt(0)!="/")&&(a.toLowerCase().indexOf("http")!=0)){a=getBaseURL()+"/"+a
}return a}function executeBreadcrumb(a){a=updateURLforPopUp(a);var b=isPageEmbeddedInAdminMainApp();if(b){changeViewInAdminMainApp(ADMIN_VIRTUAL_VIEW_DEFAULT,a)}else{window.location=a
}}function useAltSearchResultBreadcrumb(){var a=false,b;if(isPageEmbeddedInAdminMainApp()){b=getViewInAdminMainApp();if(b==ADMIN_VIRTUAL_VIEW_HOME){a=true}else{if(isLoadedFromUI5AdminApp()&&isPageInAddNewPopup(window)){a=true
}}}else{if(isPageInAddNewPopup(window)){a=true}else{if(isPageInToolsPopup(window)){a=true}}}return a}function ensureSearchEnterCriteriaView(){if(isPageEmbeddedInAdminMainApp()){var a=getViewInAdminMainApp();
if(a!=ADMIN_VIRTUAL_VIEW_SEARCH_ENTERCRITERIA){changeViewInAdminMainApp(ADMIN_VIRTUAL_VIEW_SEARCH_ENTERCRITERIA,window.location.toString());return false}}return true
}function handleAnchorClick(d,a,e,c){var b=checkAndAdjustSelector(d),f=isPageEmbeddedInAdminMainApp();if(f){if(b){b=resolveURL(b);changeViewInAdminMainApp(a,b,c)
}else{alert("ERROR: No href found for handleAnchorClick("+d+', "'+a+'", "'+e+'")!')}return false}return true}function handleAnchorInTabClick(b,a,c){var d=isPageInReferencePopup(window);
if(d){checkAndAdjustSelector(b)}return true}function handleSearchAddNewClick(a){return handleAnchorClick(a,ADMIN_VIRTUAL_VIEW_SEARCH_CONTENT,"SearchAddNew")}function handleTabClick(a){return handleAnchorInTabClick(a,ADMIN_VIRTUAL_VIEW_SEARCH_CONTENT,"TabClick")
}function handleSearchClick(a){return handleAnchorClick(a,ADMIN_VIRTUAL_VIEW_SEARCH_ENTERCRITERIA,"Search",{createNewComponent:true})}function handleSearchResultDetailClick(a){return handleAnchorClick(a,ADMIN_VIRTUAL_VIEW_SEARCH_CONTENT,"SearchResultDetail")
}function getUrlParam(b,a){var c=new RegExp("[?&]"+a+"=([^&#]*)").exec(decodeURIComponent(b));if(c&&c.length&&c.length>1){return c[1]}else{return null}}function changeViewInAdminMainApp(d,a,l){if(isLoadedFromUI5AdminApp()){var i=getAdminMainApp();
var e=i.getContextPath();i.setAdminVirtualView(d);if(a){var c=a.indexOf("#")!=-1?true:false;a=decodeURIComponent(a);if(a.indexOf("http")!==0&&a.indexOf(e)!==0){a=e+a
}a=encodeURIComponent(a);var h=getUrlParam(a,"entityType");var k="";if(h=="CONTENT_OBJECT"){k=getUrlParam(a,"moduleID")}else{if(h=="CONTENT_PACKAGE"){k=getUrlParam(a,"contentPackageID")
}else{if(h=="CURRICULUM_REQUIREMENT"){k=getUrlParam(a,"requirementSequenceID")}}}var g={"all*":a};var j="LoadPageInIframe";var f=i.getAppRouteArgs();var b=l&&l.createNewComponent==true?true:false;
if(f){g.backlink=f["all*"]}if(d==ADMIN_VIRTUAL_VIEW_SEARCH_ENTERCRITERIA){j="LoadSearchPage"}g.entityType=h;g.entityID=k;i.navTo({name:"iframeApp",createNewComponent:b,payload:{containsHash:c}},{name:j,parameters:g})
}else{i.navTo({name:"systemApp",payload:{viewName:"AdminHome"}})}}else{var i=getAdminMainApp();if(i){i.changeView(d,a)}else{alert("ERROR: Admin main app not found for changeViewInAdminMainApp("+d+', "'+a+'")!')
}}}function openAddNewItemView(e,a,d){if(isLoadedFromUI5AdminApp()){var c=getAdminMainApp();if(d){c.gotoEntityManagerCreatePage(d)}else{var b=c.getContextPath()+"/search/addNew.do?"+a;
openAddNewRecordModalPopup(e,b)}}else{return openNewItemCreationWizardFromAdmin()}}function openNewItemCreationWizardFromAdmin(){var a=getAdminMainAppWindow();if(a){window.blur();
a.focus();return a.openNewItemCreationWizardModule(window)}else{alert("ERROR: Admin main app window not found for openNewItemCreationWizardModule()!")}return false
}function getViewInAdminMainApp(){if(isLoadedFromUI5AdminApp()){var b=getAdminMainApp();return b.getAdminVirtualView()}else{var a,b=getAdminMainApp();if(b){a=b.getView()
}else{a=-1;alert("ERROR: Admin main app not found for getViewInAdminMainApp()!")}return a}}function updateModuleTabs(f,g,a,d,b,h,e,i,c){if(isLoadedFromUI5AdminApp()){updateModuleTabs_SAPUI5(f,g,a,d,b,h,e,i,c)
}else{updateModuleTabs_FLEX(f,g,a,d,b,h,e,i,c)}}function updateModuleTabs_SAPUI5(j,g,l,s,i,r,c,b,h){d=window.jQuery;if(!d){alert("ERROR: updateModuleTabs needs to have jQuery loaded!");
return}var o=window.frameElement?d(window.frameElement).hasClass("sfUiEntityEditTabIframe"):false;var m=0;var n;var q;var f;var k;var d;var a;if(o){d(".Breadcrumbs").hide();
d(".instancePrimaryData").hide();d("#searchLinkArea").hide();d("#addNewLinkArea").hide();d(".PageTitle").text(d(".TabOn").text());a=d("#helpstr");if(a.length<=0){a=d(".TabAdvanced a");
if(a.length<=0){a=d("a:first")}}try{window.focus();a.focus()}catch(p){}}else{setHTMLModuleTabsDisplay(true,isPageInAdvancedTabsPopup(window),isPageInToolsPopup(window))
}}function updateModuleTabs_FLEX(k,g,m,s,i,r,c,b,h){var j,n,o,q,f,l,d,a;j=isPageInAdvancedTabsPopup(window);if(j==false){try{j=isPageInAdvancedTabsPopup(window.parent)
}catch(p){}}n=1;if(!preventDefaultModuleTabBehavior){o=getAdminTabsApp();if(!o){o=getAdminMainApp()}if(o){n=o.updateModuleTabs(k,g,m,s,i,r,getBaseURL(),c,b,h,j);
if(n<0){document.body.style.visibility="hidden";setTimeout(function(){document.body.style.visibility="inherit"},250)}if(n<=0){if(h){q=document.getElementById("moduleTabOptionsLink");
if(q){q.href=b;q.title=c}q=document.getElementById("moduleTabOptionsIcon");if(q){q.alt=c;f=q.src;l=f.lastIndexOf("/");if(l>=0){f=f.substring(0,l+1)}else{f=""}f+=("toggleFrom"+h+".png");
q.src=f}q=document.getElementById("moduleTabOptionsArea");if(q){q.style.display=""}}}}}if(n>0){setHTMLModuleTabsDisplay(true,j,isPageInToolsPopup(window))}if(j){d=window.jQuery;
if(!d){alert("ERROR: updateModuleTabs needs to have jQuery loaded!");return}d(".Breadcrumbs").hide();d(".instancePrimaryData").hide();d("#searchLinkArea").hide();
d("#addNewLinkArea").hide();d(".PageTitle").text(d(".TabOn").text());a=d("#helpstr");if(a.length<=0){a=d(".TabAdvanced a");if(a.length<=0){a=d("a:first")}}try{window.focus();
a.focus()}catch(p){}}}function setHTMLModuleTabsDisplay(d,a,b){var c=window.jQuery;if(c){if(d&&a){c(".TabNonAdvanced").hide()}c("table.TabsContainer").css("display",d&&!b?"":"none")
}else{alert("ERROR: setHTMLModuleTabsDisplay needs to have jQuery loaded!")}}function focusOnAdminMainApp(){var a=getAdminMainApp();if(a){a.focus()}}function bindLastMenuForAdminMainAppFocus(a){if(window.jQuery){window.jQuery("#"+a).bind("keyup",focusOnAdminMainApp)
}else{alert("ERROR: bindLastMenuForAdminMainAppFocus needs to have jQuery loaded!")}}function gotoSnapshot(h,a,e,f,d){if(isLoadedFromUI5AdminApp()){var c=getAdminMainApp();
c.gotoEntityManager(h,a,null,d);return false}else{var c,g,b;e=e?e:false;f=f?f:false;c=getAdminMainApp();if(c){g=null;b=getPlateauIFrameLib();if(b){g=b.getIFrameUIDForWindow(window.parent)
}c.focus();c.gotoSnapshot(h,a,e,f,g)}else{alert('ERROR: Admin main app not found for gotoSnapshot("'+h+'", "'+a+'", '+e+")!")}return false}}function gotoDashboard(b,a){changeViewInAdminMainApp(b,a)
}function addAndRefreshRecent(c,a){var b=getAdminMainApp();if(b){b.addAndRefreshRecent(c,a)}else{alert("ERROR: Admin main app not found for addAndRefreshRecent("+c+', "'+a+'")!')
}}function removeAndRefreshRecent(c,a){var b=getAdminMainApp();if(b){b.removeAndRefreshRecent(c,a)}else{alert("ERROR: Admin main app not found for removeAndRefreshRecent("+c+', "'+a+'")!')
}}function confirmAndUpdateSnapshot(g,a,b,f,e,d){f=f?true:false;e=e?true:false;var c=getAdminMainApp();if(c){c.focus();c.confirmAndUpdateSnapshot(g,a,b,f,e,d)}else{alert('ERROR: Admin main app not found for gotoSnapshot("'+g+'", "'+a+'", "'+b+'", "'+f+'", "'+e+")!")
}return false}function refreshSearchResult(){var a=document.getElementById("SearchForm");if(a){if(!a.onsubmit||a.onsubmit()){a.submit()}}}function openAdvancedSearchPicker(b,a){if(openingPickerWindow==true){return null
}openingPickerWindow=true;var c=window.open(b,a?a:"PickerWindow","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=775,height=500");
openingPickerWindow=false;if(c){c.focus()}}function openModalPopup(h,g,a,f,b,j,e,c){var i=getPlateauPopupLib();if(i){var d=i.showFromURL.call(i,h,g,a,f,b,j,e,70,null,c);
if(i.accessibilityEnabled){window.opener&&window.opener.focus()}return d}else{alert('ERROR: openModalPopup needs to have "plateau.popup" loaded!');return null}}function openModalPopupWithProperties(i,h,b,f,c,j,e,d,g){var a;
a=openModalPopup(i,h,b,f,c,j,e,d);applyPopupProperties(a,g);return a}function applyPopupProperties(e,f){if(f&&e&&(e.length>0)){var b=e.get(0),a=f.split("&"),c,d;
for(c=0;c<a.length;c++){d=a[c].split("=");b[decodeURIComponent(d[0])]=(d.length>=2)?decodeURIComponent(d[1]):true}}}function openAddNewRecordModalPopup(h,b,d,i,f){b=updateURLforPopUp(b);
var a,c,e=800,g=-0.85;if(d&&i){e=d;g=i}a=openModalPopup(window,h,b,"centered",e,g,f);if(a&&(a.length>0)){c=a.get(0);c.isAddNewPopup=true}}function openAddNewModalPopup(inputID,selectorName,title,url,stackID,mainApp){var $popup,popup;
if(mainApp){window.update=function(value){window.document.getElementById(mainApp).pickerCallBackFun(value,inputID)}}else{window.getElementToBeUpdated=function(){return document.getElementById(inputID)
};window.update=function(value){var element=document.getElementById(inputID),i;if(element.type=="select-one"){for(i=element.options.length-1;i>=0;i--){element.options[i]=null
}for(i=0;i<value.length;i++){element.options[i]=new Option(value[i].text,value[i].value,false,value[i].selected)}}else{if(element.type=="text"){for(i=0;i<value.length;
i++){if(value[i].selected){element.value=value[i].value;break}}}}if(element.onchange){element.onchange()}else{if(element.getAttribute("onchange")){eval(element.getAttribute("onchange"))
}}}}$popup=openModalPopup(window,title,url);if($popup&&($popup.length>0)){popup=$popup.get(0);popup.isAddNewPopup=true;popup.adminMainApp=mainApp;popup.stackID=stackID;
popup.searchSelector=selectorName}}function openAddNewRecordInSAPUI5(a){changeViewInAdminMainApp(ADMIN_VIRTUAL_VIEW_SEARCH_CONTENT,a)}function reloadAssociatedContents(c,a){var b=getAdminMainApp();
if(b&&b.reloadAssociatedContents){b.reloadAssociatedContents(null,c,a)}}function reloadAssociatedContentsConditionally(a){var b=getAdminMainApp();if(b){b.reloadAssociatedContentsConditionally(a)
}}function openFilterModalPopup(e,h,d){var c,b,g,a,f=window.jQuery;b=f("#SearchForm").attr("action");g=openModalPopup(window,h,d,null,null,null,function(i){if(i==true){f("#SearchForm").attr("action",c+"/search/popFilterSelectorFromStack.do");
f("#SearchForm").ajaxSubmit();setTimeout(function(){f("#SearchForm").attr("action",b)},10)}});a=g.get(0);a.initializeFilter=function(k,i){c=i;a.opener.document.forms[0].byCriterionName.value=e;
a.opener.document.forms[0].action=c+"/search/selectFromList.do";var j=a.opener.document.forms[0].target;a.opener.document.forms[0].target=k.name;a.opener.document.forms[0].submit();
setTimeout("document.forms[0].target='"+j+"'",500)};return g}function updateURLforPopUp(f){var r,m,a,l,g,q,j,d,o,p,c,s,b,k,h;if(!f){return f}r=getPlateauPopupLib();
if(!r){return f}m=window;a=r.getInstanceByFrameWindow(m);if(!a||(a.length<=0)){try{l=m.parent;if(l==m){l=null}}catch(n){l=null}if(l){a=r.getInstanceByFrameWindow(l)
}}if(a&&(a.length>0)){g=a.get(0);q=g.stackID;j=g.searchSelector;if(!q||!j){return f}d=f.split("?");o=d[0];p=d[1];if(!p){return f}c=p.split("&");s=false;b=false;if(p.indexOf("stackID=list")>=0){hasSelectorName=true;
for(k=0;k<c.length;k++){h=c[k];if(h.indexOf("stackID=list")==0){c[k]="stackID=listInPopUp";s=true}}}else{for(k=0;k<c.length;k++){h=c[k];if(h.indexOf("stackID=")==0){c[k]="stackID="+encodeURIComponent(q);
s=true}else{if(h.indexOf("selectorName=")==0){c[k]="selectorName="+encodeURIComponent(j);b=true}}}}if(s==false){c.push("stackID="+encodeURIComponent(q))}if(b==false){c.push("selectorName="+encodeURIComponent(j))
}d[1]=c.join("&");f=d.join("?")}return f}function accesibilityForErrors(){var c=$(".strutsValidationsAlert[role=alert]");var a=$(".strutsValidationsAlert[role=alert]");
var b=$("#strutsValidationErrorsContainer");if(c.length>0){c.removeAttr("role","alert").attr("role","alert");c.attr("tabindex","0");c.attr("aria-live","polite");
c.attr("aria-atomic","true");c.focus()}else{if(a.length>0){a.removeAttr("role","alert").attr("role","alert");c.attr("tabindex","0");c.attr("aria-live","polite");
c.attr("aria-atomic","true");c.focus()}}}window.numtries=0;function setTriesAndAttemptToInitializePageWithJQuery(){window.numtries=0;attemptToInitializePageWithJQuery()
}function attemptToInitializePageWithJQuery(){if(!window.pslJQueryLoaded){if(window.numtries<3){window.numtries++;setTimeout(attemptToInitializePageWithJQuery,1000)
}else{self.focus()}}else{setTimeout(initPageWithJQuery,500)}}function checkAndAdjustSelector(b){var a=updateURLforPopUp(b.href);b.href=a;return a}function initPageWithJQuery(){accesibilityForErrors();
if(isPageEmbeddedInAdminMainApp()||isPageInPlateauPopupContentFrame()||isPageInAdminTabsAppFrame()){if(isPageInAdminTabsAppFrame()){var b=getAdminTabsApp();if(b&&b.handleUserActivity){b.handleUserActivity()
}}var a=getMainElementById(getAdminMainAppID());if(a&&a.handleUserActivity){a.handleUserActivity()}}if((jQuery.browser.msie&&parseInt(jQuery.browser.version,10)<=8)||getMainElementById(getAdminMainAppID())){jQuery("body").removeClass("iconFont")
}jQuery("form").attr("novalidate","novalidate")}setTriesAndAttemptToInitializePageWithJQuery();window.pslCommonLoaded=true};