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 >
Wrap
Text File
|
2003-08-15
|
2KB
|
99 lines
// Alert.js
//~~--~~//~~--~~//~~--~~//~~--~~//~~--~~//~~--~~//~~--~~
// HTML pages that include Alert.js
// must also include SymAlertStatic.js
//~~--~~//~~--~~//~~--~~//~~--~~//~~--~~//~~--~~//~~--~~
// Disable Drag-and-drop support
document.ondragstart = function(){return false;}
var IDH_PREACTIVATION_TRIAL_NAG = 11810;
var IDH_PREACTIVATION_EXPIRED_NAG = 11811;
function OnClose()
{
location.href = "res://closeme.xyz/";
}
function AlertOnLoad()
{
if(SymLauncher.IsHighContrast())
document.body.scroll = "yes";
window.returnValue = SYMALERT_RESULT_CANCEL;
var LicenseObj = window.external.ObjectArg;
var szProductName;
try
{
szProductName = LicenseObj.ProductName;
}
catch(err)
{
return;
}
document.title = szProductName;
ProductName1.innerText = szProductName;
}
function AlertOnLoadWithDaysRemaining()
{
if(SymLauncher.IsHighContrast())
document.body.scroll = "yes";
window.returnValue = SYMALERT_RESULT_CANCEL;
var LicenseObj = window.external.ObjectArg;
var szProductName;
var szDaysRemaining;
try
{
szProductName = LicenseObj.ProductName;
szDaysRemaining = LicenseObj.LicenseDaysRemaining;
}
catch(err)
{
return;
}
document.title = szProductName;
ProductName1.innerText = szProductName;
DaysRemaining.innerText = szDaysRemaining;
}
function AlertRetailOnClickOK()
{
if(ResolveBtn.checked == true)
{
window.returnValue = SYMALERT_RESULT_RESOLVELICENSE;
}
OnClose();
}
function AlertTryDieOnClickOK()
{
if(UninstallBtn.checked == true)
{
window.returnValue = SYMALERT_RESULT_UNINSTALL;
}
OnClose();
}
function AlertOnHelpClick(TopicID)
{
try
{
SymLauncher.LaunchHelp(TopicID);
}
catch(error)
{
}
}