Isoraqathedh

Untitled

Dec 16th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   <SCRIPT LANGUAGE="JavaScript">
  2.  
  3.     function process()
  4.     {
  5.         var aether = 0;
  6.         var item = 0;
  7.         var glyph = 0;
  8.         var incantation = 0;
  9.         var potion = 0;
  10.         var f = document.f;
  11.         var i = 0;
  12.         for (choice in findChecked(f.fourteen)) {
  13.             switch (choice) {
  14.                 case "1": glyph++; break;
  15.                 case "2": item++; break;
  16.                 case "3": incantation++; break;
  17.                 case "4": potion++; break;}}
  18.         for (choice in findChecked(f.one)) {
  19.             switch (choice) {
  20.                 case "1": glyph++; break;
  21.                 case "2": item++; break;
  22.                 case "3": incantation++; break;
  23.                 case "4": potion++; break;
  24.                 case "5": glyph++; break;
  25.                 case "6": aether++; break;}}
  26.  
  27.         var out = "mt-aether";
  28.         i = aether;
  29.         if (item > i) { out = "mt-item"; i = item; }
  30.         if (glyph > i) { out = "mt-glyph"; i = glyph; }
  31.         if (potion > i) { out = "mt-potion"; i = potion; }
  32.         if (incantation > i) { out = "mt-incantation"; i = incantation; }
  33.         location.href = out + ".htm";
  34.     }
  35.     function err(msg, url, line)
  36.     {
  37.         location.href = "error.html";
  38.     }
  39.     //window.onerror = err;
  40.     // -->
  41.   </SCRIPT>
Advertisement
Add Comment
Please, Sign In to add comment