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

  1. // advanced.js
  2. g_ModuleID = 3028;
  3.  
  4. // Disable Drag-and-drop support
  5. document.ondragstart = function(){return false;}
  6.  
  7. // Launch 
  8. function ShowUnerase ()
  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.LaunchUnEraseWizard();
  25.     }
  26.     catch (NAVErr)
  27.     {
  28.         AppLauncher.NAVError.LogAndDisplay (0);
  29.     }
  30.  
  31.     delete AppLauncher;
  32. }
  33.  
  34. function ShowWipeInfo ()
  35. {
  36.     try 
  37.     {
  38.         var AppLauncher = new ActiveXObject('Symantec.Norton.AntiVirus.AppLauncher');
  39.     }
  40.     catch (err)
  41.     {
  42.         var msg = document.frames("Errors").document.all.ERR_MSG_NO_LAUNCHER.innerText;
  43.         var id = document.frames("Errors").document.all.ERR_ID_NO_LAUNCHER.innerText;
  44.         g_ErrorHandler.DisplayNAVError (msg, id);
  45.         return;
  46.     }
  47.  
  48.     try
  49.     {
  50.         AppLauncher.LaunchWipeInfo ();
  51.     }
  52.     catch (NAVErr)
  53.     {
  54.         AppLauncher.NAVError.LogAndDisplay (0);
  55.     }
  56.  
  57.     delete AppLauncher;
  58. }
  59.