Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

  1. var _oPassportMgr = null;
  2. function PageInit()
  3. {
  4. top.window.PopulateLeftPane(idRelatedTaskContent.innerHTML, idLearnAboutContent.innerHTML);
  5. _oPassportMgr = new ActiveXObject("UserAccounts.PassportManager");
  6. if (_oPassportMgr != null)
  7. {
  8. var strPassport = _oPassportMgr.currentPassport;
  9. if (strPassport && strPassport.length > 0)
  10. idPassportName.innerText = strPassport;
  11. }
  12. else
  13. {
  14. // show error message?
  15. idOK.disabled = true;
  16. idEditPassport.disabled = true;
  17. }
  18. idOK.focus();
  19. }
  20. function LaunchPassportWizard()
  21. {
  22. if (_oPassportMgr.showWizard(top.window.document.title))
  23. top.window.g_Navigator.navigate("mainpage.htm",true);
  24. }
  25. function ModifyPassport()
  26. {
  27. var url = _oPassportMgr.memberServicesURL;
  28. if (url && url.length > 0)
  29. {
  30. window.open(url);
  31. // If we do this, User Accounts ends up on top.
  32. //top.window.g_Navigator.navigate("mainpage.htm",true);
  33. }
  34. else
  35. {
  36. idEditPassport.disabled = true;
  37. alert(top.window.L_NoPassportURL_ErrorMessage);
  38. }
  39. }