home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd2.bin / nav2004 / download / NAV / External / NORTON / NAVUIRES.dll / HTML / REPORTS.JS < prev    next >
Text File  |  2003-08-17  |  2KB  |  114 lines

  1. // reports.js
  2. g_ModuleID = 3002;
  3.  
  4. // Disable Drag-and-drop support
  5. document.ondragstart = function(){return false;}
  6.  
  7. // Show activity log
  8. function ShowActivityLog ()
  9. {
  10.     try
  11.     {
  12.         var AppLauncher = new ActiveXObject('Symantec.Norton.AntiVirus.AppLauncher');
  13.     }
  14.     catch (err)
  15.     {
  16.         var msg = document.frames("Errors").document.all.ERR_MSG_NO_LAUNCHER.innerText;
  17.         var id = document.frames("Errors").document.all.ERR_ID_NO_LAUNCHER.innerText;
  18.         g_ErrorHandler.DisplayNAVError (msg, id);
  19.         return;
  20.     }
  21.  
  22.     try
  23.     {
  24.         AppLauncher.LaunchActivityLog();
  25.     }
  26.     catch (NAVErr)
  27.     {
  28.         AppLauncher.NAVError.LogAndDisplay(0);
  29.     }
  30.  
  31.     delete AppLauncher;
  32. }
  33.  
  34. // Launch quarantine console
  35. function ShowQuarantine ()
  36. {
  37.     try
  38.     {
  39.         var AppLauncher = new ActiveXObject('Symantec.Norton.AntiVirus.AppLauncher');
  40.     }
  41.     catch (err)
  42.     {
  43.         var msg = document.frames("Errors").document.all.ERR_MSG_NO_LAUNCHER.innerText;
  44.         var id = document.frames("Errors").document.all.ERR_ID_NO_LAUNCHER.innerText;
  45.         g_ErrorHandler.DisplayNAVError (msg, id);
  46.         return;
  47.     }
  48.     
  49.     try 
  50.     {
  51.         AppLauncher.LaunchQuarantine();
  52.     }
  53.     catch (NAVErr)
  54.     {
  55.         AppLauncher.NAVError.LogAndDisplay(0);
  56.     }
  57.  
  58.     delete AppLauncher;
  59. }
  60.  
  61. function ShowHelp ()
  62. {
  63.     try
  64.     {
  65.         var AppLauncher = new ActiveXObject('Symantec.Norton.AntiVirus.AppLauncher');
  66.     }
  67.     catch (err)
  68.     {
  69.         var msg = document.frames("Errors").document.all.ERR_MSG_NO_LAUNCHER.innerText;
  70.         var id = document.frames("Errors").document.all.ERR_ID_NO_LAUNCHER.innerText;
  71.         g_ErrorHandler.DisplayNAVError (msg, id);
  72.         return;
  73.     }
  74.     
  75.     try 
  76.     {
  77.         AppLauncher.LaunchHelp (0);
  78.     }
  79.     catch (NAVErr)
  80.     {
  81.         AppLauncher.NAVError.LogAndDisplay(0);
  82.     }
  83.  
  84.     delete AppLauncher;
  85.  
  86. }
  87.  
  88. function ShowURL (strURL)
  89. {
  90.     try
  91.     {
  92.         var AppLauncher = new ActiveXObject('Symantec.Norton.AntiVirus.AppLauncher');
  93.     }
  94.     catch (err)
  95.     {
  96.         var msg = document.frames("Errors").document.all.ERR_MSG_NO_LAUNCHER.innerText;
  97.         var id = document.frames("Errors").document.all.ERR_ID_NO_LAUNCHER.innerText;
  98.         g_ErrorHandler.DisplayNAVError (msg, id);
  99.         return;
  100.     }
  101.  
  102.     try
  103.     {
  104.         AppLauncher.LaunchURL(strURL);
  105.     }
  106.     catch (NAVErr)
  107.     {
  108.         AppLauncher.NAVError.LogAndDisplay(0);
  109.     }
  110.  
  111.     delete AppLauncher;
  112. }
  113.  
  114.