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 >
Text File  |  2003-08-17  |  3KB  |  108 lines

  1. // 
  2. // Local Variable
  3. //
  4. var CommonUI;
  5. var MainFrame = window.parent;
  6. var RoadmapFrame = window.parent.frames("contents");
  7.  
  8. function OnLoad()
  9. {
  10.     // diable the tab stop
  11.     body_DetailSummary.tabIndex = -1;
  12.     
  13.     CommonUI = window.external.ObjectArg;
  14.     
  15.     AxInfectionList.ScanResults = CommonUI.ScanResults;
  16.  
  17.     // Figure out the second time from second to hr, min, sec
  18.     ScanTime = CommonUI.ScanTime;
  19.     
  20.     ScanTimeHour = Math.floor(ScanTime / 3600);
  21.     ScanTimeMinute = Math.floor(ScanTime / 60) % 60;
  22.     ScanTimeSecond = ScanTime % 60;
  23.     
  24.     if (ScanTimeHour > 0)
  25.     {
  26.         ScanTime_Hour.innerHTML = ScanTimeHour
  27.         ScanTime_Hour.style.display = "";
  28.         ScanTime_Hour_Text.style.display = "";
  29.     }
  30.     
  31.     if (ScanTimeMinute > 0)
  32.     {
  33.         ScanTime_Minute.innerHTML = ScanTimeMinute;
  34.         ScanTime_Minute.style.display = "";
  35.         ScanTime_Minute_Text.style.display = "";        
  36.     }
  37.  
  38.     ScanTime_Second.innerHTML = ScanTimeSecond;
  39.     
  40.     Finished.focus();
  41.  
  42.     // Check if we need to set the email description fields
  43.     if (CommonUI.EmailDescription == true)
  44.     {
  45.         // Inform the ListVeiwCtrl this is an email scan
  46.         AxInfectionList.EmailScanning = true;
  47.     }
  48.     
  49.     // Memory scan status
  50.     if (CommonUI.MemScanAvailable == true)
  51.     {
  52.         if (CommonUI.MemScanned == true)
  53.         {
  54.             // -- Memory scanned --
  55.         }
  56.         else
  57.         {
  58.             //  -- Memory not scanned --
  59.             
  60.             // Show the memory not scanned
  61.             MemoryNotScanned.style.display = "";
  62.  
  63.             // Hide the memory scanned
  64.             MemoryScanned.style.display = "none";
  65.         }
  66.     }
  67.     else
  68.     {
  69.         // Hide the memory scan row
  70.         MemoryScanRow.style.display = "none";
  71.         
  72.         // Hide the dash line that separates memory scan & compressed file scan
  73.         DashLine.style.display = "none";
  74.         
  75.         // Subtract the memory scan row height from the table height
  76.         AdditionalInfoTable.height = 26;
  77.         
  78.         // Increase the height of the ListView to make up for the hidden memory scan status
  79.         AxInfectionList.height = Number(AxInfectionList.height) + 25;
  80.     }
  81.     
  82.     // Compressed files scan status
  83.     if (CommonUI.ScanCompressedFiles == true)
  84.     {
  85.         // -- Scanned compressed files -- 
  86.     }
  87.     else
  88.     {
  89.         // -- No Scanned compressed files -- 
  90.         
  91.         // Hide the compressed files scanned cell
  92.         CompressedFilesScanned.style.display = "none";
  93.         
  94.         // show the compressed file not scanned cell
  95.         CompressedFilesNotScanned.style.display = "";
  96.     }
  97. }
  98.  
  99. function OnLessDetails()
  100. {
  101.     window.parent.frames("contents").OnBackButton();
  102. }
  103.  
  104. function OnFinishedButton()
  105. {
  106.     RoadmapFrame.OnCancelButton();
  107. }
  108.