home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 November
/
Chip_2003-11_cd2.bin
/
nav2004
/
download
/
NAV
/
External
/
NORTON
/
APP
/
NAVComUI.dll
/
HTML
/
QUICKSUMMARY.JS
< prev
next >
Wrap
Text File
|
2003-08-17
|
6KB
|
201 lines
//
// Local Variable
//
var CommonUI;
var NAVLnch;
var MainFrame = window.parent;
var RoadmapFrame = window.parent.frames("contents");
var Detected = 0;
function OnRenewButton()
{
try
{
// Launch the wizard
NAVLnch.LaunchSubscriptionWizard();
}
catch(err)
{
NAVLnch.NAVError.LogAndDisplay(0);
}
// Re-check if the subscription is still expired or not
IsSubscriptionExpired();
}
function IsSubscriptionExpired()
{
try
{
// Get subscription expired
var bExpired = CommonUI.VirusDefSubscriptionExpired;
// Show the expired text if expired
if(bExpired)
{
RenewSubscritpionDashline.style.display="";
BottomTextData.height="35";
try
{
if(NAVLicense.CanRenewSubscription)
{
RenewSubscritpion.style.display="";
AdminRights.style.display="none";
}
else
{
RenewSubscritpion.style.display="none";
AdminRights.style.display="";
}
}
catch(err)
{
}
}
else
{
RenewSubscritpionDashline.style.display="none";
RenewSubscritpion.style.display="none";
BottomTextData.height="78";
}
}
catch(err)
{
}
}
function OnLoad()
{
CommonUI = window.external.ObjectArg;
try
{
// Create a NAV Launch object
NAVLnch = new ActiveXObject("Symantec.Norton.AntiVirus.AppLauncher");
}
catch(err)
{
}
try
{
NAVLicense = new ActiveXObject("NAVLicense.NAVLicenseInfo");
}
catch(err)
{
}
var bCheckSub = true;
try
{
bCheckSub = NAVLicense.ShouldCheckSubscription;
}
catch(err)
{
}
Finished.focus();
// Update the summary page
// If subscritption is expired show the renew information
if(bCheckSub)
{
IsSubscriptionExpired();
}
// Scan statistics
RoadmapFrame.g_nTotalItemScanned = CommonUI.ItemScanned;
Detected = RoadmapFrame.g_nTotalThreatsDetected + RoadmapFrame.g_nTotalItemInfected;
RoadmapFrame.g_nTotalMBRScanned = CommonUI.MBRScanned;
RoadmapFrame.g_nTotalMBRInfected = CommonUI.MBRInfected;
RoadmapFrame.g_nTotalMBRRepaired = CommonUI.MBRRepaired;
RoadmapFrame.g_nTotalBRScanned = CommonUI.BRScanned;
RoadmapFrame.g_nTotalBRInfected = CommonUI.BRInfected;
RoadmapFrame.g_nTotalBRRepaired = CommonUI.BRRepaired;
if (RoadmapFrame.g_nTotalItemInfected > 0 || RoadmapFrame.g_nTotalThreatsDetected > 0)
{
// Infection found
InfectionFound.style.display = "";
NoInfectionFound.style.display = "none";
}
else
{
// No infection found
InfectionFound.style.display = "none";
NoInfectionFound.style.display = "";
}
// Check if this is from Email Scanning
if (RoadmapFrame.g_bEmailScanning == true)
{
EmailInfection.style.display = "";
}
ScanFileCount.innerHTML = RoadmapFrame.g_nTotalItemScanned;
ScanMBRCount.innerHTML = RoadmapFrame.g_nTotalMBRScanned;
ScanBRCount.innerHTML = RoadmapFrame.g_nTotalBRScanned;
InfectedFileCount.innerHTML = Detected - RoadmapFrame.g_nTotalMBRInfected - RoadmapFrame.g_nTotalBRInfected;
InfectedMBRCount.innerHTML = RoadmapFrame.g_nTotalMBRInfected;
InfectedBRCount.innerHTML = RoadmapFrame.g_nTotalBRInfected;
RepairedFileCount.innerHTML = RoadmapFrame.g_nTotalItemRepaired - RoadmapFrame.g_nTotalMBRRepaired - RoadmapFrame.g_nTotalBRRepaired;
RepairedMBRCount.innerHTML = RoadmapFrame.g_nTotalMBRRepaired;
RepairedBRCount.innerHTML = RoadmapFrame.g_nTotalBRRepaired;
QuaratinedFileCount.innerHTML = RoadmapFrame.g_nTotalItemQuarantined;
DeletedFileCount.innerHTML = RoadmapFrame.g_nTotalItemDeleted + RoadmapFrame.g_nTotalThreatsDeleted;
ExcludedFileCount.innerHTML = RoadmapFrame.g_nTotalThreatsExcluded;
RoadmapFrame.g_nRemainingInfection = Detected - RoadmapFrame.g_nTotalItemRepaired - RoadmapFrame.g_nTotalItemQuarantined - RoadmapFrame.g_nTotalItemDeleted - RoadmapFrame.g_nTotalThreatsDetected;
RoadmapFrame.g_nRemainingThreats = RoadmapFrame.g_nTotalThreatsDetected - RoadmapFrame.g_nTotalThreatsExcluded - RoadmapFrame.g_nTotalThreatsDeleted;
if ( Number(RoadmapFrame.g_nRemainingInfection) > 0 )
{
InfectionRemainingCount.innerHTML = RoadmapFrame.g_nRemainingInfection;
InfectionRemainingText.style.display = "";
InfectionRemainingCount.style.display = "";
InfectionRemainingText2.style.display = "";
// Add the threat cat info if necessary
if( RoadmapFrame.g_bThreatCatEnabled == true && Number(RoadmapFrame.g_nRemainingThreats) > 0 )
{
ThreatRemainingCount.innerHTML = RoadmapFrame.g_nRemainingThreats;
ThreatRemainingTextConjunction.style.display = "";
ThreatRemainingCount.style.display = "";
ThreatRemainingText2.style.display = "";
}
else
{
InfectionPeriod.style.display = "";
}
}
// Only non-viral threats remain, just show threat cat info
else if( RoadmapFrame.g_bThreatCatEnabled == true && Number(RoadmapFrame.g_nRemainingThreats) > 0)
{
ThreatRemainingCount.innerHTML = RoadmapFrame.g_nRemainingThreats;
InfectionRemainingText.style.display = "";
ThreatRemainingCount.style.display = "";
ThreatRemainingText2.style.display = "";
}
}
function OnMoreDetails()
{
window.parent.frames("contents").OnNextButton();
}
function OnKeyPress()
{
// Launch moreinfo from the keyboard.
// The "SPACEBAR" and "ENTER" keys are used.
if ( (event.keyCode == SPACEBAR_KEY) || (event.keyCode == ENTER_KEY) )
{
CommonUI.Help(11584);
}
}
function OnFinishedButton()
{
RoadmapFrame.OnCancelButton();
}