var virtualGraphUrl;Ext.define("componentDashboard.controller.Main",{extend:"Ext.app.Controller",expandedTreeNodes:[],selectedNode:"",requires:["componentDashboard.view.netflow.NetflowMainPanel"],refs:[{ref:"layersTree",selector:"layerstree"},{ref:"measures",selector:"measures"},{ref:"componentCombo",selector:"main combo[itemId=componentsDropDown]"},{ref:"componentTypeCombo",selector:"main combo[itemId=componentTypeCombo]"},{ref:"componentNameCombo",selector:"main combo[itemId=componentNameCombo]"},{ref:"compdashvirtualtab",selector:"compdashvirtualtab"},{ref:"compDashLayersTab",selector:"compdashlayerstab"},{ref:"filterstoolbarServerType",selector:"componenttabpanel>tabbar >combo[comboId=serverType]"},{ref:"filterstoolbarServerName",selector:"componenttabpanel>tabbar >combo[comboId=serverName]"},{ref:"filterstoolbarCompType",selector:"componenttabpanel>tabbar >combo[comboId=compType]"},{ref:"componentsTreePanel",selector:"componentstreepanel"},{ref:"treePanel",selector:"componentstreepanel treepanel"},{ref:"componentDetailsWindow",selector:"componentdetailswindow"},{ref:"testInfo",selector:"testinfo"},{ref:"configureThresholds",selector:"configurethresholds"},{ref:"alarmDetails",selector:"alarmdetails"},{ref:"aggregateWindow",selector:"aggregatewindow"},{ref:"compositeWindow",selector:"compositewindow"},{ref:"threadDetails",selector:"threaddetails"},{ref:"alarmDetailsTableContainer",selector:"alarmdetails container#tableContainer"},{ref:"alarmDetailsTableContainerAcknowledge",selector:"alarmdetails container#tableContainerAcknowledge"},{ref:"testInfoTableContainer",selector:"testinfo container#tableContainer"},{ref:"componentTableView",selector:"componentdetailswindow container#tableContainer"},{ref:"componentMaintenancePanel",selector:"componentdetailswindow #quickMaintenancePanel"},{ref:"componentMaintenanceTitle",selector:"componentdetailswindow container#maintenanceTitle"},{ref:"componenttabpanel",selector:"componenttabpanel"},{ref:"componentDetailsButton",selector:"main button[itemId=compoentDetails]"},{ref:"virtualtabinsideview",selector:"virtualtabinsideview"},{ref:"thdetails",selector:"threaddetails #threadname"},{ref:"insidemeasures",selector:"insidemeasures"},{ref:"newlayout",selector:"newlayout"},],init:function(){setInterval("execute()",refreshPageFreq);
this.control({'testinfo button[itemId="iconTestConfig"]':{click:this.testConfigureEvent},"componenttabpanel":{tabchange:this.componentDashboardTabChange,render:function(m){var g=this;if(setActiveTab!=null&&setActiveTab!=undefined&&setActiveTab=="virtual"){try{requestParams.setActiveTab=null;var c=Ext.getCmp("ComponentTabPanelId");
c.setActiveTab("virtual");c.fireEvent("tabchange","virtual");}catch(f){console.log(f);}return;}var a=m.getActiveTab();if(!Ext.isEmpty(a)){if(a.getId().indexOf("application")>-1){if(subSystemFromRequest==null||subSystemFromRequest==""||subSystemFromRequest.toLowerCase()=="null"){subSystemFromRequest="Overview";
}requestParams.tabUrl="/final/monitor/egAppDashboardJSON.jsp?tab=Application&hostName="+encodeURIComponent(componentName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(subSystemFromRequest)+"&screenWidth=1012&screenHeight=570&host="+encodeURIComponent(componentName)+"&starttime=&endtime=&starthr=&endhr=&format="+encodeURIComponent(dateFormatForTimeline);
if(graphTypeFromRequest!=null&&graphTypeFromRequest!=""&&graphTypeFromRequest.toLowerCase()!="null"){if(graphTypeFromRequest=="measureGraph"){requestParams.tabUrl+="&graphType="+graphTypeFromRequest+"&showGraph="+graphTypeFromRequest+"&time_line=";}else{requestParams.tabUrl+="&graphType="+graphTypeFromRequest+"&showGraph="+graphTypeFromRequest+"&time_line=24 hour";
}}appLastLoadedURL=requestParams.tabUrl;}if(a.getId().indexOf("network")>-1){if(subSystemFromRequest==null||subSystemFromRequest==""||subSystemFromRequest.toLowerCase()=="null"){subSystemFromRequest="Overview";}if(ciscoSelectedType==null||ciscoSelectedType==""||ciscoSelectedType.toLowerCase()=="null"){ciscoSelectedType="Overview";
}if(isIncludedNetflowDeviceAvailable||isExcludedNetflowDeviceAvailable){requestParams.tabUrl="/final/monitor/EgCiscoDashboardJSON.jsp?tab=Network&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&ciscoSelectedType="+encodeURIComponent(ciscoSelectedType)+"&screenWidth=1012&screenHeight=700";
ciscoLastLoadedURL=requestParams.tabUrl;}else{requestParams.tabUrl="/final/monitor/egNetDashBoardJSON.jsp?tab=Network&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(subSystemFromRequest)+"&screenWidth=1012&screenHeight=570&host="+encodeURIComponent(requestParams.compname)+"&starttime=&endtime=&starthr=&endhr=&format="+encodeURIComponent(dateFormatForTimeline);
if(graphTypeFromRequest!=null&&graphTypeFromRequest!=""&&graphTypeFromRequest.toLowerCase()!="null"){if(graphTypeFromRequest!=null&&graphTypeFromRequest!=""&&graphTypeFromRequest.toLowerCase()!="null"){if(graphTypeFromRequest=="measureGraph"){requestParams.tabUrl+="&graphType="+graphTypeFromRequest+"&showGraph="+graphTypeFromRequest+"&time_line=";
}else{requestParams.tabUrl+="&graphType="+graphTypeFromRequest+"&showGraph="+graphTypeFromRequest+"&time_line=24 hour";}}}netLastLoadedURL=requestParams.tabUrl;}}if(a.getId().indexOf("compdashdetails")>-1){if(subSystemFromRequest==null||subSystemFromRequest==""||subSystemFromRequest.toLowerCase()=="null"){subSystemFromRequest="Overview";
}requestParams.tabUrl="/final/monitor/egSysDashBoardJSON.jsp?tab=System&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(subSystemFromRequest)+"&screenWidth=1012&screenHeight=570&host="+encodeURIComponent(requestParams.compname)+"&starttime=&endtime=&starthr=&endhr=&format="+encodeURIComponent(dateFormatForTimeline);
if(graphTypeFromRequest!=null&&graphTypeFromRequest!=""&&graphTypeFromRequest.toLowerCase()!="null"){if(graphTypeFromRequest!=null&&graphTypeFromRequest!=""&&graphTypeFromRequest.toLowerCase()!="null"){if(graphTypeFromRequest=="measureGraph"){requestParams.tabUrl+="&graphType="+graphTypeFromRequest+"&showGraph="+graphTypeFromRequest+"&time_line=";
}else{requestParams.tabUrl+="&graphType="+graphTypeFromRequest+"&showGraph="+graphTypeFromRequest+"&time_line=24 hour";}}}sysLastLoadedURL=requestParams.tabUrl;}if(a.getId().indexOf("interface")>-1){requestParams.tabUrl=infaceDefaultURL;}if(a.getId().indexOf("compdashvirtualtab")>-1){if(!Ext.isEmpty(a.getEl())&&a.getEl()!=undefined){a.getEl().mask("Loading...","maskCenter");
}requestParams.tabUrl="/final/monitor/egSystemAnalysis.jsp?tab=Virtual&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(subSystemFromRequest)+"&barChart=true";Ext.Ajax.request({url:requestParams.tabUrl,method:"POST",scope:this,disableCaching:false,timeout:280000,success:function(o,s){var t=o.responseText;
var r=Ext.decode(t);a.createTabUI(r);var e="";if(!Ext.isEmpty(requestParams.hostName)){if((!Ext.isEmpty(requestParams.originalhostName))&&(requestParams.originalhostName!=="null")&&(requestParams.originalhostName!=="undefined")&&(requestParams.hostName)!==(requestParams.originalhostName)){e=componentType+":"+requestParams.originalhostName;
}else{e=componentType+":"+requestParams.hostName;}}else{if(!Ext.isEmpty(componentName)){if((!Ext.isEmpty(requestParams.originalhostName))&&(requestParams.originalhostName!=="null")&&(requestParams.originalhostName!=="undefined")&&(componentName!==(requestParams.originalhostName))){e=componentType+":"+requestParams.originalhostName;
}else{e=componentType+":"+componentName;}}}this.createToolbarCombo(e);},failure:function(){alert("failure graphs dashboard");}});this.refreshUrl=requestParams.tabUrl;}else{if(a.getId().indexOf("compdashcustomtab")>-1||a.getId().indexOf("compdashclustertab")>-1){var n=null;var b=document.getElementsByTagName("body")[0];
if(!Ext.isEmpty(Ext.get(b))){n=new Ext.LoadMask(Ext.get(b),{msg:"Loading...",cls:"maskDash"});n.show();}n.hide();var l="";if(!Ext.isEmpty(requestParams.hostName)){if((!Ext.isEmpty(requestParams.originalhostName))&&(requestParams.originalhostName!=="null")&&(requestParams.originalhostName!=="undefined")&&(requestParams.hostName)!==(requestParams.originalhostName)){l=componentType+":"+requestParams.originalhostName;
}else{l=componentType+":"+requestParams.hostName;}}else{if(!Ext.isEmpty(componentName)){if((!Ext.isEmpty(requestParams.originalhostName))&&(requestParams.originalhostName!=="null")&&(requestParams.originalhostName!=="undefined")&&(componentName!==(requestParams.originalhostName))){l=componentType+":"+requestParams.originalhostName;
}else{l=componentType+":"+componentName;}}}this.createToolbarCombo(l);}else{if(!Ext.isEmpty(a.getEl())&&a.getEl()!=undefined){a.getEl().mask("Loading...","maskCenter");}Ext.Ajax.request({url:requestParams.tabUrl,method:"POST",scope:this,disableCaching:false,timeout:280000,success:function(o,s){var t=o.responseText;
var r=Ext.decode(t);a.createTabUI(r);var e="";if(!Ext.isEmpty(requestParams.hostName)){if((!Ext.isEmpty(requestParams.originalhostName))&&(requestParams.originalhostName!=="null")&&(requestParams.originalhostName!=="undefined")&&(requestParams.hostName)!==(requestParams.originalhostName)){e=componentType+":"+requestParams.originalhostName;
}else{e=componentType+":"+requestParams.hostName;}}else{if(!Ext.isEmpty(componentName)){if((!Ext.isEmpty(requestParams.originalhostName))&&(requestParams.originalhostName!=="null")&&(requestParams.originalhostName!=="undefined")&&(componentName!==(requestParams.originalhostName))){e=componentType+":"+requestParams.originalhostName;
}else{e=componentType+":"+componentName;}}}this.createToolbarCombo(e);},failure:function(){}});}}}else{if(a==null&&componentType=="NetflowDevice"){var j=Ext.getCmp("netflowmainpanel");try{var d=Ext.getCmp("ComponentTabPanelId");d.setActiveTab("netflow");var n=null;var b=document.getElementsByTagName("body")[0];
if(!Ext.isEmpty(Ext.get(b))){n=new Ext.LoadMask(Ext.get(b),{msg:"Loading...",cls:"maskDash"});n.show();}n.hide();var l="";if(!Ext.isEmpty(requestParams.hostName)){if((!Ext.isEmpty(requestParams.originalhostName))&&(requestParams.originalhostName!=="null")&&(requestParams.originalhostName!=="undefined")&&(requestParams.hostName)!==(requestParams.originalhostName)){l=componentType+":"+requestParams.originalhostName;
}else{l=componentType+":"+requestParams.hostName;}}else{if(!Ext.isEmpty(componentName)){if((!Ext.isEmpty(requestParams.originalhostName))&&(requestParams.originalhostName!=="null")&&(requestParams.originalhostName!=="undefined")&&(componentName!==(requestParams.originalhostName))){l=componentType+":"+requestParams.originalhostName;
}else{l=componentType+":"+componentName;}}}this.createToolbarCombo(l);}catch(f){console.log(f);}return;}}if(!Ext.isEmpty(requestParams.isMoreInfosTreeView)&&(requestParams.isMoreInfosTreeView||requestParams.isMoreInfosTreeView=="true")){m.getTabBar().hide();}}},"componentstreepanel treepanel":{afterrender:function(){if(requestParams.selectedTreeNode!=="null"&&requestParams.selectedTreeNode!==null){var e;
treePanel=this.getTreePanel();var b=treePanel.getRootNode();e=b.findChild("text",requestParams.selectedTreeNode);if(e===null){b.eachChild(function(f){e=f.findChild("text",requestParams.selectedTreeNode);if(e!==null){treePanel.getSelectionModel().select(e);return false;}});}else{treePanel.getSelectionModel().select(e.childNodes[0]);
}var a=e.getDepth();var d=e;for(var c=0;c<a;c++){if(d.isLeaf()){d.parentNode.expand();}else{d.expand();}d=d.parentNode;}}requestParams.selectedTreeNode=null;},itemclick:{fn:function(c,b,j,d,g){nodeId=b.data.text;this.getTreePanel().expandNode(b);var f=b.raw.link;f+="&selected="+nodeId+"&treeOpen=true&adjustdashBoardDivHeight=true";
if(f.indexOf("/final/servlet/com.eg.EgDashboardController")==-1){document.location=f;}else{var e=f.substring(f.indexOf("site"));this.getController("LayersController").recordClicked=new Array();this.getController("LayersController").testSearchedLayers=new Array();this.getController("LayersController").allCheck=new Object();
rootCauseCheck=true;e="/final/monitor/egDashBoardLayers.jsp?"+e+"&clearMeasureSession=true";this.getCompDashLayersTab().refreshData(e);var a=b.raw.componentType+":"+nodeId;this.createToolbarCombo(a);}this.treeState(b);}},itemexpand:this.treeState,itemcollapse:this.treeState,},"componenttabpanel>tabbar >button[action=back]":{click:this.backButtonHandler},"main button[itemId=compoentDetails]":{render:function(a){if(Ext.isEmpty(this.getComponentDetailsWindow())){Ext.create("componentDashboard.view.Layers.ComponentDetails");
}if(Ext.isEmpty(this.getTestInfo())){Ext.create("componentDashboard.view.Layers.TestInfo");}if(Ext.isEmpty(this.getAlarmDetails())){Ext.create("componentDashboard.view.Layers.AlarmDetails");}if(Ext.isEmpty(this.getAggregateWindow())){Ext.create("componentDashboard.view.Layers.AggregateWindow");}if(Ext.isEmpty(this.getCompositeWindow())){Ext.create("componentDashboard.view.Layers.CompositeWindow");
}if(Ext.isEmpty(this.getThreadDetails())){Ext.create("componentDashboard.view.ThreadDetails");}if(Ext.isEmpty(this.getConfigureThresholds())){Ext.create("componentDashboard.view.Layers.ConfigureThresholds");}},click:this.openComponentDetails},"threaddetails combo":{select:this.stackTraceCombo},"threaddetails #threadname":{"change":this.loadFormForThreadName},"main button[action=layerTool]":{click:function(a){document.location=a.link;
}},'configurethresholds slider[id="relMinCritical"]':{"drag":this.minRelCriticalSlider,"change":this.minRelCriticalSlider,},'configurethresholds slider[id="relMinMajor"]':{"drag":this.minRelMajorSlider,"change":this.minRelMajorSlider,},'configurethresholds slider[id="relMinMinor"]':{"drag":this.minRelMinorSlider,"change":this.minRelMinorSlider,},'configurethresholds slider[id="relMaxCritical"]':{"drag":this.maxRelCriticalSlider,"change":this.maxRelCriticalSlider,},'configurethresholds slider[id="relMaxMajor"]':{"drag":this.maxRelMajorSlider,"change":this.maxRelMajorSlider,},'configurethresholds slider[id="relMaxMinor"]':{"drag":this.maxRelMinorSlider,"change":this.maxRelMinorSlider,},'configurethresholds checkbox[id="minStaticCheck"]':{"change":this.minStaticCheckChange,},'configurethresholds checkbox[id="minAutoCheck"]':{"change":this.minAutoCheckChange,},'configurethresholds checkbox[id="maxStaticCheck"]':{"change":this.maxStaticCheckChange,},'configurethresholds checkbox[id="maxAutoCheck"]':{"change":this.maxAutoCheckChange,},'configurethresholds combo[id="alarmPolicyCombo"]':{"select":this.alarmPolicyChange,},'configurethresholds button[id="updateBtn"]':{"click":this.applyThresholdsData},'compdashlayerstab combo[id="externalmonitors"]':{"select":this.externalMonitorChange}});
},testConfigureEvent:function(){var d="/final/admin/EgSpecificTestConfiguration.jsp?reqfrom=LayerModel&showUnconfigCompType=false&testType=PerformanceTest";var b="reqfrom=LayerModel&showUnconfigCompType=false&testType=PerformanceTest&com.eg.CSRF_NONCE="+csrfToken;var c=window.parent;if(!Ext.isEmpty(Ext.getCmp("testname1").layerName)){d+="&layerName="+Ext.getCmp("testname1").layerName;
b+="&layerName="+Ext.getCmp("testname1").layerName;}if(!Ext.isEmpty(Ext.getCmp("testname1").monSource)){d+="&monSource="+Ext.getCmp("testname1").monSource;b+="&monSource="+Ext.getCmp("testname1").monSource;}if(!Ext.isEmpty(Ext.getCmp("testname1").testName)){d+="&testName="+Ext.getCmp("testname1").testName;
d+="&layerTestName="+Ext.getCmp("testname1").testName;b+="&testName="+Ext.getCmp("testname1").testName;b+="&layerTestName="+Ext.getCmp("testname1").testName;}if(!Ext.isEmpty(Ext.getCmp("testname1").testStateName)){d+="&clickedFrom="+Ext.getCmp("testname1").testStateName;b+="&clickedFrom="+Ext.getCmp("testname1").testStateName;
}if(!Ext.isEmpty(Ext.getCmp("testname1").compType)){d+="&componentType="+Ext.getCmp("testname1").compType;b+="&componentType="+Ext.getCmp("testname1").compType;}if(!Ext.isEmpty(Ext.getCmp("testname1").compName)){d+="&componentName="+Ext.getCmp("testname1").compName;b+="&componentName="+encodeURIComponent(Ext.getCmp("testname1").compName);
}if(!Ext.isEmpty(Ext.getCmp("testname1").monDescName)){d+="&monDescName="+encodeURIComponent(Ext.getCmp("testname1").monDescName);b+="&monDescName="+encodeURIComponent(c.filterEncode(Ext.getCmp("testname1").monDescName));}if(!Ext.isEmpty(Ext.getCmp("testname1").monTestState)){d+="&monTestState="+Ext.getCmp("testname1").monTestState;
b+="&monTestState="+Ext.getCmp("testname1").monTestState;}var a=document.getElementsByTagName("body")[0];mask=new Ext.LoadMask(Ext.get(a),{msg:"Loading...",cls:"maskDash"});mask.show();b+="&com.eg.CSRF_NONCE="+csrfToken;Ext.Ajax.request({url:"/final/admin/SpecificTestConfiguration/data/MonitorURL.jsp?referrerModule=monitor&"+b,method:"POST",timeout:280000,params:{monSource:Ext.getCmp("testname1").monSource,hitFrom:"monitor"},scope:this,async:false,success:function(e,f){mask.hide();
},failure:function(){}});d=d.replace("?","|qs|");d=d.replace(/&/g,"|amp|");d=d.replace(/=/g,"|eq|");window.parent.goToTestConfiguration(indexTabURL.adminTabURL+"&monLayerUrl="+encodeURIComponent(c.filterEncode(d)));},externalMonitorChange:function(b){var a=b.getValue();if(a=="-1"){Ext.Msg.alert("Error","Please Select External Monitor");
}else{window.open(a,"myWindow","width=900, height=600");}},treeState:function(a,c){if(a.childNodes.length==0){this.selectedNode=a.raw.text;}else{if(this.expandedTreeNodes.indexOf(a.raw.text)<=0){this.expandedTreeNodes.push(a.raw.text);}else{var b=this.expandedTreeNodes.indexOf(a.raw.text);this.expandedTreeNodes.splice(b,1);
}}},componentDashboardTabChange:function(m,d){var g=false;var l=false;var c=false;var e=false;var b=false;var j=false;if(d.itemId!="network"&&d.itemId!="cluster"&&d.itemId!="custom"&&d.itemId!="application"&&d.itemId!="interfaces"&&d.itemId!="system"&&d.itemId!="virtual"&&d.itemId!="netflow"){var n=null;
var a=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(a))){n=new Ext.LoadMask(Ext.get(a),{msg:"Loading...",cls:"maskDash"});n.show();}}else{if(d.itemId=="application"){g=true;}else{if(d.itemId=="interfaces"){l=true;}else{if(d.itemId=="system"){c=true;}else{if(d.itemId=="network"){e=true;
}else{if(d.itemId=="netflow"){b=true;}else{if(d.itemId=="virtual"){j=true;}else{if(d.itemId=="custom"||d.itemId=="cluster"){if(!Ext.isEmpty(this.mask)){this.mask.hide();}}}}}}}}}changeTab(d.itemId,d.tabIndex,requestParams.totalLayer,"true");var f=requestParams.tabUrl;if(l){tab="Interfaces";var n=null;
var a=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(a))){n=new Ext.LoadMask(Ext.get(a),{msg:"Loading...",cls:"maskDash"});n.show();}n.hide();return false;}else{if(g){tab="Application";var n=null;var a=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(a))){n=new Ext.LoadMask(Ext.get(a),{msg:"Loading...",cls:"maskDash"});
n.show();}n.hide();return false;}else{if(e){tab="Network";var n=null;var a=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(a))){n=new Ext.LoadMask(Ext.get(a),{msg:"Loading...",cls:"maskDash"});n.show();}n.hide();return false;}else{if(b){tab="Netflow";var n=null;var a=document.getElementsByTagName("body")[0];
if(!Ext.isEmpty(Ext.get(a))){n=new Ext.LoadMask(Ext.get(a),{msg:"Loading...",cls:"maskDash"});n.show();}n.hide();return false;}else{if(c){tab="System";var n=null;var a=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(a))){n=new Ext.LoadMask(Ext.get(a),{msg:"Loading...",cls:"maskDash"});
n.show();}n.hide();return false;}else{if(j){var n=null;var a=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(a))){n=new Ext.LoadMask(Ext.get(a),{msg:"Loading...",cls:"maskDash"});n.show();}Ext.Ajax.request({url:f,method:"POST",scope:this,disableCaching:false,timeout:280000,success:function(o,s){var t=o.responseText;
var r=Ext.decode(t);d.createTabUI(r);this.createToolbarItems();n.hide();},failure:function(){}});}else{d.createTabUI();}}}}}}this.refreshUrl=f;},backButtonHandler:function(am){var a2=requestParams.treeSession;var a7=requestParams.toBackUED2;var a5=requestParams.backButtonFunction;a2=(!Ext.isEmpty(a2))?a2:"";
var g=requestParams.comeFrom;var aO=requestParams.Vmhost;var n=requestParams.vmcomp_type;var aX=requestParams.vmstate;var z=requestParams.vmport;var aQ=requestParams.monCmdFrom;var a3=requestParams.pageComesfrom;var a8=requestParams.monCmdComeFrom;var N=requestParams.topologyType;var aU=requestParams.isFromMenu;
var au=requestParams.PagesComesfrom;var V=requestParams.actionFrom;var a9=requestParams.componenttype;var ad=requestParams.isAggregate;var U=requestParams.fromalarmWindow;var aM=requestParams.fromSystemTab;var T=requestParams.fromPages;var aq=requestParams.showAlarms;var aS=requestParams.arrangeAlarms;
var ak=requestParams.selectedSubFilterOption;var bb=requestParams.FromDashBoard;var aD=requestParams.gauageClick;var aR=requestParams.fromPage;var a=requestParams.compType;var a4=requestParams.compname;var aw=requestParams.action;var ai=requestParams.from;var ae=requestParams.treeAction;var m=requestParams.isServiceBusiDash;
var aG=requestParams.isServiceBusiDetails;var W=requestParams.treeFlag_SBD;var F=requestParams.outsideService_SBD;var s=requestParams.titleText_SBD;var aV=requestParams.selectNode_SBD;var aI=requestParams.isEmulTrans_SBD;var K=requestParams.serviceState_SBD;var an=requestParams.vdiType_SBD;var aH=requestParams.serviceName;
var c=requestParams.serviceState;var w=requestParams.compState;var ao=requestParams.treeComeFrom;var aa=requestParams.treeTitle;var aJ=requestParams.isfromCitrix;var Z=requestParams.activeView;var ba=requestParams.isFromZone;var al=requestParams.iszoneName;var aE=requestParams.parentZone;var G=requestParams.isfromRum;
var B=requestParams.fromServiceHomePage;var y=requestParams.fromSerComboChange;var v=requestParams.ltype;var at=requestParams.filterBy;var R=requestParams.subFilter;var L=requestParams.infoVMCombo;var aF=requestParams.componentNameSearch;var bd=requestParams.fromp;var aK=requestParams.fromServiceDashboard;
var u=requestParams.fromPageView;var a1=requestParams.selectedState;var f=requestParams.viewPageTitle;f=encodeURI(f);var ah=requestParams.stateName;var av=requestParams.fromHomepage;var O=requestParams.site;var l=requestParams.tstate;var a6=requestParams.toDashBoardLayer;var ar=requestParams.fromUserView;
var r=requestParams.egQuickLaunch;var aZ=requestParams.selectNode;var ac=requestParams.selectedParam;var A=requestParams.currentTab;var ag=requestParams.aggregateTab;var ay=requestParams.layerForVM;var E=requestParams.infoForVm;var x=requestParams.hasTransactions;var b=requestParams.hasEmulatedTransactions;
var aT=requestParams.hasLogonSimulations;var Q=requestParams.isFrom;var aL="";var t="";if(requestParams.fromPage=="DSTopology"){document.location=a2;return;}if(isFromO365Dashboard){document.location=office365DashboardLink;return;}if(isFromSessionSim=="true"){if(isFromList=="true"){ai="componentList";
if(!Ext.isEmpty(requestParams.zoneName)&&requestParams.zoneName!=undefined&&requestParams.zoneName!="null"){ai="ZoneDashboard";}var J="/final/monitor/sessionSimulation.jsp?compName="+requestParams.componentDashboardHost+"&site=NULL&compType="+requestParams.componentDashboardComptype+"&from="+ai+"&fromHomepage="+av+"&treeTitle="+aa+"&view="+aL+"&viewId="+t+"&viewTreeTitle=Component&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&viewPageTitle="+f+"&action="+aw+"&stateName="+ah+"&isfromZoneDash=false&fromDashboard="+bb;
if(!Ext.isEmpty(aE)&&aE!=undefined&&aE!="null"){J+="&parentZone="+aE;}if(!Ext.isEmpty(requestParams.zoneName)&&requestParams.zoneName!=undefined&&requestParams.zoneName!="null"){J+="&zoneName="+requestParams.zoneName;}if(!Ext.isEmpty(requestParams.isFromZoneInfra)&&requestParams.isFromZoneInfra!=undefined&&requestParams.isFromZoneInfra!="null"){J+="&isFromZoneInfra="+requestParams.isFromZoneInfra;
}if(!Ext.isEmpty(isFromZoneMenu)&&isFromZoneMenu!=undefined&&isFromZoneMenu!="null"){J+="&isFromZoneMenu="+isFromZoneMenu;}if(!Ext.isEmpty(isLogonType)&&isLogonType!=undefined&&isLogonType!="null"){J+="&isLogonType="+isLogonType;}if(!Ext.isEmpty(requestParams.ltest)&&requestParams.ltest!=undefined&&requestParams.ltest!=null&&requestParams.ltest!="null"){J+="&ltest="+requestParams.ltest;
}if(!Ext.isEmpty(requestParams.monitorsBy)&&requestParams.monitorsBy!=undefined&&requestParams.monitorsBy!=null&&requestParams.monitorsBy!="null"){J+="&monitorsBy="+requestParams.monitorsBy;}if(!Ext.isEmpty(requestParams.msmt_host)&&requestParams.msmt_host!=undefined&&requestParams.msmt_host!=null&&requestParams.msmt_host!="null"){J+="&msmt_host="+requestParams.msmt_host;
}document.location=J;}else{if(isFromMetricsPage=="true"||isFromSessionToplogy=="true"){var J="/final/monitor/sessionSimulation.jsp?compName="+requestParams.componentDashboardHost+"&site=NULL&compType="+requestParams.componentDashboardComptype;if(isFromMetricsPage=="true"){J+="&isFromMetricsPage="+isFromMetricsPage;
}if(!Ext.isEmpty(requestParams.treeTitle)&&requestParams.treeTitle!=undefined&&requestParams.treeTitle!=null&&requestParams.treeTitle!="null"){J+="&treeTitle="+requestParams.treeTitle;}if(!Ext.isEmpty(requestParams.ltest)&&requestParams.ltest!=undefined&&requestParams.ltest!=null&&requestParams.ltest!="null"){J+="&ltest="+requestParams.ltest;
}if(!Ext.isEmpty(requestParams.ltype)&&requestParams.ltype!=undefined&&requestParams.ltype!=null&&requestParams.ltype!="null"){J+="&ltype="+requestParams.ltype;}if(!Ext.isEmpty(requestParams.monitorsBy)&&requestParams.monitorsBy!=undefined&&requestParams.monitorsBy!=null&&requestParams.monitorsBy!="null"){J+="&monitorsBy="+requestParams.monitorsBy;
}if(!Ext.isEmpty(requestParams.externalAgent)&&requestParams.externalAgent!=undefined&&requestParams.externalAgent!=null&&requestParams.externalAgent!="null"){J+="&externalAgent="+requestParams.externalAgent;}if(bd!=null&&bd!=undefined&&bd=="ctxLogonDashboard"){J+="&fromp="+bd;}if(!Ext.isEmpty(requestParams.isFromInfraHome)&&requestParams.isFromInfraHome!=undefined&&requestParams.isFromInfraHome!="null"){J+="&isFromInfraHome="+requestParams.isFromInfraHome;
}if(!Ext.isEmpty(requestParams.isFromMenu)&&requestParams.isFromMenu!=undefined&&requestParams.isFromMenu!="null"){J+="&isFromMenu="+requestParams.isFromMenu;}if(!Ext.isEmpty(aE)&&aE!=undefined&&aE!="null"){J+="&parentZone="+aE;}if(!Ext.isEmpty(isFromZoneMenu)&&isFromZoneMenu!=undefined&&isFromZoneMenu!="null"){J+="&isFromZoneMenu="+isFromZoneMenu;
}if(!Ext.isEmpty(requestParams.zoneName)&&requestParams.zoneName!=undefined&&requestParams.zoneName!="null"){J+="&zoneName="+requestParams.zoneName;}if(!Ext.isEmpty(requestParams.isFromZoneInfra)&&requestParams.isFromZoneInfra!=undefined&&requestParams.isFromZoneInfra!="null"){J+="&isFromZoneInfra="+requestParams.isFromZoneInfra;
}if(!Ext.isEmpty(isLogonType)&&isLogonType!=undefined&&isLogonType!="null"){J+="&isLogonType="+isLogonType;}if(!Ext.isEmpty(requestParams.msmt_host)&&requestParams.msmt_host!=undefined&&requestParams.msmt_host!=null&&requestParams.msmt_host!="null"){J+="&msmt_host="+requestParams.msmt_host;}document.location=J;
}}return;}var aP=requestParams.selectedRum;if(requestParams.isEndUserIcon!=null&&requestParams.isEndUserIcon!=""&&requestParams.isEndUserIcon=="true"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard";return;}if(requestParams.appliesTo!=null&&requestParams.appliesTo!="null"&&requestParams.appliesTo!=""&&requestParams.appliesTo!=undefined&&requestParams.appliesTo!="undefined"){aP=requestParams.appliesTo;
}if(requestParams.isRumTitle!=null&&requestParams.isRumTitle!=""&&requestParams.isRumTitle=="true"){var D="";if(isFromServiceMenu!=null&&isFromServiceMenu!=""&&isFromServiceMenu=="true"){D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+requestParams.selectedRum+"&isBackFromRUM="+rumAppBackObject.isBackFromRUM+"&filter=Service&filterBy="+requestParams.subFilter+"&view_name="+requestParams.view_name+"&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
}else{D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+requestParams.selectedRum+"&isBackFromRUM="+rumAppBackObject.isBackFromRUM+"&view_name="+requestParams.view_name+"&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
}document.location=D;return;}if(Q!=null&&Q!=undefined&&Q=="rumAppFlow"&&rumAppBackObject!=null&&rumAppBackObject!=undefined){var aW="/final/monitor/rumAppFlow.jsp?1=1";for(var ax in rumAppBackObject){aW+="&"+ax+"="+rumAppBackObject[ax];}window.location.href=aW;return;}if(requestParams.service_system!=null&&requestParams.service_system!=""&&requestParams.service_system=="true"){var D="";
if(G!=null&&G!="null"&&G!=""&&G!="undefined"&&G=="true"){D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+aP+"&isBackFromRUM=false&filter=Service&filterBy="+requestParams.filterBy+"&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&action=loadViewData&view_name=systems_View&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&selectedSystemCompType="+selectedSystemCompType;
}else{if(requestParams.fromServiceHomePage!=null&&requestParams.fromServiceHomePage!="null"&&requestParams.fromServiceHomePage!=""&&requestParams.fromServiceHomePage!="undefined"&&requestParams.fromServiceHomePage=="true"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view=Systems&appliesTo=Service:"+requestParams.subFilter+"&filter=Service&filterBy="+requestParams.filterBy+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&selectedSystemCompType="+selectedSystemCompType;
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view=Systems&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&selectedSystemCompType="+selectedSystemCompType;
}}document.location=D;return;}if(requestParams.service_component!=null&&requestParams.service_component!=""&&requestParams.service_component=="true"){var D="";if(G!=null&&G!="null"&&G!=""&&G!="undefined"&&G=="true"){D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+requestParams.selectedRum+"&isBackFromRUM=false&filter=Service&filterBy="+requestParams.subFilter+"&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&action=loadViewData&view_name=metrics_View&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&componentType="+requestParams.compType+"&componentNameSearch="+aF;
}else{if(requestParams.fromServiceHomePage!=null&&requestParams.fromServiceHomePage!="null"&&requestParams.fromServiceHomePage!=""&&requestParams.fromServiceHomePage!="undefined"&&requestParams.fromServiceHomePage=="true"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name+"&fromSerComboChange=true&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+requestParams.componenttype+"&componentNameSearch="+aF+"&active_view=Components&appliesTo=Service:"+requestParams.subFilter+"&filter=Service&filterBy="+requestParams.subFilter+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name+"&fromSerComboChange=true&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+requestParams.componenttype+"&componentNameSearch="+aF+"&active_view=Components&dashboard_mapping="+requestParams.dashboard_mapping;
}}document.location=D;return;}else{if(requestParams.service_aggregate!=null&&requestParams.service_aggregate!=""&&requestParams.service_aggregate=="true"){var D="";if(G!=null&&G!="null"&&G!=""&&G!="undefined"&&G=="true"){D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+requestParams.appliesTo+"&isBackFromRUM=false&filter=Service&filterBy="+requestParams.filterBy+"&view_name="+requestParams.view_name+"&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&action=loadViewData&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
}else{if(requestParams.fromServiceHomePage!=null&&requestParams.fromServiceHomePage!="null"&&requestParams.fromServiceHomePage!=""&&requestParams.fromServiceHomePage!="undefined"&&requestParams.fromServiceHomePage=="true"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view=Aggregates&appliesTo=Service:"+requestParams.subFilter+"&filter=Service&filterBy="+requestParams.filterBy+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view=Aggregates&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
}}document.location=D;return;}else{if(requestParams.fromPageView!=null&&requestParams.fromPageView!=""&&requestParams.fromPageView=="CitrixDashboard"){var a0="Full Session Simulations";if(requestParams.view_name!=null&&requestParams.view_name!=""&&requestParams.view_name=="Logon_Sub_View"){a0="Logon Simulations";
var D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name="+requestParams.dashboard_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType=&componentNameSearch="+aF+"&simulationName="+requestParams.simulationName+"&active_view="+a0+"&filter=Service&filterBy="+requestParams.filterBy+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&fromMenu="+fromMenu+"&view_name=Logon_Sub_View";
document.location=D;return;}else{if(requestParams.view_name!=null&&requestParams.view_name!=""&&requestParams.view_name=="Web_Transaction_Sub_View"){a0="Web Transactions";var D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view="+a0+"&filter=Service&filterBy="+requestParams.filterBy+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&fromMenu="+fromMenu+"&view_name=Web_Transaction_Sub_View";
document.location=D;return;}else{if(requestParams.view_name!=null&&requestParams.view_name!=""&&requestParams.view_name=="Broker_View"){var D="";a0="Delivery Groups";if(!Ext.isEmpty(fromMenu)&&fromMenu=="true"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&dashboard_mapping="+requestParams.dashboard_mapping+"&dashboard_name="+requestParams.dashboard_name+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&fromMenu="+fromMenu+"&view_name="+requestParams.view_name;
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view="+a0+"&filter=Service&filterBy="+requestParams.subFilter+"&subFilter="+requestParams.subFilter+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&fromMenu="+fromMenu+"&view_name="+requestParams.view_name;
}document.location=D;return;}else{if(requestParams.view_name!=null&&requestParams.view_name!=""&&requestParams.view_name=="Emulated_Transaction_Sub_View"){a0="Full Session Simulations";var D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view="+a0+"&filter=Service&filterBy="+requestParams.filterBy+"&subFilter="+requestParams.subFilter+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&fromMenu="+fromMenu+"&view_name=Emulated_Transaction_Sub_View";
if(!Ext.isEmpty(requestParams.msmt_host)&&requestParams.msmt_host!=undefined&&requestParams.msmt_host!=null&&requestParams.msmt_host!="null"){D+="&msmt_host="+requestParams.msmt_host;}document.location=D;return;}else{if(requestParams.view_name!=null&&requestParams.view_name!=""&&requestParams.view_name=="Geo_View"){a0="Geo";
var D="";if(!Ext.isEmpty(fromMenu)&&fromMenu=="true"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&userBased="+requestParams.userBased+"&fromMenu="+fromMenu+"&showConfig=true&dashboard_mapping="+requestParams.dashboard_mapping+"&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name;
}else{if(!Ext.isEmpty(requestParams.fromServiceHomePage)&&requestParams.fromServiceHomePage=="false"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&userBased="+requestParams.userBased+"&fromMenu=true&showConfig=true&dashboard_mapping="+requestParams.dashboard_mapping+"&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name;
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view="+a0+"&filter=Service&filterBy="+requestParams.subFilter+"&subFilter="+requestParams.subFilter+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&fromMenu="+fromMenu+"&view_name="+requestParams.view_name;
}}document.location=D;return;}else{if(requestParams.view_name!=null&&requestParams.view_name!=""&&requestParams.view_name=="Sessions_View"){a0="Sessions";var D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view="+a0+"&filter=Service&filterBy="+requestParams.filterBy+"&subFilter="+requestParams.subFilter+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&fromMenu="+fromMenu+"&view_name=Sessions_View";
document.location=D;return;}else{if(requestParams.view_name!=null&&requestParams.view_name!=""&&requestParams.view_name=="Resources_View"){a0="Resources";var D="";if(!Ext.isEmpty(fromMenu)&&fromMenu=="true"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&dashboard_mapping="+requestParams.dashboard_mapping+"&dashboard_name="+requestParams.dashboard_name+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&fromMenu="+fromMenu+"&view_name=Resources_View";
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view="+a0+"&filter=Service&filterBy="+requestParams.subFilter+"&subFilter="+requestParams.subFilter+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&fromMenu="+fromMenu+"&view_name=Resources_View";
}document.location=D;return;}else{if(requestParams.view_name!=null&&requestParams.view_name!=""&&requestParams.view_name=="Overview_View"){a0="Overview";var D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view="+a0+"&filter=Service&filterBy="+requestParams.filterBy+"&subFilter="+requestParams.subFilter+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&fromMenu="+fromMenu+"&view_name=Overview_View";
document.location=D;return;}}}}}}}}}else{if(requestParams.fromPageView!=null&&requestParams.fromPageView!=""&&requestParams.fromPageView=="RumDashboard"){var D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+aP+"&isBackFromRUM=false&filter=Service&filterBy="+requestParams.subFilter+"&view_name="+requestParams.view_name+"&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
document.location=D;return;}else{if(requestParams.dashboard_name!=null&&requestParams.dashboard_name!=""&&(requestParams.dashboard_name=="Citrix_VmwareVDI_Dashboard"||requestParams.dashboard_name=="Citrix_Xenserver_Dashboard")){var D="";if(!Ext.isEmpty(requestParams.view_name)&&requestParams.view_name=="Logon_View"){if(requestParams.fromServiceHomePage=="true"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&userBased="+requestParams.userBased+"&fromMenu="+fromMenu+"&showConfig=true&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&filter=Service&filterBy="+requestParams.filterBy+"&hasCitrix=true&hasTransactions="+requestParams.hasTransactions+"&hasEmulatedTransactions="+requestParams.hasEmulatedTransactions+"&hasLogonSimulations="+requestParams.hasLogonSimulations+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&fromSerComboChange="+requestParams.fromSerComboChange+"&isFromServiceMenu=true&isFromZone="+requestParams.isFromZone;
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&userBased="+requestParams.userBased+"&fromMenu="+fromMenu+"&showConfig=true&dashboard_mapping="+requestParams.dashboard_mapping+"&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name;}}else{if(!Ext.isEmpty(a2)&&a2.indexOf("endUserDashboard.jsp")){D="/final/monitor/endUserDashboard.jsp?access=allusers&componentType="+a+"&fromGeo=true&enableBackButton=true&filterFlag=true&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&isUserBased=true&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&fromSerComboChange="+requestParams.fromSerComboChange+"&filterByFlag="+requestParams.subFilter+"&fromServiceHomePage=true&detail=Service&filterBy="+requestParams.subFilter+"&uedOverviewType="+uedOverviewType;
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage=false&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&segmentName="+requestParams.segmentName+"&uedOverviewType="+uedOverviewType;
}}document.location=D;return;}else{if(requestParams.dashboard_name!=null&&requestParams.dashboard_name!=""&&requestParams.dashboard_name=="Citrix_Dashboard"&&isCitrixLogon!=null&&isCitrixLogon!=""&&isCitrixLogon=="true"){var D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name="+requestParams.dashboard_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage=true&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType=&componentNameSearch="+aF+"&simulationName="+requestParams.simulationName+"&active_view=Logon Simulations&filter=Service&filterBy="+requestParams.filterBy+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
document.location=D;return;}else{if(requestParams.dashboard_name!=null&&requestParams.dashboard_name!=""&&requestParams.dashboard_name=="Rum_Dashboard"&&isRumLogon!=null&&isRumLogon!=""&&isRumLogon=="true"){var D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+requestParams.selectedRum+"&isBackFromRUM=false&filter=Service&filterBy="+requestParams.filterBy+"&view_name="+requestParams.view_name+"&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
document.location=D;return;}else{if(requestParams.service_components!=null&&requestParams.service_components!=""&&requestParams.service_components=="true"){var D="";if(G!=null&&G!="null"&&G!=""&&G!="undefined"&&G=="true"){D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+requestParams.selectedRum+"&isBackFromRUM=false&filter=Service&filterBy="+requestParams.filterBy+"&view_name="+requestParams.view_name+"&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&action=loadViewData&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&componentType="+a;
}else{if(requestParams.fromServiceHomePage!=null&&requestParams.fromServiceHomePage!="null"&&requestParams.fromServiceHomePage!=""&&requestParams.fromServiceHomePage!="undefined"&&requestParams.fromServiceHomePage=="true"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view=Metrics_View&appliesTo=Service:"+requestParams.subFilter+"&filter=Service&filterBy="+requestParams.filterBy+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view=Metrics_View&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
}}document.location=D;return;}else{if(requestParams.service_Topology!=null&&requestParams.service_Topology!=""&&requestParams.service_Topology=="true"){if(requestParams.virtualTopology!=null&&requestParams.virtualTopology!=""&&requestParams.virtualTopology=="true"){if(virtualIconBack!=null&&virtualIconBack!="null"&&virtualIconBack!=""&&virtualIconBack!=undefined&&virtualIconBack!="undefined"&&virtualIconBack=="true"){var D="";
if(G!=null&&G!="null"&&G!=""&&G!="undefined"&&G=="true"){D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+requestParams.selectedRum+"&isBackFromRUM=false&filter=Service&filterBy="+requestParams.filterBy+"&view_name=topology_view&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&action=loadViewData&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&segmentName="+requestParams.segmentName;
}else{if(requestParams.fromServiceHomePage!=null&&requestParams.fromServiceHomePage!="null"&&requestParams.fromServiceHomePage!=""&&requestParams.fromServiceHomePage!="undefined"&&requestParams.fromServiceHomePage=="true"){D="/final/monitor/citrixDashboard.jsp?iniName=eg_citrixdashboard&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name=Citrix_Dashboard&view_name=Services_Topology_View&fromSerComboChange=true&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view=Topology&appliesTo=Service:"+requestParams.subFilter+"&filter=Service&filterBy="+requestParams.filterBy+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&segmentName="+requestParams.segmentName;
}else{D="/final/monitor/citrixDashboard.jsp?iniName=eg_citrixdashboard&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name=Citrix_Dashboard&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name=Services_Topology_View&fromSerComboChange=true&fromServiceHomePage=false&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view=Topology&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&segmentName="+requestParams.segmentName;
}}document.location=D;return;}else{window.history.go(-1);}}else{if(requestParams.fromCompGroup!=null&&requestParams.fromCompGroup!="null"&&requestParams.fromCompGroup!="undefined"&&requestParams.fromCompGroup=="true"){var D="/final/monitor/EgDisplayGroups.jsp?ptype=group&showsitesegments=false&group="+requestParams.group+"&serverType=Group&site="+requestParams.filterBy+"&segmentName=&fromHomepage=&filter=service&filterBy="+requestParams.filterBy+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&serviceTopology=true&selectedRum="+requestParams.selectedRum+"&isfromRum="+G+"&isfromCitrix="+aJ+"&dashboard_name="+requestParams.dashboard_name+"&segmentName="+requestParams.segmentName+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&dashboard_mapping="+requestParams.dashboard_mapping+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE;
document.location=D;return;}else{if(G!=null&&G!="null"&&G!=""&&G!="undefined"&&G=="true"){D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+requestParams.selectedRum+"&isBackFromRUM=false&filter=Service&filterBy="+requestParams.filterBy+"&view_name=topology_view&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&action=loadViewData&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&segmentName="+requestParams.segmentName;
}else{if(requestParams.fromServiceHomePage!=null&&requestParams.fromServiceHomePage!="null"&&requestParams.fromServiceHomePage!=""&&requestParams.fromServiceHomePage!="undefined"&&requestParams.fromServiceHomePage=="true"){D="/final/monitor/citrixDashboard.jsp?iniName=eg_citrixdashboard&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name=Citrix_Dashboard&view_name=Services_Topology_View&fromSerComboChange=true&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view=Topology&appliesTo=Service:"+requestParams.subFilter+"&filter=Service&filterBy="+requestParams.filterBy+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&segmentName="+requestParams.segmentName;
}else{D="/final/monitor/citrixDashboard.jsp?iniName=eg_citrixdashboard&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name=Citrix_Dashboard&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name=Services_Topology_View&fromSerComboChange=true&fromServiceHomePage=false&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view=Topology&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&segmentName="+requestParams.segmentName;
}}document.location=D;return;}}}else{if(requestParams.service_Topology=="null"||requestParams.service_Topology==null||requestParams.service_Topology==""||requestParams.service_Topology=="false"){if(requestParams.virtualTopology!=null&&requestParams.virtualTopology!=""&&requestParams.virtualTopology=="true"){if(virtualIconBack!=null&&virtualIconBack!="null"&&virtualIconBack!=""&&virtualIconBack!=undefined&&virtualIconBack!="undefined"&&virtualIconBack=="true"){var Z="Components";
if(requestParams.view_name!=null&&requestParams.view_name!=""&&requestParams.view_name!="null"&&requestParams.view_name!="undefined"&&requestParams.view_name!=undefined){if(requestParams.view_name=="Aggregates_View"){Z="Aggregates";}else{if(requestParams.view_name=="Systems_View"){Z="Systems";}}}var D="";
if(G!=null&&G!="null"&&G!=""&&G!="undefined"&&G=="true"){D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+requestParams.selectedRum+"&isBackFromRUM=false&filter=Service&filterBy="+requestParams.filterBy+"&view_name="+requestParams.view_name+"&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&action=loadViewData&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&segmentName="+requestParams.segmentName;
}else{if(requestParams.fromServiceHomePage!=null&&requestParams.fromServiceHomePage!="null"&&requestParams.fromServiceHomePage!=""&&requestParams.fromServiceHomePage!="undefined"&&requestParams.fromServiceHomePage=="true"){var aB=requestParams.view_name;if(!Ext.isEmpty(aB)&&aB=="null"){aB="";}D="/final/monitor/citrixDashboard.jsp?iniName=eg_citrixdashboard&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name=Citrix_Dashboard&view_name="+aB+"&fromSerComboChange=true&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view="+Z+"&appliesTo=Service:"+requestParams.subFilter+"&filter=Service&filterBy="+requestParams.filterBy+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&segmentName="+requestParams.segmentName;
}else{D="/final/monitor/citrixDashboard.jsp?iniName=eg_citrixdashboard&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name=Citrix_Dashboard&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name="+requestParams.view_name+"&fromSerComboChange=true&fromServiceHomePage=false&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF+"&active_view="+Z+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&segmentName="+requestParams.segmentName;
}}document.location=D;return;}else{window.history.go(-1);}}else{window.history.go(-1);}}}}}}}}}}}if(zoneAggregate!=null&&zoneAggregate!="null"&&zoneAggregate!=""&&zoneAggregate!=undefined&&zoneAggregate!="undefined"&&zoneAggregate=="true"){var bc="/final/monitor/zoneDash.jsp?treeTitle=zone&selectNode="+aZ+"&selectedParam="+ac+"&currentTab=aggregates&fromHomepage="+av+"&treeOpen=false&openNode=null&isSite=false&aggregateTab=true&hasTransactions=false&hasEmulatedTransactions=false&aggregateComp="+a+"&parentZone="+requestParams.parentZone;
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){X=X+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=bc;return;}if(!Ext.isEmpty(requestParams.toBackUED2)&&requestParams.toBackUED2=="true"){var I=requestParams.toBackUED2_url;
if(I!=null&&I!=undefined){document.location=requestParams.toBackUED2_url;return;}}if(aD!=null&&aD!=undefined&&(aD==true||aD=="true")){try{requestParams.gauageClick=null;var o=Ext.getCmp("ComponentTabPanelId");o.setActiveTab("virtual");o.fireEvent("tabchange","virtual");}catch(ab){}return;}if(a5.length>0){if(aR=="citrixdashboard"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&componentType="+a+"&componentNameSearch="+aF;
document.location=D;}else{if(backNavDashboard!=null&&backNavDashboard!=undefined&&backNavDashboard!="null"&&backNavDashboard!="undefined"&&backNavDashboard=="cmpDashboard"){if(backDashboardURL!=null&&backDashboardURL.indexOf("?")>0){backDashboardURL=backDashboardURL.substring(backDashboardURL.indexOf("?")+1);
window.location.href="/final/servlet/com.eg.EgDashboardController?from=list&"+backDashboardURL+"&newWindow=false&tab=LayerModel&toDashBoardLayer=true";}else{if(fromComponentHealth!=null&&fromComponentHealth!=undefined&&fromComponentHealth!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=componentType&searchIndComps=true&componentType="+a+"&fromHealth="+fromComponentHealth;
}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=componentType&searchIndComps=true&componentType="+a;}}}else{if(g=="topology"){if(aU=="true"){if(fromComponentHealth!=null&&fromComponentHealth!=undefined&&fromComponentHealth!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action=component&searchIndComps=checked&isFromMenu=true&fromHealth="+fromComponentHealth;
}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action=component&searchIndComps=checked&isFromMenu=true";}}else{if(N=="virtual"){window.history.go(-1);}else{if(aR!=null&&aR.toLowerCase()=="mydashboard"){document.location=myDashboardBackUrl;}else{if(a2!=null&&a2!=undefined&&a2.indexOf("serviceDashboard.jsp")!=-1){a2+="&fromlayerBack=true";
}if(a5!=null&&a5!=undefined&&a5.indexOf("serviceDashboard.jsp")!=-1){a5+="&fromlayerBack=true";}document.location=a5;}}}}else{if(T=="currentStatus"){var D="/final/monitor/EgAlarms.jsp?fromPage="+T+"&showAlarms="+ak+"&arrangeAlarms="+aS+"&selectedSubFilterOption="+ak+"&isFromDashBoard="+bb;if(ak!=null&&ak.indexOf("HIGH")!=-1&&ak.indexOf("INTERMEDIATE")!=-1&&ak.indexOf("LOW")!=-1){D="/final/monitor/EgAlarms.jsp?fromPage="+T+"&showAlarms="+ak+"&arrangeAlarms="+aS+"&selectedSubFilterOption="+ak+"&isFromDashBoard="+bb+"&alarmType=CurrentUnknown";
}document.location=D;}else{if(V=="componentType"){if(ai=="list"){var aU=false;if(u!=null&&u!=undefined&&u=="Menu"){aU=true;}if(requestParams.fromHomepage!=null&&requestParams.fromHomepage!=undefined&&requestParams.fromHomepage=="true"){if(requestParams.isAggregate!=null&&requestParams.isAggregate!=undefined&&requestParams.isAggregate!="null"){if(requestParams.parentZone!=null&&requestParams.parentZone!=undefined&&requestParams.parentZone!="null"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=ZoneDashboard&action=componentType&searchIndComps=true&menuName=agg&zoneName="+encodeURI(requestParams.parentZone)+"&componentType="+encodeURI(a9)+"&fromHomepage=true&parentZone="+encodeURI(requestParams.parentZone);
}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&searchStateString=All States&action=componentType&searchIndComps=checked&componentType="+encodeURI(a9)+"&menuName=agg&who=fromServerTypes";}}else{if(requestParams.parentZone!=null&&requestParams.parentZone!=undefined&&requestParams.parentZone!="null"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=ZoneDashboard&action=componentType&searchIndComps=true&zoneName="+encodeURI(requestParams.zoneName)+"&componentType="+encodeURI(a9)+"&isTreeFlag=false&iscurrentTab=details&isaggregateTab=false&isopenNode=null&fromHomepage=true&parentZone="+encodeURI(requestParams.parentZone)+"&viewId=components&viewPageTitle="+f+"&viewTreeTitle=Component&componentType="+a+"&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&stateName="+a1+"&isFromMenu="+aU+"&treeTitle="+requestParams.treeTitle;
}else{if(R!=null&&R!=undefined&&R!="null"&&R!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=ZoneDashboard&action=componentType&searchIndComps=true&zoneName="+encodeURI(R)+"&componentType="+encodeURI(a)+"&isTreeFlag=false&fromHomepage="+av+"&iscurrentTab=details&isaggregateTab=false&isopenNode=null&parentZone="+encodeURI(R)+"&viewId=components&viewPageTitle="+f+"&viewTreeTitle=Component&componentType="+a+"&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&stateName="+a1+"&isFromMenu="+aU+"&treeTitle="+requestParams.treeTitle;
}else{if(aU==false){if(requestParams.monitorsBy=="HTTP"||requestParams.monitorsBy=="NETWORK"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action="+aw+"&searchIndComps=checked&viewId=components&viewPageTitle="+f+"&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&stateName="+a1+"&isFromMenu="+aU+"&fromHomepage="+av+"&treeTitle="+requestParams.treeTitle+"&isLogonType="+requestParams.isLogonType+"&ltest="+requestParams.ltest+"&monitorsBy="+requestParams.monitorsBy;
return;}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action="+aw+"&searchIndComps=checked&viewId=components&viewPageTitle="+f+"&viewTreeTitle=Component&componentType="+a+"&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&stateName="+a1+"&isFromMenu="+aU+"&fromHomepage="+av+"&treeTitle="+requestParams.treeTitle+"&isLogonType="+requestParams.isLogonType+"&ltest="+requestParams.ltest+"&monitorsBy="+requestParams.monitorsBy;
return;}}else{window.history.go(-1);}}}}}else{window.history.go(-1);}}else{if(fromComponentHealth!=null&&fromComponentHealth!=undefined&&fromComponentHealth!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action="+V+"&searchIndComps=true&componentType="+a9+"&isServiceBusiDash="+m+"&isServiceBusiDetails="+aG+"&treeFlag_SBD="+W+"&outsideService_SBD="+F+"&titleText_SBD="+s+"&selectNode_SBD=Service^"+aV+"&isEmulTrans_SBD="+aI+"&serviceState_SBD="+K+"&serviceName="+aH+"&fromHealth="+fromComponentHealth;
}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action="+V+"&searchIndComps=true&componentType="+a9+"&isServiceBusiDash="+m+"&isServiceBusiDetails="+aG+"&treeFlag_SBD="+W+"&outsideService_SBD="+F+"&titleText_SBD="+s+"&selectNode_SBD=Service^"+aV+"&isEmulTrans_SBD="+aI+"&serviceState_SBD="+K+"&serviceName="+aH;
}}}else{if(N=="virtual"){document.location="/final/monitor/EgDispvmwareHosts.jsp?Vmhost="+aO+"&vmcomp_type="+n+"&state="+aX+"&port="+z+"&isFromMenu=false";}else{if(a3=="serviceHealth"){document.location="/final/monitor/serviceHealthMain.jsp?isFromMenu=true";}else{if(aQ=="userView"){document.location="/final/monitor/EgMonitoruserView.jsp?monCmd="+aQ+"&fromMenu=true";
}else{if(a8=="vmdashboard"){if(toBckComp!=null&&toBckComp!=undefined&&toBckComp!=" "){document.location="/final/monitor/vmwareDashboard.jsp?monCmdComeFrom=vmdashboard&toBckComp="+toBckComp;}else{document.location="/final/monitor/vmwareDashboard.jsp?monCmdComeFrom=vmdashboard";}}else{if(au=="componentList"){if(ad!=null&&ad=="agg"){if(fromComponentHealth!=null&&fromComponentHealth!=undefined&&fromComponentHealth!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=component&menuName=agg&searchIndComps=checked&isFromMenu=true&fromHealth="+fromComponentHealth;
}else{var aU=false;if(u!=null&&u!=undefined&&u=="Menu"){aU=true;}if(requestParams.parentZone!=null&&requestParams.parentZone!=undefined&&requestParams.parentZone!="null"){if(a9!=null&&a9!=undefined&&a9!=""&&w!=null&&w!=undefined&&w!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=ZoneDashboard&action=componentType&searchIndComps=true&menuName=agg&zoneName="+encodeURI(requestParams.parentZone)+"&componentType="+encodeURI(a9)+"&stateName="+w+"&who=fromServerTypes&fromHomepage=true&parentZone="+encodeURI(requestParams.parentZone)+"&isFromMenu="+aU;
}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=ZoneDashboard&action=componentType&searchIndComps=true&menuName=agg&zoneName="+encodeURI(requestParams.parentZone)+"&componentType="+a9+"&stateName="+w+"&who=fromServerTypes&fromHomepage=true&parentZone="+encodeURI(requestParams.parentZone)+"&isFromMenu="+aU;
}}else{window.history.go(-1);}}}else{if(ad!=null&&ad=="network"){var aU=false;if(u!=null&&u!=undefined&&u=="Menu"){aU=true;}if(fromComponentHealth!=null&&fromComponentHealth!=undefined&&fromComponentHealth!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=component&menuName=network&searchIndComps=checked&isFromMenu=true&fromHealth="+fromComponentHealth;
}else{if(requestParams.parentZone!=null&&requestParams.parentZone!=undefined&&requestParams.parentZone!="null"){if(a9!=null&&a9!=undefined&&a9!=""&&w!=null&&w!=undefined&&w!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=ZoneDashboard&action=componentType&searchIndComps=true&menuName=network&zoneName="+encodeURI(requestParams.parentZone)+"&componentType="+encodeURI(a9)+"&stateName="+w+"&who=fromServerTypes&fromHomepage=true&parentZone="+encodeURI(requestParams.parentZone)+"&isFromMenu="+aU;
}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=ZoneDashboard&action=componentType&searchIndComps=true&menuName=network&zoneName="+encodeURI(requestParams.parentZone)+"&componentType="+a9+"&stateName="+w+"&who=fromServerTypes&fromHomepage=true&parentZone="+encodeURI(requestParams.parentZone)+"&isFromMenu="+aU;
}}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=component&menuName=network&searchIndComps=checked&isFromMenu=true";}}}else{var aU=false;if(u!=null&&u!=undefined&&u=="Menu"){aU=true;}if(V=="componentTypeState"){if(fromComponentHealth!=null&&fromComponentHealth!=undefined&&fromComponentHealth!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=componentTypeState&componentType="+a9+"&searchIndComps=true&stateName="+w+"&fromHealth="+fromComponentHealth;
}else{if((requestParams.parentZone!=null&&requestParams.parentZone!=undefined&&requestParams.parentZone!="null")){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=ZoneDashboard&action="+aw+"&searchIndComps=true&zoneName="+encodeURI(requestParams.parentZone)+"&componentType="+encodeURI(a9)+"&isTreeFlag=false&stateName="+w+"&who=fromServerTypes&iscurrentTab=details&isaggregateTab=false&isopenNode=null&fromHomepage=true&parentZone="+encodeURI(requestParams.parentZone)+"&viewId=components&viewPageTitle="+f+"&viewTreeTitle=Component&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&isFromMenu="+aU;
}else{if((requestParams.parentZone==null||requestParams.parentZone==undefined||requestParams.parentZone=="null")&&R!=null&&R!=undefined&&R!=""&&R!="null"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=ZoneDashboard&action="+aw+"&searchIndComps=true&zoneName="+encodeURI(R)+"&componentType="+encodeURI(a9)+"&isTreeFlag=false&stateName="+a1+"&who=fromServerTypes&iscurrentTab=details&isaggregateTab=false&isopenNode=null&fromHomepage=true&parentZone="+encodeURI(R)+"&viewId=components&viewPageTitle="+f+"&viewTreeTitle=Component&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&isFromMenu="+aU;
}else{if(aU==false){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action="+aw+"&searchIndComps=true&viewId=components&viewPageTitle="+f+"&viewTreeTitle=Component&componentType="+a+"&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&stateName="+a1+"&isFromMenu="+aU+"&fromHomepage="+av;
}else{window.history.go(-1);}}}}}else{if(V=="globalsearch"){var af="";try{af=parent.getSearchBoxObj().getValue();}catch(ab){af=parent.parent.getSearchBoxObj().getValue();}document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=componentList&action=globalsearch&searchStateString=All States&searchIndComps=true&searchNameString="+af;
}else{if(V=="globalsearchallcomponent"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action=component&searchIndComps=checked&isFromMenu=true";}else{if(ar=="UserView"){window.history.go(-1);}else{if(fromComponentHealth!=null&&fromComponentHealth!=undefined&&fromComponentHealth!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action=component&searchIndComps=checked&isFromMenu=true&fromHealth="+fromComponentHealth;
}else{if(u!=null&&u!=undefined&&u!=""){if(u=="Home"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action="+aw+"&searchIndComps=checked&viewId=components&viewPageTitle="+f+"&viewTreeTitle=Component&componentType="+a+"&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&stateName="+a1+"&isFromMenu="+aU+"&fromHomepage="+av;
}else{if(u=="zoneDashboard"){var aL="";if(!Ext.isEmpty(bd)&&bd!=null&&bd=="ComparisonDashboard"){aL="metric";}document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&action="+aw+"&searchIndComps=true&viewId=components&viewPageTitle="+f+"&viewTreeTitle=Component&fromPageView=zoneDashboard&filterBy="+at+"&subFilter="+R+"&zoneName="+encodeURI(R)+"&from=componentList&partOf=yes&view="+aL;
}else{if(u=="Zone"||u=="ZoneMap"||u=="HomeZone"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=ZoneDashboard&action="+aw+"&searchIndComps=true&zoneName="+encodeURI(R)+"&componentType="+encodeURI(a9)+"&isTreeFlag=false&stateName="+a1+"&who=fromServerTypes&iscurrentTab=details&isaggregateTab=false&isopenNode=null&fromHomepage=true&parentZone="+encodeURI(R)+"&viewId=components&viewPageTitle="+f+"&viewTreeTitle=Component&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&isFromMenu="+aU;
}else{if(requestParams.manyComponentTypes!=null&&requestParams.manyComponentTypes!=undefined&&requestParams.manyComponentTypes!=""&&requestParams.manyComponentTypes!="null"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action=search&searchIndComps=checked&isFromMenu=false&manyComponentTypes="+encodeURI(requestParams.manyComponentTypes)+"&manyComponentTitle="+encodeURI(requestParams.manyComponentTitle)+"&selTypeString="+encodeURI(requestParams.selTypeString);
}else{if(requestParams.action!=null&&requestParams.action!=undefined&&requestParams.action=="search"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action="+encodeURI(requestParams.action)+"&searchIndComps="+encodeURI(requestParams.searchIndComps)+"&isFromMenu=true&selTypeString="+encodeURI(requestParams.selTypeString)+"&searchStateString="+requestParams.searchStateString+"&searchNameString="+encodeURI(requestParams.searchNameString)+"&fromPage="+requestParams.fromPage;
}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action=component&searchIndComps=checked&isFromMenu=true";}}}}}}}}}}}}}}else{if(aR=="vm"){if(!Ext.isEmpty(a2)&&a2!=null&&a2!="undefined"&&a2!=undefined&&a2.indexOf("eGSearch.jsp")!=-1){document.location=this.encodeQueryParam(a2);
}else{if(toBckComp!=null&&toBckComp!=undefined&&toBckComp!=" "){document.location="/final/monitor/vmwareDashboard.jsp?monCmdComeFrom=vmdashboard&toBckComp="+toBckComp;}else{document.location="/final/monitor/vmwareDashboard.jsp?monCmdComeFrom=vmdashboard";}}}else{if(aR!=null&&aR.toLowerCase()=="mydashboard"){document.location=myDashboardBackUrl;
}else{if(aR=="netscaler"){document.location=netscalerBackUrl;}else{if(aR=="SAP"){document.location=SAPDashboardBackUrl;}else{if(aR=="SapPlatformDashboard"){document.location=SapPlatformDashboardBackUrl;}else{if(aR=="globalSearch"){search_info=search_info.replace("\\","\\\\");document.location=GlobalSearchBackBtnLink+"&info="+encodeURIComponent(search_info)+"&searchIndComps=true";
}else{if(aR=="GlobalSearchList"){document.location=globalSearchListUrl+"&searchIndComps=true";}else{if(ai=="SAP"){if(a2!=null&&a2!="undefined"&&a2!=undefined&&a2.indexOf("ABAPDashboard")!=-1){if(!Ext.isEmpty(curViewTab)&&curViewTab!=null&&curViewTab!="null"&&curViewTab!=undefined){a2+="&curViewTab="+curViewTab;
}window.location.href=a2;return;}else{if(a5!=null&&a5!="undefined"&&a5!=undefined){window.history.go(-1);}else{window.location.href="/final/monitor/ABAPDashboard.jsp";}}}if(ai=="citrixdashboard"||aR=="citrixdashboard"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&componentType="+a+"&componentNameSearch="+aF;
document.location=D;}else{if(ai=="rumdashboard"){if(a2!=null&&a2!="undefined"&&a2!=undefined&&(a2.indexOf("realUserMonitorsDashboard")!=-1||a2.indexOf("serviceDashboard")!=-1)){if(!Ext.isEmpty(curViewTab)&&curViewTab!=null&&curViewTab!="null"&&curViewTab!=undefined){a2+="&curViewTab="+curViewTab;}window.location.href=a2;
}else{if(a5!=null&&a5!="undefined"&&a5!=undefined){window.history.go(-1);}else{window.location.href="/final/monitor/realUserMonitorsDashboard.jsp";}}}else{if(aR=="componentList"){if(a.indexOf("Agg_")==0){if(fromComponentHealth!=null&&fromComponentHealth!=undefined&&fromComponentHealth!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=component&menuName=agg&searchIndComps=checked&isFromMenu=true&fromHealth="+fromComponentHealth;
}else{if(requestParams.fromHomepage!=null&&requestParams.fromHomepage!=undefined&&requestParams.fromHomepage!=""&&requestParams.fromHomepage!="null"&&requestParams.fromHomepage!="undefined"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard";}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=component&menuName=agg&searchIndComps=checked&isFromMenu=true";
}}}else{if(fromComponentHealth!=null&&fromComponentHealth!=undefined&&fromComponentHealth!=""){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=componentType&searchIndComps=true&componentType="+a+"&fromHealth="+fromComponentHealth;}else{if(a!=null&&a!=undefined&&a!="null"&&aR!=null&&aR=="componentList"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=MainDashboard&action=componentType&searchIndComps=true&componentType="+a;
}else{window.history.go(-1);}}}}else{if(aw=="segment"){var aA="";var af="";try{aA=parent.getSearchComboObj().getValue();af=parent.getSearchBoxObj().getValue();}catch(ab){aA=parent.parent.getSearchComboObj().getValue();af=parent.parent.getSearchBoxObj().getValue();}if(aA!=null&&aA=="segment"&&af!=null&&af!=""&&!Ext.isEmpty(af)&&af!="*"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=segmentList&from=segmentList&action=globalsearch&searchString="+encodeURIComponent(af);
}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=segmentList&from=MainDashboard&action=segment&isFromMenu=true";}}else{if(aw=="service"){var aA="";var af="";try{aA=parent.getSearchComboObj().getValue();af=parent.getSearchBoxObj().getValue();}catch(ab){aA=parent.parent.getSearchComboObj().getValue();
af=parent.parent.getSearchBoxObj().getValue();}if(aG=="true"){var P="/final/monitor/serviceBusinessDetailsMain.jsp?treeFlag=null&outsideService=true&titleText=Services&selectNode=Service$cap$"+aH+"&serviceFromZone="+aH+"&isEmulTrans=false&serviceName="+aH+"&serviceState="+c+"&isServiceBusiDash=true";
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){P=P+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=P;}else{if(aA!=null&&aA=="service"&&af!=null&&af!=""&&!Ext.isEmpty(af)&&af!="*"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=serviceList&from=serviceList&action=globalsearch&searchString="+af;
}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=serviceList&from=MainDashboard&action=service&isFromMenu=true";}}}else{if(aw=="zone"){var aA="";var af="";try{aA=parent.getSearchComboObj().getValue();af=parent.getSearchBoxObj().getValue();}catch(ab){aA=parent.parent.getSearchComboObj().getValue();
af=parent.parent.getSearchBoxObj().getValue();}if(aA!=null&&aA=="zone"&&af!=null&&af!=""&&!Ext.isEmpty(af)&&af!="*"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=zoneList&from=zoneList&action=globalsearch&searchString="+af;}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=zoneList&from=MainDashboard&action=zone&isFromMenu=true";
}}else{if(ae=="service"){document.location=a5;}else{if(ae=="segment"){document.location=a5;}else{if(m=="true"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=serviceList&from=MainDashboard&action=service&isServiceBusiDash=true&isFromMenu=true";}else{if(aG=="true"){var aC="/final/monitor/serviceBusinessDetailsMain.jsp?treeFlag=null&outsideService=true&titleText=Services&selectNode=Service$cap$"+aH+"&serviceFromZone="+O+"&isEmulTrans=false&serviceName="+aH+"&serviceState="+l+"&isServiceBusiDash=true";
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){aC=aC+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=aC;}else{if(ao=="zone"){window.history.go(-1);}else{if(a6=="true"){if(aR!=null&&aR=="vmServer"){document.location="/final/monitor/EgVmwareDesktop.jsp?comp="+componentName+"&comptype="+a+"&Layer="+ay+"&monitor_Skin="+serverdashboard_skin;
}else{if(aR!=null&&aR=="insideLayerMeasures"){document.location="/final/monitor/egInsideviewDashboard.jsp?getFor=measure&comp="+hostNameEncoded+"&comptype="+a+"&info="+encodeURI(L)+"&compName="+hostTypewithNameEncoded+"&Layer="+ay;}else{if(aR!=null&&aR=="measures"){document.location="/final/monitor/egInsideviewDashboard.jsp?getFor=measure&comp="+hostNameEncoded+"&comptype="+a+"&Layer="+ay+"&info="+E+"&compName="+hostTypewithNameEncoded;
}else{if(r=="true"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard";}else{if(a2!=null&&a2!="undefined"&&a2!=undefined&&(a2.indexOf("endUserDashboard.jsp")!=-1&&(a2.indexOf("userType=App")!=-1||a2.indexOf("userType=XenApp")!=-1||a2.indexOf("userType=VDI")!=-1||a2.indexOf("userType=ESX")!=-1||a2.indexOf("userType=Terminal")!=-1||a2.indexOf("userType=VCDataStore")!=-1))){if(aJ!=null&&aJ!="null"&&aJ!=""&&aJ!="undefined"){a2+="&fromMetricView=true&isfromCitrix="+aJ+"&iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name="+requestParams.view_name+"&comptype="+a+"&fromSerComboChange="+requestParams.fromSerComboChange+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE;
}document.location=a2+"&uedOverviewType="+uedOverviewType;}else{if(aM!=null&&aM!=undefined&&aM=="true"){document.location=a2;}else{if(U!=null&&U!=undefined&&U=="true"){document.location=a2;}else{if(bd!=null&&bd!=undefined&&bd=="ctxLogonDashboard"&&(aK==null||aK=="null"||aK=="undefined"||aK==undefined||(aK=="false"||aK==false))){if(aJ!=null&&aJ!="null"&&aJ!=""&&aJ!="undefined"){if(G!=null&&G!="null"&&G!=""&&G!="undefined"){D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+requestParams.appliesTo+"&isBackFromRUM=false&filter=Service&filterBy="+requestParams.subFilter+"&view_name="+requestParams.view_name+"&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE;
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF;
}document.location=D;}else{var aY="/final/monitor/comparisonDashboard.jsp?ltype="+v+"&treeTitle="+aa+"&isFromMenu="+aU;if(!Ext.isEmpty(requestParams.ltest)&&requestParams.ltest!=undefined&&requestParams.ltest!=null&&requestParams.ltest!="null"){aY+="&ltest="+requestParams.ltest;}if(!Ext.isEmpty(requestParams.ltype)&&requestParams.ltype!=undefined&&requestParams.ltype!=null&&requestParams.ltype!="null"){aY+="&ltype="+requestParams.ltype;
}if(!Ext.isEmpty(requestParams.monitorsBy)&&requestParams.monitorsBy!=undefined&&requestParams.monitorsBy!=null&&requestParams.monitorsBy!="null"){aY+="&monitorsBy="+requestParams.monitorsBy;}if(!Ext.isEmpty(requestParams.externalAgent)&&requestParams.externalAgent!=undefined&&requestParams.externalAgent!=null&&requestParams.externalAgent!="null"){aY+="&externalAgent="+requestParams.externalAgent;
}if(!Ext.isEmpty(requestParams.isFromInfraHome)&&requestParams.isFromInfraHome!=undefined&&requestParams.isFromInfraHome!="null"){aY+="&isFromInfraHome="+requestParams.isFromInfraHome;}if(!Ext.isEmpty(requestParams.isFromZoneInfra)&&requestParams.isFromZoneInfra!=undefined&&requestParams.isFromZoneInfra!=null&&requestParams.isFromZoneInfra!="null"){aY+="&isFromZoneInfra="+requestParams.isFromZoneInfra;
}if(!Ext.isEmpty(requestParams.zoneName)&&requestParams.zoneName!=undefined&&requestParams.zoneName!=null&&requestParams.zoneName!="null"){aY+="&zoneName="+requestParams.zoneName;}if(!Ext.isEmpty(requestParams.selectedState)&&requestParams.selectedState!=undefined&&requestParams.selectedState!=null&&requestParams.selectedState!="null"){aY+="&selectedState="+requestParams.selectedState;
}if(!Ext.isEmpty(av)&&av!=undefined&&av!=null&&av!="null"){aY+="&fromHomepage="+av;}if(!Ext.isEmpty(aE)&&aE!=undefined&&aE!=null&&aE!="null"){aY+="&parentZone="+aE;}document.location=aY;}}else{if(bd!=null&&bd!=undefined&&bd=="ComparisonDashboard"){var aU=false;if(u==null||u==undefined||u==""||u=="Menu"){aU=true;
}if(at!=null&&R!=null&&at!=undefined&&at!="null"&&R!=undefined&&R!="null"&&at!=""&&R!=""){if(aa!=null&&aa=="system"){var S="/final/servlet/com.eg.EgMonitorController?monCmd=boxList&from=MainDashboard&action=box&isFromMenu=true&view=metric&viewId=system&viewPageTitle=Systems&viewTreeTitle=System&componentType="+selectedSystemCompType+"&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF;
if(!Ext.isEmpty(isServiceBusiViewMetrics)&&isServiceBusiViewMetrics!=undefined&&isServiceBusiViewMetrics!=null&&(isServiceBusiViewMetrics==true||isServiceBusiViewMetrics=="true")){S=S+"&isServiceBusiViewMetrics="+isServiceBusiViewMetrics+"&treeFlag="+W+"&outsideService="+F+"&titleText="+s+"&selectNode=Service^"+aV+"&serviceFromZone="+aH+"&isEmulTrans="+aI+"&serviceName="+aH+"&serviceState="+K+"&isServiceBusiDash="+m;
}document.location=S;}else{if(aa!=null&&aa=="components"){if(aJ!=null&&aJ!="null"&&aJ!=""&&aJ!="undefined"){if(G!=null&&G!="null"&&G!=""&&G!="undefined"){D="/final/monitor/rumAppFlow.jsp?iniName=eg_rumdashboard&userBased=true&fromMenu=true&showConfig=true&dashboard_name=RUM_Dashboard&appliesTo="+requestParams.appliesTo+"&isBackFromRUM=false&filter=Service&filterBy="+requestParams.subFilter+"&view_name="+requestParams.view_name+"&subFilter="+requestParams.subFilter+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE;
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF;
}document.location=D;}else{var j="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action="+aw+"&searchIndComps=checked&view=metric&viewId=components&viewPageTitle="+f+"&viewTreeTitle=Component&componentType="+a+"&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&stateName="+a1+"&parentZone="+requestParams.parentZone;
if(!Ext.isEmpty(av)&&av!=undefined&&av!=null&&av!="null"&&(av==true||av=="true")){j=j+"&fromHomepage="+av;}else{j=j+"&isFromMenu="+aU;}if(!Ext.isEmpty(isServiceBusiViewMetrics)&&isServiceBusiViewMetrics!=undefined&&isServiceBusiViewMetrics!=null&&(isServiceBusiViewMetrics==true||isServiceBusiViewMetrics=="true")){j=j+"&isServiceBusiViewMetrics="+isServiceBusiViewMetrics+"&treeFlag="+W+"&outsideService="+F+"&titleText="+s+"&selectNode="+encodeURIComponent("Service$cap$"+aV)+"&serviceFromZone="+aH+"&isEmulTrans="+aI+"&serviceName="+aH+"&serviceState="+K+"&isServiceBusiDash="+m+"&isServiceBusiDetails="+isServiceBusiViewMetrics;
}document.location=j;}}else{if(aa!=null&&aa=="network"){var C="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action="+aw+"&searchIndComps=checked&view=metric&viewId=network&viewPageTitle="+f+"&viewTreeTitle=Network&componentType="+a+"&filterBy="+at+"&subFilter="+R+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&stateName="+a1+"&isFromMenu="+aU+"&fromHomepage="+av;
if(!Ext.isEmpty(isServiceBusiViewMetrics)&&isServiceBusiViewMetrics!=undefined&&isServiceBusiViewMetrics!=null&&(isServiceBusiViewMetrics==true||isServiceBusiViewMetrics=="true")){C=C+"&isServiceBusiViewMetrics="+isServiceBusiViewMetrics+"&treeFlag="+W+"&outsideService="+F+"&titleText="+s+"&selectNode=Service^"+aV+"&serviceFromZone="+aH+"&isEmulTrans="+aI+"&serviceName="+aH+"&serviceState="+K+"&isServiceBusiDash="+m;
}document.location=C;}}}}else{if(aa!=null&&aa=="system"){var S="/final/servlet/com.eg.EgMonitorController?monCmd=boxList&from=MainDashboard&action=box&isFromMenu=true&view=metric&viewId=system&viewPageTitle=Systems&viewTreeTitle=System&componentType="+a+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&stateName="+a1+"&isFromMenu="+aU+"&fromHomepage="+av;
if(!Ext.isEmpty(isServiceBusiViewMetrics)&&isServiceBusiViewMetrics!=undefined&&isServiceBusiViewMetrics!=null&&(isServiceBusiViewMetrics==true||isServiceBusiViewMetrics=="true")){S=S+"&isServiceBusiViewMetrics="+isServiceBusiViewMetrics+"&treeFlag="+W+"&outsideService="+F+"&titleText="+s+"&selectNode=Service^"+aV+"&serviceFromZone="+aH+"&isEmulTrans="+aI+"&serviceName="+aH+"&serviceState="+K+"&isServiceBusiDash="+m;
}document.location=S;}else{if(aa!=null&&aa=="components"){var j="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action="+aw+"&searchIndComps=checked&view=metric&viewId=components&viewPageTitle="+f+"&viewTreeTitle=Component&componentType="+a+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&stateName="+a1+"&isFromMenu="+aU+"&fromHomepage="+av;
if(!Ext.isEmpty(isServiceBusiViewMetrics)&&isServiceBusiViewMetrics!=undefined&&isServiceBusiViewMetrics!=null&&(isServiceBusiViewMetrics==true||isServiceBusiViewMetrics=="true")){j=j+"&isServiceBusiViewMetrics="+isServiceBusiViewMetrics+"&treeFlag="+W+"&outsideService="+F+"&titleText="+s+"&selectNode="+encodeURIComponent("Service$cap$"+aV)+"&serviceFromZone="+aH+"&isEmulTrans="+aI+"&serviceName="+aH+"&serviceState="+K+"&isServiceBusiDash="+m+"&isServiceBusiDetails="+isServiceBusiViewMetrics;
}document.location=j;}else{if(aa!=null&&aa=="network"){var C="/final/servlet/com.eg.EgMonitorController?monCmd=componentList&from=TreeMenu&action="+aw+"&searchIndComps=checked&view=metric&viewId=network&viewPageTitle="+f+"&viewTreeTitle=Network&componentType="+a+"&componentNameSearch="+aF+"&fromPageView="+u+"&selectedState="+a1+"&stateName="+a1+"&isFromMenu="+aU+"&fromHomepage="+av;
if(!Ext.isEmpty(isServiceBusiViewMetrics)&&isServiceBusiViewMetrics!=undefined&&isServiceBusiViewMetrics!=null&&(isServiceBusiViewMetrics==true||isServiceBusiViewMetrics=="true")){C=C+"&isServiceBusiViewMetrics="+isServiceBusiViewMetrics+"&treeFlag="+W+"&outsideService="+F+"&titleText="+s+"&selectNode=Service^"+aV+"&serviceFromZone="+aH+"&isEmulTrans="+aI+"&serviceName="+aH+"&serviceState="+K+"&isServiceBusiDash="+m;
}document.location=C;}else{window.history.go(-1);}}}}}else{if(a2!=null&&a2!="undefined"&&a2!=undefined&&a2.indexOf("serviceDashboard.jsp")!=-1&&aK!=null&&(aK=="true"||aK==true)){document.location=a2;}else{if(a2!=null&&a2!="undefined"&&a2!=undefined&&a2.indexOf("eGSearch.jsp")!=-1){document.location=this.encodeQueryParam(a2);
}else{if(a2!=null&&a2!="undefined"&&a2!=undefined&&a2.indexOf("isServiceBusiViewMetrics")!=-1){var ap=a2+"&fromMetricView=true&fromPageView=Menu"+"&comptype="+a;document.location=ap;}else{if(a2!=null&&a2!="undefined"&&a2!=undefined&&a2.indexOf("endUserDashboard.jsp")!=-1){document.location=a2+"&uedOverviewType="+uedOverviewType;
}else{if(aa!=null&&aa=="services"){if(A!=null&&A=="system"){var d="/final/monitor/serviceDashboard.jsp?treeTitle=services&selectNode="+aZ+"&selectedParam="+ac+"&currentTab=system&isSite=false&aggregateTab="+ag+"&hasTransactions="+x+"&hasEmulatedTransactions="+b+"&hasLogonSimulations="+aT+"&fromHomepage="+av+"&treeOpen=false&openNode=Services&refresh=true&action=service&topoSegment="+ac;
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){d=d+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=d;}else{if(A!=null&&A=="components"){var M="/final/monitor/serviceDashboard.jsp?treeTitle=services&selectNode="+aZ+"&selectedParam="+ac+"&currentTab=components&isSite=false&aggregateTab="+ag+"&hasTransactions="+x+"&hasEmulatedTransactions="+b+"&hasLogonSimulations="+aT+"&fromHomepage="+av+"&treeOpen=false&openNode=Services&refresh=true&action=service&topoSegment="+ac+"&appCurrentHost="+a;
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){M=M+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=M;}else{if(A!=null&&A=="aggregates"){var az="/final/monitor/serviceDashboard.jsp?treeTitle=services&selectNode="+aZ+"&selectedParam="+ac+"&currentTab=aggregates&isSite=false&aggregateTab="+ag+"&hasTransactions="+x+"&hasEmulatedTransactions="+b+"&hasLogonSimulations="+aT+"&fromHomepage="+av+"&treeOpen=false&openNode=Services&refresh=true&action=service&topoSegment="+ac+"&aggregateComp="+a;
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){az=az+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=az;}else{window.history.go(-1);}}}}else{if(aa!=null&&aa=="segment"){if(A!=null&&A=="system"){var aN="/final/monitor/segmentDashboard.jsp?treeTitle=segment&selectNode="+aZ+"&selectedParam="+ac+"&currentTab=system&fromHomepage="+av+"&treeOpen=false&isSite=false&aggregateTab="+ag+"&hasTransactions=false&hasEmulatedTransactions=false&parentZone="+requestParams.parentZone+"&iszoneName="+requestParams.iszoneName+"&isFromZone="+requestParams.isFromZone+"&selectedSystemCompType="+selectedSystemCompType;
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){aN=aN+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=aN;}else{if(A!=null&&A=="components"){var Y="/final/monitor/segmentDashboard.jsp?treeTitle=segment&selectNode="+aZ+"&selectedParam="+ac+"&currentTab=components&fromHomepage="+av+"&treeOpen=false&isSite=false&aggregateTab="+ag+"&hasTransactions=false&hasEmulatedTransactions=false&appCurrentHost="+a+"&parentZone="+requestParams.parentZone+"&iszoneName="+requestParams.iszoneName+"&isFromZone="+requestParams.isFromZone;
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){Y=Y+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=Y;}else{if(A!=null&&A=="aggregates"){var aj="/final/monitor/segmentDashboard.jsp?treeTitle=segment&selectNode="+aZ+"&selectedParam="+ac+"&currentTab=aggregates&isSite=false&aggregateTab="+ag+"&hasTransactions=false&hasEmulatedTransactions=false&fromHomepage="+av+"&treeOpen=false&aggregateComp="+a+"&parentZone="+requestParams.parentZone+"&iszoneName="+requestParams.iszoneName+"&isFromZone="+requestParams.isFromZone;
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){aj=aj+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=aj;}else{window.history.go(-1);}}}}else{if(aa!=null&&aa=="zone"){if(A!=null&&A=="system"){var H="/final/monitor/zoneDash.jsp?treeTitle=zone&selectNode="+aZ+"&selectedParam="+ac+"&currentTab=system&fromHomepage="+av+"&treeOpen=false&openNode=null&isSite=false&aggregateTab="+ag+"&hasTransactions=false&hasEmulatedTransactions=false&parentZone="+requestParams.parentZone+"&selectedSystemCompType="+selectedSystemCompType;
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){H=H+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=H;}else{if(A!=null&&A=="components"){var X="/final/monitor/zoneDash.jsp?treeTitle=zone&selectNode="+aZ+"&selectedParam="+ac+"&currentTab=components&fromHomepage="+av+"&treeOpen=false&openNode=null&isSite=false&aggregateTab="+ag+"&hasTransactions=false&hasEmulatedTransactions=false&appCurrentHost="+a+"&parentZone="+requestParams.parentZone;
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){X=X+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=X;}else{if(A!=null&&A=="aggregates"){var bc="/final/monitor/zoneDash.jsp?treeTitle=zone&selectNode="+aZ+"&selectedParam="+ac+"&currentTab=aggregates&fromHomepage="+av+"&treeOpen=false&openNode=null&isSite=false&aggregateTab="+ag+"&hasTransactions=false&hasEmulatedTransactions=false&aggregateComp="+a+"&parentZone="+requestParams.parentZone;
if(!Ext.isEmpty(servBusiDetails_csrfToken)&&servBusiDetails_csrfToken!=null&&servBusiDetails_csrfToken!=undefined){X=X+"&com.eg.CSRF_NONCE="+servBusiDetails_csrfToken;}document.location=bc;}else{window.history.go(-1);}}}}else{if(aa!=null&&aa=="LogonSimulation"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&action=loadViewData&user_name="+requestParams.user_name+"&fromMenu=true&showConfig=true&fromUED=false&dashboard_name="+requestParams.dashboard_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&view_name="+requestParams.view_name+"&fromSerComboChange="+requestParams.fromSerComboChange+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&isFromZone="+ba+"&iszoneName="+al+"&parentZone="+aE+"&componentType="+a+"&componentNameSearch="+aF;
document.location=D;}else{if(aa!=null&&aa=="zoneMap"){document.location="/final/monitor/zoneMap.jsp?isFromMenu=true";}else{if(!Ext.isEmpty(a8)&&a8=="endUserDashDetail"){window.history.go(-1);}else{if(!Ext.isEmpty(requestParams.view_name)&&requestParams.view_name=="Logon_View"&&requestParams.dashboard_name=="Citrix_Dashboard"){var D="";
if(requestParams.fromServiceHomePage=="true"){D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&userBased="+requestParams.userBased+"&fromMenu="+fromMenu+"&showConfig=true&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name+"&dashboard_mapping="+requestParams.dashboard_mapping+"&filter=Service&filterBy="+requestParams.filterBy+"&hasCitrix=true&hasTransactions="+requestParams.hasTransactions+"&hasEmulatedTransactions="+requestParams.hasEmulatedTransactions+"&hasLogonSimulations="+requestParams.hasLogonSimulations+"&fromServiceHomePage="+requestParams.fromServiceHomePage+"&fromSerComboChange="+requestParams.fromSerComboChange+"&isFromServiceMenu=true&isFromZone="+requestParams.isFromZone;
}else{D="/final/monitor/citrixDashboard.jsp?iniName="+requestParams.iniName+"&userBased="+requestParams.userBased+"&fromMenu="+fromMenu+"&showConfig=true&dashboard_mapping="+requestParams.dashboard_mapping+"&dashboard_name="+requestParams.dashboard_name+"&view_name="+requestParams.view_name;}document.location=D;
}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard";}}}}}}}}}}}}}}}}}}}}}else{if(ai=="list"){if(r=="true"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard";}else{if(a2!=null&&a2!="undefined"&&a2!=undefined&&((a2.indexOf("endUserDashboard.jsp")!=-1&&(a2.indexOf("userType=XenApp")!=-1||a2.indexOf("userType=VDI")!=-1||a2.indexOf("userType=ESX")!=-1||a2.indexOf("userType=Terminal")!=-1||a2.indexOf("userType=VCDataStore")!=-1))||a2.indexOf("EgCitrixDashCloud.jsp")!=-1)){document.location=a2+"&uedOverviewType="+uedOverviewType;
}else{zoneName=requestParams.zoneName;aE=requestParams.parentZone;if(!Ext.isEmpty(zoneName)&&zoneName!=null&&zoneName!="null"){if(zoneName!=aE){document.location="/final/monitor/zoneDash.jsp?selectedParam="+zoneName+"&currentTab=details&fromHomepage="+av+"&parentZone="+aE;}else{document.location="/final/monitor/zoneDash.jsp?selectedParam="+zoneName+"&currentTab=details&fromHomepage="+av;
}}else{if(av=="true"){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard";}else{window.history.go(-1);}}}}}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard";}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else{if(!Ext.isEmpty(requestParams.refresh)&&requestParams.refresh=="true"){window.history.go(-2);
}else{window.history.go(-1);}}if(a2.indexOf("resultpage=measures")>-1){document.location=a2;}},createToolbarCombo:function(a){var c=this;var b="/final/monitor/egDashBoardDispCompLayersDropdown.jsp?comptype="+requestParams.componentDashboardComptype+"&host="+requestParams.componentDashboardHost+"&isHostlevelTest="+isHostlevelTest+"&dashBoardCompName="+requestParams.componentDashboardHost+"&dashBoardCompType="+hostTypeEncoded+"&site="+encodeURI(requestParams.site);
Ext.Ajax.request({url:b,scope:this,disableCaching:false,timeout:280000,success:function(e){var j=e.responseText;var g=Ext.decode(j);var f=this.getComponenttabpanel();var d=f.getActiveTab();if(!Ext.isEmpty(g.compTypeText)){c.getComponentCombo().getStore().loadRawData(g.compTypeOptions);c.getComponentCombo().setValue((!Ext.isEmpty(a))?a:g.compTypeValue);
selected_comp=g.compTypeValue;selected_compTypeText=g.compTypeText;$("#componentsDropDown-inputEl").addClass("state_"+g.compTypeState);c.getComponentCombo().setFieldLabel(g.compTypeText);c.getComponentTypeCombo().hide();c.getComponentNameCombo().hide();c.getComponentCombo().show();}else{if(!Ext.isEmpty(g.serverTypeText)&&!Ext.isEmpty(g.serverNameText)){c.getComponentTypeCombo().getStore().loadRawData(g.serverTypeOptions);
c.getComponentTypeCombo().setValue(g.serverTypeValue);selected_serverTypeText=g.serverTypeText;$("#componentTypeCombo-inputEl").addClass("state_"+g.serverTypeState);selected_compType=g.serverTypeValue;c.getComponentTypeCombo().setFieldLabel(g.serverTypeText);c.getComponentTypeCombo().show();c.getComponentCombo().hide();
c.getComponentNameCombo().getStore().loadRawData(g.serverNameOptions);c.getComponentNameCombo().setValue(g.serverNameValue);selected_serverNameText=g.serverNameText;$("#componentNameCombo-inputEl").addClass("state_"+g.serverNameState);c.getComponentNameCombo().setFieldLabel(g.serverNameText);c.getComponentNameCombo().show();
}}var d=this.getComponenttabpanel().getActiveTab();if(!Ext.isEmpty(d.getEl())){d.getEl().unmask();}},failure:function(){var d=this.getComponenttabpanel().getActiveTab();if(!Ext.isEmpty(d.getEl())){d.getEl().unmask();}}});},createToolbarItems:function(){var b=this.getComponenttabpanel();var a=b.getActiveTab();
},alarmPolicyChange:function(){var a=Ext.getCmp("alarmPolicyCombo").getValue();var b=publicJson["alarmPolicyDescriptionObj"][a];Ext.getCmp("alarmDispField").setValue(b);},maxStaticFieldChange:function(b){var a=Ext.getCmp("maxStaticCheck").getValue();copyField=Ext.getCmp(b.id);if(a){copyField.reset();
}else{copyField.clearInvalid();}},maxAutoFieldChange:function(b){var a=Ext.getCmp("maxAutoCheck").getValue();copyField=Ext.getCmp(b.id);if(a){copyField.reset();}else{copyField.clearInvalid();}},minStaticFieldChange:function(b){var a=Ext.getCmp("minStaticCheck").getValue();copyField=Ext.getCmp(b.id);if(a){copyField.reset();
}else{copyField.clearInvalid();}},minAutoFieldChange:function(b){var a=Ext.getCmp("minAutoCheck").getValue();copyField=Ext.getCmp(b.id);if(a){copyField.reset();}else{copyField.clearInvalid();}},maxStaticCheckChange:function(d,j){if(publicJson.isToolTip&&!j){Ext.getCmp("absMaxCritical").setFieldLabel('Critical <img data-qtip="'+publicJson.toolTipMsg.toolTipCritical+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');
Ext.getCmp("absMaxMajor").setFieldLabel('Major <img data-qtip="'+publicJson.toolTipMsg.toolTipMajor+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');}else{Ext.getCmp("absMaxCritical").setFieldLabel(criticalText);Ext.getCmp("absMaxMajor").setFieldLabel(majorText);
}Ext.getCmp("allMeasureContainer").hide();var l=d.ownerCt;Ext.Array.forEach(l.query("textfield"),this.maxStaticFieldChange,this);Ext.Array.forEach(l.query("textfield"),function(m){m.setDisabled(j);if(!Ext.isIE6){m.el.animate({opacity:j?0.3:1});}});var f=false;var c=publicJson["applyOtherMeasure_check_box"];
if(c!=null&&c!="undefined"&&(c=="true")){f=true;}if(j&&f){var g=Ext.getCmp("minStaticCheck").getValue();var b=Ext.getCmp("minAutoCheck").getValue();var a=Ext.getCmp("maxStaticCheck").getValue();var e=Ext.getCmp("maxAutoCheck").getValue();if(g&&b&&a&&e){Ext.getCmp("allMeasureContainer").show();}else{Ext.getCmp("allMeasureContainer").hide();
}}},maxAutoCheckChange:function(d,j){if(publicJson.isToolTip&&!j){Ext.getCmp("relMaxCritical").setFieldLabel('Critical (% Tolerance) <img data-qtip="'+publicJson.toolTipMsg.toolTipCritical+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');Ext.getCmp("relMaxMajor").setFieldLabel('Major (% Tolerance) <img data-qtip="'+publicJson.toolTipMsg.toolTipMajor+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');
}else{Ext.getCmp("relMaxCritical").setFieldLabel(autoCriText);Ext.getCmp("relMaxMajor").setFieldLabel(autoMajorText);}Ext.getCmp("allMeasureContainer").hide();var l=d.ownerCt;Ext.Array.forEach(l.query("slider"),this.maxAutoFieldChange,this);Ext.Array.forEach(l.query("slider"),function(m){m.setDisabled(j);
if(!Ext.isIE6){m.el.animate({opacity:j?0.3:1});}});Ext.Array.forEach(l.query("displayfield"),this.minAutoFieldChange,this);Ext.Array.forEach(l.query("displayfield"),function(m){if(m.id=="maxThreshDisplayField"){}else{m.setDisabled(j);if(!Ext.isIE6){m.el.animate({opacity:j?0.3:1});}}});var f=false;var c=publicJson["applyOtherMeasure_check_box"];
if(c!=null&&c!="undefined"&&(c=="true")){f=true;}if(j&&f){var g=Ext.getCmp("minStaticCheck").getValue();var b=Ext.getCmp("minAutoCheck").getValue();var a=Ext.getCmp("maxStaticCheck").getValue();var e=Ext.getCmp("maxAutoCheck").getValue();if(g&&b&&a&&e){Ext.getCmp("allMeasureContainer").show();}else{Ext.getCmp("allMeasureContainer").hide();
}}},minStaticCheckChange:function(d,j){if(publicJson.isToolTip&&!j){Ext.getCmp("absMinCritical").setFieldLabel('Critical <img data-qtip="'+publicJson.toolTipMsg.toolTipCritical+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');Ext.getCmp("absMinMajor").setFieldLabel('Major <img data-qtip="'+publicJson.toolTipMsg.toolTipMajor+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');
}else{Ext.getCmp("absMinCritical").setFieldLabel(criticalText);Ext.getCmp("absMinMajor").setFieldLabel(majorText);}Ext.getCmp("allMeasureContainer").hide();var l=d.ownerCt;Ext.Array.forEach(l.query("textfield"),this.minStaticFieldChange,this);Ext.Array.forEach(l.query("textfield"),function(m){m.setDisabled(j);
if(!Ext.isIE6){m.el.animate({opacity:j?0.3:1});}});var f=false;var c=publicJson["applyOtherMeasure_check_box"];if(c!=null&&c!="undefined"&&(c=="true")){f=true;}if(j&&f){var g=Ext.getCmp("minStaticCheck").getValue();var b=Ext.getCmp("minAutoCheck").getValue();var a=Ext.getCmp("maxStaticCheck").getValue();
var e=Ext.getCmp("maxAutoCheck").getValue();if(g&&b&&a&&e){Ext.getCmp("allMeasureContainer").show();}else{Ext.getCmp("allMeasureContainer").hide();}}},minAutoCheckChange:function(d,j){if(publicJson.isToolTip&&!j){Ext.getCmp("relMinCritical").setFieldLabel('Critical (% Tolerance) <img data-qtip="'+publicJson.toolTipMsg.toolTipCritical+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');
Ext.getCmp("relMinMajor").setFieldLabel('Major (% Tolerance) <img data-qtip="'+publicJson.toolTipMsg.toolTipMajor+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');}else{Ext.getCmp("relMinCritical").setFieldLabel(autoCriText);Ext.getCmp("relMinMajor").setFieldLabel(autoMajorText);
}Ext.getCmp("allMeasureContainer").hide();var l=d.ownerCt;Ext.Array.forEach(l.query("slider"),this.minAutoFieldChange,this);Ext.Array.forEach(l.query("slider"),function(m){m.setDisabled(j);if(!Ext.isIE6){m.el.animate({opacity:j?0.3:1});}});Ext.Array.forEach(l.query("displayfield"),this.minAutoFieldChange,this);
Ext.Array.forEach(l.query("displayfield"),function(m){if(m.id=="minThreshDisplayField"){}else{m.setDisabled(j);if(!Ext.isIE6){m.el.animate({opacity:j?0.3:1});}}});var f=false;var c=publicJson["applyOtherMeasure_check_box"];if(c!=null&&c!="undefined"&&(c=="true")){f=true;}if(j&&f){var g=Ext.getCmp("minStaticCheck").getValue();
var b=Ext.getCmp("minAutoCheck").getValue();var a=Ext.getCmp("maxStaticCheck").getValue();var e=Ext.getCmp("maxAutoCheck").getValue();if(g&&b&&a&&e){Ext.getCmp("allMeasureContainer").show();}else{Ext.getCmp("allMeasureContainer").hide();}}},applyThresholdsData:function(){var T=true;var s=publicJson["hiddenObj"]["testName"];
if(s=="null"){T=false;return false;}var ao=publicJson["hiddenObj"]["measure"];if(ao=="null"){T=false;return false;}var L="mix";var ah="-1";var D="-1";var Z=Ext.getCmp("alarmPolicyCombo").getValue();var ab="HML";var aa="-";var M="-";var x="-";var A=Ext.getCmp("minStaticCheck").getValue();var t=publicJson["isNegativeValuesAllowed"];
if(!A){aa=Ext.getCmp("absMinCritical").getValue();M=Ext.getCmp("absMinMajor").getValue();x=Ext.getCmp("absMinMinor").getValue();if(!t){if(!checkValidValue(aa)){Ext.Msg.show({title:pageName,msg:staticMinCriticalErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();
}});T=false;return false;}else{if(aa!="-"){if(!checkNonNegativeFormat(aa)){Ext.Msg.show({title:pageName,msg:staticMinCriticalErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();
}});T=false;return false;}}}if(!checkValidValue(M)){Ext.Msg.show({title:pageName,msg:staticMinMajorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();}});T=false;return false;}else{if(M!="-"){if(!checkNonNegativeFormat(M)){Ext.Msg.show({title:pageName,msg:staticMinMajorErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();
}});T=false;return false;}}}if(!checkValidValue(x)){Ext.Msg.show({title:pageName,msg:staticMinMinorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMinor").focus();}});T=false;return false;}else{if(x!="-"){if(!checkNonNegativeFormat(x)){Ext.Msg.show({title:pageName,msg:staticMinMinorErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMinor").focus();
}});T=false;return false;}}}var R=checkNegativeValue(aa);if(R){Ext.Msg.show({title:pageName,msg:errMsg5+" '"+ao+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();}});T=false;return false;}R=checkNegativeValue(M);if(R){Ext.Msg.show({title:pageName,msg:errMsg5+" '"+ao+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();
}});T=false;return false;}R=checkNegativeValue(x);if(R){Ext.Msg.show({title:pageName,msg:errMsg5+" '"+ao+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMinor").focus();}});T=false;return false;}}else{if(!checkValidValue(aa)){Ext.Msg.show({title:pageName,msg:staticMinCriticalErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();
}});T=false;return false;}else{if(aa!="-"){if(!checkNegativeFormat(aa)){Ext.Msg.show({title:pageName,msg:staticMinCriticalErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();
}});T=false;return false;}}}if(!checkValidValue(M)){Ext.Msg.show({title:pageName,msg:staticMinMajorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();}});T=false;return false;}else{if(M!="-"){if(!checkNegativeFormat(M)){Ext.Msg.show({title:pageName,msg:staticMinMajorErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();
}});T=false;return false;}}}if(!checkValidValue(x)){Ext.Msg.show({title:pageName,msg:staticMinMinorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMinor").focus();}});T=false;return false;}else{if(x!="-"){if(!checkNegativeFormat(x)){Ext.Msg.show({title:pageName,msg:staticMinMinorErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMinor").focus();
}});T=false;return false;}}}}if(aa!="-"&&M!="-"){if(parseFloat(aa)>=parseFloat(M)){Ext.Msg.show({title:pageName,msg:errMsg7,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();}});T=false;return false;}}if(M!="-"&&x!="-"){if(parseFloat(M)>=parseFloat(x)){Ext.Msg.show({title:pageName,msg:errMsg7,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinMajor").focus();
}});T=false;return false;}}if(aa!="-"&&x!="-"){if(parseFloat(aa)>=parseFloat(x)){Ext.Msg.show({title:pageName,msg:errMsg7,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMinCritical").focus();}});T=false;return false;}}}var C="-";var N="-";var y="-";var c=Ext.getCmp("minAutoCheck").getValue();
if(!c){var o=Ext.getCmp("relMinCriticalText").getValue();if(o!=0){if(o==100){C="sqc";}else{C=(o/100)+"*sqc";}}var m=Ext.getCmp("relMinMajorText").getValue();if(m!=0){if(m==100){N="sqc";}else{N=(m/100)+"*sqc";}}var l=Ext.getCmp("relMinMinorText").getValue();if(l!=0){if(l==100){y="sqc";}else{y=(l/100)+"*sqc";
}}var G,ai,r;G=C;ai=N;r=y;G=G.replace(/(\*sqc)/gi,"");G=G.replace(/sqc/g,"1");ai=ai.replace(/(\*sqc)/gi,"");ai=ai.replace(/sqc/g,"1");r=r.replace(/(\*sqc)/gi,"");r=r.replace(/sqc/g,"1");if(G!="-"&&ai!="-"){if(parseFloat(G)>=parseFloat(ai)){Ext.Msg.show({title:pageName,msg:errMsg8,buttons:Ext.Msg.OK,icon:"iconExclamation"});
T=false;return false;}}if(ai!="-"&&r!="-"){if(parseFloat(ai)>=parseFloat(r)){Ext.Msg.show({title:pageName,msg:errMsg8,buttons:Ext.Msg.OK,icon:"iconExclamation"});T=false;return false;}}if(G!="-"&&r!="-"){if(parseFloat(G)>=parseFloat(r)){Ext.Msg.show({title:pageName,msg:errMsg8,buttons:Ext.Msg.OK,icon:"iconExclamation"});
T=false;return false;}}}if(aa.indexOf(".")!=-1){var af=aa.substring(aa.indexOf(".")+1);if(af=="0000"||af=="000"||af=="00"||af=="0"){aa=aa.substring(0,aa.indexOf("."));}else{if(af.length>1){if((af.charAt(3)=="0"&&af.charAt(2)=="0")||(af.charAt(3)=="0")){aa=aa.substring(0,aa.lastIndexOf("0"));}}}}if(M.indexOf(".")!=-1){var O=M.substring(M.indexOf(".")+1);
if(O=="0000"||O=="000"||O=="00"||O=="0"){M=M.substring(0,M.indexOf("."));}else{if(O.length>1){if((O.charAt(3)=="0"&&O.charAt(2)=="0")||(O.charAt(3)=="0")){M=M.substring(0,M.lastIndexOf("0"));}}}}if(x.indexOf(".")!=-1){var am=x.substring(x.indexOf(".")+1);if(am=="0000"||am=="000"||am=="00"||am=="0"){x=x.substring(0,x.indexOf("."));
}else{if(am.length>1){if((am.charAt(3)=="0"&&am.charAt(2)=="0")||(am.charAt(3)=="0")){x=x.substring(0,x.lastIndexOf("0"));}}}}var f="-";if(aa!="-"&&C!="-"){if(aa>-1||aa<0){if(aa.indexOf(".")==0){aa="0"+aa;}aa=parseFloat(aa);f=aa.toString()+"&"+C;}else{f=C;}}else{if(aa!="-"&&C=="-"){if(aa>-1||aa<0){if(aa.indexOf(".")==0){aa="0"+aa;
}aa=parseFloat(aa);f=aa.toString();}else{f="-";}}else{if(aa=="-"&&C!="-"){f=C;}}}var S="-";if(M!="-"&&N!="-"){if(M>-1||M<0){if(M.indexOf(".")==0){M="0"+M;}M=parseFloat(M);S=M.toString()+"&"+N;}else{S=N;}}else{if(M!="-"&&N=="-"){if(M>-1||M<0){if(M.indexOf(".")==0){M="0"+M;}M=parseFloat(M);S=M.toString();
}else{S="-";}}else{if(M=="-"&&N!="-"){S=N;}}}var E="-";if(x!="-"&&y!="-"){if(x>-1||x<0){if(x.indexOf(".")==0){x="0"+x;}x=parseFloat(x);E=x.toString()+"&"+y;}else{E=y;}}else{if(x!="-"&&y=="-"){if(x>-1||x<0){if(x.indexOf(".")==0){x="0"+x;}x=parseFloat(x);E=x.toString();}else{E="-";}}else{if(x=="-"&&y!="-"){E=y;
}}}if(f!="-"||S!="-"||E!="-"){ah=f+"/"+S+"/"+E;}var w="-";var U="-";var J="-";var X=Ext.getCmp("maxStaticCheck").getValue();if(!X){w=Ext.getCmp("absMaxCritical").getValue();U=Ext.getCmp("absMaxMajor").getValue();J=Ext.getCmp("absMaxMinor").getValue();if(!t){if(!checkValidValue(w)){Ext.Msg.show({title:pageName,msg:staticMaxCriticalErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();
}});T=false;return false;}else{if(w!="-"){if(!checkNonNegativeFormat(w)){Ext.Msg.show({title:pageName,msg:staticMaxCriticalErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();
}});T=false;return false;}}}if(!checkValidValue(U)){Ext.Msg.show({title:pageName,msg:staticMaxMajorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();}});T=false;return false;}else{if(U!="-"){if(!checkNonNegativeFormat(U)){Ext.Msg.show({title:pageName,msg:staticMaxMajorErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();
}});T=false;return false;}}}if(!checkValidValue(J)){Ext.Msg.show({title:pageName,msg:staticMaxMinorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMinor").focus();}});T=false;return false;}else{if(J!="-"){if(!checkNonNegativeFormat(J)){Ext.Msg.show({title:pageName,msg:staticMaxMinorErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMinor").focus();
}});T=false;return false;}}}var R=checkNegativeValue(w);if(R){Ext.Msg.show({title:pageName,msg:errMsg11+" '"+ao+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();}});T=false;return false;}R=checkNegativeValue(U);if(R){Ext.Msg.show({title:pageName,msg:errMsg11+" '"+ao+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();
}});T=false;return false;}R=checkNegativeValue(J);if(R){Ext.Msg.show({title:pageName,msg:errMsg11+" '"+ao+"' "+errMsg6,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMinor").focus();}});T=false;return false;}}else{if(!checkValidValue(w)){Ext.Msg.show({title:pageName,msg:staticMaxCriticalErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();
}});T=false;return false;}else{if(w!="-"){if(!checkNegativeFormat(w)){Ext.Msg.show({title:pageName,msg:staticMaxCriticalErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();
}});T=false;return false;}}}if(!checkValidValue(U)){Ext.Msg.show({title:pageName,msg:staticMaxMajorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();}});T=false;return false;}else{if(U!="-"){if(!checkNegativeFormat(U)){Ext.Msg.show({title:pageName,msg:staticMaxMajorErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();
}});T=false;return false;}}}if(!checkValidValue(J)){Ext.Msg.show({title:pageName,msg:staticMaxMinorErrMsg1,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMinor").focus();}});T=false;return false;}else{if(J!="-"){if(!checkNegativeFormat(J)){Ext.Msg.show({title:pageName,msg:staticMaxMinorErrMsg1+".<br />"+errMsg1+" : <br />"+"1) "+errMsg2+".<br />"+"2) "+errMsg3+".<br />"+"3) "+errMsg4+".",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMinor").focus();
}});T=false;return false;}}}}if(w!="-"&&U!="-"){if(parseFloat(w)<=parseFloat(U)){Ext.Msg.show({title:pageName,msg:errMsg9,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();}});T=false;return false;}}if(U!="-"&&J!="-"){if(parseFloat(U)<=parseFloat(J)){Ext.Msg.show({title:pageName,msg:errMsg9,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxMajor").focus();
}});T=false;return false;}}if(w!="-"&&J!="-"){if(parseFloat(w)<=parseFloat(J)){Ext.Msg.show({title:pageName,msg:errMsg9,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("absMaxCritical").focus();}});T=false;return false;}}}var ap="-";var W="-";var K="-";var V=Ext.getCmp("maxAutoCheck").getValue();
if(!V){var j=Ext.getCmp("relMaxCriticalText").getValue();if(j!=0){if(j==100){ap="sqc";}else{ap=(j/100)+"*sqc";}}var g=Ext.getCmp("relMaxMajorText").getValue();if(g!=0){if(g==100){W="sqc";}else{W=(g/100)+"*sqc";}}var e=Ext.getCmp("relMaxMinorText").getValue();if(e!=0){if(e==100){K="sqc";}else{K=(e/100)+"*sqc";
}}var G,ai,r;G=ap;ai=W;r=K;G=G.replace(/(\*sqc)/gi,"");G=G.replace(/sqc/g,"1");ai=ai.replace(/(\*sqc)/gi,"");ai=ai.replace(/sqc/g,"1");r=r.replace(/(\*sqc)/gi,"");r=r.replace(/sqc/g,"1");if(G!="-"&&ai!="-"){if(parseFloat(G)<=parseFloat(ai)){Ext.Msg.show({title:pageName,msg:errMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation"});
T=false;return false;}}if(ai!="-"&&r!="-"){if(parseFloat(ai)<=parseFloat(r)){Ext.Msg.show({title:pageName,msg:errMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation"});T=false;return false;}}if(G!="-"&&r!="-"){if(parseFloat(G)<=parseFloat(r)){Ext.Msg.show({title:pageName,msg:errMsg10,buttons:Ext.Msg.OK,icon:"iconExclamation"});
T=false;return false;}}}if(w.indexOf(".")!=-1){var b=w.substring(w.indexOf(".")+1);if(b=="0000"||b=="000"||b=="00"||b=="0"){w=w.substring(0,w.indexOf("."));}else{if(b.length>1){if((b.charAt(3)=="0"&&b.charAt(2)=="0")||(b.charAt(3)=="0")){w=w.substring(0,w.lastIndexOf("0"));}}}}if(U.indexOf(".")!=-1){var ae=U.substring(U.indexOf(".")+1);
if(ae=="0000"||ae=="000"||ae=="00"||ae=="0"){U=U.substring(0,U.indexOf("."));}else{if(ae.length>1){if((ae.charAt(3)=="0"&&ae.charAt(2)=="0")||(ae.charAt(3)=="0")){U=U.substring(0,U.lastIndexOf("0"));}}}}if(J.indexOf(".")!=-1){var d=J.substring(J.indexOf(".")+1);if(d=="0000"||d=="000"||d=="00"||d=="0"){J=J.substring(0,J.indexOf("."));
}else{if(d.length>1){if((d.charAt(3)=="0"&&d.charAt(2)=="0")||(d.charAt(3)=="0")){J=J.substring(0,J.lastIndexOf("0"));}}}}var Y="-";if(w!="-"&&ap!="-"){if(w>-1||w<0){if(w.indexOf(".")==0){w="0"+w;}w=parseFloat(w);Y=w.toString()+"&"+ap;}else{Y=ap;}}else{if(w!="-"&&ap=="-"){if(w>-1||w<0){if(w.indexOf(".")==0){w="0"+w;
}w=parseFloat(w);Y=w.toString();}else{Y="-";}}else{if(w=="-"&&ap!="-"){Y=ap;}}}var ad="-";if(U!="-"&&W!="-"){if(U>-1||U<0){if(U.indexOf(".")==0){U="0"+U;}U=parseFloat(U);ad=U.toString()+"&"+W;}else{ad=W;}}else{if(U!="-"&&W=="-"){if(U>-1||+U<0){if(U.indexOf(".")==0){U="0"+U;}U=parseFloat(U);ad=U.toString();
}else{ad="-";}}else{if(U=="-"&&W!="-"){ad=W;}}}var P="-";if(J!="-"&&K!="-"){if(J>-1||J<0){if(J.indexOf(".")==0){J="0"+J;}J=parseFloat(J);P=J.toString()+"&"+K;}else{P=K;}}else{if(J!="-"&&K=="-"){if(J>-1||J<0){if(J.indexOf(".")==0){J="0"+J;}J=parseFloat(J);P=J.toString();}else{P="-";}}else{if(J=="-"&&K!="-"){P=K;
}}}if(Y!="-"||ad!="-"||P!="-"){D=Y+"/"+ad+"/"+P;}if(T){var z=this;var an=null;var Q=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(Q))){an=new Ext.LoadMask(Ext.get(Q),{msg:"Loading...",cls:"maskDash"});an.show();}var u=ao+":"+L+":"+ah+":"+D+":"+Z+":"+ab;var a="";var ac="";if(!Ext.isEmpty(threshTypeVar)&&threshTypeVar!=undefined&&threshTypeVar=="DefaultDescriptor"){if(isGlobalWithInfoPattern){var ag=publicJson["selectedDescriptor"];
al=ag;var H=Ext.getCmp("allMeasureCheck").getValue();var ak="";if(H){ak="true";}a="testName="+s+"&descName="+encodeURIComponent(parent.filterEncode(ag))+"&threshold="+escape(u)+"&operation=updateThresholds&allMeasure="+ak;ac="/final/admin/DescriptorPatternThreshold/data/EgApplyDescThresholds.jsp?referrerModule=monitor&"+a+"&com.eg.CSRF_NONCE="+csrfToken;
}else{var aj="";var n="";var F=s;var al="";var v=publicJson["hiddenObj"]["from"];var aq=publicJson["hiddenObj"]["componentType"];if(aq!=null&&!Ext.isEmpty(aq)){aj=aq;}tmpCompName=publicJson["hiddenObj"]["componentName"];if(tmpCompName!=null&&!Ext.isEmpty(tmpCompName)){n=tmpCompName;}tmpTestName=publicJson["hiddenObj"]["testName"];
if(tmpTestName!=null&&!Ext.isEmpty(tmpTestName)){F=tmpTestName;}tmpDescName=publicJson["hiddenObj"]["descriptorName"];if(tmpDescName!=null&&!Ext.isEmpty(tmpDescName)){al=tmpDescName;}a="componentType="+encodeURI(aj)+"&componentName="+encodeURI(n)+"&testName="+encodeURIComponent(s)+"&descriptorName="+encodeURIComponent(parent.filterEncode(al))+"&from="+v+"&threshold="+escape(u)+"&operation=updateThresholds";
ac="/final/admin/SpecificThreshold/data/EgApplySpecificThresholds.jsp?referrerModule=monitor&"+a+"&com.eg.CSRF_NONCE="+csrfToken;}}else{if(!Ext.isEmpty(threshTypeVar)&&threshTypeVar!=undefined&&threshTypeVar=="Global"){var I=publicJson["hiddenObj"]["componentType"];a="componentType="+I+"&testName="+s+"&threshold="+escape(u)+"&operation=updateThresholds";
ac="/final/admin/DefaultThreshold/data/EgApplyThresholds.jsp?referrerModule=monitor&"+a+"&com.eg.CSRF_NONCE="+csrfToken;}else{if(!Ext.isEmpty(threshTypeVar)&&threshTypeVar!=undefined&&threshTypeVar=="Group"){var B=publicJson["hiddenObj"]["strPolicyName"];a="policyName="+encodeURIComponent(parent.filterEncode(B))+"&testName="+s+"&threshold="+escape(u)+"&operation=updateThresholds";
var aj="";var n="";var F=s;var al="";var v=publicJson["hiddenObj"]["from"];var aq=publicJson["hiddenObj"]["componentType"];if(aq!=null&&!Ext.isEmpty(aq)){aj=aq;}tmpCompName=publicJson["hiddenObj"]["componentName"];if(tmpCompName!=null&&!Ext.isEmpty(tmpCompName)){n=tmpCompName;}tmpTestName=publicJson["hiddenObj"]["testName"];
if(tmpTestName!=null&&!Ext.isEmpty(tmpTestName)){F=tmpTestName;}tmpDescName=publicJson["hiddenObj"]["descriptorName"];if(tmpDescName!=null&&!Ext.isEmpty(tmpDescName)){al=tmpDescName;}a="componentType="+encodeURI(aj)+"&componentName="+encodeURI(n)+"&testName="+encodeURIComponent(s)+"&descriptorName="+encodeURIComponent(parent.filterEncode(al))+"&from="+v+"&threshold="+escape(u)+"&operation=updateThresholds";
ac="/final/admin/SpecificThreshold/data/EgApplySpecificThresholds.jsp?referrerModule=monitor&"+a+"&com.eg.CSRF_NONCE="+csrfToken;}else{var aj="";var n="";var F=s;var al="";var v=publicJson["hiddenObj"]["from"];var aq=publicJson["hiddenObj"]["componentType"];if(aq!=null&&!Ext.isEmpty(aq)){aj=aq;}tmpCompName=publicJson["hiddenObj"]["componentName"];
if(tmpCompName!=null&&!Ext.isEmpty(tmpCompName)){n=tmpCompName;}tmpTestName=publicJson["hiddenObj"]["testName"];if(tmpTestName!=null&&!Ext.isEmpty(tmpTestName)){F=tmpTestName;}tmpDescName=publicJson["hiddenObj"]["descriptorName"];if(tmpDescName!=null&&!Ext.isEmpty(tmpDescName)){al=tmpDescName;}a="componentType="+encodeURI(aj)+"&componentName="+encodeURI(n)+"&testName="+encodeURIComponent(s)+"&descriptorName="+encodeURIComponent(parent.filterEncode(al))+"&from="+v+"&threshold="+escape(u)+"&operation=updateThresholds";
ac="/final/admin/SpecificThreshold/data/EgApplySpecificThresholds.jsp?referrerModule=monitor&"+a+"&com.eg.CSRF_NONCE="+csrfToken;}}}Ext.Ajax.request({url:ac,method:"POST",timeout:6000000000,scope:this,success:function(ar){if(ar.status==200&&!Ext.isEmpty(ar.responseText)){an.hide();Ext.Msg.alert(pageName,successAlert1,function(){var au=null;
var at=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(at))){au=new Ext.LoadMask(Ext.get(at),{msg:"Updating the changes...",cls:"maskDash"});au.show();}z.getConfigureThresholds().close();setTimeout(function(){au.hide();z.getTestInfo().close();z.openTestInfoWindow(testInfoGlobalURL);},5000);
});}},failure:function(ar){an.hide();Ext.Msg.show({title:pageName,msg:"Updating problem in server side...",icon:"iconExclamation",buttons:Ext.Msg.OK});}});}},maxRelCriticalSlider:function(){Ext.getCmp("relMaxCriticalText").setValue(Ext.getCmp("relMaxCritical").getValue());},maxRelMajorSlider:function(){Ext.getCmp("relMaxMajorText").setValue(Ext.getCmp("relMaxMajor").getValue());
},maxRelMinorSlider:function(){Ext.getCmp("relMaxMinorText").setValue(Ext.getCmp("relMaxMinor").getValue());},minRelCriticalSlider:function(){Ext.getCmp("relMinCriticalText").setValue(Ext.getCmp("relMinCritical").getValue());},minRelMajorSlider:function(){Ext.getCmp("relMinMajorText").setValue(Ext.getCmp("relMinMajor").getValue());
},minRelMinorSlider:function(){Ext.getCmp("relMinMinorText").setValue(Ext.getCmp("relMinMinor").getValue());},getHiddenFields:function(a,c){var d=a[c.trim()];var b="";for(key in d){if(key.toLowerCase()=="strdescname"){b+=key+"="+encodeURIComponent(parent.filterEncode(d[key]))+"&";}else{b+=key+"="+encodeURIComponent(d[key])+"&";
}}return b;},getHiddenFieldsForMeasure:function(a,c){var d=a[c.trim()];var b="";for(key in d){b+=key+"="+encodeURIComponent(d[key])+"&";}return b;},configureMainRender:function(u,g,n){var s=this;var a="";if(!Ext.isEmpty(g)&&g!=undefined&&g=="DefaultDescriptor"){var d=u.hiddenObj.strTestName;var v=u.hiddenObj.strDescName;
var c=u.hiddenObj.measCount;var f=u.hiddenObj.strServer;var t=u.hiddenObj.component;var l=this.getHiddenFields(u.hiddenDataObj,n.trim());a="/final/admin/DescriptorPatternThreshold/data/EgConfigureDescThresholdsJson.jsp?referrerModule=monitor&thruLayer=true&testName="+d+"&descName="+encodeURIComponent(parent.filterEncode(v))+"&measCount="+c+"&com.eg.CSRF_NONCE="+csrfToken;
if(!Ext.isEmpty(f)){a+="&strServer="+f;}if(!Ext.isEmpty(t)){a+="&component="+t;}if(!Ext.isEmpty(l)){a+="&"+l;}}else{if(!Ext.isEmpty(g)&&g!=undefined&&g=="Global"){var l=this.getHiddenFields(u.hiddenDataObj,n.trim());a="/final/admin/DefaultThreshold/data/EgConfigureThresholdsJson.jsp?referrerModule=monitor&";
var f=u.hiddenObj.strServer;var t=u.hiddenObj.component;if(!Ext.isEmpty(l)){a+=l;}a=a+"&com.eg.CSRF_NONCE="+csrfToken+"&thruLayer=true";if(!Ext.isEmpty(f)){a+="&strServer="+f;}if(!Ext.isEmpty(t)){a+="&component="+t;}}else{if(!Ext.isEmpty(g)&&g!=undefined&&g=="Group"){var r=u.hiddenObj.server;var b=u.hiddenObj.component;
var d=u.hiddenObj.testName;var l=this.getHiddenFieldsForMeasure(u.hiddenDataObj,n.trim());a="/final/admin/GroupThreshold/data/EgConfigureGroupThresholdsJson.jsp?referrerModule=monitor&thruLayer=true&specthreshpage=yes&testName="+d+"&strServer="+r+"&component="+b+"&comeFrom=admin"+"&com.eg.CSRF_NONCE="+csrfToken;
if(!Ext.isEmpty(l)){a+="&"+l;}}else{params="";var j="";var r=u.hiddenObj.componentType;var b=u.hiddenObj.componentName;var d=u.hiddenObj.testName;var o=u.hiddenObj.descriptorName;var m=u.hiddenObj.isRefine;var e=u.hiddenObj.comeFrom;if(!Ext.isEmpty(r)&&r!=undefined){j="componentType="+r+"&server="+r;
}if(!Ext.isEmpty(b)&&b!=undefined){j+="&componentName="+encodeURIComponent(b);}if(!Ext.isEmpty(d)&&d!=undefined){j+="&testName="+d;}if(!Ext.isEmpty(o)&&o!=undefined){j+="&descriptorName="+encodeURIComponent(parent.filterEncode(o));}if(!Ext.isEmpty(threshTypeVar)&&threshTypeVar!=undefined){if(threshTypeVar=="Specific"||threshTypeVar=="Descriptor"){j+="&from=specificTest";
}else{if(threshTypeVar=="Group"){j+="&from=grpRuleTest";}else{if(threshTypeVar=="DefaultDescriptor"){j+="&from=defaultDescriptorTest";}else{j+="&from=defaultTest";}}}}if(!Ext.isEmpty(m)&&m!=undefined){j+="&isRefine="+m;}if(!Ext.isEmpty(e)&&e!=undefined){j+="&comeFrom="+e;}if(j!=null&&j.length>0){params=j;
}a="/final/admin/SpecificThreshold/data/EgConfigureSpecificThresholdsJson.jsp?referrerModule=monitor&"+params+"&com.eg.CSRF_NONCE="+csrfToken+"&thruLayer=true";var l=this.getHiddenFields(u.hiddenDataObj,n.trim());if(!Ext.isEmpty(l)){a+="&"+l;}}}}Ext.Ajax.request({url:a,method:"POST",scope:this,timeout:280000,success:function(A){var D=A.responseText;
publicJson=Ext.decode(D);s.getConfigureThresholds().show();var y="";if(g=="Specific"||g=="Descriptor"||g=="Default"){y=publicJson["screenLabels"]["disp_title"];}else{y=publicJson["screenLabels"]["test_description"];}s.clearAllThresholdsValues();if(Ext.getCmp("allMeasureContainer").isVisible()){Ext.getCmp("allMeasureContainer").hide();
}var R=publicJson.isToolTip;var I=Ext.getCmp("testDescriptionId");var w=publicJson["alarmPolicyArr"];var Y=publicJson["minThreshObj"];var M=publicJson["maxThreshObj"];var E=publicJson["selectedAlarmType"];var L=publicJson["selectedAlarmDescription"];var F=publicJson["isNegativeValuesAllowed"];var z=publicJson["isGlobalThresholds"];
if(z){Ext.getCmp("minAutoCheck").hide();Ext.getCmp("minAutoFieldContainer").hide();Ext.getCmp("maxAutoCheck").hide();Ext.getCmp("maxAutoFieldContainer").hide();}var ag=Y.minStaticOption;var S=Y.minStaticBlock;if(ag!=null&&!Ext.isEmpty(ag)&&ag=="selected"){if(R){Ext.getCmp("absMinCritical").setFieldLabel('Critical <img data-qtip="'+publicJson.toolTipMsg.toolTipCritical+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');
Ext.getCmp("absMinMajor").setFieldLabel('Major <img data-qtip="'+publicJson.toolTipMsg.toolTipMajor+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');}else{Ext.getCmp("absMinCritical").setFieldLabel(criticalText);Ext.getCmp("absMinMajor").setFieldLabel(majorText);
}var T=Y.absMinCritical;var ab=Y.absMinMajor;var V=Y.absMinMinor;Ext.getCmp("minStaticCheck").setValue(false);Ext.getCmp("absMinCritical").setValue(T);Ext.getCmp("absMinMajor").setValue(ab);Ext.getCmp("absMinMinor").setValue(V);}if(!z){if(!F){var H=Y.minAutomaticOption;var af=Y.minAutomaticBlock;Ext.getCmp("minAutoCheck").show();
Ext.getCmp("minAutoFieldContainer").show();if(H!=null&&!Ext.isEmpty(H)&&H=="selected"){var J=Y.relMinCritical;var ae=Y.relMinMajor;var X=Y.relMinMinor;Ext.getCmp("minAutoCheck").setValue(false);Ext.getCmp("relMinCritical").setValue(J);Ext.getCmp("relMinCriticalText").setValue(J);Ext.getCmp("relMinMajor").setValue(ae);
Ext.getCmp("relMinMajorText").setValue(ae);Ext.getCmp("relMinMinor").setValue(X);Ext.getCmp("relMinMinorText").setValue(X);if(R){Ext.getCmp("relMinCritical").setFieldLabel('Critical (% Tolerance) <img data-qtip="'+publicJson.toolTipMsg.toolTipCritical+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');
Ext.getCmp("relMinMajor").setFieldLabel('Major (% Tolerance) <img data-qtip="'+publicJson.toolTipMsg.toolTipMajor+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');}else{Ext.getCmp("relMinCritical").setFieldLabel(autoCriText);Ext.getCmp("relMinMajor").setFieldLabel(autoMajorText);
}}}}var B=M.maxStaticOption;var G=M.maxStaticBlock;if(B!=null&&!Ext.isEmpty(B)&&B=="selected"){if(R){Ext.getCmp("absMaxCritical").setFieldLabel('Critical <img data-qtip="'+publicJson.toolTipMsg.toolTipCritical+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');
Ext.getCmp("absMaxMajor").setFieldLabel('Major <img data-qtip="'+publicJson.toolTipMsg.toolTipMajor+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');}else{Ext.getCmp("absMaxCritical").setFieldLabel(criticalText);Ext.getCmp("absMaxMajor").setFieldLabel(majorText);
}var C=M.absMaxCritical;var ah=M.absMaxMajor;var aa=M.absMaxMinor;Ext.getCmp("maxStaticCheck").setValue(false);Ext.getCmp("absMaxCritical").setValue(C);Ext.getCmp("absMaxMajor").setValue(ah);Ext.getCmp("absMaxMinor").setValue(aa);}if(!z){if(!F){var U=M.maxAutomaticOption;var K=M.maxAutomaticBlock;Ext.getCmp("maxAutoCheck").show();
Ext.getCmp("maxAutoFieldContainer").show();if(U!=null&&!Ext.isEmpty(U)&&U=="selected"){var ad=M.relMaxCritical;var x=M.relMaxMajor;var ac=M.relMaxMinor;Ext.getCmp("maxAutoCheck").setValue(false);Ext.getCmp("relMaxCritical").setValue(ad);Ext.getCmp("relMaxCriticalText").setValue(ad);Ext.getCmp("relMaxMajor").setValue(x);
Ext.getCmp("relMaxMajorText").setValue(x);Ext.getCmp("relMaxMinor").setValue(ac);Ext.getCmp("relMaxMinorText").setValue(ac);if(R){Ext.getCmp("relMaxCritical").setFieldLabel('Critical (% Tolerance) <img data-qtip="'+publicJson.toolTipMsg.toolTipCritical+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');
Ext.getCmp("relMaxMajor").setFieldLabel('Major (% Tolerance) <img data-qtip="'+publicJson.toolTipMsg.toolTipMajor+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>');}else{Ext.getCmp("relMaxCritical").setFieldLabel(autoCriText);Ext.getCmp("relMaxMajor").setFieldLabel(autoMajorText);
}}}}var P=publicJson["isHostTest"];I.update(publicJson["parenthtml"]);I.setTitle('<div style="text-transform: none;">'+y+"</div>");var O=Ext.getCmp("alarmDispField");var Z=Ext.getCmp("alarmPolicyCombo");if(w!=null&&!Ext.isEmpty(w)){O.el.animate({opacity:1});Z.getStore().suspendEvents(true);Z.getStore().removeAll();
Z.getStore().loadRawData(w);Z.getStore().resumeEvents();if(E!=null&&!Ext.isEmpty(E)){Z.setValue(E);}else{Z.setValue(w[0].valueField);}if(L!=null&&!Ext.isEmpty(L)){O.setValue(L);}else{var W=publicJson["alarmPolicyDescriptionObj"][w[0].valueField];O.setValue(W);}}var Q=publicJson["applyOtherMeasure_check_box"];
if(!Ext.isEmpty(Q)&&Q!=undefined&&Q=="true"){var N=publicJson["allMeasureCheck"];if(N!=null&&N!="undefined"&&(N=="true")){Ext.getCmp("allMeasureContainer").show();}}}});},clearAllThresholdsValues:function(){Ext.getCmp("minStaticCheck").setValue(true);Ext.getCmp("absMinCritical").setValue("-");Ext.getCmp("absMinMajor").setValue("-");
Ext.getCmp("absMinMinor").setValue("-");Ext.getCmp("minAutoCheck").setValue(true);Ext.getCmp("relMinCritical").setValue(0);Ext.getCmp("relMinCriticalText").setValue("0");Ext.getCmp("relMinMajor").setValue(0);Ext.getCmp("relMinMajorText").setValue("0");Ext.getCmp("relMinMinor").setValue(0);Ext.getCmp("relMinMinorText").setValue("0");
Ext.getCmp("maxStaticCheck").setValue(true);Ext.getCmp("absMaxCritical").setValue("-");Ext.getCmp("absMaxMajor").setValue("-");Ext.getCmp("absMaxMinor").setValue("-");Ext.getCmp("maxAutoCheck").setValue(true);Ext.getCmp("relMaxCritical").setValue(0);Ext.getCmp("relMaxCriticalText").setValue("0");Ext.getCmp("relMaxMajor").setValue(0);
Ext.getCmp("relMaxMajorText").setValue("0");Ext.getCmp("relMaxMinor").setValue(0);Ext.getCmp("relMaxMinorText").setValue("0");},refresh:function(){var m=Ext.getCmp("moreInfoWindowBgRemove");if(!Ext.isEmpty(m)&&m!=undefined){if(m.isVisible()){return false;}}var j=this;try{topPoc=$("#layerview").scrollTop();
}catch(f){topPoc=0;}this.getController("LayersController").stopRootRecord=false;var n=this.getComponenttabpanel();var a=n.getActiveTab();var g=requestParams.tabUrl;if(a.xtype=="compdashcustomtab"||a.xtype=="compdashclustertab"||isLicenseViolatedType||isLicenseViolatedType=="true"){return false;}else{if(a.xtype=="compdashvirtualtab"){var b=this.getCompdashvirtualtab();
var d=b.down("panel");var e=d.down("panel");var c=e.getComponent("SubsystemCombo");g=g.replace(/(subsystem=)[^\&]+/,"$1"+c.getValue());if(!Ext.isEmpty(vmComboValue)&&vmComboValue!=null&&vmComboValue!=undefined){do{if(vmComboValue!=null&&vmComboValue.indexOf("+")>-1){vmComboValue=vmComboValue.replace("+","|plus|");
}}while(vmComboValue.indexOf("+")>-1);do{if(vmComboValue!=null&&vmComboValue.indexOf("&")>-1){vmComboValue=vmComboValue.replace("&","|amp|");}}while(vmComboValue.indexOf("&")>-1);do{if(vmComboValue!=null&&vmComboValue.indexOf("%")>-1){vmComboValue=vmComboValue.replace("%","|pct|");}}while(vmComboValue.indexOf("%")>-1);
g=g+"&graphType="+encodeURIComponent(parent.filterEncode(vmComboValue));}}else{if(a.xtype=="interfacepanel"){this.getController("InterfaceController").refreshInterfaceTab();return false;}else{if(a.xtype=="applicationpanel"){if(appLastLoadedURL==null||appLastLoadedURL==""){appLastLoadedURL="/final/monitor/egAppDashboardJSON.jsp?tab=Application&hostName="+encodeURIComponent(componentName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(subSystemFromRequest)+"&screenWidth=1012&screenHeight=570&host="+encodeURIComponent(componentName)+"&time_line=&starttime=&endtime=&starthr=&endhr=&format="+encodeURIComponent(dateFormatForTimeline);
}g=appLastLoadedURL;if(appLastGraphTypeLoaded!=null&&appLastGraphTypeLoaded!=null&&!Ext.isEmpty(appLastGraphTypeLoaded)&&appLastGraphTypeLoaded!=undefined){if(g.indexOf("graphType")>-1){g=g.replace(/(graphType=)[^\&]+/,"$1"+appLastGraphTypeLoaded);}else{g+="&graphType="+appLastGraphTypeLoaded;}}Ext.Ajax.request({url:g,method:"POST",scope:this,disableCaching:false,timeout:280000,success:function(o,s){var t=o.responseText;
var r=Ext.decode(t);a.createTabRefreshUI(r);this.createToolbarItems();if(!Ext.isEmpty(this.mask)){this.mask.hide();}},failure:function(){}});}else{if(a.xtype=="networkmainpanel"){if(isIncludedNetflowDeviceAvailable||isExcludedNetflowDeviceAvailable){if(ciscoLastLoadedURL==null||ciscoLastLoadedURL==""){ciscoLastLoadedURL="/final/monitor/EgCiscoDashboardJSON.jsp?tab=Network&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&ciscoSelectedType="+encodeURIComponent(ciscoSelectedType)+"&screenWidth=1012&screenHeight=700";
}g=ciscoLastLoadedURL;Ext.Ajax.request({url:g,method:"POST",scope:this,timeout:280000,disableCaching:false,success:function(o,s){var t=o.responseText;var r=Ext.decode(t);a.createTabUI(r);this.createToolbarItems();if(!Ext.isEmpty(this.mask)){this.mask.hide();}},failure:function(){}});}else{if(netLastLoadedURL==null||netLastLoadedURL==""){netLastLoadedURL="/final/monitor/egNetDashBoardJSON.jsp?tab=Network&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(subSystemFromRequest)+"&screenWidth=1012&screenHeight=570&host="+encodeURIComponent(requestParams.compname)+"&time_line=&starttime=&endtime=&starthr=&endhr=&format="+encodeURIComponent(dateFormatForTimeline);
}g=netLastLoadedURL;if(netLastGraphTypeLoaded!=null&&netLastGraphTypeLoaded!=null&&!Ext.isEmpty(netLastGraphTypeLoaded)&&netLastGraphTypeLoaded!=undefined){if(g.indexOf("graphType")>-1){g=g.replace(/(graphType=)[^\&]+/,"$1"+netLastGraphTypeLoaded);}else{g+="&graphType="+netLastGraphTypeLoaded;}}Ext.Ajax.request({url:g,method:"POST",scope:this,disableCaching:false,timeout:280000,success:function(o,s){var t=o.responseText;
var r=Ext.decode(t);a.createTabRefreshUI(r);this.createToolbarItems();if(!Ext.isEmpty(this.mask)){this.mask.hide();}},failure:function(){}});}}else{if(a.itemId=="netflow"){var l=Ext.getCmp("netflowmainpanel").getActiveTab();if(l!=null){l.removeAll();}if(netflowLastLoadedURL!=null&&netflowLastLoadedURL.indexOf("ciscoSelectedType=overview")>0){Ext.Ajax.request({url:netflowLastLoadedURL,method:"POST",timeout:280000,success:function(o){if(o.status==200&&!Ext.isEmpty(o.responseText)){var s=o.responseText;
var r=Ext.decode(s);var u=r["protocolsURL"];var t=r["flowsURL"];l.data=r;l.DataURL=u;}}});}else{l.DataURL=netflowLastLoadedURL;}l.add({items:[componentDashboard.app.getController("NetflowController").loadTabItems(l,l.title)]});}else{if(sysLastLoadedURL==null||sysLastLoadedURL==""){sysLastLoadedURL="/final/monitor/egSysDashBoardJSON.jsp?tab=System&hostName="+encodeURIComponent(requestParams.hostName)+"&compType="+encodeURIComponent(componentType)+"&subsystem="+encodeURIComponent(subSystemFromRequest)+"&screenWidth=1012&screenHeight=570&host="+encodeURIComponent(requestParams.compname)+"&time_line=&starttime=&endtime=&starthr=&endhr=&format="+encodeURIComponent(dateFormatForTimeline);
}g=sysLastLoadedURL;if(sysLastGraphTypeLoaded!=null&&sysLastGraphTypeLoaded!=null&&!Ext.isEmpty(sysLastGraphTypeLoaded)&&sysLastGraphTypeLoaded!=undefined){if(g.indexOf("graphType")>-1){g=g.replace(/(graphType=)[^\&]+/,"$1"+sysLastGraphTypeLoaded);}else{g+="&graphType="+sysLastGraphTypeLoaded;}}Ext.Ajax.request({url:g,method:"POST",scope:this,disableCaching:false,timeout:280000,success:function(o,s){var t=o.responseText;
var r=Ext.decode(t);a.createTabRefreshUI(r);this.createToolbarItems();if(!Ext.isEmpty(this.mask)){this.mask.hide();}},failure:function(){}});}}}}}}if(a.xtype=="compdashvirtualtab"){Ext.Ajax.request({url:g,method:"POST",scope:this,disableCaching:false,timeout:280000,success:function(o,t){var u=o.responseText;
var s=Ext.decode(u);var v=0;if(!Ext.isEmpty(this.getVirtualtabinsideview())&&!Ext.isEmpty(this.getVirtualtabinsideview().getActiveTab())){var r=this.getVirtualtabinsideview().getActiveTab().xtype;if(r=="measuresdata"){v=0;}else{if(r=="virtualsystemtab"){v=1;}else{v=2;}}a.createTabUIRefresh(s,v);}this.createToolbarItems();
if(!Ext.isEmpty(this.mask)){this.mask.hide();}},});}else{if(a.xtype=="compdashcustomtab"||a.xtype=="compdashclustertab"){if(!Ext.isEmpty(this.mask)){this.mask.hide();}}else{}}},openComponentDetails:function(b,d){if(!Ext.isEmpty(requestParams.isMoreInfosTreeView)&&(requestParams.isMoreInfosTreeView||requestParams.isMoreInfosTreeView=="true")){return;
}var c=this;var a=this.getComponentDetailsWindow();Ext.Ajax.request({url:componentDetailUrl,timeout:280000,success:function(f){var g=Ext.decode(f.responseText);var o=g.screenLabels;c.getComponentTableView().removeAll();c.getComponentTableView().add(c.createTableView(o.AssociatedUser,g.users));if(!Ext.isEmpty(g.AssociatedComponentAgg)){if(!Ext.isEmpty(o.Users)){c.getComponentTableView().add(c.createTableView(o.AssociatedComponent,o.Users,g.AssociatedComponentAgg));
}else{c.getComponentTableView().add(c.createTableView(o.AssociatedComponent,g.AssociatedComponentAgg));}}else{if(!Ext.isEmpty(g.AssociatedAggComponent)){if(!Ext.isEmpty(o.Users)){c.getComponentTableView().add(c.createTableView(o.AssociatedComponent,o.Users,g.AssociatedAggComponent));}else{c.getComponentTableView().add(c.createTableView(o.AssociatedComponent,g.AssociatedAggComponent));
}}}if(!Ext.isEmpty(g.segments)){c.getComponentTableView().add(c.createTableView(o.AssociatedSegment,o.Users,g.segments));}if(!Ext.isEmpty(g.services)){c.getComponentTableView().add(c.createTableView(o.AssociatedService,o.Users,g.services));}if(!Ext.isEmpty(g.zones)){c.getComponentTableView().add(c.createTableView(o.AssociatedZone,o.Users,g.zones));
}if(!Ext.isEmpty(g.quickMaintenance)){c.getComponentMaintenanceTitle().update('<div class="title" style="text-transform:uppercase;">'+g.quickMaintenance.title+"</div>");var e=[];for(k=0;k<g.quickMaintenance.policies.length;k++){var m=g.quickMaintenance.policies[k];e.push({xtype:"container",margin:"10 10 5 10",id:"policy_"+m.policyName,name:m.policyName,itemId:"policy_"+m.policyName,items:[{xtype:"displayfield",fieldLabel:o.PolicyName,value:m.policyName},c.createTableView(o.TimeConstraints,o.TimePeriods,m.data)]});
}var l=c.getComponentMaintenancePanel();var n=l.items.items;for(var j=n.length-1;j>-1;j--){n[j].removeAll();}c.getComponentMaintenancePanel().add(e);c.getComponentMaintenancePanel().show();}a.setComponentDetailsData(g);},failure:function(){}});},openTestInfoWindow:function(a){var b=this;Ext.Ajax.request({url:a,disableCaching:false,timeout:280000,success:function(c){var d=Ext.decode(c.responseText);
csrfToken=d.strCsrfToken;b.getTestInfo().setTestDetailsData(d);b.getTestInfoTableContainer().removeAll();if(d.isAdminLinkEnabled){b.getTestInfoTableContainer().add(b.createTableViewForThreshold(testStatusInfoT1,testStatusInfoT2,testStatusInfoT3,testStatusInfoT4,testStatusInfoT5,testStatusInfoT6," ",d.jsonArrayValue));
if(!Ext.isEmpty(d.measureDescription)){b.getTestInfoTableContainer().add(b.createTableView(testStatusInfoT7," ",d.measureDescription));}}else{b.getTestInfoTableContainer().add(b.createTableViewForThreshold(testStatusInfoT1,testStatusInfoT2,testStatusInfoT3,testStatusInfoT4,testStatusInfoT5,testStatusInfoT6,d.jsonArrayValue));
if(!Ext.isEmpty(d.measureDescription)){b.getTestInfoTableContainer().add(b.createTableView(testStatusInfoT7,d.measureDescription));}}b.getTestInfo().show();},failure:function(){}});},showAlarmDetails:function(b){var a=this;Ext.Ajax.request({url:b,timeout:280000,success:function(c){var d=Ext.decode(c.responseText);
a.getAlarmDetails().setData(d);a.getAlarmDetailsTableContainer().removeAll();a.getAlarmDetailsTableContainerAcknowledge().removeAll();a.getAlarmDetailsTableContainer().add(a.createTableView(alarmDetailsT1,alarmDetailsT2,d.eventDetails));Ext.getCmp("acknowledge").hide();if(!Ext.isEmpty(d.ackDetails)){Ext.getCmp("acknowledge").show();
a.getAlarmDetailsTableContainerAcknowledge().add(a.createTableView(alarmDetailsT3,alarmDetailsT1,alarmDetailsT4,d.ackDetails));}a.getAlarmDetails().show();},failure:function(){}});},openAggregateDetails:function(a){var b=this;Ext.Ajax.request({url:a,timeout:280000,success:function(c){var d=Ext.decode(c.responseText);
if(Ext.isEmpty(b.getAggregateWindow())){Ext.create("componentDashboard.view.Layers.AggregateWindow");}b.getAggregateWindow().setData(d);b.getAggregateWindow().show();},failure:function(){}});},openCompositeDetails:function(a){var b=this;Ext.Ajax.request({url:a,timeout:280000,success:function(c){var d=Ext.decode(c.responseText);
b.getCompositeWindow().setData(d);b.getCompositeWindow().show();},failure:function(){}});},setComboOptionsInList:function(e,c,b){var a="";if(e=="threadname"){a="multiselect[itemId="+e+"]";}else{a="combo[itemId="+e+"]";}var d=this.getThreadDetails().down(a);d.getStore().loadRawData(c);d.suspendEvents(true);
if(b==""){b=d.getStore().getAt(0).get("value");}d.setValue(b);d.resumeEvents();},stackTraceCombo:function(g){var b=g.getId();var d=stackTraceUrl;if(b=="msmt_time"){if(!Ext.isEmpty(g.value)){d=d+"&time="+g.value;f=Ext.getCmp("measure").value;d+="&s_measure="+f;}}else{if(b=="measure"){if(!Ext.isEmpty(g.value)){var e=Ext.getCmp("msmt_time").value;
d=d+"&time="+e;f=g.value;d+="&s_measure="+f;}}else{if(b=="sortByOrder"){var a=g.value;d=d+"&sortby="+a;var e=Ext.getCmp("msmt_time").value;d=d+"&time="+e;var f=Ext.getCmp("measure").value;d+="&s_measure="+f;}else{if(b=="threadnameSelect"){var c=this.getThreadDetails().down("multiselect[itemId=threadname]").getValue();
var e=Ext.getCmp("msmt_time").value;d=d+"&time="+e;var f=Ext.getCmp("measure").value;d+="&s_measure="+f;d=d+"&selectedThreadName="+encodeURIComponent(c);}}}}if(!Ext.isEmpty(f)&&!Ext.isEmpty(b)&&b!="sortByOrder"){if(f=="Total_current_threads"){a="1";}else{if(f=="Blocked_threads"){a="8";}else{if(f=="Deadlock_threads"){a="8";
}else{if(f=="Waiting_threads"){a="11";}else{if(f=="Timed_waiting_threads"){a="11";}else{a="5";}}}}}d=d+"&sortby="+a;}d=d+"&fromStackMeasure=true";this.openJVMThreadStackTrace(d);},openJVMThreadStackTrace:function(c){var b=this;var a=null;Ext.Ajax.request({url:c,timeout:280000,success:function(j){var r=Ext.decode(j.responseText);
var f=null;if(!Ext.isEmpty(r)&&!Ext.isEmpty(r.data)){for(var l=0;l<r.data.length;l++){var d=r.data[l].name;if(!Ext.isEmpty(d)){if(d=="memtime"){var o=r.data[l].selectedvalue;if(o==null){o="";}f=r.data[l].time;b.setComboOptionsInList("msmt_time",f,o);}else{if(d=="Measurement"){var o=r.data[l].selectedvalue;
if(o==null){o="Total_current_threads";}f=r.data[l].measure;b.setComboOptionsInList("measure",f,o);}else{if(d=="memsortname"){var o=r.data[l].selectedValue;if(o==null){o="";}f=r.data[l].sortByOrder;b.setComboOptionsInList("sortByOrder",f,o);}else{var n=Ext.getCmp("threadname");var o=r.data[l].selectedValue;
f=r.data[l].threadname;b.setComboOptionsInList("threadname",f,o);var e=[];e.push(o);n.setValue(e);}}}}}var g=Ext.getCmp("threadResulPanel");var m=Ext.getCmp("msmt_time").value;var o=Ext.getCmp("threadname").value;params="time="+m+"&details="+encodeURIComponent(o);Ext.Ajax.request({url:"/final/monitor/jvmThreads.jsp?"+params,timeout:280000,success:function(s){var t=Ext.decode(s.responseText);
g.update(t.tableData);}});b.getThreadDetails().show();}else{if(!Ext.isEmpty(Ext.getCmp("windowValue"))&&Ext.getCmp("windowValue")!=null&&Ext.getCmp("windowValue")!=undefined){Ext.getCmp("windowValue").close();}Ext.Msg.alert("Message","No Data Available");}},failure:function(){}});},loadFormForThreadName:function(b){var d=Ext.getCmp("threadResulPanel");
var a=Ext.getCmp("msmt_time").value;var c=Ext.getCmp("threadname").value;if(a!=undefined&&a!="undefined"&&a!=""&&c!=undefined&&c!="undefined"&&c!=""){params="time="+a+"&details="+encodeURIComponent(c);Ext.Ajax.request({url:"/final/monitor/jvmThreads.jsp?"+params,timeout:280000,success:function(e){var f=Ext.decode(e.responseText);
d.update(f.tableData);}});}},createTableView:function(){var g=Array.prototype.slice.call(arguments);var e=g.pop();var d='<div class="x-table-outer-border"><div class="x-table" style="margin:0 0 0px 0"><table style="table-layout:auto" class="x-grid-table testDetailsPopup" cellspacing="0" cellpadding="0" border="0" ><col width="1354"><thead ><tr class="x-grid-row">';
for(h=0;h<g.length;h++){if(!Ext.isEmpty(g[h])){d+='<th class=" x-grid-cell"><div class="x-grid-cell-inner" >'+g[h]+"</div></th>";}}d+="</tr></thead>";d+="<tbody>";if(typeof e=="string"){d+='<tr class="x-grid-row"><td class=" x-grid-cell" wrap><div class="x-grid-cell-inner">'+e+"</div></td></tr>";}else{if(!Ext.isEmpty(e)){for(p=0;
p<e.length;p++){var f=e[p];var c=[];for(var b in f){c.push(b);}d+='<tr class="x-grid-row">';for(q=0;q<c.length;q++){d+='<td class=" x-grid-cell" ><div class="x-grid-cell-inner" style="white-space:nowrap !important">'+f[c[q]]+"</div></td>";}d+="</tr>";}}else{return false;}}d+="</tbody></table></div></div>";
var a={xtype:"container",padding:0,margin:"0 0 -3 0",html:d};return a;},createTableViewForThreshold:function(){var g=Array.prototype.slice.call(arguments);var e=g.pop();var d='<div class="x-table-outer-border"><div class="x-table" style="margin:0 0 0px 0"><table style="table-layout:auto" class="x-grid-table testDetailsPopup" cellspacing="0" cellpadding="0" border="0" ><col width="1354"><thead ><tr class="x-grid-row">';
for(h=0;h<g.length;h++){if(!Ext.isEmpty(g[h])){d+='<th class=" x-grid-cell"><div class="x-grid-cell-inner" >'+g[h]+"</div></th>";}}d+="</tr></thead>";d+="<tbody>";if(typeof e=="string"){d+='<tr class="x-grid-row"><td class=" x-grid-cell"><div class="x-grid-cell-inner" style="white-space:nowrap!important">'+e+"</div></td></tr>";
}else{if(!Ext.isEmpty(e)){for(p=0;p<e.length;p++){var f=e[p];var c=[];for(var b in f){c.push(b);}d+='<tr class="x-grid-row">';for(q=0;q<c.length;q++){d+='<td class=" x-grid-cell"><div class="x-grid-cell-inner" style="white-space:nowrap!important">'+f[c[q]]+"</div></td>";}d+="</tr>";}}else{return false;
}}d+="</tbody></table></div></div>";var a={xtype:"container",padding:0,margin:"0 0 10 0",html:d};return a;},encodeQueryParam:function(d){var c="";try{if(!Ext.isEmpty(d)&&d!=null&&d!="null"&&d!=undefined){var b=d.indexOf("?");if(b>0){c=d.substring(0,b+1);d=d.substring(b+1);}var g=d.split("&");var a="";
for(i=0;i<g.length;i++){if(!Ext.isEmpty(g[i])&&g[i]!=null){a=g[i].split("=");if(!Ext.isEmpty(a[0])&&a[0]!=null){if(a[0]=="searchuser"){a[1]=encodeURIComponent(a[1]);}}c+="&"+a[0]+"="+a[1];}}return c;}else{return c;}}catch(f){return c;}},});