Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <SCRIPT LANGUAGE="JavaScript">
- function process()
- {
- var aether = 0;
- var item = 0;
- var glyph = 0;
- var incantation = 0;
- var potion = 0;
- var f = document.f;
- var i = 0;
- for (choice in findChecked(f.fourteen)) {
- switch (choice) {
- case "1": glyph++; break;
- case "2": item++; break;
- case "3": incantation++; break;
- case "4": potion++; break;}}
- for (choice in findChecked(f.one)) {
- switch (choice) {
- case "1": glyph++; break;
- case "2": item++; break;
- case "3": incantation++; break;
- case "4": potion++; break;
- case "5": glyph++; break;
- case "6": aether++; break;}}
- var out = "mt-aether";
- i = aether;
- if (item > i) { out = "mt-item"; i = item; }
- if (glyph > i) { out = "mt-glyph"; i = glyph; }
- if (potion > i) { out = "mt-potion"; i = potion; }
- if (incantation > i) { out = "mt-incantation"; i = incantation; }
- location.href = out + ".htm";
- }
- function err(msg, url, line)
- {
- location.href = "error.html";
- }
- //window.onerror = err;
- // -->
- </SCRIPT>
Advertisement
Add Comment
Please, Sign In to add comment