home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd2.bin / nav2004 / download / NAV / External / CommonFi / SYMSHARE / DJSAlert.dll / HTML / ALERT.JS < prev    next >
Text File  |  2003-08-15  |  2KB  |  99 lines

  1. // Alert.js
  2.  
  3. //~~--~~//~~--~~//~~--~~//~~--~~//~~--~~//~~--~~//~~--~~
  4. // HTML pages that include Alert.js
  5. //  must also include SymAlertStatic.js
  6. //~~--~~//~~--~~//~~--~~//~~--~~//~~--~~//~~--~~//~~--~~
  7.  
  8. // Disable Drag-and-drop support
  9. document.ondragstart = function(){return false;}
  10.  
  11. var IDH_PREACTIVATION_TRIAL_NAG = 11810;
  12. var IDH_PREACTIVATION_EXPIRED_NAG = 11811;
  13.  
  14. function OnClose()
  15. {
  16.     location.href = "res://closeme.xyz/";
  17. }
  18.  
  19. function AlertOnLoad()
  20. {
  21.     if(SymLauncher.IsHighContrast()) 
  22.         document.body.scroll = "yes";
  23.  
  24.     window.returnValue = SYMALERT_RESULT_CANCEL;
  25.     
  26.     var LicenseObj = window.external.ObjectArg;
  27.     var szProductName;
  28.     
  29.     try
  30.     {
  31.         szProductName = LicenseObj.ProductName;
  32.     }
  33.     catch(err)
  34.     {
  35.         return;
  36.     }
  37.         
  38.     document.title = szProductName;
  39.     ProductName1.innerText = szProductName;
  40. }
  41.  
  42. function AlertOnLoadWithDaysRemaining()
  43. {
  44.     if(SymLauncher.IsHighContrast()) 
  45.         document.body.scroll = "yes";
  46.     
  47.     window.returnValue = SYMALERT_RESULT_CANCEL;
  48.     
  49.     var LicenseObj = window.external.ObjectArg;
  50.     var szProductName;
  51.     var szDaysRemaining;
  52.     
  53.     try
  54.     {
  55.         szProductName = LicenseObj.ProductName;
  56.         szDaysRemaining = LicenseObj.LicenseDaysRemaining;
  57.     }
  58.     catch(err)
  59.     {
  60.         return;
  61.     }
  62.  
  63.     document.title = szProductName;
  64.     ProductName1.innerText = szProductName;
  65.     DaysRemaining.innerText = szDaysRemaining;
  66. }
  67.  
  68. function AlertRetailOnClickOK()
  69. {
  70.     if(ResolveBtn.checked == true)
  71.     {
  72.         window.returnValue = SYMALERT_RESULT_RESOLVELICENSE;        
  73.     }
  74.         
  75.     OnClose();
  76. }
  77.  
  78. function AlertTryDieOnClickOK()
  79. {
  80.     if(UninstallBtn.checked == true)
  81.     {
  82.         window.returnValue = SYMALERT_RESULT_UNINSTALL;
  83.     }
  84.         
  85.     OnClose();
  86. }
  87.  
  88. function AlertOnHelpClick(TopicID)
  89. {
  90.     try
  91.     {
  92.         SymLauncher.LaunchHelp(TopicID);
  93.     }
  94.     catch(error)
  95.     {
  96.     }
  97. }
  98.  
  99.