home *** CD-ROM | disk | FTP | other *** search
/ Chip 2009 November / Chip_2009.11_CD.iso / I386 / nusrmgr.cp_ / nusrmgr.cpl / HTML / CREATEPAGE.JS < prev    next >
Encoding:
Text File  |  2008-04-14  |  702 b   |  36 lines

  1. function PageInit()
  2. {
  3. top.window.PopulateLeftPane();
  4. idWelcome.ttText = top.window.L_Welcome_ToolTip;
  5. idStart.ttText = top.window.L_Start_ToolTip;
  6. var szName = top.window.g_szNewName;
  7. if (szName && szName.length)
  8. {
  9. idNameInput.value = szName;
  10. idNameInput.createTextRange().select();
  11. }
  12. idNameInput.focus();
  13. }
  14. function Next()
  15. {
  16. var szName = GetText(idNameInput);
  17. if (szName.length)
  18. {
  19. var szMsg = ValidateAccountName(szName);
  20. if (szMsg)
  21. {
  22. alert(szMsg);
  23. idNameInput.createTextRange().select();
  24. idNameInput.focus();
  25. }
  26. else
  27. {
  28. top.window.g_szNewName = szName;
  29. top.window.g_iNewType = null;
  30. top.window.g_Navigator.navigate("createpage2.htm");
  31. }
  32. }
  33. else
  34. idNameInput.focus();
  35. }
  36.