home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 November
/
Chip_2003-11_cd2.bin
/
nav2004
/
download
/
NAV
/
External
/
NORTON
/
APP
/
NAVComUI.dll
/
HTML
/
DETAILSUMMARY.JS
< prev
next >
Wrap
Text File
|
2003-08-17
|
3KB
|
108 lines
//
// Local Variable
//
var CommonUI;
var MainFrame = window.parent;
var RoadmapFrame = window.parent.frames("contents");
function OnLoad()
{
// diable the tab stop
body_DetailSummary.tabIndex = -1;
CommonUI = window.external.ObjectArg;
AxInfectionList.ScanResults = CommonUI.ScanResults;
// Figure out the second time from second to hr, min, sec
ScanTime = CommonUI.ScanTime;
ScanTimeHour = Math.floor(ScanTime / 3600);
ScanTimeMinute = Math.floor(ScanTime / 60) % 60;
ScanTimeSecond = ScanTime % 60;
if (ScanTimeHour > 0)
{
ScanTime_Hour.innerHTML = ScanTimeHour
ScanTime_Hour.style.display = "";
ScanTime_Hour_Text.style.display = "";
}
if (ScanTimeMinute > 0)
{
ScanTime_Minute.innerHTML = ScanTimeMinute;
ScanTime_Minute.style.display = "";
ScanTime_Minute_Text.style.display = "";
}
ScanTime_Second.innerHTML = ScanTimeSecond;
Finished.focus();
// Check if we need to set the email description fields
if (CommonUI.EmailDescription == true)
{
// Inform the ListVeiwCtrl this is an email scan
AxInfectionList.EmailScanning = true;
}
// Memory scan status
if (CommonUI.MemScanAvailable == true)
{
if (CommonUI.MemScanned == true)
{
// -- Memory scanned --
}
else
{
// -- Memory not scanned --
// Show the memory not scanned
MemoryNotScanned.style.display = "";
// Hide the memory scanned
MemoryScanned.style.display = "none";
}
}
else
{
// Hide the memory scan row
MemoryScanRow.style.display = "none";
// Hide the dash line that separates memory scan & compressed file scan
DashLine.style.display = "none";
// Subtract the memory scan row height from the table height
AdditionalInfoTable.height = 26;
// Increase the height of the ListView to make up for the hidden memory scan status
AxInfectionList.height = Number(AxInfectionList.height) + 25;
}
// Compressed files scan status
if (CommonUI.ScanCompressedFiles == true)
{
// -- Scanned compressed files --
}
else
{
// -- No Scanned compressed files --
// Hide the compressed files scanned cell
CompressedFilesScanned.style.display = "none";
// show the compressed file not scanned cell
CompressedFilesNotScanned.style.display = "";
}
}
function OnLessDetails()
{
window.parent.frames("contents").OnBackButton();
}
function OnFinishedButton()
{
RoadmapFrame.OnCancelButton();
}