home *** CD-ROM | disk | FTP | other *** search
- function PageInit()
- {
- var oUser = top.window.g_oSelectedUser;
- top.window.PopulateLeftPane(null, idLearnAboutContent.innerHTML);
- var szTitle = top.window.IsSelf() ? idPageTitle.innerHTML : idAltPageTitle.innerHTML;
- idPageTitle.innerHTML = szTitle.replace(/%1/g, top.window.GetUserDisplayName(oUser));
- var iAccountType = oUser.setting("AccountType");
- switch (iAccountType)
- {
- case 0:
- case 2:
- default:
- iAccountType = -1;
- break;
- case 1:
- break;
- case 3:
- iAccountType = 0;
- break;
- }
- if (iAccountType == 0 && top.window.CountOwners() < 2)
- {
- idLimited.disabled = true;
- idCantChange.style.display = 'block';
- idOK.disabled = 'true';
- }
- AttachAccountTypeEvents(iAccountType);
- var aRadioButtons = idRadioGroup.children;
- if (iAccountType >= 0 && iAccountType <= aRadioButtons.length)
- {
- var selection = aRadioButtons[iAccountType].firstChild;
- selection.click();
- selection.focus();
- }
- else
- aRadioButtons[0].firstChild.focus();
- }
- function ApplyNewAccountType()
- {
- SetAccountType(top.window.g_oSelectedUser);
- top.window.g_Navigator.navigate("mainpage.htm", true);
- }
-