home *** CD-ROM | disk | FTP | other *** search
- var OS_TYPE_WIN9x = 0;
- var OS_TYPE_WINNT = 1;
- var OS_TYPE_SOLARIS = 2;
- var OS_TYPE_LINUX = 3;
- var OS_TYPE_WINME = 4;
- var OS_TYPE_WINXP = 5;
- var OS_TYPE_UNKNOWN = 6;
- var MainFrame = window.parent;
- var Scheduler;
- g_ModuleID = 3009;
- var TimerID = 0;
-
- function OnLoad()
- {
- // Cheesy IE hack alert
- // If your page has no tabable controls and you disable tabbing to the body you will
- // crash the webwindow. Thus I have to enabled tabbing to the Text areas
- document.body.tabIndex=-1;
- PostInstallHeader_table.tabIndex=1;
- ConfigurationHeader_table.tabIndex=2;
-
- if (MainFrame.g_bRoadmapFrameLoaded == true && MainFrame.g_bSelectFrameLoaded == true)
- {
- UpdatePage();
- }
- else
- {
- TimerID = setInterval("UpdatePage()", 500);
- }
- }
-
- function UpdatePage()
- {
- if (MainFrame.g_bRoadmapFrameLoaded == true && MainFrame.g_bSelectFrameLoaded == true)
- {
- // Remove the timer, we're done.
- clearInterval(TimerID);
-
- var SelectFrame = window.parent.frames("bottom");
-
- try
- {
- Scheduler = new ActiveXObject ("NAVTasks.Scheduler");
- }
- catch(err)
- {
- var msg = document.frames("Errors").document.all.ERR_MSG_NO_SCHEDULER.innerText;
- var id = document.frames("Errors").document.all.ERR_ID_NO_SCHEDULER.innerText;
- g_ErrorHandler.DisplayNAVError (msg, id);
- clearInterval(TimerID);
- return;
- }
-
- if (MainFrame.g_bShowLaunchLiveUpdate || MainFrame.g_bShowLaunchRescue || MainFrame.g_bShowLaunchFullSysScan || MainFrame.g_bShowEnableWeeklyScan || MainFrame.g_bShowEnableAsyncScan)
- {
-
- PostInstallHeader_table.style.display = "";
- dashline_table1.style.display = "";
-
- var OSType = MainFrame.frames("contents").CfgWizMgrObj.OSType;
-
- // Enable Async Scan
- if ((false == MainFrame.g_bShowEnableAsyncScan) || (OSType == OS_TYPE_WIN9x || OSType == OS_TYPE_WINME))
- {
- AsyncScanRow.style.display = "none";
- }
- else if (MainFrame.g_bEnableAsyncScan == false)
- {
- AsyncScanOn.style.display = "none";
- AsyncScanOff.style.display = "";
- }
-
- // Run LiveUpdate
- if (false == MainFrame.g_bShowLaunchLiveUpdate)
- LiveUpdateRow.style.display = "none";
- else if (MainFrame.g_bRunLiveUpdate == false)
- {
- RunLiveUpdateOn.style.display = "none";
- RunLiveUpdateOff.style.display = "";
- }
-
- // Run Rescue
- if ((MainFrame.g_bShowLaunchRescue == true) && OSType == OS_TYPE_WIN9x || OSType == OS_TYPE_WINME)
- {
- if (MainFrame.g_bCreateRescueDisk == false)
- {
- RunRescueOn.style.display = "none";
- RunRescueOff.style.display = "";
- }
- }
- else
- {
- RescueRow.style.display = "none";
- }
-
- // Run full system scan
- if (false == MainFrame.g_bShowLaunchFullSysScan)
- FullSystemScanRow.style.display = "none";
- else if (MainFrame.g_bFullSystemScan == false)
- {
- RunFullSystemScanOn.style.display = "none";
- RunFullSystemScanOff.style.display = "";
- }
-
- var IsSchedulerInstalled;
-
- try
- {
- IsSchedulerInstalled = Scheduler.Installed;
- }
- catch(err)
- {
- Scheduler.NAVError.LogAndDisplay(0);
- }
-
- if (IsSchedulerInstalled == true)
- {
- // Check for the default state of WeeklyScan
- if (false == MainFrame.g_bShowEnableWeeklyScan)
- {
- ScheduleScanRow.style.display = "none";
- }
- else if (MainFrame.g_bScheduleScan == false)
- {
- ScheduleScanOn.style.display = "none";
- ScheduleScanOff.style.display = "";
- }
-
- // AutoLiveUpdate status
- if (false == MainFrame.g_bLicenseValid)
- {
- AutoLiveUpdateOn.style.display = "none";
- AutoLiveUpdateLicenseInactive.style.display = "";
- }
- else if (MainFrame.g_bEnableALU == false)
- {
- AutoLiveUpdateOn.style.display = "none";
- AutoLiveUpdateOff.style.display = "";
- }
- }
- else
- {
- ScheduleScanRow.style.display = "none";
- AutoLiveUpdateRow.style.display = "none";
- }
- }
-
- // If License is inactive, set status of rest of items to inactive
-
- // Auto Protect status
- if (false == MainFrame.g_bLicenseValid)
- {
- AutoProtectOn.style.display = "none";
- AutoProtectLicenseInactive.style.display = "";
- }
- else if (MainFrame.g_bEnableAP == false)
- {
- AutoProtectOn.style.display = "none";
- AutoProtectOff.style.display = "";
- }
-
- // Email Scanning status
- if (false == MainFrame.g_bLicenseValid)
- {
- EmailScanningInOn.style.display = "none";
- EmailScanningInLicenseInactive.style.display = "";
- EmailScanningOutOn.style.display = "none";
- EmailScanningOutLicenseInactive.style.display = "";
-
- }
- else
- {
- if (MainFrame.g_bEnableEmailScanningIn == false)
- {
- EmailScanningInOn.style.display = "none";
- EmailScanningInOff.style.display = "";
- }
-
- if (MainFrame.g_bEnableEmailScanningOut == false)
- {
- EmailScanningOutOn.style.display = "none";
- EmailScanningOutOff.style.display = "";
- }
- }
-
- // ScriptBlocking status
- if (MainFrame.g_bScriptBlockingInstalled == true)
- {
- if (false == MainFrame.g_bLicenseValid)
- {
- ScriptBlockingOn.style.display = "none";
- ScriptBlockingLicenseInactive.style.display = "";
- }
- else if (MainFrame.g_bEnableScriptBlocking == false)
- {
- ScriptBlockingOn.style.display = "none";
- ScriptBlockingOff.style.display = "";
- }
- }
- else
- {
- ScriptBlockingRow.style.display = "none";
- }
-
- var IsSchedulerInstalled;
-
- try
- {
- IsSchedulerInstalled = Scheduler.Installed;
- }
- catch(err)
- {
- Scheduler.NAVError.LogAndDisplay(0);
- }
-
- if (IsSchedulerInstalled == true)
- {
- // AutoLiveUpdate status
- if (false == MainFrame.g_bLicenseValid)
- {
- AutoLiveUpdateOn.style.display = "none";
- AutoLiveUpdateLicenseInactive.style.display = "";
- }
- else if (MainFrame.g_bEnableALU == false)
- {
- AutoLiveUpdateOn.style.display = "none";
- AutoLiveUpdateOff.style.display = "";
- }
- }
- else
- {
- AutoLiveUpdateRow.style.display = "none";
- }
-
- // Show License status for managed rental.
- var _LicenseRental = 2;
-
- if (_LicenseRental == MainFrame.g_iLicenseType)
- {
- LicensingRow.style.display = "";
- if (false == MainFrame.g_bLicenseValid)
- {
- LicenseActive.style.display = "none";
- LicenseInactive.style.display = "";
- }
- }
-
- if ( MainFrame.g_bIsNAVPro )
- {
- AdditionalInfoTable_Cell1_pro.style.display = "";
- AdditionalInfoTable_Cell1.style.display = "none";
- }
- }
- }
-