Leaked source code of windows server 2003
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.

214 lines
4.7 KiB

  1. var g_migwizImgDir="images/";
  2. var g_migwizLastPage="";
  3. function migwiz_InitSimpleNavMap()
  4. {
  5. var migwiz_dir="html\\migwiz\\";
  6. g_SimpleNavMap.Add("migwiz.htm", migwiz_dir+"migwiz_2.htm");
  7. g_SimpleNavMap.Add("migwiz_2.htm", migwiz_dir+"migwiz_3.htm");
  8. g_SimpleNavMap.Add("migwiz_3.htm", migwiz_dir+"migwiz_4.htm");
  9. g_SimpleNavMap.Add("migwiz_4.htm", migwiz_dir+"migwiz_5.htm");
  10. g_SimpleNavMap.Add("migwiz_5.htm", migwiz_dir+"migwiz_6.htm");
  11. g_SimpleNavMap.Add("migwiz_6.htm", migwiz_dir+"migwiz_3a.htm");
  12. g_SimpleNavMap.Add("migwiz_3a.htm", migwiz_dir+"migwiz_3f.htm");
  13. g_SimpleNavMap.Add("migwiz_3f.htm", migwiz_dir+"migwiz_7.htm");
  14. g_SimpleNavMap.Add("migwiz_7.htm", migwiz_dir+"migwiz_5a.htm");
  15. g_SimpleNavMap.Add("migwiz_5a.htm", migwiz_dir+"migwiz_5b.htm");
  16. g_SimpleNavMap.Add("migwiz_5b.htm", migwiz_dir+"migwiz_5f.htm");
  17. g_migwizLastPage = "migwiz_5f.htm";
  18. }
  19. function migwizFirstPage_NextButton()
  20. {
  21. var simplenext = true;
  22. var foo = g.document.all.item("confirmed")
  23. if (null != foo)
  24. {
  25. if (true == foo(1).checked)
  26. {
  27. simplenext = false;
  28. }
  29. }
  30. if (simplenext)
  31. {
  32. g_migwizDefaultNext();
  33. }
  34. else
  35. {
  36. GoCancel();
  37. }
  38. }
  39. function migwizFirstPage_LoadMe()
  40. {
  41. InitFrameRef('External');
  42. if (g.btnNext != null)
  43. g_FirstFocusElement = g.btnNext;
  44. else if (g.btnSkip != null)
  45. g_FirstFocusElement = g.btnSkip;
  46. else if (g.btnBack != null)
  47. g_FirstFocusElement = g.btnBack;
  48. InitButtons(null, "SimpleNext");
  49. if (g_FirstFocusElement != null)
  50. g_FirstFocusElement.focus();
  51. else
  52. g.document.body.focus();
  53. if(GetCurrentPageName()=="migwiz.htm")
  54. {
  55. g.btnSkip.onclick = GoCancel;
  56. g.btnBack.onclick = GoBack;
  57. g_migwizDefaultNext = g.btnNext.onclick;
  58. g.btnNext.onclick = migwizFirstPage_NextButton;
  59. }
  60. g_FirstFocusElement.focus();
  61. }
  62. function migwizInteriorPage_LoadMe()
  63. {
  64. InitFrameRef('External');
  65. g_FirstFocusElement = g.btnNext;
  66. // InitButtons("DomigwizButtons");
  67. InitButtons("SimpleBack", "SimpleNext"); // This line added by jozeph
  68. g_FirstFocusElement.focus();
  69. }
  70. function migwizPage3_Back()
  71. {
  72. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_2.htm");
  73. }
  74. function migwizPage3_Next()
  75. {
  76. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_4.htm");
  77. }
  78. function migwizPage3_Fail()
  79. {
  80. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_3f.htm");
  81. }
  82. function migwizPage3_NoDisk()
  83. {
  84. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_3a.htm");
  85. }
  86. function migwizInteriorPage3_LoadMe()
  87. {
  88. InitFrameRef('External');
  89. }
  90. function migwiz_SkipToNotes()
  91. {
  92. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_7.htm");
  93. }
  94. function migwizPage3a_Next()
  95. {
  96. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_3.htm");
  97. }
  98. function migwizInteriorPage3a_LoadMe()
  99. {
  100. g.btnSkip.onclick = migwiz_SkipToNotes;
  101. g.btnNext.onclick = migwizPage3a_Next;
  102. }
  103. function migwizPage3f_Next()
  104. {
  105. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_2.htm");
  106. }
  107. function migwizInteriorPage3f_LoadMe()
  108. {
  109. g.btnSkip.onclick = migwiz_SkipToNotes;
  110. g.btnNext.onclick = migwizPage3f_Next;
  111. }
  112. function migwizInteriorPage4_LoadMe()
  113. {
  114. g.btnSkip.onclick = migwiz_SkipToNotes;
  115. }
  116. function migwizPage5_Back()
  117. {
  118. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_4.htm");
  119. }
  120. function migwizPage5_Next()
  121. {
  122. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_6.htm");
  123. }
  124. function migwizPage5_Fail()
  125. {
  126. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_5f.htm");
  127. }
  128. function migwizPage5_NoDisk()
  129. {
  130. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_5a.htm");
  131. }
  132. function migwizInteriorPage5_LoadMe()
  133. {
  134. InitFrameRef('External');
  135. }
  136. function migwizPage5a_Next()
  137. {
  138. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_5.htm");
  139. }
  140. function migwizInteriorPage5a_LoadMe()
  141. {
  142. g.btnSkip.onclick = migwiz_SkipToNotes;
  143. g.btnNext.onclick = migwizPage5a_Next;
  144. }
  145. function migwizPage5f_Next()
  146. {
  147. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz_4.htm");
  148. }
  149. function migwizPage5f_Back()
  150. {
  151. g.navigate(g_OOBEDir + "html\\migwiz\\migwiz.htm");
  152. }
  153. function migwizInteriorPage5f_LoadMe()
  154. {
  155. g.btnSkip.onclick = migwiz_SkipToNotes;
  156. g.btnBack.onclick = migwizPage5f_Back;
  157. g.btnNext.onclick = migwizPage5f_Next;
  158. }
  159. function migwizPage7_Next()
  160. {
  161. GoCancel();
  162. }
  163. function migwizInteriorPage7_LoadMe()
  164. {
  165. g.btnNext.onclick = migwizPage7_Next;
  166. }
  167. // This function added by jozeph
  168. function migwizLastPage_LoadMe()
  169. {
  170. InitFrameRef('External');
  171. g_FirstFocusElement = g.btnNext;
  172. InitButtons("SimpleBack");
  173. g_FirstFocusElement.focus();
  174. }
  175. function migwizGetLastPage()
  176. {
  177. return g_migwizLastPage;
  178. }