home *** CD-ROM | disk | FTP | other *** search
- var MainFrame = window.parent;
- var TimerID = 0;
-
- function OnLoad()
- {
- // Cheesy IE hack alert
- // If your page has no tabable controls and you disable tabbing to the body you will
- // crash the webwindow. Thus I have to enable tabbing to the subscription text
- SubscriptionStartText.tabIndex = 1;
- ExpirationDateText.tabIndex = 2;
- document.body.tabIndex=-1;
-
- //window.parent.frames("main").document.tabIndex = -1;
-
- if (MainFrame.g_bRoadmapFrameLoaded == true && MainFrame.g_bSelectFrameLoaded == true)
- {
- UpdatePage();
- }
- else
- {
- TimerID = setInterval("UpdatePage()", 500);
- }
- }
-
- function UpdatePage()
- {
- if (MainFrame.g_bRoadmapFrameLoaded == true && MainFrame.g_bSelectFrameLoaded == true)
- {
- // Remove the timer, we're done.
- clearInterval(TimerID);
-
- var SelectFrame = window.parent.frames("bottom");
- SelectFrame.NextButton.style.visibility = "visible";
- SelectFrame.NextButton.disabled = false;
- SelectFrame.NextButton.focus();
-
- var _LicenseRental = 2;
- var _LicenseZonePostActivation = 16;
- if (_LicenseRental == MainFrame.g_iLicenseType)
- {
- MainFrame.g_bActivateLicenseNow = true;
-
- // Disable the "Activate Now" and "Activate Later" buttons,
- // only if license is valid and has been activated.
- if ((true == MainFrame.g_bLicenseValid) &&
- ((MainFrame.g_iLicenseZone & _LicenseZonePostActivation ) == _LicenseZonePostActivation))
- {
- ActivationForm.ActivateNow.disabled = true;
- ActivationForm.ActivateLater.disabled = true;
- MainFrame.g_bActivateLicenseNow = false;
- }
- }
- else
- {
- try
- {
- SubscriptionLength.innerHTML = window.parent.frames("contents").CfgWizMgrObj.SubscriptionLength;
- StartDate = window.parent.frames("contents").CfgWizMgrObj.SubscriptionStartDate;
- EndDate = window.parent.frames("contents").CfgWizMgrObj.SubscriptionEndDate;
- }
- catch(err)
- {
- window.parent.frames("contents").CfgWizMgrObj.NAVError.LogAndDisplay(0);
- return;
- }
-
- if (StartDate == "")
- {
- SubscriptionStartDate.style.display = "none";
- SubscriptionStartDateNotAvailable.style.display = "";
- }
- else
- {
- SubscriptionStartDate.innerHTML = StartDate;
- }
-
- if (EndDate == "")
- {
- SubscriptionEndDate.style.display = "none";
- SubscriptionEndDateNotAvailable.style.display = "";
- }
- else
- {
- SubscriptionEndDate.innerHTML = EndDate;
- }
-
- if ( MainFrame.g_bIsNAVPro )
- {
- SubscriptionText1_pro.style.display = "";
- SubscriptionText1.style.display = "none";
- ProdName_pro.style.display = "";
- ProdName.style.display = "none";
- }
- }
- }
- }
-
- function OnActivateNowClick()
- {
- MainFrame.g_bActivateLicenseNow = true;
- }
-
- function OnActivateLaterClick()
- {
- MainFrame.g_bActivateLicenseNow = false;
- }
-