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.

798 lines
32 KiB

  1. //get localized strings
  2. locdoc = new ActiveXObject("microsoft.XMLDOM");//PENDING try
  3. locdoc.async = false;
  4. locdoc.load("loc_strings.xml");
  5. //general
  6. var MSG_GENERIC_ERR = locdoc.getElementsByTagName("generic_err").item(0).text;
  7. var MSG_SPECIFIC_ERR = locdoc.getElementsByTagName("specific_err").item(0).text;
  8. var MSG_ADMINONLY = locdoc.getElementsByTagName("adminonly").item(0).text;
  9. var MSG_LOCALONLY = locdoc.getElementsByTagName("localonly").item(0).text;
  10. var MSG_ONLYINHELPCTR = locdoc.getElementsByTagName("onlyinhelpctr").item(0).text;
  11. var MSG_REMOTECONNECTFAILED = locdoc.getElementsByTagName("remote_connect_failed").item(0).text;
  12. var MSG_REMOTEACCESSDENIED = locdoc.getElementsByTagName("remote_access_denied").item(0).text;
  13. var MSG_WAIT = locdoc.getElementsByTagName("wait").item(0).text;
  14. var MSG_COLLECTINGINFO = locdoc.getElementsByTagName("collecting_info").item(0).text;
  15. var MSG_NOTIMPL = locdoc.getElementsByTagName("not_implemented").item(0).text;
  16. var DESC_SUPPORTED = locdoc.getElementsByTagName("desc_supported").item(0).text;
  17. var DESC_NOTSUPPORTED = locdoc.getElementsByTagName("desc_notsupported").item(0).text;
  18. var TAG_LOCALCOMPINFO = locdoc.getElementsByTagName("local_computer_info").item(0).text;
  19. var TAG_REMOTECOMPINFO = locdoc.getElementsByTagName("remote_computer_info").item(0).text;
  20. var TAG_LOCALADVINFO = locdoc.getElementsByTagName("local_advanced_info").item(0).text;
  21. var TAG_REMOTEADVINFO = locdoc.getElementsByTagName("remote_advanced_info").item(0).text;
  22. var TAG_REFRESH = locdoc.getElementsByTagName("refresh").item(0).text;
  23. var TAG_NONE = locdoc.getElementsByTagName("none").item(0).text;
  24. var TAG_INSTALLED = locdoc.getElementsByTagName("installed").item(0).text;
  25. var TAG_NOTINSTALLED = locdoc.getElementsByTagName("not_installed").item(0).text;
  26. var TAG_BYTES = locdoc.getElementsByTagName("bytes").item(0).text;
  27. var TAG_KB = locdoc.getElementsByTagName("kb").item(0).text;
  28. var TAG_MB = locdoc.getElementsByTagName("mb").item(0).text;
  29. var TAG_GB = locdoc.getElementsByTagName("gb").item(0).text;
  30. //EO general
  31. //main
  32. var TAG_MAINPGDESC = locdoc.getElementsByTagName("main_pg_desc").item(0).text;
  33. var TAG_VIEWGENINFO = locdoc.getElementsByTagName("view_general_sysinfo").item(0).text;
  34. var TAG_VIEWSTATUS = locdoc.getElementsByTagName("view_status_hrdwr_sftwr").item(0).text;
  35. var TAG_FINDHRDWRINFO = locdoc.getElementsByTagName("find_hrdwr_info").item(0).text;
  36. var TAG_VIEWMSSFTWR = locdoc.getElementsByTagName("view_ms_sftwr").item(0).text;
  37. var TAG_VIEWADVSYSINFO = locdoc.getElementsByTagName("view_advanced_sysinfo").item(0).text;
  38. var TAG_PROPERTIES = locdoc.getElementsByTagName("properties").item(0).text;
  39. var DESC_PROPERTIES = locdoc.getElementsByTagName("desc_properties").item(0).text;
  40. var TAG_HEALTH = locdoc.getElementsByTagName("health").item(0).text;
  41. var DESC_HEALTH = locdoc.getElementsByTagName("desc_health").item(0).text;
  42. var TAG_HARDWARE = locdoc.getElementsByTagName("hardware").item(0).text;
  43. var DESC_HARDWARE = locdoc.getElementsByTagName("desc_hardware").item(0).text;
  44. var TAG_SOFTWARE = locdoc.getElementsByTagName("software").item(0).text;
  45. var DESC_SOFTWARE = locdoc.getElementsByTagName("desc_software").item(0).text;
  46. var DESC_ADVANCED = locdoc.getElementsByTagName("desc_advanced").item(0).text;
  47. //EO main
  48. //properties
  49. var TAG_SPECIFICATIONS = locdoc.getElementsByTagName("specifications").item(0).text;
  50. var TAG_SYSTEMMODEL = locdoc.getElementsByTagName("system_model").item(0).text;
  51. var TAG_BIOSVERSION = locdoc.getElementsByTagName("BIOS_version").item(0).text;
  52. var TAG_PROCESSOR = locdoc.getElementsByTagName("processor").item(0).text;
  53. var TAG_VERSION = locdoc.getElementsByTagName("version").item(0).text;
  54. var TAG_SPEED = locdoc.getElementsByTagName("speed").item(0).text;
  55. var TAG_MHZ = locdoc.getElementsByTagName("mhz").item(0).text;
  56. var TAG_OS = locdoc.getElementsByTagName("operating_system").item(0).text;
  57. var TAG_ACTIVATINSTATUS = locdoc.getElementsByTagName("activation_status").item(0).text;
  58. var TAG_SP = locdoc.getElementsByTagName("service_pack").item(0).text;
  59. var TAG_LOCATION = locdoc.getElementsByTagName("location").item(0).text;
  60. var TAG_PID = locdoc.getElementsByTagName("pid").item(0).text;
  61. var TAG_HOTFIX = locdoc.getElementsByTagName("hot_fix").item(0).text;
  62. var TAG_LANGUAGE = locdoc.getElementsByTagName("language").item(0).text;
  63. var TAG_WKSTATIONSTANDALONE = locdoc.getElementsByTagName("workstation_standalone").item(0).text;
  64. var TAG_WKSTATION = locdoc.getElementsByTagName("workstation").item(0).text;
  65. var TAG_SERVERSTANDALONE = locdoc.getElementsByTagName("server_standalone").item(0).text;
  66. var TAG_SERVER = locdoc.getElementsByTagName("server").item(0).text;
  67. var TAG_BKUPCTRLR = locdoc.getElementsByTagName("backup_domain_controller").item(0).text;
  68. var TAG_PRICTRLR = locdoc.getElementsByTagName("primary_domain_controller").item(0).text;
  69. var TAG_GENCOMPINFO = locdoc.getElementsByTagName("general_computer_info").item(0).text;
  70. var TAG_GENCOMPINFOCAPTION = locdoc.getElementsByTagName("general_computer_info_caption").item(0).text;
  71. var TAG_SYSTEMNAME = locdoc.getElementsByTagName("system_name").item(0).text;
  72. var TAG_DOMAIN = locdoc.getElementsByTagName("domain").item(0).text;
  73. var TAG_TIMEZONE = locdoc.getElementsByTagName("time_zone").item(0).text;
  74. var TAG_COUNTRYREGION = locdoc.getElementsByTagName("country_region").item(0).text;
  75. var TAG_CONNECTION = locdoc.getElementsByTagName("connection").item(0).text;
  76. var TAG_PRXYSVR = locdoc.getElementsByTagName("proxy_srver").item(0).text;
  77. var TAG_PRXYAUTODETECT = locdoc.getElementsByTagName("auto").item(0).text;
  78. var TAG_IPADDR = locdoc.getElementsByTagName("IP_address").item(0).text;
  79. var TAG_IPXADDR = locdoc.getElementsByTagName("IPX_address").item(0).text;
  80. var TAG_NOTENABLED = locdoc.getElementsByTagName("not_enabled").item(0).text;
  81. var TAG_LOCALE0409 = locdoc.getElementsByTagName("locale0409").item(0).text;
  82. var TAG_LOCALE040c = locdoc.getElementsByTagName("locale040c").item(0).text;
  83. var TAG_LOCALE0c0a = locdoc.getElementsByTagName("locale0c0a").item(0).text;
  84. var TAG_LOCALE0410 = locdoc.getElementsByTagName("locale0410").item(0).text;
  85. var TAG_LOCALE041D = locdoc.getElementsByTagName("locale041D").item(0).text;
  86. var TAG_LOCALE0413 = locdoc.getElementsByTagName("locale0413").item(0).text;
  87. var TAG_LOCALE0416 = locdoc.getElementsByTagName("locale0416").item(0).text;
  88. var TAG_LOCALE040b = locdoc.getElementsByTagName("locale040b").item(0).text;
  89. var TAG_LOCALE0414 = locdoc.getElementsByTagName("locale0414").item(0).text;
  90. var TAG_LOCALE0406 = locdoc.getElementsByTagName("locale0406").item(0).text;
  91. var TAG_LOCALE040e = locdoc.getElementsByTagName("locale040e").item(0).text;
  92. var TAG_LOCALE0415 = locdoc.getElementsByTagName("locale0415").item(0).text;
  93. var TAG_LOCALE0419 = locdoc.getElementsByTagName("locale0419").item(0).text;
  94. var TAG_LOCALE0405 = locdoc.getElementsByTagName("locale0405").item(0).text;
  95. var TAG_LOCALE0408 = locdoc.getElementsByTagName("locale0408").item(0).text;
  96. var TAG_LOCALE0816 = locdoc.getElementsByTagName("locale0816").item(0).text;
  97. var TAG_LOCALE041f = locdoc.getElementsByTagName("locale041f").item(0).text;
  98. var TAG_LOCALE0411 = locdoc.getElementsByTagName("locale0411").item(0).text;
  99. var TAG_LOCALE0412 = locdoc.getElementsByTagName("locale0412").item(0).text;
  100. var TAG_LOCALE0407 = locdoc.getElementsByTagName("locale0407").item(0).text;
  101. var TAG_LOCALE0804 = locdoc.getElementsByTagName("locale0804").item(0).text;
  102. var TAG_LOCALE0404 = locdoc.getElementsByTagName("locale0404").item(0).text;
  103. var TAG_LOCALE0401 = locdoc.getElementsByTagName("locale0401").item(0).text;
  104. var TAG_LOCALE040d = locdoc.getElementsByTagName("locale040d").item(0).text;
  105. var TAG_COUNTRY61 = locdoc.getElementsByTagName("country61").item(0).text;
  106. var TAG_COUNTRY43 = locdoc.getElementsByTagName("country43").item(0).text;
  107. var TAG_COUNTRY32 = locdoc.getElementsByTagName("country32").item(0).text;
  108. var TAG_COUNTRY55 = locdoc.getElementsByTagName("country55").item(0).text;
  109. var TAG_COUNTRY2 = locdoc.getElementsByTagName("country2").item(0).text;
  110. var TAG_COUNTRY45 = locdoc.getElementsByTagName("country45").item(0).text;
  111. var TAG_COUNTRY358 = locdoc.getElementsByTagName("country358").item(0).text;
  112. var TAG_COUNTRY33 = locdoc.getElementsByTagName("country33").item(0).text;
  113. var TAG_COUNTRY49 = locdoc.getElementsByTagName("country49").item(0).text;
  114. var TAG_COUNTRY354 = locdoc.getElementsByTagName("country354").item(0).text;
  115. var TAG_COUNTRY353 = locdoc.getElementsByTagName("country353").item(0).text;
  116. var TAG_COUNTRY39 = locdoc.getElementsByTagName("country39").item(0).text;
  117. var TAG_COUNTRY81 = locdoc.getElementsByTagName("country81").item(0).text;
  118. var TAG_COUNTRY52 = locdoc.getElementsByTagName("country52").item(0).text;
  119. var TAG_COUNTRY31 = locdoc.getElementsByTagName("country31").item(0).text;
  120. var TAG_COUNTRY64 = locdoc.getElementsByTagName("country64").item(0).text;
  121. var TAG_COUNTRY47 = locdoc.getElementsByTagName("country47").item(0).text;
  122. var TAG_COUNTRY351 = locdoc.getElementsByTagName("country351").item(0).text;
  123. var TAG_COUNTRY86 = locdoc.getElementsByTagName("country86").item(0).text;
  124. var TAG_COUNTRY82 = locdoc.getElementsByTagName("country82").item(0).text;
  125. var TAG_COUNTRY34 = locdoc.getElementsByTagName("country34").item(0).text;
  126. var TAG_COUNTRY46 = locdoc.getElementsByTagName("country46").item(0).text;
  127. var TAG_COUNTRY41 = locdoc.getElementsByTagName("country41").item(0).text;
  128. var TAG_COUNTRY886 = locdoc.getElementsByTagName("country886").item(0).text;
  129. var TAG_COUNTRY44 = locdoc.getElementsByTagName("country44").item(0).text;
  130. var TAG_COUNTRY1 = locdoc.getElementsByTagName("country1").item(0).text;
  131. var TAG_MEMORY = locdoc.getElementsByTagName("memory").item(0).text;
  132. var TAG_TOTALCAPACITY = locdoc.getElementsByTagName("total_capacity").item(0).text;
  133. var TAG_SUMHARDDRIVES = locdoc.getElementsByTagName("sum_hard_disks").item(0).text;
  134. //EO properties
  135. //Health
  136. var TAG_WINUPDATE = locdoc.getElementsByTagName("windows_update").item(0).text;
  137. var TAG_DEFRAG = locdoc.getElementsByTagName("defrag").item(0).text;
  138. var TAG_CLEANUP = locdoc.getElementsByTagName("cleanup").item(0).text;
  139. var TAG_HCLDESC = locdoc.getElementsByTagName("HCL_Desc").item(0).text;
  140. var TAG_VIEWHELP = locdoc.getElementsByTagName("view_help").item(0).text;
  141. var TAG_TSHOOTER = locdoc.getElementsByTagName("tshooter").item(0).text;
  142. var TAG_SYSTEMSOFTWARE = locdoc.getElementsByTagName("system_software").item(0).text;
  143. var TAG_DATECREATED = locdoc.getElementsByTagName("date_created").item(0).text;
  144. var TAG_UPDATE = locdoc.getElementsByTagName("update").item(0).text;
  145. var TAG_HELP = locdoc.getElementsByTagName("help").item(0).text;
  146. var TAG_AVAILABLE = locdoc.getElementsByTagName("available").item(0).text;
  147. var TAG_NOINFO = locdoc.getElementsByTagName("no_info").item(0).text;
  148. var TAG_BIOS = locdoc.getElementsByTagName("bios").item(0).text;
  149. var TAG_HARDWARE = locdoc.getElementsByTagName("hardware").item(0).text;
  150. var TAG_COMPONENT = locdoc.getElementsByTagName("component").item(0).text;
  151. var TAG_STATUS = locdoc.getElementsByTagName("status").item(0).text;
  152. var TAG_VIDEOCARD = locdoc.getElementsByTagName("video_card").item(0).text;
  153. var TAG_SOUNDCARD = locdoc.getElementsByTagName("sound_card").item(0).text;
  154. var TAG_USBCTRLR = locdoc.getElementsByTagName("usb_controller").item(0).text;
  155. var TAG_SCSIADAPTR = locdoc.getElementsByTagName("scsi_adapter").item(0).text;
  156. var TAG_NWCARD = locdoc.getElementsByTagName("nw_card").item(0).text;
  157. var TAG_SUPPORTED = locdoc.getElementsByTagName("supported").item(0).text;
  158. var TAG_NOTSUPPORTED = locdoc.getElementsByTagName("not_supported").item(0).text;
  159. var TAG_RECOMMENDED = locdoc.getElementsByTagName("recommended").item(0).text;
  160. var TAG_NOTREQ = locdoc.getElementsByTagName("not_req").item(0).text;
  161. var TAG_HARDDISK = locdoc.getElementsByTagName("hard_disk").item(0).text;
  162. var TAG_DISKPARTITION = locdoc.getElementsByTagName("disk_partition").item(0).text;
  163. var TAG_USAGE = locdoc.getElementsByTagName("usage").item(0).text;
  164. var TAG_USAGELOW = locdoc.getElementsByTagName("usage_low").item(0).text;
  165. var TAG_USAGEMED = locdoc.getElementsByTagName("usage_med").item(0).text;
  166. var TAG_USAGEHIGH = locdoc.getElementsByTagName("usage_high").item(0).text;
  167. var TAG_USAGECRITICAL = locdoc.getElementsByTagName("usage_critical").item(0).text;
  168. var TAG_LOCALDISK = locdoc.getElementsByTagName("local_disk").item(0).text;
  169. var TAG_MOREINFO = locdoc.getElementsByTagName("more_info").item(0).text;
  170. var TAG_PARTITIONED = locdoc.getElementsByTagName("partitioned").item(0).text;
  171. var TAG_NONPARTITIONED = locdoc.getElementsByTagName("nonpartitioned").item(0).text;
  172. var TAG_RAM = locdoc.getElementsByTagName("ram").item(0).text;
  173. var TAG_RAMDETECTED = locdoc.getElementsByTagName("mem_detected").item(0).text;
  174. var TAG_RAMMINREQ = locdoc.getElementsByTagName("min_req").item(0).text;
  175. var TAG_RAMMINREQVALUE = locdoc.getElementsByTagName("min_req_value").item(0).text;
  176. var TAG_DEFECTIVEAPPSTITLE = locdoc.getElementsByTagName("defective_apps_title").item(0).text;
  177. var TAG_DEFECTIVEAPPNAME = locdoc.getElementsByTagName("defective_app_name").item(0).text;
  178. var TAG_DEFECTIVEAPPDRVRNAME = locdoc.getElementsByTagName("defective_driver_name").item(0).text;
  179. var TAG_DEFECTIVEAPPMANUFACTURER = locdoc.getElementsByTagName("defective_app_manufacturer").item(0).text;
  180. //EO Health
  181. //Hardware
  182. var TAG_CAPACITY = locdoc.getElementsByTagName("capacity").item(0).text;
  183. var TAG_USED = locdoc.getElementsByTagName("used").item(0).text;
  184. var TAG_FREE = locdoc.getElementsByTagName("free").item(0).text;
  185. var TAG_DISPLAY = locdoc.getElementsByTagName("display").item(0).text;
  186. var TAG_TYPE = locdoc.getElementsByTagName("type").item(0).text;
  187. var TAG_COLOR = locdoc.getElementsByTagName("color").item(0).text;
  188. var TAG_RESOLUTION = locdoc.getElementsByTagName("resolution").item(0).text;
  189. var TAG_SCRSAVER = locdoc.getElementsByTagName("screen_saver").item(0).text;
  190. var TAG_NOTACTIVE = locdoc.getElementsByTagName("not_active").item(0).text;
  191. var TAG_ACTIVE = locdoc.getElementsByTagName("active").item(0).text;
  192. var TAG_COLOR16 = locdoc.getElementsByTagName("colors_16").item(0).text;
  193. var TAG_COLOR256 = locdoc.getElementsByTagName("colors_256").item(0).text;
  194. var TAG_COLORHIGH = locdoc.getElementsByTagName("colors_high").item(0).text;
  195. var TAG_COLORTRUE24 = locdoc.getElementsByTagName("colors_true_24").item(0).text;
  196. var TAG_COLORTRUE32 = locdoc.getElementsByTagName("colors_true_32").item(0).text;
  197. var TAG_OTHER = locdoc.getElementsByTagName("other").item(0).text;
  198. var TAG_UNKNOWN = locdoc.getElementsByTagName("unknown").item(0).text;
  199. var TAG_MANUFACTURER = locdoc.getElementsByTagName("manufacturer").item(0).text;
  200. var TAG_MODEL = locdoc.getElementsByTagName("model").item(0).text;
  201. var TAG_DRIVER = locdoc.getElementsByTagName("driver").item(0).text;
  202. var TAG_MODEM = locdoc.getElementsByTagName("modem").item(0).text;
  203. var TAG_CDROMDRIVE = locdoc.getElementsByTagName("cdrom_drive").item(0).text;
  204. var TAG_LOCALDISKS = locdoc.getElementsByTagName("local_disks").item(0).text;
  205. var TAG_FLOPPYDRIVE = locdoc.getElementsByTagName("floppy_drive").item(0).text;
  206. var TAG_PRINTERS = locdoc.getElementsByTagName("printers").item(0).text;
  207. var TAG_DEFAULTPRINTER = locdoc.getElementsByTagName("default_printer").item(0).text;
  208. //EO Hardware
  209. //Software
  210. var TAG_REGSOFTWARE = locdoc.getElementsByTagName("registered_software").item(0).text;
  211. var TAG_PRODUCTIDENTIFICATION = locdoc.getElementsByTagName("product_identification").item(0).text;
  212. var TAG_SHOWADVANCED = locdoc.getElementsByTagName("show_advanced").item(0).text;
  213. var TAG_HIDEADVANCED = locdoc.getElementsByTagName("hide_advanced").item(0).text;
  214. var TAG_STARTPROGGR = locdoc.getElementsByTagName("startup_prog_gr").item(0).text;
  215. var TAG_INSTALLDATE = locdoc.getElementsByTagName("install_date").item(0).text;
  216. var TAG_SERVICES = locdoc.getElementsByTagName("services").item(0).text;
  217. var TAG_SERVICE = locdoc.getElementsByTagName("service").item(0).text;
  218. var TAG_EXECUTABLE = locdoc.getElementsByTagName("executable").item(0).text;
  219. var TAG_STARTUP = locdoc.getElementsByTagName("startup").item(0).text;
  220. var TAG_ERRLOG = locdoc.getElementsByTagName("error_log").item(0).text;
  221. var TAG_WATSONLOG = locdoc.getElementsByTagName("watson_log").item(0).text;
  222. var TAG_WATSONLOGCAPTION = locdoc.getElementsByTagName("watson_log_caption").item(0).text;
  223. var TAG_DATETIME = locdoc.getElementsByTagName("datetime").item(0).text;
  224. var TAG_SOURCE = locdoc.getElementsByTagName("source").item(0).text;
  225. var TAG_DESCRIPTION = locdoc.getElementsByTagName("description").item(0).text;
  226. var TAG_ERROR = locdoc.getElementsByTagName("error").item(0).text;
  227. var TAG_WARNING = locdoc.getElementsByTagName("warning").item(0).text;
  228. var TAG_INFORMATION = locdoc.getElementsByTagName("information").item(0).text;
  229. //EO Software
  230. //Remote
  231. var TAG_HELPSUPPSERVICES = locdoc.getElementsByTagName("help_support_services").item(0).text;
  232. var TAG_VIEWREMOTEINFO = locdoc.getElementsByTagName("view_computer_information").item(0).text;
  233. var TAG_NAME = locdoc.getElementsByTagName("name").item(0).text;
  234. var TAG_OPEN = locdoc.getElementsByTagName("open").item(0).text;
  235. var TAG_CANCEL = locdoc.getElementsByTagName("cancel").item(0).text;
  236. //EO Remote
  237. //Launch
  238. var TAG_ADVANEDSYSTEMINFO = locdoc.getElementsByTagName("advanced_system_info").item(0).text;
  239. var TAG_WHATDOYOUWANTTODO = locdoc.getElementsByTagName("what_do_you_want_todo").item(0).text;
  240. var TAG_ADVANEDSYSTEMINFODESC = locdoc.getElementsByTagName("advanced_system_info_desc").item(0).text;
  241. var TAG_VIEWDETAILEDSYSTEMINFO = locdoc.getElementsByTagName("view_detailed_sysinfo").item(0).text;
  242. var TAG_VIEWSERVICES = locdoc.getElementsByTagName("view_running_services").item(0).text;
  243. var TAG_VIEWPOLICY = locdoc.getElementsByTagName("view_policy").item(0).text;
  244. var TAG_VIEWERRLOG = locdoc.getElementsByTagName("view_err_log").item(0).text;
  245. var TAG_REMOTE_VIEW = locdoc.getElementsByTagName("remote_view").item(0).text;
  246. var DESC_DETAILEDSYSINFO = locdoc.getElementsByTagName("desc_detailed_sysinfo").item(0).text;
  247. var DESC_RUNNINGSERVICES = locdoc.getElementsByTagName("desc_running_services").item(0).text;
  248. var DESC_POLICY = locdoc.getElementsByTagName("desc_policy").item(0).text;
  249. var DESC_ERRLOG = locdoc.getElementsByTagName("desc_err_log").item(0).text;
  250. var DESC_REMOTE_VIEW = locdoc.getElementsByTagName("desc_remote_view").item(0).text;
  251. var TAG_CLEANUPLINK = locdoc.getElementsByTagName("cleanup_link").item(0).text;
  252. var TAG_CLEANUPDESC = locdoc.getElementsByTagName("cleanup_desc").item(0).text;
  253. var TAG_DEFRAGREADNORE = locdoc.getElementsByTagName("defrag_read_more").item(0).text;
  254. var TAG_DEFRAGDESC = locdoc.getElementsByTagName("defrag_desc").item(0).text;
  255. var TAG_SYSCONFIG = locdoc.getElementsByTagName("system_config_util").item(0).text;
  256. var TAG_OPENSYSCONFIG = locdoc.getElementsByTagName("open_system_config_util").item(0).text;
  257. var TAG_SYSCONFIGDESC = locdoc.getElementsByTagName("system_config_util_desc").item(0).text;
  258. //EO Launch
  259. //Event Log
  260. var TAG_ERRLOG = locdoc.getElementsByTagName("evt_err_log").item(0).text;
  261. //EO Event Log
  262. //Policy
  263. var TAG_POLICY = locdoc.getElementsByTagName("policy").item(0).text;
  264. //EO Policy
  265. var wbemImpersonationLevelImpersonate = 3;
  266. var WinUpdate = "%SystemRoot%\\system32\\wupdmgr.exe";
  267. var Defrag = "%SystemRoot%\\System32\\dfrg.msc";
  268. var CleanUp = "%SystemRoot%\\System32\\cleanmgr.exe";
  269. var MSConfig = "%SystemRoot%\\PCHEALTH\\HELPCTR\\Binaries\\msconfig.exe /basic";
  270. var TIMEOUT = 10; //msecs
  271. //breaks a long string along delimitors
  272. //if a 'delim' delimited segment has more chars than 'maxChars',
  273. //a BREAK char is inserted after 'maxChars' chars.
  274. //the modified string is returned.
  275. function intelliBreak(longstr, delim, maxChars)
  276. {
  277. if(longstr.length > maxChars)
  278. {
  279. var s1 = "", s2 = "";
  280. var arr = longstr.split(delim);
  281. for(var i = 0; i < arr.length; i++)
  282. {
  283. if((s1.length + arr[i].length) > maxChars)
  284. {
  285. arr[i] = simpleBreak(arr[i], maxChars);
  286. s1+= (s1 ? BREAK : "");
  287. s2 += s1;
  288. s1 = delim + arr[i];
  289. }
  290. else
  291. s1+= (s1 ? delim : "") + arr[i];
  292. }
  293. longstr = s2 + s1;
  294. }
  295. return longstr;
  296. }
  297. //recursively fragment szIn into segments with 'maxChars' chars.
  298. //segments delimited by BREAK.
  299. var BREAK = " ";
  300. function simpleBreak(szIn, maxChars)
  301. {
  302. if(szIn.length > maxChars)
  303. {
  304. return szIn.substr(0, maxChars) + BREAK + simpleBreak(szIn.substr(maxChars), maxChars);
  305. }
  306. else
  307. return szIn;
  308. }
  309. function GetWinFolderPath() {
  310. var WindowsFolder = 0;
  311. var fso = new ActiveXObject("Scripting.FileSystemObject");
  312. var sfolder = fso.GetSpecialFolder(WindowsFolder);
  313. return sfolder.path;
  314. }
  315. function HandleErr(exp) {
  316. var desc = exp;
  317. if(exp.description)
  318. desc = exp.description;
  319. if(document.all.WaitMessage)
  320. document.all.WaitMessage.innerHTML = desc;//MSG_SPECIFIC_ERR + desc;
  321. else
  322. if(pchealth)
  323. pchealth.MessageBox(desc, "OK");
  324. }
  325. var nUnitLength = 8; //px
  326. var nUnitsDeployed = 1;
  327. function DrawProgressBar(nPercent, strMsg) {
  328. var table = document.all.Progress;
  329. if(table)
  330. {
  331. var bar = document.all.Progress.all.Bar;
  332. var nToBeCovered = table.offsetWidth * (nPercent/100);
  333. var nUnitsRequired = Math.floor(nToBeCovered / nUnitLength);
  334. nUnitsRequired -= nUnitsDeployed;
  335. nUnitsDeployed += nUnitsRequired;
  336. for(i = 1; i <= nUnitsRequired; i++)
  337. {
  338. bar.insertAdjacentHTML("afterEnd", "<img width=\"8px\" height=\"12px\" src=\"Graphics/greendot.jpg\">");
  339. }
  340. if(document.all.StatusMsg && strMsg)
  341. document.all.StatusMsg.innerHTML = "(" + MSG_COLLECTINGINFO.replace(/%arg1%/, strMsg) + ")" ;
  342. if(document.all.StatusPerCent)
  343. document.all.StatusPerCent.innerHTML = Math.floor(nPercent) + "%";
  344. }
  345. }
  346. function Run(strPath) {
  347. try {
  348. var objShell = new ActiveXObject("wscript.shell");
  349. objShell.Run(strPath);
  350. objShell = null;
  351. }//EO try
  352. catch (e) {
  353. if(pchealth)
  354. pchealth.MessageBox("Error " + (e.number & 0xFFFF) + ": " + e.description, "OK");
  355. }
  356. }//EO function
  357. function syncHeights(elem1, elem2) {
  358. var elem1Height = getTotalHeight(elem1);
  359. var elem2Height = getTotalHeight(elem2);
  360. var diff = elem1Height - elem2Height;
  361. if (diff > 0)
  362. addHeight(elem2, Math.abs(diff));
  363. else
  364. addHeight(elem1, Math.abs(diff));
  365. }
  366. function addHeight(element, diff) {
  367. if (element.length==null)
  368. element.height=element.clientHeight+diff;
  369. //else
  370. //distribute
  371. }
  372. function getTotalHeight(element) {
  373. if (element.length == null)
  374. return element.clientHeight;
  375. else {
  376. //add
  377. var totalHeight=0;
  378. for(var i=0;i<element.length;i++)
  379. totalHeight+=element[i].clientHeight;
  380. return totalHeight;
  381. }
  382. }
  383. function ShowInfoTip(src, tipTxt) {
  384. src.title = unescape(tipTxt);
  385. return;
  386. }
  387. function ShowTip(src) {
  388. src.title = src.innerText == TAG_SUPPORTED ? DESC_SUPPORTED : DESC_NOTSUPPORTED;
  389. return;
  390. }
  391. function getDateTime(timestamp, omitTime)
  392. {
  393. var strRet = null;
  394. if(null != timestamp)
  395. {
  396. var year = timestamp.substr(0,4);
  397. var month = timestamp.substr(4,2) - 1;
  398. var day = timestamp.substr(6,2);
  399. var min = timestamp.substr(8,2);
  400. var sec = timestamp.substr(10,2);
  401. var ms = timestamp.substr(12,2);
  402. var ts = new Date(year,month,day);
  403. strRet = ts.toLocaleDateString(); //only the date
  404. if (omitTime)
  405. {
  406. strRet += "&nbsp;" + ts.toLocaleTimeString(); //date + time (default)
  407. }
  408. }
  409. return strRet;
  410. }
  411. function getDateTime2(timestamp, omitTime) {
  412. //returns mm/dd/yyyy hh:mi:ss given yyyymmddhhmiss eg. 20000911175213.875193-420
  413. var ret = timestamp;
  414. if (timestamp!=null) {
  415. ret = timestamp.substr(4, 2) + "/" + timestamp.substr(6, 2) + "/" + timestamp.substr(0, 4);
  416. if (!omitTime)
  417. ret += " - " + timestamp.substr(8, 2) + ":" + timestamp.substr(10, 2) + ":" + timestamp.substr(12, 2);
  418. }
  419. return ret;
  420. }
  421. var COOKIE_NAME = "svr";
  422. function GetServerName()
  423. {
  424. var svrName = "";
  425. var queryStr = window.location.search.substr(1);
  426. queryStr = queryStr.split("=");
  427. if(queryStr.length >= 2)
  428. if(unescape(queryStr[0]) == COOKIE_NAME) {
  429. svrName = pchealth.TextHelpers.HTMLEscape (svrName);
  430. svrName = queryStr[1].replace(/\\/g, "");
  431. document.cookie = COOKIE_NAME + "=" + svrName + ";" ;
  432. }
  433. return svrName;
  434. }
  435. function ShowServerName(topic) {
  436. var svrName = GetServerName();
  437. Title.innerHTML = (svrName ? (TAG_REMOTECOMPINFO + " \\\\" + svrName) : TAG_LOCALCOMPINFO) + (topic ? (" - " + topic) : "");
  438. return svrName;
  439. }
  440. function ConnectRemote(remoteServer) {
  441. try {
  442. if(remoteServer) {
  443. var loc = wbemlocator;
  444. var svcs = loc.ConnectServer(remoteServer);
  445. }
  446. var URL = escape("hcp://system/sysinfo/sysinfomain.htm?" + COOKIE_NAME + "=" + remoteServer);
  447. //Run("hcp://services/layout/contentonly?topic=" + URL);//HSC content view
  448. Run("helpctr.exe -URL hcp://services/layout/contentonly?topic=" + URL);//HSC content view
  449. }
  450. catch (e) {
  451. var desc = "";
  452. switch (e.number & 0xFFFF) {
  453. case 1722:
  454. desc = MSG_REMOTECONNECTFAILED.replace(/%arg1%/, remoteServer);
  455. break;
  456. case 4099:
  457. desc = MSG_REMOTEACCESSDENIED.replace(/%arg1%/, remoteServer);
  458. break;
  459. default:
  460. desc = "Error " + (e.number & 0xFFFF) + ": " + e.description;
  461. }
  462. if(pchealth)
  463. pchealth.MessageBox(desc, "OK");
  464. }
  465. finally {
  466. document.body.style.cursor= "default";
  467. }
  468. }
  469. //used only from sysInfoMain.
  470. function OpenRemoteDialog() {
  471. var svrName = GetServerName();
  472. var remoteServer = window.showModalDialog("sysRemoteInfo.htm", svrName, "dialogHeight: 172px; dialogWidth: 340px; center: Yes; help: No; resizable: No; status: No;");
  473. if (!(typeof(remoteServer) == "undefined")) {
  474. document.body.style.cursor= "wait";
  475. window.setTimeout("ConnectRemote(" + (remoteServer ? "\"" + remoteServer + "\"" : "") + ")", TIMEOUT);
  476. }
  477. }
  478. function getCountryInfo(countryCode) {
  479. var str="";
  480. switch(countryCode) {
  481. case '61': str = TAG_COUNTRY61; break;
  482. case '43': str = TAG_COUNTRY43; break;
  483. case '32': str = TAG_COUNTRY32; break;
  484. case '55': str = TAG_COUNTRY55; break;
  485. case '2': str = TAG_COUNTRY28; break;
  486. case '45': str = TAG_COUNTRY45; break;
  487. case '358': str = TAG_COUNTRY358; break;
  488. case '33': str = TAG_COUNTRY33; break;
  489. case '49': str = TAG_COUNTRY49; break;
  490. case '354': str = TAG_COUNTRY354; break;
  491. case '353': str = TAG_COUNTRY353; break;
  492. case '39': str = TAG_COUNTRY39; break;
  493. case '81': str = TAG_COUNTRY81; break;
  494. case '52': str = TAG_COUNTRY52; break;
  495. case '31': str = TAG_COUNTRY31; break;
  496. case '64': str = TAG_COUNTRY64; break;
  497. case '47': str = TAG_COUNTRY47; break;
  498. case '351': str = TAG_COUNTRY351; break;
  499. case '86': str = TAG_COUNTRY86; break;
  500. case '82': str = TAG_COUNTRY82; break;
  501. case '34': str = TAG_COUNTRY34; break;
  502. case '46': str = TAG_COUNTRY46; break;
  503. case '41': str = TAG_COUNTRY41; break;
  504. case '886': str = TAG_COUNTRY886; break;
  505. case '44': str = TAG_COUNTRY44; break;
  506. case '1' : str = TAG_COUNTRY1; break;
  507. default: str = TAG_OTHER;
  508. }
  509. return str;
  510. }
  511. function getLocaleInfo(myLocale) {
  512. var str="";
  513. switch (myLocale) {
  514. case "0409": str = TAG_LOCALE0409; break;
  515. case "040c": str = TAG_LOCALE040c; break;
  516. case "0c0a": str = TAG_LOCALE0c0a; break;
  517. case "0410": str = TAG_LOCALE0410; break;
  518. case "041D": str = TAG_LOCALE041D; break;
  519. case "0413": str = TAG_LOCALE0413; break;
  520. case "0416": str = TAG_LOCALE0416; break;
  521. case "040b": str = TAG_LOCALE040b; break;
  522. case "0414": str = TAG_LOCALE0414; break;
  523. case "0406": str = TAG_LOCALE0406; break;
  524. case "040e": str = TAG_LOCALE040e; break;
  525. case "0415": str = TAG_LOCALE0415; break;
  526. case "0419": str = TAG_LOCALE0419; break;
  527. case "0405": str = TAG_LOCALE0405; break;
  528. case "0408": str = TAG_LOCALE0408; break;
  529. case "0816": str = TAG_LOCALE0816; break;
  530. case "041f": str = TAG_LOCALE041f; break;
  531. case "0411": str = TAG_LOCALE0411; break;
  532. case "0412": str = TAG_LOCALE0412; break;
  533. case "0407": str = TAG_LOCALE0407; break;
  534. case "0804": str = TAG_LOCALE0804; break;
  535. case "0404": str = TAG_LOCALE0404; break;
  536. case "0401": str = TAG_LOCALE0401; break;
  537. case "040d": str = TAG_LOCALE040d; break;
  538. default : str = TAG_OTHER;
  539. }
  540. return str;
  541. }
  542. function getNetworkInfo(netID) {
  543. var str="";
  544. switch(netID) {
  545. case 0: str = TAG_WKSTATIONSTANDALONE; break;
  546. case 1: str = TAG_WKSTATION; break; break;
  547. case 2: str = TAG_SERVERSTANDALONE; break;
  548. case 3: str = TAG_SERVER; break;
  549. case 4: str = TAG_BKUPCTRLR; break;
  550. case 5: str = TAG_PRICTRLR; break;
  551. default: str = TAG_OTHER;
  552. }
  553. return str;
  554. }
  555. function getColorString(bitsPerPixel) {
  556. var colStr = "";
  557. switch(bitsPerPixel){
  558. case 4: colStr = TAG_COLOR16; break;
  559. case 8: colStr = TAG_COLOR256; break;
  560. case 16: colStr = TAG_COLORHIGH; break;
  561. case 24: colStr = TAG_COLORTRUE24; break;
  562. case 32: colStr = TAG_COLORTRUE32; break;
  563. default: colStr = TAG_OTHER;
  564. }
  565. return colStr;
  566. }
  567. function determineRange(myNumber) {
  568. var arrNumbers = new Array(0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100);
  569. for (var i=0; i < arrNumbers.length; i++) {
  570. if (myNumber <= arrNumbers[i])
  571. return arrNumbers[i];
  572. }
  573. }
  574. function fig2Wordsfloor(myNumber) {
  575. var divideby;
  576. //Math.floor(myNumber* 100) /100 ));
  577. var tagg;
  578. if (myNumber/1024 < 1)
  579. {
  580. divideby = 1;
  581. tagg = TAG_BYTES;
  582. }
  583. else if(myNumber/(1024 * 1024) < 1)
  584. {
  585. divideby = 1024;
  586. tagg = TAG_KB;
  587. }
  588. else if(myNumber/(1024 * 1024 * 1024) < 1)
  589. {
  590. divideby = 1024*1024;
  591. tagg = TAG_MB;
  592. }
  593. else if(myNumber/(1024 * 1024 * 1024 * 1024) < 1)
  594. {
  595. divideby = 1024 * 1024 * 1024;
  596. tagg = TAG_GB;
  597. }
  598. var i = myNumber / divideby;
  599. var x = Number(Math.floor(i* 100) /100 );
  600. i = Number(x.toFixed(2));
  601. return i.toLocaleString() + " " + tagg;
  602. //return x.toFixed(2) + " " + tagg;
  603. }
  604. function fig2Words1(myNumber) {
  605. var divideby;
  606. var tagg;
  607. if (myNumber/1024 < 1)
  608. {
  609. divideby = 1;
  610. tagg = TAG_BYTES;
  611. }
  612. else if(myNumber/(1024 * 1024) < 1)
  613. {
  614. divideby = 1024;
  615. tagg = TAG_KB;
  616. }
  617. else if(myNumber/(1024 * 1024 * 1024) < 1)
  618. {
  619. divideby = 1024*1024;
  620. tagg = TAG_MB;
  621. }
  622. else if(myNumber/(1024 * 1024 * 1024 * 1024) < 1)
  623. {
  624. divideby = 1024 * 1024 * 1024;
  625. tagg = TAG_GB;
  626. }
  627. var i = myNumber / divideby;
  628. var x = i;
  629. i = Number(x.toFixed(2));
  630. var strI = i.toLocaleString();
  631. return strI + " " + tagg;
  632. }
  633. function fig2Words(myNumber)
  634. {
  635. var strI = fig2Words1(myNumber);
  636. //remove trailing .00 (might be trailing ,00)
  637. var n = 1.00;
  638. var strTrailing = n.toLocaleString();
  639. strTrailing = strTrailing.slice(1,4);
  640. strI = strI.replace(strTrailing,"");
  641. return strI;
  642. }
  643. function searchNReplace(str,strSearch, strReplace)
  644. {
  645. var idx = str.indexOf(strSearch);
  646. if (idx!= -1)
  647. {
  648. var tempStr = str.substring(0,idx);
  649. str = tempStr + strReplace;
  650. return (str);
  651. }
  652. return (str);
  653. }
  654. function SetProgressBarImage()
  655. {
  656. //obtain whether RTL
  657. var isRTL = false;
  658. if(document.dir)
  659. {
  660. isRTL = (document.dir.toUpperCase() == "RTL") ? true : false;
  661. }
  662. if(isRTL)
  663. {
  664. ImgProgLeft.src="Graphics/r1_c3.gif";
  665. ImgProgRight.src="Graphics/r1_c1.gif";
  666. }
  667. }
  668. function GetPropValue(WBEMSvcs, PropName, PropValue)
  669. {
  670. var retval = PropValue;
  671. if(WBEMSvcs && PropName && PropValue)
  672. {
  673. try
  674. {
  675. var obj = WBEMSvcs.Get("\\\\.\\root\\cimv2:Win32_Service", 0x20000, null);
  676. var Prop = obj.Properties_.Item(PropName, 0);
  677. var Qualif = Prop.Qualifiers_.Item("ValueMap", 0);
  678. var valuemap = new VBArray(Qualif.Value);
  679. var Qualif = Prop.Qualifiers_.Item("Values", 0);
  680. var values = new VBArray(Qualif.Value);
  681. for(var i=0; i<=valuemap.ubound(1); i++)
  682. {
  683. if(valuemap.getItem(i) == PropValue)
  684. {
  685. retval = values.getItem(i);
  686. break;
  687. }
  688. }
  689. }
  690. catch(e)
  691. {
  692. //alert(e.description);
  693. }
  694. }
  695. return retval;
  696. }