home *** CD-ROM | disk | FTP | other *** search
- /* ======================================================================
- DESC: Common Button Functions for the Administer Operations
-
- PLATFORMS: >= MS IE 4.0
-
- USAGE NOTES:
- ====================================================================== */
- // Compute Server IP Address
- var origRPMHostIP = document.body.RPMHostIP;
- document.body.RPMHostIP = window.location.hostname;
-
-
- newPageNameTab = new Array("", "AdministerAlerts.asp", "ViewServers.asp", "ViewAlerts.asp", "ViewEventLogs.asp", "AdministerReports.asp", "ScheduleMonitoring.asp", "ViewReports.asp", "ViewCharts.asp","ViewActiveCounters.asp", "AdministerComputers.asp", "AdministerGroups.asp", "AdministerSecurity.asp", "AdministerMonitorServer.asp", "AdministerDataBase.asp", "AdministerServers.asp", "RpmIntro.asp", "MonitorIT_NextSteps.htm", "MonitorIT_QuickStart.htm", "AdministerOIDDefs.asp", "ViewTools.asp", "AdministerDomains.asp", "ViewEventLogDisplay.asp" , "ViewSyslogDisplay.asp", "ViewSNMPTrapDisplay.asp", "SchedulePeriodicReports.asp", "ViewNetStatus.asp",
- "ViewMemoryStatus.asp", "ViewHDDStatus.asp" );
-
- newPageTitleTab = new Array("", "Configure Watches/Alerts", "ServerWatch Display", "AlertWatch Display", "Event Log Viewer", "Create CounterWatch Reports", "Schedule CounterWatch Monitoring", "Run/Analyze & View Reports", "CounterWatch Graphs","Manage CounterWatch Monitoring", "Configure Servers/Agents & Devices", "Configure Groups", "Configure Security","MonitorIT Server Log","Database Maintenance","Define MonitorIT Servers", "Introduction", "MonitorIT Next Steps", "MonitorIT Quick Start", "Configure SNMP Definitions", "Net Toolbox", "Configure Domain Information", "EventLogWatch Display", "SYSLOGWatch Display", "SNMPTrapWatch Display", "Schedule Periodic Reports", "Network Status Display", "MemoryWatch Monitoring", "HDDWatch Monitoring" );
-
- var TopReplicateText = '<html><head><title>MonitorIT - An Essential eBusiness Tool</title><script language="JavaScript">var MenuLoaded = true; var BannerLoaded = false;var MainLoaded = false;var RstatLoaded = false;var TreeLoaded = false;var OutlookObjectErrorFlag = false; var TreeObjectErrorFlag = false;var CommObjectErrorFlag = false; var MilObjectErrorFlag = false;var QuickStartProcessing = false;var StandAlone = false; function GoExit() {alert("Exit the browser (or Control Center Server) and determine the reason the required ActiveX control is not loading.");}function BannerMenuShow() {ColFrame.cols="0,*"; RowFrame.rows="23,*,19";}function BannerMenuHide() {ColFrame.cols="0,*"; RowFrame.rows="0,*,19";}</script></head><frameset id="RowFrame" rows="23,*,19"><frame name="banner" noresize scrolling="no" frameborder="0" src="banner.asp"><frameset id="ColFrame" cols="0,*"><frame name="menu" frameborder="0" borderColor="activeborder" scrolling="no" noresize><frame name="main" frameborder="1" borderColor="activeborder" scrolling="auto"></frameset><frame name="Rstatus" noresize frameborder="0" scrolling="no" src="Rstatus.htm"></frameset></html>';
-
- var MainReplicateText = '<html><head><title>MonitorIT</title><meta HTTP-EQUIV="If-Modified-Since:Sun, 21 Mar 1999 10:29:02 GMT"><script language="JavaScript">var VisibleFlg = false;var RestoreComplete = false;var VCcw = 0; function expand() {document.body.cols="0%,*";VisibleFlg = false;/*TreePane.DisconnectTreeFromServer();*/} function restore() {RestoreComplete = false;document.body.cols = (TreePane.TreeSz != "") ? TreePane.TreeSz : "31%,*";VisibleFlg = true;if ( top.TreeLoaded ) {TreePane.setSize(); }TreePane.ConnectTreeToServer();}function restorecomplete() {RestoreComplete = true; document.body.cols="100%,0%"; VisibleFlg = true;TreePane.ConnectTreeToServer();}function restoreReduced() {document.body.cols="20%,*";VisibleFlg = true;TreePane.ConnectTreeToServer();}function cleardoc() {top.Rstatus.StatWait.style.display="";top.Rstatus.Pstat("Moment Please");}function IsTreeVisible() {return VisibleFlg;}</script></head><frameset framespacing="2" frameborder="1" cols="0%,*"><frame name="TreePane" id="TreePane" scrolling="no" src="AnalyzeTree.asp"><frame name="ActionPane" id="ActionPane" frameborder="0" scrolling="auto" ></frameset></html>';
-
- // Capture and ignore script errors
- window.onerror = wScrErr;
-
- function wScrErr() {
- return true;
- }
-
- // Process Menu Pop-Up
- var PopUpScrollStatus = "";
- function openPopUpContext() {
- if ( PopUpContextMenuDiv.style.display == "" )
- return; // ignore if already opened
- PopUpContextMenuDiv.style.display="";
- PopUpScrollStatus = document.body.scroll;
- if ( document.body.clientHeight < 386 ) {
- document.body.scroll = "yes";
- }
- PopUpContextOpen();
- // Check "Open New Window" State
- var cc = top.banner.RpmCC_Ban.RegGetKey(top.banner.ServerID+"ContextMenuOpenNewWindow"); // get state
- if (cc != "yes" && cc != "no") { // if not set
- cc = "yes";
- }
- PUC_CB.checked = ( cc == "yes" ) ? "checked" : "";
- PopUpCheckBox.src = ( cc =="yes" ) ? "images/CheckBox.gif" : "images/CheckBoxHide.gif";
- PopUpContextMenuDiv.scrollIntoView();
- }
- function checkClick() {
- if ( PopUpContextMenuDiv.style.display == "" ) {
- PopUpContextMenuDiv.style.display="none";
- PopUpContextClose();
- document.body.scroll = PopUpScrollStatus;
- }
- }
- function PopUpContextSize(bWid) {
- PopUpContextMenuDiv.style.left = document.body.clientWidth - 250; // (bWid-230)/2;
- if ( PopUpContextMenuDiv.style.display == "" && document.body.clientHeight < 386 ) {
- document.body.scroll = "yes";
- }
- }
- function processPopUpCheckboxText() {
- // toggle check box
- PUC_CB.checked = ( PUC_CB.checked ) ? "" : "checked";
- cc = ( PUC_CB.checked ) ? "yes" : "no";
- PopUpCheckBox.src = ( cc =="yes" ) ? "images/CheckBox.gif" : "images/CheckBoxHide.gif";
- top.banner.RpmCC_Ban.RegSetKey(top.banner.ServerID+"ContextMenuOpenNewWindow",cc); // set state
- event.cancelBubble = true;
- }
-
- var newPgIx = 0;
- var QuickStart = false;
- var topoffset = 10;
- var leftoffset =10;
- var nW = null;
- var opennew = false;
- function processPopUpSelect(pIx) {
- PopUpContextMenuDiv.style.display="none"; // hide PopUp
- PopUpContextClose();
- newPgIx = pIx; // save page index
- if (arguments.length > 1) {
- QuickStart = arguments[1];
- opennew = true;
- }
- setTimeout("processPopUpSelectContinue()",10); // Delay 10 msecs
- }
-
- function processPopUpSelectContinue() {
- // If open in same window
- if ( !PUC_CB.checked && !opennew) {
- top.MainLoaded = false; // Flag that Main is loading
- if ( newPageNameTab[newPgIx] == "ViewCharts.asp" ||
- newPageNameTab[newPgIx] == "ViewActiveCounters.asp" ) { // if View Charts or Active Counters
- top.main.restore();
- }
- else {
- top.main.expand();
- }
- top.document.title = "MonitorIT: "+newPageTitleTab[newPgIx]+" ("+top.banner.HostIP+")";
- top.main.ActionPane.window.location.href = newPageNameTab[newPgIx];
- return;
- }
- // Otherwise, open in new Window
- var sh = (screen.height > 580) ? 580 : screen.height;
- var sw = (screen.width > 662) ? 662 : screen.width;
- var wprop = "height="+sh+",width="+sw;
- wprop += ",top="+topoffset+",left="+leftoffset+",resizable,scrollbars";
- // Set next scrreen to be offset from this one
- leftoffset += 25; topoffset += 25;
- if ( leftoffset > 150 ) {
- leftoffset = topoffset = 10;
- }
- var rName = ""+Math.random(); // use Random number to get unique Window name
- rName = rName.substring(2,rName.length);
- // if IE 5.5 or Better use this approach for better performance
- if ( top.banner.IE55orBetter ) {
- nW = window.open("",rName,wprop);
- if ( nW == null ) {
- return;
- }
- nW.document.open();
- nW.document.write(TopReplicateText);
- nW.document.close();
- nW.main.document.open();
- nW.main.document.write(MainReplicateText);
- nW.main.document.close();
- setTimeout("completeNewWindow()",200); // Delay 200 msecs
- }
- else {
- npLoaded = false; // reset flag
- var fv_url = "http://"+top.banner.HostIP+":"+top.banner.HttpPort+"/TopReplicate.htm";
- nW = window.open(fv_url,rName,wprop);
- if ( nW == null ) {
- return;
- }
- setTimeout("loadNewWindow()",500); // Delay 500 msecs
- }
- }
- function completeNewWindow() {
- if ( nW.top.main.ActionPane.window == null ) {
- setTimeout("completeNewWindow()",200); // Delay 200 msecs
- return;
- }
- nW.top.QuickStartProcessing = QuickStart;
- nW.top.main.ActionPane.window.location.href = newPageNameTab[newPgIx];
- nW.top.document.title = "MonitorIT: "+newPageTitleTab[newPgIx]+" ("+top.banner.HostIP+")";
- }
-
- var npLoaded = false;
- function loadNewWindow() {
- if ( npLoaded == false || nW.top.newWindowLoaded == false || nW.top.main.ActionPane.window == null ) {
- setTimeout("loadNewWindow()",200); // Delay 200 msecs
- return;
- }
- nW.top.MainLoaded = false; // Flag that Main is loading
- nW.top.MenuLoaded = true;
- nW.top.QuickStartProcessing = QuickStart;
- nW.top.main.ActionPane.window.location.href = newPageNameTab[newPgIx];
- nW.top.document.title = "MonitorIT: "+newPageTitleTab[newPgIx]+" ("+top.banner.HostIP+")";
- }
- function puMouseOut(Robj) {
- Robj.className='MOut';
- }
- function puMouseOver(Robj) {
- Robj.className='MOvr';
- }
- // Write HTMP for PopUpContext menu DIV
- document.write('<div id="PopUpContextMenuDiv" class="PopUpContextMenu" onclick="checkClick()" style="display:none; overflow : none; left:150; top:1; z-index:99"><center><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" ><tr><td colspan="2" height="18" style="font-weight:800; font-size:10pt; background-color:graytext; color:captiontext" align="center">Select Function</td></tr><tr><td colspan="2" height="2" class="inputlabel" align="right"></td></tr>');
-
- document.write('<tr style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center" onclick="processPopUpCheckboxText()"><input style="display:none" TYPE="checkbox" VALUE="0" ID="PUC_CB" NAME="PUC_CB"><img id="PopUpCheckBox" src="images/CheckBox.gif" align="absmiddle" height="19" width="20"></td><td height="17" class="inputlabel" align="left" onclick="processPopUpCheckboxText()"> Open in New Window </td></tr><tr><td colspan="2" height="4" class="inputlabel" align="right"><hr height="2" width="100%"></td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(10)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sAdminComputers.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Configure Servers/Agents&Devices</td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(1)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sAdminAlerts.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Configure Watches/Alerts </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(11)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sAdminGroups.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Configure Groups </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(21)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sPreferences.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Configure Domain Information </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(19)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/snmp_sm.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Configure SNMP Trap Definitions </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(12)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sAdminSecurity.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Configure Security </td></tr>');
-
- document.write('<tr><td colspan="2" height="4" class="inputlabel" align="right"><hr height="2" width="100%"></td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(27)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/MemoryWatch.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> MemoryWatch Monitoring </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(28)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/HDDWatch.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> HDDWatch Monitoring </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(8)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sViewCharts.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> CounterWatch Graphs </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(9)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sReviewActiveMonitors.gif" align="absmiddle" height="14" width="13"></td><td height="17" class="inputlabel" align="left"> Manage CounterWatch Monitoring </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(6)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sScheduleReports.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Schedule CounterWatch Monitoring </td></tr>');
-
- document.write('<tr><td colspan="2" height="4" class="inputlabel" align="right"><hr height="2" width="100%"></td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(26)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/NetStatusSm.bmp" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Network Status Display </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(2)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sMicroscope.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> ServerWatch Display </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(22)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/EventlogDisplaySm.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> EventLogWatch Display </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(23)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/SyslogDisplaySm.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> SYSLOGWatch Display </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(24)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/SNMPTrapDisplaySm.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> SNMPTrapWatch Display </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(3)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sViewAlerts.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> AlertWatch Display </td></tr>');
-
- document.write('<tr><td colspan="2" height="4" class="inputlabel" align="right"><hr height="2" width="100%"></td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(5)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sAdminReports.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Create CounterWatch Reports </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(25)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sScheduleReports.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Schedule Periodic Reports </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(7)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sViewReports.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Run/Analyze & View Reports </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(4)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sEventViewer.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Event Log Viewer </td></tr><tr><td colspan="2" height="2" class="inputlabel" align="right"></td></tr>');
-
- document.write('<tr><td colspan="2" height="4" class="inputlabel" align="right"><hr height="2" width="100%"></td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(20)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/nettoolboxsm.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Net Toolbox </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(13)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sMonitorServerActivity.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> MonitorIT Server Log </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(14)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sDatabaseMaintenance.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Database Maintenance </td></tr>');
-
- /*
- document.write('<tr onclick="processPopUpSelect(15)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/sAdminServers.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> Define MonitorIT Servers </td></tr>');
-
- document.write('<tr><td colspan="2" height="4" class="inputlabel" align="right"><hr height="2" width="100%"></td></tr><tr onclick="processPopUpSelect(16)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/Logo.jpg" align="absmiddle" height="14" width="20"></td><td height="17" class="inputlabel" align="left"> Introduction </td></tr>');
-
- document.write('<tr onclick="processPopUpSelect(18)" style="cursor:hand" onmouseover="puMouseOver(this)" onmouseout="puMouseOut(this)"><td height="17" class="inputlabel" align="center"><img src="images/FirstTime.gif" align="absmiddle" height="16" width="16"></td><td height="17" class="inputlabel" align="left"> QuickStart </td></tr>');
- */
-
- document.write('<tr><td colspan="2" height="2" class="inputlabel" align="right"></td></tr></table></center></div>');
-
-