home *** CD-ROM | disk | FTP | other *** search
- var InocUI = window.external.ObjectArg;
- var MainFrame = window.parent;
-
- // Inoculation Actions
- var InocAction_Update = 0;
- var InocAction_Restore = 1;
- var InocAction_Ignore = 2;
-
- // Inoculation Types
- var InocType_BootRecord = 0;
- var InocType_MasterBootRecord = 1;
-
- var bNotifyOnly = false;
-
- function OnLoad()
- {
- OkButton.focus();
-
- bNotifyOnly = InocUI.NotifyOnly;
-
- if (bNotifyOnly == true)
- {
- // This is a notification dialog only, hide all inoculation actions/choices
- InocText2.style.display = "none";
- InocActionRow.style.display = "none";
- }
- else
- {
- InocText2.style.display = "";
- InocActionRow.style.display = "";
- }
-
- if (InocUI.InocType == InocType_BootRecord)
- {
- MasterBootRecordAlert.style.display = "none";
- BootRecordAlert.style.display = "";
-
- for (i = 0; i < MainFrame.MasterBootRecord.length; i++)
- {
- MainFrame.MasterBootRecord[i].style.display = "none";
- }
- for (i = 0; i < MainFrame.BootRecord.length; i++)
- {
- MainFrame.BootRecord[i].style.display = "";
- }
- }
- }
-
- function OnOkButton()
- {
- if (bNotifyOnly == true)
- {
- InocUI.InocAction = InocAction_Ignore;
- }
- else
- {
- if (MainFrame.UpdateInoculation.checked == true)
- InocUI.InocAction = InocAction_Update;
- else if (MainFrame.RestoreInoculation.checked == true)
- InocUI.InocAction = InocAction_Restore;
- else if (MainFrame.IgnoreInoculation.checked == true)
- InocUI.InocAction = InocAction_Ignore;
- }
-
- MainFrame.navigate("res://closeme.xyz");
- }