14,15c14 < var ik=1, osel=document.getElementById("s" + jrow + "_1"), small=0, big=0, factor=1, minus=1; < try { --- > var ik=1, osel=document.getElementById("s" + jrow + "_1"), small=0, big=0, factor=1; 17c16 < small=osel.value.charCodeAt(0); --- > small=String.charCodeAt(osel.value); 21,26c20,22 < big=osel.value.charCodeAt(0); < if (big >= 65 && big <= 90 && small >= 48 && small <= 57) minus = -6; < if (big >= 48 && big <= 57 && small >= 65 && small <= 90) minus = -6; < //alert(big + " is big and small is " + small + " ... " + eval(minus + Math.abs(eval(big) - eval(small))) + " ... minus is " + minus); < factor*=eval(minus + Math.abs(eval(big) - eval(small))); < minus=1; --- > big=String.charCodeAt(osel.value); > //alert(big + " is big and small is " + small + " ... " + eval(1 + Math.abs(eval(big) - eval(small)))); > factor*=eval(1 + Math.abs(eval(big) - eval(small))); 31d26 < } catch (wer) { } 41,42c36 < butpushed(obut,obut.id,obut.value,obut.title); < //obut.click(); --- > obut.click(); 54c48 < var ii,iii,jj=0,thissuff="", done=0; --- > var ii,iii,jj=0,thissuff=""; 67c61 < if (eval(thispop) < eval(popn[eval(popn.length - 1)])) finding="Less than population of " + popc[eval(popn.length - 1)] + " (" + popn[eval(popn.length - 1)] + ")"; --- > finding="More than population of " + popc[0] + " (" + popn[0] + ")"; 74,89d67 < done=1; < finding="More than population of " + popc[0] + " (" + popn[0] + ")"; < if (eval(totpop) < eval(popn[eval(popn.length - 1)])) finding="Less than population of " + popc[eval(popn.length - 1)] + " (" + popn[eval(popn.length - 1)] + ")"; < jj=0; < if (eval(totpop) < eval(popn[0])) { < for (iii=1; iii eval(popn[iii])) { < //alert(popn[ii]); < finding="More than " + popc[iii] + " population (" + popn[iii] + ")
less than " + popc[eval(-1 + iii)] + " population (" + popn[eval(-1 + iii)] + ")"; < document.getElementById('ttc' + thissuff).innerHTML=finding; < jj=1; < } < } < } < if (done == 1) document.getElementById('ttc').innerHTML=finding; < if (done == 0) { 91d68 < if (eval(totpop) < eval(popn[eval(popn.length - 1)])) finding="Less than population of " + popc[eval(popn.length - 1)] + " (" + popn[eval(popn.length - 1)] + ")"; 103,104c80 < } < document.getElementById('ttc' + thissuff).innerHTML=finding; --- > document.getElementById('ttc').innerHTML=finding; 110,125d85 < if (done == 0) { < finding="More than population of " + popc[0] + " (" + popn[0] + ")"; < if (eval(totpop) < eval(popn[eval(popn.length - 1)])) finding="Less than population of " + popc[eval(popn.length - 1)] + " (" + popn[eval(popn.length - 1)] + ")"; < jj=0; < if (eval(totpop) < eval(popn[0])) { < for (iii=1; iii eval(popn[iii])) { < //alert(popn[ii]); < finding="More than " + popc[iii] + " population (" + popn[iii] + ")
less than " + popc[eval(-1 + iii)] + " population (" + popn[eval(-1 + iii)] + ")"; < document.getElementById('ttc' + thissuff).innerHTML=finding; < jj=1; < } < } < } < } < document.getElementById('ttc' + thissuff).innerHTML=finding; 129c89 < function retZ(defval, irow, icol, both) { --- > function retZ(defval, irow, icol) { 131,139d90 < if (both) { < for (var k=48; k<=57; k++) { < if (String.fromCharCode(k) == defval) { < selbits+=""; < } else { < selbits+=""; < } < } < } 152c103 < function ret9(defval, irow, icol, both) { --- > function ret9(defval, irow, icol) { 161,169d111 < if (both) { < for (var k=65; k<=90; k++) { < if (String.fromCharCode(k) == defval) { < selbits+=""; < } else { < selbits+=""; < } < } < } 178c120 < var i, j, m, n, ii, jj, colis, rowis, prefix, suffix, itotal=1, wpopo, wset, wwset, wpop, wp2=2, plus=false; --- > var i, j, m, n, colis, rowis, prefix, suffix, itotal=1, wpopo, wset, wwset, wpop, wp2=2; 188,190c130 < //if (tds[i].innerHTML.substring(j, eval(1 + j)) >= 'A' && tds[i].innerHTML.substring(j, eval(1 + j)) <= 'Z' && (tds[i].innerHTML.substring(eval(-1 + j), j) == "[" || tds[i].innerHTML.substring(eval(-1 + j), j) == "-")) { < if (tds[i].innerHTML.substring(j, eval(1 + j)) >= 'A' && tds[i].innerHTML.substring(j, eval(1 + j)) <= 'Z' && (tds[i].innerHTML.substring(eval(-1 + j), j) == "-" && tds[i].innerHTML.substring(eval(1 + j), eval(2 + j)) == "]")) { < plus=false; --- > if (tds[i].innerHTML.substring(j, eval(1 + j)) >= 'A' && tds[i].innerHTML.substring(j, eval(1 + j)) <= 'Z' && (tds[i].innerHTML.substring(eval(-1 + j), j) == "[" || tds[i].innerHTML.substring(eval(-1 + j), j) == "-")) { 193,198c133 < if (tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j)) >= '0' && tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j)) <= '9') { < plus=true; < itotal*=eval(Math.abs(tds[i].innerHTML.substring(j, eval(1 + j)).charCodeAt(0) - tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j)).charCodeAt(0)) - 6); < } else { < itotal*=eval(Math.abs(tds[i].innerHTML.substring(j, eval(1 + j)).charCodeAt(0) - tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j)).charCodeAt(0)) + 1); < } --- > itotal*=eval(String.charCodeAt(tds[i].innerHTML.substring(j, eval(1 + j))) - String.charCodeAt(tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j))) + 1); 203,207c138 < tds[i].innerHTML=prefix + retZ(tds[i].innerHTML.substring(j, eval(1 + j)), rowis, colis, plus) + suffix; < colis=eval(1 + colis); < prefix = tds[i].innerHTML.substring(0, eval(-2 + j)); < suffix = tds[i].innerHTML.substring(eval(-1 + j)); < tds[i].innerHTML=prefix + retZ(tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j)), rowis, colis, plus) + suffix; --- > tds[i].innerHTML=prefix + retZ(tds[i].innerHTML.substring(j, eval(1 + j)), rowis, colis) + suffix; 209,211c140 < //} else if (tds[i].innerHTML.substring(j, eval(1 + j)) >= '0' && tds[i].innerHTML.substring(j, eval(1 + j)) <= '9' && (tds[i].innerHTML.substring(eval(-1 + j), j) == "[" || tds[i].innerHTML.substring(eval(-1 + j), j) == "-")) { < } else if (tds[i].innerHTML.substring(j, eval(1 + j)) >= '0' && tds[i].innerHTML.substring(j, eval(1 + j)) <= '9' && (tds[i].innerHTML.substring(eval(-1 + j), j) == "-" && tds[i].innerHTML.substring(eval(1 + j), eval(2 + j)) == "]")) { < plus=false; --- > } else if (tds[i].innerHTML.substring(j, eval(1 + j)) >= '0' && tds[i].innerHTML.substring(j, eval(1 + j)) <= '9' && (tds[i].innerHTML.substring(eval(-1 + j), j) == "[" || tds[i].innerHTML.substring(eval(-1 + j), j) == "-")) { 214,219c143 < if (tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j)) >= 'A' && tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j)) <= 'Z') { < plus=true; < itotal*=eval(Math.abs(tds[i].innerHTML.substring(j, eval(1 + j)).charCodeAt(0) - tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j)).charCodeAt(0)) - 6); < } else { < itotal*=eval(Math.abs(tds[i].innerHTML.substring(j, eval(1 + j)).charCodeAt(0) - tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j)).charCodeAt(0)) + 1); < } --- > itotal*=eval(String.charCodeAt(tds[i].innerHTML.substring(j, eval(1 + j))) - String.charCodeAt(tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j))) + 1); 224,228c148 < tds[i].innerHTML=prefix + ret9(tds[i].innerHTML.substring(j, eval(1 + j)), rowis, colis, plus) + suffix; < colis=eval(1 + colis); < prefix = tds[i].innerHTML.substring(0, eval(-2 + j)); < suffix = tds[i].innerHTML.substring(eval(-1 + j)); < tds[i].innerHTML=prefix + ret9(tds[i].innerHTML.substring(eval(-2 + j), eval(-1 + j)), rowis, colis, plus) + suffix; --- > tds[i].innerHTML=prefix + ret9(tds[i].innerHTML.substring(j, eval(1 + j)), rowis, colis) + suffix; 251c171 < for (n=0; n for (n=0; n[A-Z][A-Z][A-Z] [0-9][0-9][A-Z]Normal eg. AZA 90Z0 < [A-Z][A-Z][A-Z] [0-9][0-9][0-9]Old normal eg. AZA 9090 < [A-Z][A-Z] [0-9][0-9][0-9][0-9]New personal? & new hire car HC eg. AZ 90900 < [A-Z][A-Z] [0-9][0-9][0-9]Old personal? & old hire car HC eg. AZ 9090 < [T-T] [0-9][0-9][0-9][0-9]Taxi eg. T 90900 < [A-Z][A-Z] [0-9][0-9] [A-Z][A-Z]New normal eg. AZ 90 ZA0 < [A-Z][A-Z][A-Z] [0-9][0-9]Motor cycle eg. AZA 900 < [M-M][O-O] [0-9][0-9][0-9][0-9]New bus eg. MO 90900 < [0-9][0-9][0-9][0-9] [A-Z][A-Z]Old bus eg. 9090 AZ0 < 0 < 0 < 0 < 0 --- > Australia[A-Z][A-Z][A-Z] [0-9][0-9][A-Z]Normal eg. AZA 90Z0 > [A-Z][A-Z][A-Z] [0-9][0-9][0-9]Old normal eg. AZA 9090 > [A-Z][A-Z] [0-9][0-9][0-9][0-9]New personal? & new hire car HC eg. AZ 90900 > [A-Z][A-Z] [0-9][0-9][0-9]Old personal? & old hire car HC eg. AZ 9090 > [T-T] [0-9][0-9][0-9][0-9]Taxi eg. T 90900 > [A-Z][A-Z] [0-9][0-9] [A-Z][A-Z]New normal eg. AZ 90 ZA0 > [A-Z][A-Z][A-Z] [0-9][0-9]Motor cycle eg. AZA 900 > [M-M][O-O] [0-9][0-9][0-9][0-9]New bus eg. MO 90900 > [0-9][0-9][0-9][0-9] [A-Z][A-Z]Old bus eg. 9090 AZ0 > 0 > 0 > 0 > 0 309,310c229,230 < New South Wales,      
Australia
Totals0 < New South Wales,      
Australia
Totals0 --- > New South Wales,      
Australia
Totals0 > New South Wales,      
Australia
Totals0 317c237,240 < Wake Island188French Southern and Antarctic Lands140Pitcairn Islands56Midway Atoll40 --- > Wake Island > French Southern and Antarctic Lands > Pitcairn Islands >