home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 October / CHIP1002.ISO / exe / COMPUGUI.exe / whlang.js < prev    next >
Encoding:
Text File  |  2002-04-23  |  14.9 KB  |  611 lines

  1. var garrSortChar=new Array();
  2. var gaFtsStop=new Array();
  3. var gaFtsStem=new Array();
  4. var gbWhLang=false;
  5.  
  6. garrSortChar[0] = 0;
  7. garrSortChar[1] = 1;
  8. garrSortChar[2] = 2;
  9. garrSortChar[3] = 3;
  10. garrSortChar[4] = 4;
  11. garrSortChar[5] = 5;
  12. garrSortChar[6] = 6;
  13. garrSortChar[7] = 7;
  14. garrSortChar[8] = 8;
  15. garrSortChar[9] = 40;
  16. garrSortChar[10] = 41;
  17. garrSortChar[11] = 42;
  18. garrSortChar[12] = 43;
  19. garrSortChar[13] = 44;
  20. garrSortChar[14] = 9;
  21. garrSortChar[15] = 10;
  22. garrSortChar[16] = 11;
  23. garrSortChar[17] = 12;
  24. garrSortChar[18] = 13;
  25. garrSortChar[19] = 14;
  26. garrSortChar[20] = 15;
  27. garrSortChar[21] = 16;
  28. garrSortChar[22] = 17;
  29. garrSortChar[23] = 18;
  30. garrSortChar[24] = 19;
  31. garrSortChar[25] = 20;
  32. garrSortChar[26] = 21;
  33. garrSortChar[27] = 22;
  34. garrSortChar[28] = 23;
  35. garrSortChar[29] = 24;
  36. garrSortChar[30] = 25;
  37. garrSortChar[31] = 26;
  38. garrSortChar[32] = 38;
  39. garrSortChar[33] = 45;
  40. garrSortChar[34] = 46;
  41. garrSortChar[35] = 47;
  42. garrSortChar[36] = 48;
  43. garrSortChar[37] = 49;
  44. garrSortChar[38] = 50;
  45. garrSortChar[39] = 33;
  46. garrSortChar[40] = 51;
  47. garrSortChar[41] = 52;
  48. garrSortChar[42] = 53;
  49. garrSortChar[43] = 88;
  50. garrSortChar[44] = 54;
  51. garrSortChar[45] = 34;
  52. garrSortChar[46] = 55;
  53. garrSortChar[47] = 56;
  54. garrSortChar[48] = 115;
  55. garrSortChar[49] = 119;
  56. garrSortChar[50] = 121;
  57. garrSortChar[51] = 123;
  58. garrSortChar[52] = 125;
  59. garrSortChar[53] = 126;
  60. garrSortChar[54] = 127;
  61. garrSortChar[55] = 128;
  62. garrSortChar[56] = 129;
  63. garrSortChar[57] = 130;
  64. garrSortChar[58] = 57;
  65. garrSortChar[59] = 58;
  66. garrSortChar[60] = 89;
  67. garrSortChar[61] = 90;
  68. garrSortChar[62] = 91;
  69. garrSortChar[63] = 59;
  70. garrSortChar[64] = 60;
  71. garrSortChar[65] = 131;
  72. garrSortChar[66] = 148;
  73. garrSortChar[67] = 150;
  74. garrSortChar[68] = 154;
  75. garrSortChar[69] = 158;
  76. garrSortChar[70] = 168;
  77. garrSortChar[71] = 171;
  78. garrSortChar[72] = 173;
  79. garrSortChar[73] = 175;
  80. garrSortChar[74] = 185;
  81. garrSortChar[75] = 187;
  82. garrSortChar[76] = 189;
  83. garrSortChar[77] = 191;
  84. garrSortChar[78] = 193;
  85. garrSortChar[79] = 197;
  86. garrSortChar[80] = 214;
  87. garrSortChar[81] = 216;
  88. garrSortChar[82] = 218;
  89. garrSortChar[83] = 220;
  90. garrSortChar[84] = 225;
  91. garrSortChar[85] = 230;
  92. garrSortChar[86] = 240;
  93. garrSortChar[87] = 242;
  94. garrSortChar[88] = 244;
  95. garrSortChar[89] = 246;
  96. garrSortChar[90] = 252;
  97. garrSortChar[91] = 61;
  98. garrSortChar[92] = 62;
  99. garrSortChar[93] = 63;
  100. garrSortChar[94] = 64;
  101. garrSortChar[95] = 66;
  102. garrSortChar[96] = 67;
  103. garrSortChar[97] = 131;
  104. garrSortChar[98] = 148;
  105. garrSortChar[99] = 150;
  106. garrSortChar[100] = 154;
  107. garrSortChar[101] = 158;
  108. garrSortChar[102] = 168;
  109. garrSortChar[103] = 171;
  110. garrSortChar[104] = 173;
  111. garrSortChar[105] = 175;
  112. garrSortChar[106] = 185;
  113. garrSortChar[107] = 187;
  114. garrSortChar[108] = 189;
  115. garrSortChar[109] = 191;
  116. garrSortChar[110] = 193;
  117. garrSortChar[111] = 197;
  118. garrSortChar[112] = 214;
  119. garrSortChar[113] = 216;
  120. garrSortChar[114] = 218;
  121. garrSortChar[115] = 220;
  122. garrSortChar[116] = 225;
  123. garrSortChar[117] = 230;
  124. garrSortChar[118] = 240;
  125. garrSortChar[119] = 242;
  126. garrSortChar[120] = 244;
  127. garrSortChar[121] = 251;
  128. garrSortChar[122] = 252;
  129. garrSortChar[123] = 68;
  130. garrSortChar[124] = 69;
  131. garrSortChar[125] = 70;
  132. garrSortChar[126] = 71;
  133. garrSortChar[127] = 27;
  134. garrSortChar[128] = 114;
  135. garrSortChar[129] = 28;
  136. garrSortChar[130] = 82;
  137. garrSortChar[131] = 170;
  138. garrSortChar[132] = 85;
  139. garrSortChar[133] = 112;
  140. garrSortChar[134] = 109;
  141. garrSortChar[135] = 110;
  142. garrSortChar[136] = 65;
  143. garrSortChar[137] = 113;
  144. garrSortChar[138] = 223;
  145. garrSortChar[139] = 86;
  146. garrSortChar[140] = 213;
  147. garrSortChar[141] = 29;
  148. garrSortChar[142] = 255;
  149. garrSortChar[143] = 30;
  150. garrSortChar[144] = 31;
  151. garrSortChar[145] = 80;
  152. garrSortChar[146] = 81;
  153. garrSortChar[147] = 83;
  154. garrSortChar[148] = 84;
  155. garrSortChar[149] = 111;
  156. garrSortChar[150] = 36;
  157. garrSortChar[151] = 37;
  158. garrSortChar[152] = 79;
  159. garrSortChar[153] = 229;
  160. garrSortChar[154] = 222;
  161. garrSortChar[155] = 87;
  162. garrSortChar[156] = 212;
  163. garrSortChar[157] = 32;
  164. garrSortChar[158] = 254;
  165. garrSortChar[159] = 251;
  166. garrSortChar[160] = 39;
  167. garrSortChar[161] = 72;
  168. garrSortChar[162] = 97;
  169. garrSortChar[163] = 98;
  170. garrSortChar[164] = 99;
  171. garrSortChar[165] = 100;
  172. garrSortChar[166] = 73;
  173. garrSortChar[167] = 101;
  174. garrSortChar[168] = 74;
  175. garrSortChar[169] = 102;
  176. garrSortChar[170] = 133;
  177. garrSortChar[171] = 93;
  178. garrSortChar[172] = 103;
  179. garrSortChar[173] = 35;
  180. garrSortChar[174] = 104;
  181. garrSortChar[175] = 75;
  182. garrSortChar[176] = 105;
  183. garrSortChar[177] = 92;
  184. garrSortChar[178] = 122;
  185. garrSortChar[179] = 124;
  186. garrSortChar[180] = 76;
  187. garrSortChar[181] = 106;
  188. garrSortChar[182] = 107;
  189. garrSortChar[183] = 108;
  190. garrSortChar[184] = 77;
  191. garrSortChar[185] = 120;
  192. garrSortChar[186] = 199;
  193. garrSortChar[187] = 94;
  194. garrSortChar[188] = 116;
  195. garrSortChar[189] = 117;
  196. garrSortChar[190] = 118;
  197. garrSortChar[191] = 78;
  198. garrSortChar[192] = 131;
  199. garrSortChar[193] = 131;
  200. garrSortChar[194] = 131;
  201. garrSortChar[195] = 131;
  202. garrSortChar[196] = 131;
  203. garrSortChar[197] = 131;
  204. garrSortChar[198] = 131;
  205. garrSortChar[199] = 150;
  206. garrSortChar[200] = 158;
  207. garrSortChar[201] = 158;
  208. garrSortChar[202] = 158;
  209. garrSortChar[203] = 158;
  210. garrSortChar[204] = 175;
  211. garrSortChar[205] = 175;
  212. garrSortChar[206] = 175;
  213. garrSortChar[207] = 175;
  214. garrSortChar[208] = 154;
  215. garrSortChar[209] = 193;
  216. garrSortChar[210] = 197;
  217. garrSortChar[211] = 197;
  218. garrSortChar[212] = 197;
  219. garrSortChar[213] = 197;
  220. garrSortChar[214] = 197;
  221. garrSortChar[215] = 95;
  222. garrSortChar[216] = 197;
  223. garrSortChar[217] = 230;
  224. garrSortChar[218] = 230;
  225. garrSortChar[219] = 230;
  226. garrSortChar[220] = 230;
  227. garrSortChar[221] = 246;
  228. garrSortChar[222] = 227;
  229. garrSortChar[223] = 224;
  230. garrSortChar[224] = 131;
  231. garrSortChar[225] = 131;
  232. garrSortChar[226] = 131;
  233. garrSortChar[227] = 131;
  234. garrSortChar[228] = 131;
  235. garrSortChar[229] = 131;
  236. garrSortChar[230] = 131;
  237. garrSortChar[231] = 150;
  238. garrSortChar[232] = 158;
  239. garrSortChar[233] = 158;
  240. garrSortChar[234] = 158;
  241. garrSortChar[235] = 158;
  242. garrSortChar[236] = 175;
  243. garrSortChar[237] = 175;
  244. garrSortChar[238] = 175;
  245. garrSortChar[239] = 175;
  246. garrSortChar[240] = 154;
  247. garrSortChar[241] = 193;
  248. garrSortChar[242] = 197;
  249. garrSortChar[243] = 197;
  250. garrSortChar[244] = 197;
  251. garrSortChar[245] = 197;
  252. garrSortChar[246] = 197;
  253. garrSortChar[247] = 96;
  254. garrSortChar[248] = 197;
  255. garrSortChar[249] = 230;
  256. garrSortChar[250] = 230;
  257. garrSortChar[251] = 230;
  258. garrSortChar[252] = 230;
  259. garrSortChar[253] = 246;
  260. garrSortChar[254] = 227;
  261. garrSortChar[255] = 250;
  262.  
  263. gaFtsStop[0] = "0";
  264. gaFtsStop[1] = "1";
  265. gaFtsStop[2] = "2";
  266. gaFtsStop[3] = "3";
  267. gaFtsStop[4] = "4";
  268. gaFtsStop[5] = "5";
  269. gaFtsStop[6] = "6";
  270. gaFtsStop[7] = "7";
  271. gaFtsStop[8] = "8";
  272. gaFtsStop[9] = "9";
  273. gaFtsStop[10] = "ab";
  274. gaFtsStop[11] = "aber";
  275. gaFtsStop[12] = "alle";
  276. gaFtsStop[13] = "allem";
  277. gaFtsStop[14] = "allen";
  278. gaFtsStop[15] = "aller";
  279. gaFtsStop[16] = "alles";
  280. gaFtsStop[17] = "als";
  281. gaFtsStop[18] = "am";
  282. gaFtsStop[19] = "an";
  283. gaFtsStop[20] = "anschlie▀end";
  284. gaFtsStop[21] = "auch";
  285. gaFtsStop[22] = "auf";
  286. gaFtsStop[23] = "ausser";
  287. gaFtsStop[24] = "ausserdem";
  288. gaFtsStop[25] = "au▀er";
  289. gaFtsStop[26] = "au▀erdem";
  290. gaFtsStop[27] = "beide";
  291. gaFtsStop[28] = "beiden";
  292. gaFtsStop[29] = "beider";
  293. gaFtsStop[30] = "beides";
  294. gaFtsStop[31] = "beliebige";
  295. gaFtsStop[32] = "beliebigem";
  296. gaFtsStop[33] = "beliebigen";
  297. gaFtsStop[34] = "beliebiger";
  298. gaFtsStop[35] = "beliebiges";
  299. gaFtsStop[36] = "ben÷tigen";
  300. gaFtsStop[37] = "ben÷tigt";
  301. gaFtsStop[38] = "benutzen";
  302. gaFtsStop[39] = "benutzt";
  303. gaFtsStop[40] = "besser";
  304. gaFtsStop[41] = "Bezug";
  305. gaFtsStop[42] = "bin";
  306. gaFtsStop[43] = "bist";
  307. gaFtsStop[44] = "brauchen";
  308. gaFtsStop[45] = "braucht";
  309. gaFtsStop[46] = "da";
  310. gaFtsStop[47] = "dadurch";
  311. gaFtsStop[48] = "dafⁿr";
  312. gaFtsStop[49] = "daher";
  313. gaFtsStop[50] = "dahin";
  314. gaFtsStop[51] = "dahinter";
  315. gaFtsStop[52] = "damit";
  316. gaFtsStop[53] = "daneben";
  317. gaFtsStop[54] = "dann";
  318. gaFtsStop[55] = "darauf";
  319. gaFtsStop[56] = "darf";
  320. gaFtsStop[57] = "darⁿber";
  321. gaFtsStop[58] = "darunter";
  322. gaFtsStop[59] = "das";
  323. gaFtsStop[60] = "davon";
  324. gaFtsStop[61] = "Dein";
  325. gaFtsStop[62] = "Deine";
  326. gaFtsStop[63] = "deinem";
  327. gaFtsStop[64] = "deinen";
  328. gaFtsStop[65] = "dem";
  329. gaFtsStop[66] = "den";
  330. gaFtsStop[67] = "denen";
  331. gaFtsStop[68] = "denn";
  332. gaFtsStop[69] = "der";
  333. gaFtsStop[70] = "deren";
  334. gaFtsStop[71] = "derer";
  335. gaFtsStop[72] = "des";
  336. gaFtsStop[73] = "dessen";
  337. gaFtsStop[74] = "die";
  338. gaFtsStop[75] = "diese";
  339. gaFtsStop[76] = "diesem";
  340. gaFtsStop[77] = "diesen";
  341. gaFtsStop[78] = "dieser";
  342. gaFtsStop[79] = "dieses";
  343. gaFtsStop[80] = "dir";
  344. gaFtsStop[81] = "dort";
  345. gaFtsStop[82] = "dran";
  346. gaFtsStop[83] = "Du";
  347. gaFtsStop[84] = "dⁿrfen";
  348. gaFtsStop[85] = "ein";
  349. gaFtsStop[86] = "eine";
  350. gaFtsStop[87] = "einem";
  351. gaFtsStop[88] = "einen";
  352. gaFtsStop[89] = "einer";
  353. gaFtsStop[90] = "eines";
  354. gaFtsStop[91] = "einfach";
  355. gaFtsStop[92] = "einige";
  356. gaFtsStop[93] = "einigen";
  357. gaFtsStop[94] = "einiger";
  358. gaFtsStop[95] = "einiges";
  359. gaFtsStop[96] = "entlang";
  360. gaFtsStop[97] = "er";
  361. gaFtsStop[98] = "es";
  362. gaFtsStop[99] = "Fall";
  363. gaFtsStop[100] = "falls";
  364. gaFtsStop[101] = "fertig";
  365. gaFtsStop[102] = "folgende";
  366. gaFtsStop[103] = "folgendem";
  367. gaFtsStop[104] = "folgenden";
  368. gaFtsStop[105] = "folgender";
  369. gaFtsStop[106] = "folgenderma▀en";
  370. gaFtsStop[107] = "frⁿher";
  371. gaFtsStop[108] = "fⁿr";
  372. gaFtsStop[109] = "gebrauchen";
  373. gaFtsStop[110] = "gebraucht";
  374. gaFtsStop[111] = "gehabt";
  375. gaFtsStop[112] = "geht";
  376. gaFtsStop[113] = "gemacht";
  377. gaFtsStop[114] = "genau";
  378. gaFtsStop[115] = "getan";
  379. gaFtsStop[116] = "Gleiche";
  380. gaFtsStop[117] = "gross";
  381. gaFtsStop[118] = "habe";
  382. gaFtsStop[119] = "haben";
  383. gaFtsStop[120] = "hast";
  384. gaFtsStop[121] = "hat";
  385. gaFtsStop[122] = "hatte";
  386. gaFtsStop[123] = "hatten";
  387. gaFtsStop[124] = "hier";
  388. gaFtsStop[125] = "hierher";
  389. gaFtsStop[126] = "hinab";
  390. gaFtsStop[127] = "hinter";
  391. gaFtsStop[128] = "holen";
  392. gaFtsStop[129] = "ihm";
  393. gaFtsStop[130] = "ihn";
  394. gaFtsStop[131] = "ihnen";
  395. gaFtsStop[132] = "Ihr";
  396. gaFtsStop[133] = "Ihre";
  397. gaFtsStop[134] = "ihrem";
  398. gaFtsStop[135] = "ihren";
  399. gaFtsStop[136] = "ihrer";
  400. gaFtsStop[137] = "im";
  401. gaFtsStop[138] = "immer";
  402. gaFtsStop[139] = "in";
  403. gaFtsStop[140] = "innerhalb";
  404. gaFtsStop[141] = "ist";
  405. gaFtsStop[142] = "Ja";
  406. gaFtsStop[143] = "jede";
  407. gaFtsStop[144] = "jedem";
  408. gaFtsStop[145] = "jeden";
  409. gaFtsStop[146] = "jeder";
  410. gaFtsStop[147] = "jedes";
  411. gaFtsStop[148] = "kann";
  412. gaFtsStop[149] = "kein";
  413. gaFtsStop[150] = "keine";
  414. gaFtsStop[151] = "keinem";
  415. gaFtsStop[152] = "keiner";
  416. gaFtsStop[153] = "keins";
  417. gaFtsStop[154] = "klein";
  418. gaFtsStop[155] = "k÷nnen";
  419. gaFtsStop[156] = "k÷nnte";
  420. gaFtsStop[157] = "lieber";
  421. gaFtsStop[158] = "mehr";
  422. gaFtsStop[159] = "mein";
  423. gaFtsStop[160] = "meine";
  424. gaFtsStop[161] = "meinem";
  425. gaFtsStop[162] = "meinen";
  426. gaFtsStop[163] = "meiner";
  427. gaFtsStop[164] = "meines";
  428. gaFtsStop[165] = "mir";
  429. gaFtsStop[166] = "mit";
  430. gaFtsStop[167] = "m÷chten";
  431. gaFtsStop[168] = "m÷gen";
  432. gaFtsStop[169] = "muss";
  433. gaFtsStop[170] = "mⁿssen";
  434. gaFtsStop[171] = "nach";
  435. gaFtsStop[172] = "neben";
  436. gaFtsStop[173] = "nicht";
  437. gaFtsStop[174] = "noch";
  438. gaFtsStop[175] = "normal";
  439. gaFtsStop[176] = "ob";
  440. gaFtsStop[177] = "oben";
  441. gaFtsStop[178] = "oder";
  442. gaFtsStop[179] = "ohne";
  443. gaFtsStop[180] = "OK";
  444. gaFtsStop[181] = "okay";
  445. gaFtsStop[182] = "per";
  446. gaFtsStop[183] = "pro";
  447. gaFtsStop[184] = "schon";
  448. gaFtsStop[185] = "sei";
  449. gaFtsStop[186] = "seid";
  450. gaFtsStop[187] = "seine";
  451. gaFtsStop[188] = "seinem";
  452. gaFtsStop[189] = "seinen";
  453. gaFtsStop[190] = "seit";
  454. gaFtsStop[191] = "sich";
  455. gaFtsStop[192] = "Sie";
  456. gaFtsStop[193] = "siehe";
  457. gaFtsStop[194] = "sind";
  458. gaFtsStop[195] = "so";
  459. gaFtsStop[196] = "sobald";
  460. gaFtsStop[197] = "sonstige";
  461. gaFtsStop[198] = "sonstiges";
  462. gaFtsStop[199] = "stattdessen";
  463. gaFtsStop[200] = "stets";
  464. gaFtsStop[201] = "tun";
  465. gaFtsStop[202] = "und";
  466. gaFtsStop[203] = "unser";
  467. gaFtsStop[204] = "unsere";
  468. gaFtsStop[205] = "unserem";
  469. gaFtsStop[206] = "unseren";
  470. gaFtsStop[207] = "unseres";
  471. gaFtsStop[208] = "unter";
  472. gaFtsStop[209] = "verwenden";
  473. gaFtsStop[210] = "verwendet";
  474. gaFtsStop[211] = "viel";
  475. gaFtsStop[212] = "viele";
  476. gaFtsStop[213] = "vielen";
  477. gaFtsStop[214] = "vieler";
  478. gaFtsStop[215] = "vieles";
  479. gaFtsStop[216] = "vielleicht";
  480. gaFtsStop[217] = "vom";
  481. gaFtsStop[218] = "von";
  482. gaFtsStop[219] = "vor";
  483. gaFtsStop[220] = "voran";
  484. gaFtsStop[221] = "voraus";
  485. gaFtsStop[222] = "wann";
  486. gaFtsStop[223] = "war";
  487. gaFtsStop[224] = "wΣre";
  488. gaFtsStop[225] = "waren";
  489. gaFtsStop[226] = "wΣren";
  490. gaFtsStop[227] = "warum";
  491. gaFtsStop[228] = "was";
  492. gaFtsStop[229] = "Weg";
  493. gaFtsStop[230] = "weil";
  494. gaFtsStop[231] = "Weise";
  495. gaFtsStop[232] = "weiter";
  496. gaFtsStop[233] = "weitere";
  497. gaFtsStop[234] = "weiteren";
  498. gaFtsStop[235] = "weiterer";
  499. gaFtsStop[236] = "welche";
  500. gaFtsStop[237] = "welcher";
  501. gaFtsStop[238] = "welches";
  502. gaFtsStop[239] = "wenn";
  503. gaFtsStop[240] = "werden";
  504. gaFtsStop[241] = "weshalb";
  505. gaFtsStop[242] = "weswegen";
  506. gaFtsStop[243] = "wie";
  507. gaFtsStop[244] = "wieso";
  508. gaFtsStop[245] = "wir";
  509. gaFtsStop[246] = "wird";
  510. gaFtsStop[247] = "wo";
  511. gaFtsStop[248] = "wofⁿr";
  512. gaFtsStop[249] = "woher";
  513. gaFtsStop[250] = "wonach";
  514. gaFtsStop[251] = "woran";
  515. gaFtsStop[252] = "woraus";
  516. gaFtsStop[253] = "wovon";
  517. gaFtsStop[254] = "zwischen";
  518.  
  519.  
  520.  
  521. // as javascript 1.3 support unicode instead of ISO-Latin-1
  522. // need to transfer come code back to ISO-Latin-1 for compare purpose
  523. // Note: Different Language(Code page) maybe need different array:
  524. var gaUToC=new Array();
  525. gaUToC[8364]=128;
  526. gaUToC[8218]=130;
  527. gaUToC[402]=131;
  528. gaUToC[8222]=132;
  529. gaUToC[8230]=133;
  530. gaUToC[8224]=134;
  531. gaUToC[8225]=135;
  532. gaUToC[710]=136;
  533. gaUToC[8240]=137;
  534. gaUToC[352]=138;
  535. gaUToC[8249]=139;
  536. gaUToC[338]=140;
  537. gaUToC[381]=142;
  538. gaUToC[8216]=145;
  539. gaUToC[8217]=146;
  540. gaUToC[8220]=147;
  541. gaUToC[8221]=148;
  542. gaUToC[8226]=149;
  543. gaUToC[8211]=150;
  544. gaUToC[8212]=151;
  545. gaUToC[732]=152;
  546. gaUToC[8482]=153;
  547. gaUToC[353]=154;
  548. gaUToC[8250]=155;
  549. gaUToC[339]=156;
  550. gaUToC[382]=158;
  551. gaUToC[376]=159;
  552.  
  553. var gsBiggestChar="";
  554. function getBiggestChar()
  555. {
  556.     if(gsBiggestChar.length==0)
  557.     {
  558.         if(garrSortChar.length<256)
  559.             gsBiggestChar=String.fromCharCode(255);
  560.         else
  561.         {
  562.             var nBiggest=0;
  563.             var nBigChar=0;
  564.             for(var i=0;i<=255;i++)
  565.             {
  566.                 if(garrSortChar[i]>nBiggest)
  567.                 {
  568.                     nBiggest=garrSortChar[i];
  569.                     nBigChar=i;
  570.                 }
  571.             }
  572.             gsBiggestChar=String.fromCharCode(nBigChar);
  573.         }
  574.  
  575.     }    
  576.     return gsBiggestChar;
  577. }
  578.  
  579. function getCharCode(str,i)
  580. {
  581.     var code=str.charCodeAt(i)
  582.     if(code>256)
  583.     {
  584.         code=gaUToC[code];
  585.     }
  586.     return code;
  587. }
  588.  
  589. function compare(strText1,strText2)
  590. {
  591.     if(garrSortChar.length<256)
  592.     {
  593.         var strt1=strText1.toLowerCase();
  594.         var strt2=strText2.toLowerCase();
  595.         if(strt1<strt2) return -1;
  596.         if(strt1>strt2) return 1;
  597.         return 0;
  598.     }
  599.     else
  600.     {
  601.         for(var i=0;i<strText1.length&&i<strText2.length;i++)
  602.         {
  603.             if(garrSortChar[getCharCode(strText1,i)]<garrSortChar[getCharCode(strText2,i)]) return -1;
  604.             if(garrSortChar[getCharCode(strText1,i)]>garrSortChar[getCharCode(strText2,i)]) return 1;
  605.         }
  606.         if(strText1.length<strText2.length) return -1;
  607.         if(strText1.length>strText2.length) return 1;
  608.         return 0;
  609.     }
  610. }
  611. gbWhLang=true;