var convtemp = false;
var activeImg = "";
function convert() {
	with (document.forms['conv']) {
		if(elements['to'].selectedIndex == -1 || elements['from'].selectedIndex == -1)
		return false;
		var theIn = parseFloat(elements['in'].value);
		var theFrom = elements['from'].options[elements['from'].selectedIndex].value;
		var theTo = elements['to'].options[elements['to'].selectedIndex].value;
		if(!convtemp) {
			var Factor = eval("(" + theFrom + ")/(" + theTo + ")");
			elements['out'].value = format(theIn * Factor);
		} else {
			var answer = parseFloat(theIn);
			if (theFrom == "0"){
				answer = answer + 273.15;
			} else if (theFrom == "1"){
				answer = ((answer - 32)/ 1.8) + 273.15;
			} else if (theFrom == "2"){
				answer = answer / 1.8;
			} else if (theFrom == "3"){
				answer = (answer * 1.25) + 273.15;
			}

			if (theTo == "0"){
				answer = answer - 273.15;
			} else if (theTo == "1"){
				answer = (1.8 * (answer - 273.15)) + 32;
			} else if (theTo == "2"){
				answer = answer * 1.8;
			} else if (theTo == "3"){
				answer = (answer - 273.15) / 1.25;
			}
		
			elements['out'].value = format(answer);
		}
	}
}
function format(number) {
	number = parseFloat(Math.round(number * 1000000000)/1000000000);
	return number;
}
function removeAllOptions(from) {
	if (!hasOptions(from)) { return; }
	for (var i=(from.options.length-1); i>=0; i--) {
		from.options[i] = null;
	}
	from.selectedIndex = -1;
}

function addOption(obj,text,value,selected) {
	if (obj!=null && obj.options!=null) {
		obj.options[obj.options.length] = new Option(text, value, false, selected);
	}
}
function hasOptions(obj) {
	if (obj!=null && obj.options!=null) { return true; }
	return false;
}

function switchMode(mode, imgname, imgsrc) {
	if(mode!=null) {
		if(activeImg != "") {
			activeImgOld = eval("document.img_" + activeImg);
			activeImgOld.src = 'images/converter/normal/converter_' + activeImgSrc + '.gif';
		}
		activeImgNew = eval("document.img_" + imgname);
		activeImgNew.src = 'images/converter/active/converter_' + imgsrc + '.gif';
		activeImg = imgname;
		activeImgSrc = imgsrc;

		if(mode == temp)
			convtemp = true;
		else
			convtemp = false;
		with(document.forms['conv']) {
			removeAllOptions(elements['from']);
			removeAllOptions(elements['to']);
			for(var i = 0; i < mode.length; i++) {
				if(i == 0)
				sel = true;
				else
				sel = false;
				addOption(elements['from'], mode[i][1], mode[i][0], sel);
				addOption(elements['to'], mode[i][1], mode[i][0], sel);
			}
			elements['in'].value="1";
			elements['out'].value="1";
		}
	}
}
var area = Array(
Array("0.09290304*43560","acre"),
Array("0.09290304*36000","acre [commercial]"),
Array("0.092903412*43560","acre [survey]"),
Array("6555","acre [Ireland]"),
Array("100","are"),
Array("3418.89","arpent [Canada]"),
Array("1E-28","barn"),
Array("60000","bovate"),
Array("10000","bunder"),
Array("400000","caballeria [Spain/Peru]"),
Array("450000","caballeria [Central America]"),
Array("134200","caballeria [Cuba]"),
Array("12900","carreau"),
Array("486000","carucate"),
Array("5400","cawney"),
Array("1","centiare"),
Array("1000","cong"),
Array("2698","cover"),
Array("3930","cuerda"),
Array("1000","dekare"),
Array("10925","dessiatina"),
Array("16.929","dhur"),
Array("1000","dunum, dunham"),
Array("32.15","fall [Scots]"),
Array("47.03","fall [English]"),
Array("6430","fanega"),
Array("1012","farthingdale"),
Array("89600000","hacienda"),
Array("10000","hectare"),
Array("486000","hide"),
Array("647500","homestead"),
Array("50000000","hundred"),
Array("2000","jerib"),
Array("5755","jitro, joch, jutro"),
Array("154.26","kappland"),
Array("338","kattha [Nepal]"),
Array("716850","labor"),
Array("17920000","legua"),
Array("6988.96","manzana [Costa Rican]"),
Array("10000","manzana [Argentina]"),
Array("2500","morgen [Germany]"),
Array("8567","morgen [South Africa]"),
Array("(1/15)*10000","mu"),
Array("400","ngarn"),
Array("80937.128","nook"),
Array("60000","oxgang"),
Array("25.29285264","perch"),
Array("34.19","perche [Canada]"),
Array("3.305","ping"),
Array("3.306","pyong"),
Array("1600","rai"),
Array("1011.7141","rood"),
Array("2589998.5","section"),
Array("10E-52","shed"),
Array("18000000","sitio"),
Array("9.290304","square"),
Array("1.0E-20","square angstrom"),
Array("2.2379523E+22","square astronomical unit"),
Array("1.0E-36","square attometer"),
Array("1.0E-24","square bicron"),
Array("0.0001","square centimeter"),
Array("404.68726","square chain [Gunter, survey]"),
Array("929.03412","square chain [Ramden, Engineer]"),
Array("6474.97027584","square city block [East U.S.]"),
Array("10117.141056","square city block [Midwest U.S.]"),
Array("25899.88110336","square city block [South, West U.S.]"),
Array("0.20903184","square cubit"),
Array("0.01","square decimeter"),
Array("100","square dekameter"),
Array("1.0E+36","square exameter"),
Array("3.3445228","square fathom"),
Array("1.0E-30","square femtometer"),
Array("1.0E-30","square fermi"),
Array("0.09290304","square foot"),
Array("0.092903412","square foot [survey]"),
Array("40468.726","square furlong"),
Array("1.0E+18","square gigameter"),
Array("10000","square hectometer"),
Array("0.09290304/144","square inch"),
Array("0.092903412/144","square inch [survey]"),
Array("1000000","square kilometer"),
Array("3.0869136E+07","square league [nautical]"),
Array("2.3309986E+07","square league [U.S. statute]"),
Array("8.9505412E+31","square light year"),
Array("0.040468726","square link [Gunter, survey]"),
Array("0.092903412","square link [Ramden, Engineer]"),
Array("1.0E+12","square megameter"),
Array("1","square meter"),
Array("1.0E-6 * 6.4516E-10","square microinch"),
Array("1.0E-12","square micrometer"),
Array("1.0E-24","square micromicron"),
Array("1.0E-12","square micron"),
Array("6.4516E-10","square mil"),
Array("0.09290304*27878400","square mile"),
Array("3429904","square mile [nautical]"),
Array("2589998.5","square mile [survey, U.S. statute]"),
Array("0.000001","square millimeter"),
Array("1.0E-18","square millimicron"),
Array("1.0E+8","square myriameter"),
Array("1.0E-18","square nanometer"),
Array("0.1055","square Paris foot"),
Array("9.5214087E+32","square parsec"),
Array("25.292954","square perch"),
Array("51.072","square perche"),
Array("1.0E+30","square petameter"),
Array("1.0E-24","square picometer"),
Array("0.092903412*272.25","square rod"),
Array("1.0E-20","square tenthmeter"),
Array("1.0E+24","square terameter"),
Array("6.4516E-10","square thou"),
Array("0.70258205","square vara [California]"),
Array("0.71684731","square vara [Texas]"),
Array("0.09290304*9","square yard"),
Array("0.092903412*9","square yard [survey]"),
Array("1.0E-48","square yoctometer"),
Array("1.0E+48","square yottameter"),
Array("2709","stang"),
Array("1000","stremma"),
Array("628.8","tarea"),
Array("1.6529","tatami"),
Array("5516","tønde land"),
Array("0.092903412*43560*23040","township"),
Array("3.3058","tsubo"),
Array("4936.4","tunnland"),
Array("0.09290304*9","yard"),
Array("120000","virgate")
);

var distance = Array(
Array("(0.3048/12)/72","agate [Adobe]"),
Array("0.6277","alen [Danish]"),
Array("0.6","alen [Scandinavia]"),
Array("0.5938","alen [Swedish]"),
Array("1.0e-10","angstrom"),
Array("0.70","arms-length"),
Array("58.47","arpent [Canada]"),
Array("58.471308","arpent [France]"),
Array("0.7112","arsheen [Russia]"),
Array("1.04","arshin [iran]"),
Array("74.5","arshin [iraq]"),
Array("149597870691","astronomical unit"),
Array("1.0e-18","attometer"),
Array("3.2","bamboo"),
Array("0.0085","barleycorn"),
Array("0.0065","bee space"),
Array("1.0e-12","bicron"),
Array("(0.3048*5280)/20","block [East U.S.]"),
Array("(0.3048*5280)/16","block [Midwest U.S.]"),
Array("(0.3048*5280)/10","block [South, West U.S.]"),
Array("52.918e-12","bohr"),
Array("0.70","braccio [Italy]"),
Array("1.733","braza [Argentina]"),
Array("1.67","braza [Spain]"),
Array("1.693","braza [Texas]"),
Array("0.000635","button measure"),
Array("720*0.3048","cable [U.S.]"),
Array("608*0.3048","cable [British]"),
Array("0.3048/12","caliber"),
Array("2","cana (canna, canne)"),
Array("0.314858","cape foot"),
Array("0.314858/12","cape inch"),
Array("3.778296","cape rood"),
Array("0.01","centimeter"),
Array("66*(1200/3937)","chain [Gunter, survey]"),
Array("100*0.3048","chain [Ramsden, engineer]"),
Array("0.35814","ch'ih [China]"),
Array("0.371475","chinese foot"),
Array("0.0371475","chinese inch"),
Array("557.21","chinese mile"),
Array("0.89154","chinese yard"),
Array("(0.3048*5280)/20","city block [East U.S.]"),
Array("(0.3048*5280)/16","city block [Midwest U.S.]"),
Array("(0.3048*5280)/10","city block [South, West U.S.]"),
Array("1000","click [U.S. military]"),
Array("84","cuadra"),
Array("130","cuadra [Argentina]"),
Array("0.45","cubit [Egyption]"),
Array("0.5235","cubit [Royal Egyptian]"),
Array("0.4572","cubit [English]"),
Array("0.444","cubit [Roman]"),
Array("21","cuerda"),
Array("0.10","decimeter"),
Array("10","dekameter"),
Array("0.000377","didot point"),
Array("0.019","digit"),
Array("0.58","diraa [Egypt]"),
Array("(2 + (1/3))/100","dong [Vietnam]"),
Array("0.000188","douzième [watchmaking]"),
Array("0.00017638888889","douzième [print]"),
Array("0.745","dra [Iraq]"),
Array("0.7112","dra [Russia]"),
Array("0.69","el [Dutch]"),
Array("1.143","ell [English]"),
Array("0.945","ell [Scotland]"),
Array("0.6","elle [Germany]"),
Array("0.7793","elle [Vienna]"),
Array("0.0042175176","em"),
Array("261","estadio [Portugal]"),
Array("174","estadio [Spain]"),
Array("1.0e+18","exameter"),
Array("1.8965","faden [Austria]"),
Array("1.8","faden [Switzerland]"),
Array("6.858","fall [English]"),
Array("5.67","fall [Scotland]"),
Array("6*0.3048","fathom"),
Array("1.829","fathom [ancient]"),
Array("0.10536","faust [Hungary]"),
Array("0.325","feet [pre-1963 Canada]"),
Array("0.36","feet [Egypt]"),
Array("0.3248406","feet [France]"),
Array("0.3048","feet [international, U.S.]"),
Array("0.316","feet [iraq]"),
Array("0.28313","feet [Netherlands]"),
Array("0.296","feet [Rome]"),
Array("1200/3937","feet [survey]"),
Array("1.0e-15","femtometer"),
Array("1.0e-15","fermi"),
Array("(0.3048/12)*4.5","finger"),
Array("(0.3048/12)*0.75","fingerbreadth"),
Array("0.1","fist"),
Array("0.3141","fod"),
Array("0.325","foot [pre-1963 Canada]"),
Array("0.36","foot [Egypt]"),
Array("0.3248406","foot [France]"),
Array("0.3048","foot [international, U.S.]"),
Array("0.316","foot [iraq]"),
Array("0.28313","foot [Netherlands]"),
Array("0.296","foot [Rome]"),
Array("1200/3937","foot [survey]"),
Array("100.584","football field [Canada]"),
Array("91.44","football field [U.S.]"),
Array("0.9144 * 120","football field [U.S., complete]"),
Array("0.3048*660","furlong [international]"),
Array("(1200/3937)*660","furlong [survey]"),
Array("0.31608","fuss [German]"),
Array("1.0e+9","gigameter"),
Array("30.85678e+24","gigaparsec"),
Array("0.000125","gnat's eye"),
Array("1.3716","goad"),
Array("0.000211667","gry"),
Array("0.0001","hair's breadth"),
Array("0.1016","hand [non-equine]"),
Array("0.08","handbreadth"),
Array("0.5","hat [Cambodia]"),
Array("100","hectometer"),
Array("73.152","heer"),
Array("9.4605e+24","hubble"),
Array("1.8965","hvat [Croatia]"),
Array("0.3048/12","inch [international, U.S.]"),
Array("(0.3048/12)/48","iron"),
Array("1.818","ken [Japan]"),
Array("0.0286","kerat"),
Array("304.8","kilofoot"),
Array("1000","kilometer"),
Array("3.0856776e+19","kiloparsec"),
Array("914.4","kiloyard"),
Array("0.5","kind"),
Array("1.8965","klafter [Austria]"),
Array("1.8","klafter [Switzerland]"),
Array("1000","klick"),
Array("0.00025","kyu"),
Array("402.336","lap [old]"),
Array("400","lap [competition]"),
Array("100","lap [olympic pool]"),
Array("2275","league [ancient Celtic]"),
Array("5556","league [nautical]"),
Array("5559.552","league [UK nautical]"),
Array("4828","league [UK]"),
Array("4828.0417","league [US statute]"),
Array("2.0574","leap"),
Array("6174.1","legoa"),
Array("4200","legua"),
Array("4233.4","legua [Texas]"),
Array("4179.4","legua [Spanish, pre-1568]"),
Array("6680","legua [Spanish, post-1568]"),
Array("500","li [ancient China]"),
Array("644.65","li [imperial China]"),
Array("500","li [modern China]"),
Array("3898","lieue [France]"),
Array("4000","lieue [France, metric]"),
Array("5556","lieue [France, nautical]"),
Array("9454254955488000","light year"),
Array("0.0021167","ligne [France]"),
Array("0.002256","ligne [Swiss]"),
Array("0.0021167","line"),
Array("0.000635","line [small]"),
Array("0.66*(1200/3937)","link [Gunter, survey]"),
Array("0.3048","link [Ramden, engineer]"),
Array("5.0292","lug"),
Array("6.4008","lug [great]"),
Array("42194.988","marathon"),
Array("3.6576074","mark twain"),
Array("1000000","megameter"),
Array("3.0856776e+22","megaparsec"),
Array("7586","meile [Austria]"),
Array("7412.7","meile [geographische]"),
Array("7532.5","meile [North Germany]"),
Array("1","meter"),
Array("1","metre"),
Array("1500","metric mile"),
Array("1600","metric mile [high school]"),
Array("2.54e-08","microinch"),
Array("0.000001","micrometer"),
Array("1.0e-12","micromicron"),
Array("0.000001","micron"),
Array("1488.6","miglio"),
Array("7500","miil (mijl) [Danish]"),
Array("7532.5","miil (mijl) [Denmark]"),
Array("10687","miil (mijl) [Sweden, ancient]"),
Array("0.0000254","mil"),
Array("10000","mil [Sweden]"),
Array("1609","mile [Britain, ancient]"),
Array("2048","mile [Irish]"),
Array("0.3048*5280","mile [international]"),
Array("1852","mile [nautical, international]"),
Array("0.3048*6080","mile [nautical, UK]"),
Array("1852","mile [nautical, US]"),
Array("1520","mile [Roman, ancient]"),
Array("1814","mile [Scottish]"),
Array("1609.344","mile [statute]"),
Array("(1200/3937)*5280","mile [survey, US]"),



Array("2087.3","milha [Portuguese]"),
Array("0.762","military pace"),
Array("0.9144","military pace [double time]"),
Array("1392","milla [Spanish]"),
Array("1949","mille [French]"),
Array("0.001478","milliare [Rome]"),
Array("0.001","millimeter"),
Array("1.0e-9","millimicron"),
Array("0.4572","mkono [Africa]"),
Array("0.0762","moot [India]"),
Array("10000","myriameter"),
Array("0.05715","nail"),
Array("1.0e-9","nanometer"),
Array("1.0e-9","nanon"),
Array("1.524","pace [great]"),
Array("1.48","pace [Roman]"),
Array("0.10","palm [Dutch]"),
Array("0.075","palm [Britain, Roman minor]"),
Array("0.2286","palm [US, Roman major]"),
Array("0.22","palmo [Portuguese]"),
Array("0.20","palmo [Spanish]"),
Array("0.2117","palmo [Texas]"),
Array("6000","parasang"),
Array("0.3248406","Paris foot"),
Array("3.0856776e+16","parsec"),
Array("0.33324","pe [Portuguese]"),
Array("0.001757299","pearl"),
Array("5.0292","perch"),
Array("6.4008","perch [Ireland]"),
Array("2.96","pertica"),
Array("0.2967","pes"),
Array("1.0e+15","petameter"),
Array("0.0042175176","pica"),
Array("1.0e-12","picometer"),
Array("0.2889","pie [Argentina]"),
Array("0.298","pie [Italian]"),
Array("0.2786","pie [Spanish]"),
Array("0.2822","pie [Texas]"),
Array("0.3248406","pied de roi"),
Array("0.71","pik"),
Array("0.71","pike [Greece]"),
Array("(0.3048/12)/72","point [Adobe]"),
Array("0.00035","point [Britain, US]"),
Array("0.000377","point [Didot]"),
Array("0.0003514598035","point [TeX]"),
Array("5.0292","pole"),
Array("0.02777","polegada [Portuguese]"),
Array("0.02707","pouce"),
Array("1.7907","pu [China]"),
Array("0.02365","pulgada"),
Array("0.346","pygme [Greece]"),
Array("0.00025","Q"),
Array("10001300","quadrant"),
Array("402.336","quarter"),
Array("0.2286","quarter [cloth]"),
Array("0.00025","quarter [print]"),
Array("(1200/3937)*31680","range"),
Array("2.679","reed [Israel]"),
Array("3927","ri [Japan]"),
Array("6.1722","ridge"),
Array("2000","river [Egypt]"),
Array("5.0292","rod [international]"),
Array("(1200/3937)*16.5","rod [survey]"),
Array("10","roede"),
Array("3.7783","rood"),
Array("3.7783","rope"),
Array("0.3248406","royal foot"),
Array("3.75","rute [Germany]"),
Array("2.1336","sadzhen"),
Array("2.1336","sagene"),
Array("0.30645","Scots foot"),
Array("1814.2","Scots mile"),
Array("1852","seemeile"),
Array("27.432","shackle"),
Array("0.15124","shaftment"),
Array("0.165","shaftment [ancient]"),
Array("0.3030","shaku"),
Array("1.4959787e+17","siriometer"),
Array("1.7018","smoot"),
Array("0.2286","span"),
Array("1.0e+12","spat"),
Array("185","stadium"),
Array("0.762","step"),
Array("3.048","stick"),
Array("3.3","story"),
Array("1.524","stride [great]"),
Array("1.48","stride [Roman]"),
Array("1.0e-10","tenthmeter"),
Array("1.0e+12","terameter"),
Array("0.0000254","thou"),
Array("1.949","toise"),
Array("(1200/3937)*31680","township"),
Array("0.0358","t'sun"),
Array("161130","tu"),
Array("3.6576074","twain"),
Array("0.000017639","twip"),
Array("0.04445","U"),
Array("0.83820168","vara [California]"),
Array("0.83802","vara [Mexico]"),
Array("1.10","vara [Portuguese]"),
Array("0.864","vara [South America]"),
Array("0.83587","vara [Spanish]"),
Array("0.84666836","vara [Texas]"),
Array("0.9144","verge"),
Array("0.04445","vershok"),
Array("1066.8","verst"),
Array("2","wah [Thailand]"),
Array("1066.8","werst"),
Array("1.0020722e-13","X unit"),
Array("0.9144","yard"),
Array("1.0e-24","yoctometer"),
Array("1.0e+24","yottameter"),
Array("1.0e-21","zeptometer"),
Array("1.0e+21","zettameter"),
Array("0.02634","zoll [Germany]"),
Array("0.03","zoll [Switzerland]")
);
var speed = Array(
Array("1","benz"),
Array("0.01/86400","centimeter/day"),
Array("0.01/3600","centimeter/hour"),
Array("0.01/60","centimeter/minute"),
Array("0.01","centimeter/second"),
Array("10/86400","dekameter/day"),
Array("10/3600","dekameter/hour"),
Array("10/60","dekameter/minute"),
Array("10","dekameter/second"),
Array("0.3048/86400","foot/day"),
Array("0.3048/3600","foot/hour"),
Array("0.3048/60","foot/minute"),
Array("0.3048","foot/second"),
Array("201.1684/86400","furlong/day [survey]"),
Array("201.1684/1209600","furlong/fortnight [survey]"),
Array("201.1684/3600","furlong/hour [survey]"),
Array("201.1684/60","furlong/minute [survey]"),
Array("201.1684","furlong/second [survey]"),
Array("100/86400","hectometer/day"),
Array("100/3600","hectometer/hour"),
Array("100/60","hectometer/minute"),
Array("100","hectometer/second"),
Array("(0.3048/12)/86400","inch/day"),
Array("(0.3048/12)/3600","inch/hour"),
Array("(0.3048/12)/60","inch/minute"),
Array("0.3048/12","inch/second"),
Array("1000/86400","kilometer/day"),
Array("1000/3600","kilometer/hour"),
Array("1000/60","kilometer/minute"),
Array("1000","kilometer/second"),
Array("1852/3600","knot"),
Array("4828.0417/86400","league/day [statute]"),
Array("4828.0417/3600","league/hour [statute]"),
Array("4828.0417/60","league/minute [statute]"),
Array("4828.0417","league/second [statute]"),
Array("340.29","mach"),
Array("1000000/86400","megameter/day"),
Array("1000000/3600","megameter/hour"),
Array("1000000/60","megameter/minute"),
Array("1000000","megameter/second"),
Array("1/86400","meter/day"),
Array("1/3600","meter/hour"),
Array("1/60","meter/minute"),
Array("1","meter/second"),
Array("(0.3048*5280)/86400","mile/day"),
Array("(0.3048*5280)/3600","mile/hour"),
Array("(0.3048*5280)/60","mile/minute"),
Array("0.3048*5280","mile/second"),
Array("0.001/86400","millimeter/day"),
Array("0.001/3600","millimeter/hour"),
Array("0.001/60","millimeter/minute"),
Array("0.001","millimeter/second"),
Array("1000","millimeter/microsecond"),
Array("10","millimeter/100 microsecond"),
Array("1852/86400","nautical mile/day"),
Array("1852/3600","nautical mile/hour"),
Array("1852/60","nautical mile/minute"),
Array("1852","nautical mile/second"),
Array("299702547","speed of light [air]"),
Array("199861638","speed of light [glass]"),
Array("228849204","speed of light [ice]"),
Array("299792458","speed of light [vacuum]"),
Array("225407863","speed of light [water]"),
Array("340.29","speed of sound [air]"),
Array("5000","speed of sound [metal]"),
Array("1500","speed of sound [water]"),
Array("(0.3048*3)/86400","yard/day"),
Array("(0.3048*3)/3600","yard/hour"),
Array("(0.3048*3)/60","yard/minute"),
Array("0.3048*3","yard/second")
);

var temp = Array(
Array("0","degree Celsius"),
Array("1","degree Fahrenheit"),
Array("2","degree Rankine"),
Array("3","degree Reaumur"),
Array("4","kelvin")
);

var volume = Array(
Array("0.028316847*43560","acre foot"),
Array("1233.489","acre foot [US survey]"),
Array("0.028316847*3630","acre inch"),
Array("0.00454609*31.5","barrel [UK, wine]"),
Array("0.00454609*36","barrel [UK]"),
Array("(0.0037854118/231)*7056","barrel [US, dry]"),
Array("0.0037854118*31","barrel [US, federal]"),
Array("0.0037854118*31.5","barrel [US, liquid]"),
Array("0.0037854118*42","barrel [US, petroleum]"),
Array("((0.0037854118/231)*1728)/12","board foot"),
Array("0.00454609*4","bucket [UK]"),
Array("0.0037854118*5","bucket [US]"),
Array("0.00454609*8","bushel [UK]"),
Array("0.0044048838*8","bushel [US, dry]"),
Array("0.00001","centiliter"),
Array("0.028316847*128","cord [firewood]"),
Array("0.028316847*16","cord foot [timber]"),
Array("0.000001","cubic centimeter"),
Array("0.144","cubic cubit [ancient egypt]"),
Array("0.001","cubic decimeter"),
Array("1000","cubic dekameter"),
Array("(0.0037854118/231)*1728","cubic foot"),
Array("0.0037854118/231","cubic inch"),
Array("1.0e+9","cubic kilometer"),
Array("1","cubic meter"),
Array("(((0.0037854118/231)*1728)*43560)*3379200","cubic mile"),
Array("1.0e-18","cubic micrometer"),
Array("1.0e-9","cubic millimeter"),
Array("((0.0037854118/231)*1728)*27","cubic yard"),
Array("0.00454609*0.05","cup [Canada]"),
Array("0.00025","cup [metric]"),
Array("0.0037854118/16","cup [US]"),
Array("0.0001","deciliter"),
Array("0.01","dekaliter"),
Array("(0.0037854118/128)/8","dram"),
Array("0.0037854118*55","drum [US, petroleum]"),
Array("0.001*200","drum [metric, petroleum]"),
Array("0.0037854118/5","fifth"),
Array("0.00454609","gallon [UK]"),
Array("0.0044048838","gallon [US, dry]"),
Array("0.0037854118","gallon [US, liquid]"),
Array("0.00454609/32","gill [UK]"),
Array("0.0037854118/32","gill [US]"),
Array("10000","hectare meter"),
Array("0.1","hectoliter"),
Array("0.00454609*63","hogshead [UK]"),
Array("0.0037854118*63","hogshead [US]"),
Array("(0.0037854118/128)*1.5","jigger"),
Array("1","kiloliter"),
Array("0.001","liter"),
Array("0.0077","measure [ancient hebrew]"),
Array("1000","megaliter"),
Array("1.0e-9","microliter"),
Array("0.000001","milliliter"),
Array("(0.00454609/160)/480","minim [UK]"),
Array("(0.0037854118/128)/480","minim [US]"),
Array("0.00454609/160","ounce [UK, liquid]"),
Array("0.0037854118/128","ounce [US, liquid]"),
Array("0.00454609*2","peck [UK]"),
Array("0.0044048838*2","peck [US]"),
Array("0.00454609/8","pint [UK]"),
Array("0.0044048838/8","pint [US, dry]"),
Array("0.0037854118/8","pint [US, liquid]"),
Array("0.00454609*108","pipe [UK]"),
Array("0.0037854118*126","pipe [US]"),
Array("0.0037854118/128","pony"),
Array("0.00114504","quart [Germany]"),
Array("0.00108","quart [ancient hebrew]"),
Array("0.00454609/4","quart [UK]"),
Array("0.0044048838/4","quart [US, dry]"),
Array("0.0037854118/4","quart [US, liquid]"),
Array("0.00454609*64","quarter [UK, liquid]"),
Array("0.0037854118/128","shot"),
Array("1","stere"),
Array("0.000015","Tablespoon [metric]"),
Array("(0.00454609/160)/2","Tablespoon [UK]"),
Array("(0.0037854118/128)/2","Tablespoon [US]"),
Array("0.000005","Teaspoon [metric]"),
Array("(0.00454609/160)/8","Teaspoon [UK]"),
Array("(0.0037854118/128)/6","Teaspoon [US]"),
Array("((0.0037854118/231)*1728)*27","yard")
);

var mass = Array(
Array("0.5","arratel, artel [Arab]"),
Array("14.69","arroba [Portugal]"),
Array("11.502","arroba [Spain]"),
Array("0.000052","as, ass [Northern Europe]"),
Array("1.6603145e-27","atomic mass unit [1960]"),
Array("1.6605655e-27","atomic mass unit [1973]"),
Array("1.6605402e-27","atomic mass unit [1986]"),
Array("1.66053873e-27","atomic mass unit [1998]"),
Array("1.6605402e-27","avogram"),
Array("0.45359237*94","bag [portland cement]"),
Array("0.015","baht [Thailand]"),
Array("0.45359237*720","bale [UK]"),
Array("0.45359237*480","bale [US]"),
Array("5.993","bismar pound [Denmark]"),
Array("254","candy [India]"),
Array("0.0002","carat [international]"),
Array("0.0002","carat [metric]"),
Array("0.00006479891*4","carat [UK]"),
Array("0.0002053","carat [pre-1913 US]"),
Array("140","carga [Mexico]"),
Array("0.604875","catti [China]"),
Array("0.594","catti [Japan]"),
Array("0.5","catty [China]"),
Array("0.6","catty [Japan, Thailand]"),
Array("0.45359237*100","cental"),
Array("0.00001","centigram"),

Array("50","centner [Germany]"),
Array("100","centner [Russia]"),
Array("2692.52","chalder, chaldron"),
Array("0.5","chin [China]"),
Array("0.6","chin [Japan]"),
Array("3.175","clove"),
Array("0.000089885","crith"),
Array("1.6605402e-27","dalton"),
Array("50","dan [China]"),
Array("60","dan [Japan]"),
Array("0.0001","decigram"),
Array("100","decitonne"),
Array("0.01","dekagram"),
Array("10000","dekatonne"),
Array("0.0011","denaro [Italy]"),
Array("0.001275","denier [France]"),
Array("0.0038","drachme"),
Array("0.45359237/256","dram"),
Array("0.00006479891*60","dram [apothecaries]"),
Array("1.01971621E-06","dyne"),
Array("9.109382e-31","electron"),
Array("1.782662e-36","electronvolt"),
Array("0.1","etto [Italy]"),
Array("1.0e+15","exagram"),
Array("1.0e-18","femtogram"),
Array("0.45359237*56","firkin [butter, soap]"),
Array("34.7","flask"),
Array("(0.45359237*72)*30","fother [lead]"),
Array("0.45359237*72","fotmal [lead]"),
Array("0.4095","funt, funte [Russia]"),
Array("0.000000001","gamma"),
Array("1.782662e-27","gigaelectronvolt"),
Array("1000000","gigagram"),
Array("1.0e+12","gigatonne"),
Array("0.6","gin [China]"),
Array("0.594","gin [Japan]"),
Array("0.00006479891","grain"),
Array("0.001","gram"),
Array("0.00082","gran [Germany]"),
Array("0.00004905","grano, grani [Italy]"),
Array("0.003824","gros"),
Array("0.1","hectogram"),
Array("0.45359237*112","hundredweight [long, UK]"),
Array("0.45359237*100","hundredweight [short, US]"),
Array("9.80665","hyl"),
Array("0.5","jin [China]"),
Array("1.899e+27","jupiter"),
Array("0.5","kati [China]"),
Array("0.6","kati [Japan]"),
Array("0.45359237*47488","keel [coal]"),
Array("0.45359237*100","keg [nails]"),
Array("1.6605402e-24","kilodalton"),
Array("1","kilogram"),
Array("1","kilogram-force"),
Array("(0.45359237*2240)*1000","kiloton [long, UK]"),
Array("(0.45359237*2000)*1000","kiloton [short, US]"),
Array("1000000","kilotonne"),
Array("0.6","kin [Japan]"),
Array("0.45359237*1000","kip"),
Array("2419","koyan [Malaysia]"),
Array("3.75","kwan [Japan]"),
Array("2000","last [Germany]"),
Array("0.45359237*4000","last [US]"),
Array("0.45359237*4368","last [US, wool]"),
Array("0.45359237","lb, lbs"),
Array("0.05","liang [China]"),
Array("0.339","libra [Italy]"),
Array("0.459","libra [Portugal, Spain]"),
Array("0.323","libra [ancient Rome]"),
Array("1","libra [metric]"),
Array("0.4895","livre [France]"),
Array("0.45359237*2240","long ton"),
Array("0.015","lot [Germany]"),
Array("0.003778","mace [China]"),
Array("0.9253284348","mahnd [Arab]"),
Array("0.24475","marc [France]"),
Array("0.23","marco [Spanish]"),
Array("0.2268","mark [English]"),
Array("0.2805","mark [German]"),
Array("37.3242","maund [India]"),
Array("40","maund [Pakistan]"),
Array("1.6605402e-21","megadalton"),
Array("1000","megagram"),
Array("1.0e+9","megatonne"),
Array("0.46655","mercantile pound"),
Array("1000","metric ton"),
Array("1.0e-9","mic"),
Array("1.0e-9","microgram"),
Array("1.6605402e-30","millidalton"),
Array("1000","millier"),
Array("0.000001","milligram"),
Array("1.6605402e-30","millimass unit"),
Array("0.499","mina [Hebrew]"),
Array("0.00375","momme [Japan]"),
Array("10","myriagram"),
Array("1.0e-12","nanogram"),
Array("0.101971621","Newton"),
Array("0.0001","obol, obolos, obolus [Greece]"),
Array("0.0005","obolos [Ancient Greece]"),
Array("0.00057","obolus [Ancient Rome]"),
Array("1.28","oka, oke [Turkey]"),
Array("0.02869","onça [Portuguese]"),
Array("0.03059","once [France]"),
Array("0.0273","oncia [Italy]"),
Array("0.02869","onza [Spanish]"),
Array("0.1","ons [Dutch]"),
Array("0.45359237/16","ounce"),
Array("0.45359237/16","ounce-force"),
Array("((144/175)*0.45359237)/12","ounce [troy]"),
Array("490.79","packen [Russia]"),
Array("(((144/175)*0.45359237)/12)/20","pennyweight [troy]"),
Array("1.0e+12","petagram"),
Array("0.5","pfund [Denmark, Germany]"),
Array("1.0e-15","picogram"),
Array("0.000002","point"),
Array("0.5","pond [Dutch]"),
Array("0.45359237","pound"),
Array("0.45359237","pound-force"),
Array("0.5","pound [metric]"),
Array("(144/175)*0.45359237","pound [troy]"),
Array("16.3","pud, pood [Russia]"),
Array("0.5","pund [Scandinavia]"),
Array("0.005","qian [China]"),
Array("50","qintar [Arab]"),
Array("0.45359237*28","quarter [UK]"),
Array("0.45359237*25","quarter [US]"),
Array("0.45359237*500","quarter (ton) [US]"),
Array("(0.45359237*14)/4","quartern"),
Array("0.45359237*4","quartern-loaf"),
Array("48.95","quintal [French]"),
Array("100","quintal [metric]"),
Array("58.752","quintal [Portugal]"),
Array("45.9","quintal [Spanish]"),
Array("0.01142/4","rebah"),
Array("0.5","rotl, rotel, rottle, ratel [Arab]"),
Array("0.45359237*364","sack [UK, wool]"),
Array("(((144/175)*0.45359237)/12)/24","scruple [troy]"),
Array("37.3242/40","seer [India]"),
Array("1","seer [Pakistan]"),
Array("0.01142","shekel [Hebrew]"),
Array("0.45359237*2000","short ton"),
Array("14.593903*12","slinch"),
Array("14.593903","slug"),
Array("0.45359237*14","stone"),
Array("0.03751","tael, tahil [Japan]"),
Array("0.05","tahil [China]"),
Array("30","talent [Hebrew]"),
Array("50","tan [China]"),
Array("9.80665","technische mass einheit (TME)"),
Array("1.0e+9","teragram"),
Array("0.014","tetradrachm [Hebrew]"),
Array("0.0164","tical [Asia]"),
Array("(0.45359237*14)*2","tod"),
Array("(37.3242/40)/80","tola [India]"),
Array("1/80","tola [Pakistan]"),
Array("0.45359237*2240","ton [long, UK]"),
Array("1000","ton [metric]"),
Array("0.45359237*2000","ton [short, US]"),
Array("793.15","tonelada [Portugal]"),
Array("919.9","tonelada [Spain]"),
Array("1000","tonne"),
Array("979","tonneau [France]"),
Array("128.8","tovar [Bulgaria]"),
Array("((144/175)*0.45359237)/12","troy ounce"),
Array("(144/175)*0.45359237","troy pound"),
Array("0.45359237*56","truss"),
Array("0.0272875","uncia [Rome]"),
Array("0.03125","unze [Germany]"),
Array("10000","vagon [Yugoslavia]"),
Array("1.0e-27","yoctogram"),
Array("1.0e+21","yottagram"),
Array("50","zentner [Germany]"),
Array("1.0e-24","zeptogram"),
Array("1.0e+18","zettagram")
);

var computer = Array(
Array("128","Bit"),
Array("1024","Byte"),
Array("1024*1024","Kilobyte (KB)"),
Array("1024*1024*1024","Megabyte (MB)"),
Array("1024*1024*1024*1024","Gigabyte (GB)"),
Array("1024*1024*1024*1024*1024","Terabyte"),
Array("1024*1024*1024*1024*1024*1024","Petabyte")
);

var power = Array(
Array("1.0e-18","attowatt"),
Array("0.29307107","Btu/hour [I.T.]"),
Array("0.29307107*60","Btu/minute [I.T.]"),
Array("0.29307107*60*60","Btu/second [I.T.]"),
Array("11630 * 1.0e-7","calorie/hour [I.T.]"),
Array("11630 * 60 * 1.0e-7","calorie/minute [I.T.]"),
Array("11630 * 60 * 60 *1.0e-7","calorie/second [I.T.]"),
Array("0.01","centiwatt"),
Array("9.80665 * 75","cheval vapeur"),
Array("0.0000013332237","clusec"),
Array("0.1","deciwatt"),
Array("10","dekawatt"),
Array("(1.0e-7 / 60) / 60","dyne centimeter/hour"),
Array("1.0e-7 / 60","dyne centimeter/minute"),
Array("1.0e-7","dyne centimeter/second"),
Array("(1.0e-7 / 60) / 60","erg/hour"),
Array("1.0e-7 / 60","erg/minute"),
Array("1.0e-7","erg/second"),
Array("1.0e+18","exawatt"),
Array("1.0e-15","femtowatt"),
Array("1.3558179 / 60 / 60","foot pound-force/hour"),
Array("1.3558179 / 60","foot pound-force/minute"),
Array("1.3558179","foot pound-force/second"),
Array("0.04214011 / 60 / 60","foot poundal/hour"),
Array("0.04214011 / 60","foot poundal/minute"),
Array("0.04214011","foot poundal/second"),
Array("1.0e+9","gigawatt"),
Array("0.0000980665 / 60 / 60","gram-force centimeter/hour"),
Array("0.0000980665 / 60","gram-force centimeter/minute"),
Array("0.0000980665","gram-force centimeter/second"),
Array("100","hectowatt"),
Array("745.69987","horsepower [international]"),
Array("746","horsepower [electric]"),
Array("9.80665 * 75","horsepower [metric]"),
Array("746.043","horsepower [water]"),
Array("0.00073948398","inch ounce-force revolution/minute"),
Array("1 / 60 / 60","joule/hour"),
Array("1 / 60","joule/minute"),
Array("1","joule/second"),
Array("1.163","kilocalorie/hour [I.T.]"),
Array("1.163 * 60","kilocalorie/minute [I.T.]"),
Array("1.163 * 60 * 60","kilocalorie/second [I.T.]"),
Array("9.80665 / 60 / 60","kilogram-force meter/hour"),
Array("9.80665 / 60","kilogram-force meter/minute"),
Array("9.80665","kilogram-force meter/second"),
Array("9.80665 / 60 / 60","kilopond meter/hour"),
Array("9.80665 / 60","kilopond meter/minute"),
Array("9.80665","kilopond meter/second"),
Array("1000","kilowatt"),
Array("1000000","megawatt"),
Array("0.000001","microwatt"),
Array("293071.07","million Btu/hour [I.T.]"),
Array("0.001","milliwatt"),
Array("1.0e-9","nanowatt"),
Array("1 / 60 / 60","newton meter/hour"),
Array("1 / 60","newton meter/minute"),
Array("1","newton meter/second"),
Array("1.0e+15","petawatt"),
Array("9.80665 * 75","pferdestarke"),
Array("1.0e-12","picowatt"),
Array("9.80665 * 100","poncelet"),
Array("0.04214011","pound square foot/cubic second"),
Array("1.0e+12","terawatt"),
Array("0.012 * 293071.07","ton of refrigeration"),
Array("1","watt"),
Array("1.0e-24","yoctowatt"),
Array("1.0e+24","yottawatt"),
Array("1.0e-21","zeptowatt"),
Array("1.0e+21","zettawatt")
);

var time = Array(
Array(".00000001","shake"),
Array(".001","millisecond"),
Array("1","second"),
Array("60","minute"),
Array("60*60","hour"),
Array("60*60*24","day"),
Array("60*60*24*7","week"),
Array("1209600","fortnight"),
Array("2628000","month"),
Array("7884000","quarter"),
Array("31536000","year"),
Array("315360000","decade"),
Array("3153600000","century"),
Array("31536000000","millennium")
);

var energy = Array(
Array("1.0e-18","attojoule"),
Array("3600000","Board of Trade unit"),
Array("1055.0559","Btu"),
Array("1054.3503","Btu [thermochemical]"),
Array("4.1868","calorie [I.T.]"),
Array("4.1858","calorie [15° C]"),
Array("4186.8","Calorie [nutritional]"),
Array("4.184","calorie [thermochemical]"),
Array("1899.1005","celsius heat unit"),
Array("0.01","centijoule"),
Array("2647795.5","cheval vapeur heure"),
Array("0.1","decijoule"),
Array("10","dekajoule"),
Array("36000","dekawatt hour"),
Array("1.055057e+09","dekatherm"),
Array("1.6021773e-19","electronvolt"),
Array("0.0000001","erg"),
Array("1.0e+18","exajoule"),
Array("3.6e+21","exawatt hour"),
Array("1.0e-15","femtojoule"),
Array("1.3558179","foot pound"),
Array("0.04214011","foot poundal"),
Array("1.3176e+08*1.20095","gallon [UK] of automotive gasoline"),
Array("1.3176e+08","gallon [U.S.] of automotive gasoline"),
Array("1.3176e+08*1.20095","gallon [UK] of aviation gasoline"),
Array("1.3176e+08","gallon [U.S.] of aviation gasoline"),
Array("1.4652e+08*1.20095","gallon [UK] of diesel oil"),
Array("1.4652e+08","gallon [U.S.] of diesel oil"),
Array("1.4652e+08*1.20095","gallon [UK] of distilate #2 fuel oil"),
Array("1.4652e+08","gallon [U.S.] of distilate #2 fuel oil"),
Array("1.422e+08*1.20095","gallon [UK] of kerosene type jet fuel"),
Array("1.422e+08","gallon [U.S.] of kerosene type jet fuel"),
Array("100757838.45*1.20095","gallon [UK] of LPG"),
Array("100757838.45","gallon [U.S.] of LPG"),
Array("1.3392e+08*1.20095","gallon [UK] of naphtha type jet fuel"),
Array("1.3392e+08","gallon [U.S.] of naphtha type jet fuel"),
Array("1.422e+08*1.20095","gallon [UK] of kerosene"),
Array("1.422e+08","gallon [U.S.] of kerosene"),
Array("1.5804e+08*1.20095","gallon [UK] of residual fuel oil"),
Array("1.5804e+08","gallon [U.S.] of residual fuel oil"),
Array("1.6021773e-10","gigaelectronvolt"),
Array("1.0e+09","gigajoule"),
Array("3.6e+12","gigawatt hour"),
Array("4.1858","gram calorie"),
Array("4.3597482e-18","hartree"),
Array("100","hectojoule"),
Array("360000","hectowatt hour"),
Array("2684519.5","horsepower hour"),
Array("108720000","hundred cubic foot of natural gas"),
Array("0.0070615518","inch ounce"),
Array("0.112984825","inch pound"),
Array("1","joule"),
Array("4185.8","kilocalorie [15° C]"),
Array("4186.8","kilocalorie [I.T.]"),
Array("4184","kilocalorie [thermochemical]"),
Array("1.6021773e-16","kiloelectronvolt"),
Array("4185.8","kilogram calorie"),
Array("9.80665","kilogram-force meter"),
Array("1000","kilojoule"),
Array("9.80665","kilopond meter"),
Array("4.184e+12","kiloton [explosive]"),
Array("3600000","kilowatt hour"),
Array("101.325","liter atmosphere"),
Array("1.6021773e-13","megaelectronvolt"),
Array("1000000","megajoule"),
Array("0.1","megalerg"),
Array("4.184e+15","megaton [explosive]"),
Array("3.6e+09","megawatthour"),
Array("9.80665","meter kilogram-force"),
Array("0.000001","microjoule"),
Array("0.001","millijoule"),
Array("3.6e+07","myriawatt hour"),
Array("1.0e-09","nanojoule"),
Array("1","newton meter"),
Array("1.0e+15","petajoule"),
Array("3.6e+18","petawatthour"),
Array("2647795.5","pferdestärkenstunde"),
Array("1.0e-12","picojoule"),
Array("1.0550559e+21","Q unit"),
Array("1.0550559e+18","quad"),
Array("1.6021773e-7","teraelectronvolt"),
Array("1.0e+12","terajoule"),
Array("3.6e+15","terawatthour"),
Array("1.0550559e+08","therm [Europe]"),
Array("1.054804e+08","therm [U.S.]"),
Array("4185800","thermie"),
Array("4.184e+09","ton [explosive]"),
Array("2.93076e+10","tonne of coal equivalent"),
Array("4.1868e+10","tonne of oil equivalent"),
Array("3600","watthour"),
Array("1","wattsecond"),
Array("1.0e-24","yoctojoule"),
Array("1.0e+24","yottajoule"),
Array("3.6e+27","yottawatthour"),
Array("1.0e-21","zeptojoule"),
Array("1.0e+21","zettajoule"),
Array("3.6e+24","zettawatthour")
);

var density = Array(
Array("2643","aluminum"),
Array("8906","copper"),
Array("19300","gold"),
Array("0.0022883519","grain/cubic foot"),
Array("3.9542721","grain/cubic inch"),
Array("0.000084753774","grain/cubic yard"),
Array("0.014253768","grain/gallon [U.K.]"),
Array("0.017118061","grain/gallon [U.S.]"),
Array("1000","gram/cubic centimeter"),
Array("1","gram/cubic decimeter"),
Array("0.001","gram/cubic meter"),
Array("1","gram/liter"),
Array("1000","gram/milliliter"),
Array("7658","iron"),
Array("1000000","kilogram/cubic centimeter"),
Array("1000","kilogram/cubic decimeter"),
Array("1","kilogram/cubic meter"),
Array("1000","kilogram/liter"),
Array("1000000","kilogram/milliliter"),
Array("11370","lead"),
Array("1.0E+09","megagram/cubic centimeter"),
Array("1000000","megagram/cubic decimeter"),
Array("1000","megagram/cubic meter"),
Array("1000000","megagram/liter"),
Array("1.0E+09","megagram/milliliter"),
Array("1","milligram/cubic centimeter"),
Array("0.001","milligram/cubic decimeter"),
Array("0.000001","milligram/cubic meter"),
Array("0.001","milligram/liter"),
Array("1","milligram/milliliter"),
Array("1.001154","ounce/cubic foot"),
Array("1.0984089","ounce/cubic foot [troy]"),
Array("1729.994","ounce/cubic inch"),
Array("1898.0506","ounce/cubic inch [troy]"),
Array("0.037079776","ounce/cubic yard"),
Array("0.040681812","ounce/cubic yard [troy]"),
Array("6.2360233","ounce/gallon [U.K.]"),
Array("7.4891517","ounce/gallon [U.S.]"),
Array("6.8418084","ounce/gallon [troy/U.K.]"),
Array("8.2166693","ounce/gallon [troy/U.S.]"),
Array("2.9369291","pound/circular mil foot"),
Array("16.018463","pound/cubic foot"),
Array("27679.905","pound/cubic inch"),
Array("0.59327642","pound/cubic yard"),
Array("99.776373","pound/gallon [U.K.]"),
Array("119.82643","pound/gallon [U.S.]"),
Array("10510","silver"),
Array("515.37882","slug/cubic foot"),
Array("890574.6","slug/cubic inch"),
Array("19.088104","slug/cubic yard"),
Array("3210.2099","slug/gallon [U.K.]"),
Array("3855.3013","slug/gallon [U.S.]"),
Array("35881.358","ton/cubic foot [long]"),
Array("32036.927","ton/cubic foot [short]"),
Array("6.2002987E+07","ton/cubic inch [long]"),
Array("5.5359809E+07","ton/cubic inch [short]"),
Array("1328.9392","ton/cubic yard [long]"),
Array("1186.5528","ton/cubic yard [short]"),
Array("223499.07","ton/gallon [long/U.K.]"),
Array("268411.2","ton/gallon [long/U.S.]"),
Array("199522.75","ton/gallon [short/U.K.]"),
Array("239652.85","ton/gallon [short/U.S.]"),
Array("1.0E+9","tonne/cubic centimeter"),
Array("1000000","tonne/cubic decimeter"),
Array("1000","tonne/cubic meter"),
Array("1000000","tonne/liter"),
Array("1.0E+09","tonne/milliliter"),
Array("1000","water")
);

var force = Array(
Array("1.0e-18","attonewton"),
Array("0.01","centinewton"),
Array("0.00980665*0.1","decigram-force"),
Array("0.1","decinewton"),
Array("0.00980665*10","dekagram-force"),
Array("10","dekanewton"),
Array("0.00001","dyne"),
Array("1.0e18","exanewton"),
Array("1.0e-15","femtonewton"),
Array("1.0e9","giganewton"),
Array("0.00980665","gram-force"),
Array("100","hectonewton"),
Array("1","joule/meter"),
Array("0.00980665*1000","kilogram-force"),
Array("1000","kilonewton"),
Array("0.00980665*1000","kilopond"),
Array("4.4482216*1000","kip"),
Array("1000000","meganewton"),
Array("0.00980665*1000000","megapond"),
Array("0.000001","micronewton"),
Array("0.001","millinewton"),
Array("0.000000001","nanonewton"),
Array("1","newton"),
Array("4.4482216/16","ounce-force"),
Array("1.0e15","petanewton"),
Array("1.0e-12","piconewton"),
Array("0.00980665","pond"),
Array("4.4482216","pound-force"),
Array("0.13825495","poundal"),
Array("1000","sthene"),
Array("1.0e12","teranewton"),
Array("4.4482216*2240","ton-force [long]"),
Array("0.00980665*1000000","ton-force [metric]"),
Array("4.4482216*2000","ton-force [short]"),
Array("1.0e-24","yoctonewton"),
Array("1.0e24","yottanewton"),
Array("1.0e-21","zeptonewton"),
Array("1.0e21","zettanewton")
);

var pressure = Array(
Array("101325.01","atmosphere [standard]"),
Array("98066.5","atmosphere [technical]"),
Array("1.0e-13","attobar"),
Array("1.0e-18","attopascal"),
Array("100000","bar"),
Array("0.1","barad"),
Array("0.1","barye"),
Array("1000","centibar"),
Array("1333.2239","centihg"),
Array("1333.2239","centimeter of mercury [0 °C]"),
Array("98.0665","centimeter of water [4 °C]"),
Array("0.01","centipascal"),
Array("1.3332237","centitorr"),
Array("10000","decibar"),
Array("0.1","decipascal"),
Array("13.332237","decitorr"),
Array("1000000","dekabar"),

Array("10","dekapascal"),
Array("0.1","dyne/square centimeter"),
Array("1.0e+23","exabar"),
Array("1.0e+18","exapascal"),
Array("1.0e-10","femtobar"),
Array("1.0e-15","femtopascal"),
Array("3.8640888","foot of air [0 °C]"),
Array("3.6622931","foot of air [15 °C]"),
Array("2989.0669","foot of head"),
Array("40636.664","foot of mercury [0 °C]"),
Array("2989.0669","foot of water [4 °C]"),
Array("1.0e+14","gigabar"),
Array("1.0e+9","gigapascal"),
Array("98.0665","gram-force/square centimeter"),
Array("1.0e+7","hectobar"),
Array("100","hectopascal"),
Array("3.8640888/12","inch of air [0 °C]"),
Array("3.6622931/12","inch of air [15 °C]"),
Array("40636.664/12","inch of mercury [0 °C]"),
Array("2989.0669/12","inch of water [4 °C]"),
Array("1.0e+8","kilobar"),
Array("98066.5","kilogram-force/square centimeter"),
Array("9.80665","kilogram-force/square meter"),
Array("9806650","kilogram-force/square millimeter"),
Array("1000","kilonewton/square meter"),
Array("1000","kilopascal"),
Array("98066.5","kilopond/square centimeter"),
Array("9.80665","kilopond/square meter"),
Array("9806650","kilopond/square millimeter"),
Array("430.92233*(1/0.009)","kip/square foot"),
Array("(430.92233*(1/0.009))*144","kip/square inch"),
Array("1.0e+11","megabar"),
Array("1000000","meganewton/square meter"),
Array("1000000","megapascal"),
Array("12.677457","meter of air [0 °C]"),
Array("12.015397","meter of air [15 °C]"),
Array("9804.139432","meter of head"),
Array("0.1","microbar"),
Array("0.13332239","micrometer of mercury [0 °C]"),
Array("0.00980665","micrometer of water [4 °C]"),
Array("0.13332239","micron of mercury [0 °C]"),
Array("0.000001","micropascal"),
Array("100","millibar"),
Array("133.32239","millihg"),
Array("133.32239","millimeter of mercury [0 °C]"),
Array("9.80665","millimeter of water [4 °C]"),
Array("0.001","millipascal"),
Array("0.13332237","millitorr"),
Array("0.0001","nanobar"),
Array("1.0e-9","nanopascal"),
Array("1","newton/square meter"),
Array("1000000","newton/square millimeter"),
Array("430.92233","ounce/square inch"),
Array("1","pascal"),
Array("1.0e+20","petabar"),
Array("1.0e+15","petapascal"),
Array("0.0000001","picobar"),
Array("1.0e-12","picopascal"),
Array("1000","pieze"),
Array("430.92233/9","pound/square foot"),
Array("430.92233*16","pound/square inch [absolute]"),
Array("1.4881639","poundal/square foot"),
Array("1000","sthene/square meter"),
Array("98066.5","technical atmosphere"),
Array("1.0e+17","terabar"),
Array("1.0e+12","terapascal"),
Array("430.92233*(248 + (1/1.125))","ton/square foot [long]"),
Array("430.92233*(1/0.0045)","ton/square foot [short]"),
Array("(430.92233*(248 + (1/1.125)))*144","ton/square inch [long]"),
Array("(430.92233*(1/0.0045))*144","ton/square inch [short]"),
Array("9806.65","ton/square meter"),
Array("133.32237","torr"),
Array("98.0665","Water Column [centimeter]"),
Array("2989.0669/12","Water Column [inch]"),
Array("9.80665","Water Column [millimeter]"),
Array("1.0e-19","yoctobar"),
Array("1.0e-24","yoctopascal"),
Array("1.0e+29","yottabar"),
Array("1.0e+24","yottapascal"),
Array("1.0e-16","zeptobar"),
Array("1.0e-21","zeptopascal"),
Array("1.0e+26","zettabar"),
Array("1.0e+21","zettapascal")
);

var light = Array(
Array("10.7639104","footcandle"),
Array("1000","kilolux"),
Array("10000","lumen/square centimeter"),
Array("10.7639104","lumen/square foot"),
Array("10.7639104*144","lumen/square inch"),
Array("1","lumen/square meter"),
Array("1","lux"),
Array("1","metercandle"),
Array("10","milliphot"),
Array("0.001","nox"),
Array("10000","phot")
);

var torque = Array(
Array("0.0000001","dyne centimeter"),
Array("9.80665/100000","gram centimeter"),
Array("9.80665/100","kilogram centimeter"),
Array("9.80665","kilogram meter"),
Array("1000","kilonewton meter"),
Array("9.80665","kilopond meter"),
Array("1000000","meganewton meter"),
Array("0.000001","micronewton meter"),
Array("0.001","millinewton meter"),
Array("0.01","newton centimeter"),
Array("1","newton meter"),
Array("0.084738622","ounce foot"),
Array("0.084738622/12","ounce inch"),
Array("0.084738622*16","pound foot"),
Array("0.0421401099752144","poundal foot"),
Array("0.084738622/12*16","pound inch")
);

var accel = Array(
Array("1","centigal"),
Array("2","centimeter/square second"),
Array("3","decigal"),
Array("4","decimeter/square second"),
Array("5","dekameter/square second"),
Array("6","foot/square second"),
Array("7","g-unit (G)"),
Array("8","gal"),
Array("9","galileo"),
Array("10","g<sub>n</sub>"),
Array("11","grav"),
Array("12","hectometer/square second"),
Array("13","inch/square second"),
Array("14","kilometer/hour second"),
Array("15","kilometer/square second"),
Array("17","meter/square second"),
Array("18","mile/hour minute"),
Array("19","mile/hour second"),
Array("20","mile/square second"),
Array("21","milligal"),
Array("22","millimeter/square second")
);

var flow = Array(
Array("1233.48184/60/60/24","acre foot/day"),
Array("1233.48184/60/60","acre foot/hour"),
Array("1233.48184/60","acre foot/minute"),
Array("1233.48184","acre foot/second"),
Array("1233.48924/60/60/24","acre foot/day [survey]"),
Array("1233.48924/60/60","acre foot/hour [survey]"),
Array("1233.48924/60","acre foot/minute [survey]"),
Array("1233.48924","acre foot/second [survey]"),
Array("(1233.48184/12)/60/60/24","acre inch/day"),
Array("(1233.48184/12)/60/60","acre inch/hour"),
Array("(1233.48184/12)/60","acre inch/minute"),
Array("1233.48184/12","acre inch/second"),
Array("(1233.48924/12)/60/60/24","acre inch/day [survey]"),
Array("(1233.48924/12)/60/60","acre inch/hour [survey]"),
Array("(1233.48924/12)/60","acre inch/minute [survey]"),
Array("1233.48924/12","acre inch/second [survey]"),
Array("(0.0037854118/60/60/24)*42","barrel/day [petroleum]"),
Array("(0.0037854118/60/60)*42","barrle/hour [petroleum]"),
Array("(0.0037854118/60)*42","barrel/minute [petroleum]"),
Array("0.0037854118*42","barrel/second [petroleum]"),
Array("(0.00454609/60/60/24)*36","barrel/day [UK]"),
Array("(0.00454609/60/60)*36","barrle/hour [UK]"),
Array("(0.00454609/60)*36","barrel/minute [UK]"),
Array("0.00454609*36","barrel/second [UK]"),
Array("(0.0037854118/60/60/24)*31.5","barrel/day [US]"),
Array("(0.0037854118/60/60)*31.5","barrle/hour [US]"),
Array("(0.0037854118/60)*31.5","barrel/minute [US]"),
Array("0.0037854118*31.5","barrel/second [US]"),
Array("(0.0037854118/60/60/24)*31","barrel/day [US beer/wine]"),
Array("(0.0037854118/60/60)*31","barrle/hour [US beer/wine]"),
Array("(0.0037854118/60)*31","barrel/minute [US beer/wine]"),
Array("0.0037854118*31","barrel/second [US beer/wine]"),
Array("28316847/60/60/24","billion cubic foot/day"),
Array("28316847/60/60","billion cubic foot/hour"),
Array("28316847/60","billion cubic foot/minute"),
Array("28316847","billion cubic foot/second"),
Array("0.00001/60/60/24","centiliter/day"),
Array("0.00001/60/60","centiliter/hour"),
Array("0.00001/60","centiliter/minute"),
Array("0.00001","centiliter/second"),
Array("4168181830/60/60/24","cubem/day"),
Array("4168181830/60/60","cubem/hour"),
Array("4168181830/60","cubem/minute"),
Array("4168181830","cubem/second"),
Array("0.000001/60/60/24","cubic centimeter/day"),
Array("0.000001/60/60","cubic centimeter/hour"),
Array("0.000001/60","cubic centimeter/minute"),
Array("0.000001","cubic centimeter/second"),
Array("0.001/60/60/24","cubic decimeter/day"),
Array("0.001/60/60","cubic decimeter/hour"),
Array("0.001/60","cubic decimeter/minute"),
Array("0.001","cubic decimeter/second"),
Array("1000/60/60/24","cubic dekameter/day"),
Array("1000/60/60","cubic dekameter/hour"),
Array("1000/60","cubic dekameter/minute"),
Array("1000","cubic dekameter/second"),
Array("0.028316847/60/60/24","cubic foot/day"),
Array("0.028316847/60/60","cubic foot/hour"),
Array("0.028316847/60","cubic foot/minute"),
Array("0.028316847","cubic foot/second"),
Array("0.028316847/1728/60/60/24","cubic inch/day"),
Array("0.028316847/1728/60/60","cubic inch/hour"),
Array("0.028316847/1728/60","cubic inch/minute"),
Array("0.028316847/1728","cubic inch/second"),
Array("1000000000/60/60/24","cubic kilometer/day"),
Array("1000000000/60/60","cubic kilometer/hour"),
Array("1000000000/60","cubic kilometer/minute"),
Array("1000000000","cubic kilometer/second"),
Array("1/60/60/24","cubic meter/day"),
Array("1/60/60","cubic meter/hour"),
Array("1/60","cubic meter/minute"),
Array("1","cubic meter/second"),
Array("4168181830/60/60/24","cubic mile/day"),
Array("4168181830/60/60","cubic mile/hour"),
Array("4168181830/60","cubic mile/minute"),
Array("4168181830","cubic mile/second"),
Array("0.000000001/60/60/24","cubic millimeter/day"),
Array("0.000000001/60/60","cubic millimeter/hour"),
Array("0.000000001/60","cubic millimeter/minute"),
Array("0.000000001","cubic millimeter/second"),
Array("(0.028316847*27)/60/60/24","cubic yard/day"),
Array("(0.028316847*27)/60/60","cubic yard/hour"),
Array("(0.028316847*27)/60","cubic yard/minute"),
Array("0.028316847*27","cubic yard/second"),
Array("0.028316847","cusec"),
Array("0.0001/60/60/24","deciliter/day"),
Array("0.0001/60/60","deciliter/hour"),
Array("0.0001/60","deciliter/minute"),
Array("0.0001","deciliter/second"),
Array("0.01/60/60/24","dekaliter/day"),
Array("0.01/60/60","dekaliter/hour"),
Array("0.01/60","dekaliter/minute"),
Array("0.01","dekaliter/second"),
Array("0.00454609/60/60/24","gallon/day [UK]"),
Array("0.00454609/60/60","gallon/hour [UK]"),
Array("0.00454609/60","gallon/minute [UK]"),
Array("0.00454609","gallon/second [UK]"),
Array("0.0037854118/60/60/24","gallon/day [US]"),
Array("0.0037854118/60/60","gallon/hour [US]"),
Array("0.0037854118/60","gallon/minute [US]"),
Array("0.0037854118","gallon/second [US]"),
Array("10000/60/60/24","hectare meter/day"),
Array("10000/60/60","hectare meter/hour"),
Array("10000/60","hectare meter/minute"),
Array("10000","hectare meter/second"),
Array("0.1/60/60/24","hectoliter/day"),
Array("0.1/60/60","hectoliter/hour"),
Array("0.1/60","hectoliter/minute"),
Array("0.1","hectoliter/second"),
Array("1/60/60/24","kiloliter/day"),
Array("1/60/60","kiloliter/hour"),
Array("1/60","kiloliter/minute"),
Array("1","kiloliter/second"),
Array("0.000000001/60/60/24","lambda/day"),
Array("0.000000001/60/60","lambda/hour"),
Array("0.000000001/60","lambda/minute"),
Array("0.000000001","lambda/second"),
Array("0.001/60/60/24","liter/day"),
Array("0.001/60/60","liter/hour"),
Array("0.001/60","liter/minute"),
Array("0.001","liter/second"),
Array("0.000001/60/60/24","milliliter/day"),
Array("0.000001/60/60","milliliter/hour"),
Array("0.000001/60","milliliter/minute"),
Array("0.000001","milliliter/second"),
Array("1233481840/60/60/24","million acre foot/day"),
Array("1233481840/60/60","million acre foot/hour"),
Array("1233481840/60","million acre foot/minute"),
Array("1233481840","million acre foot/second"),
Array("28316.847/60/60/24","million cubic foot/day"),
Array("28316.847/60/60","million cubic foot/hour"),
Array("28316.847/60","million cubic foot/minute"),
Array("28316.847","million cubic foot/second"),
Array("4546.09/60/60/24","million gallon/day [UK]"),
Array("4546.09/60/60","million gallon/hour [UK]"),
Array("4546.09/60","million gallon/minute [UK]"),
Array("4546.09","million gallon/second [UK]"),
Array("3785.4118/60/60/24","million gallon/day [US]"),
Array("3785.4118/60/60","million gallon/hour [US]"),
Array("3785.4118/60","million gallon/minute [US]"),
Array("3785.4118","million gallon/second [US]"),
Array("0.028316847/60*1.5","miner's inch [AZ, CA, OR] "),
Array("0.028316847/60*1.5625","miner's inch [CO]"),
Array("0.0037854118/60*9","miner's inch [ID, WA, NM]"),
Array("0.00454609/160/60/60/24","ounce/day [UK]"),
Array("0.00454609/160/60/60","ounce/hour [UK]"),
Array("0.00454609/160/60","ounce/minute [UK]"),
Array("0.00454609/160","ounce/second [UK]"),
Array("0.0037854118/128/60/60/24","ounce/day [US]"),
Array("0.0037854118/128/60/60","ounce/hour [US]"),
Array("0.0037854118/128/60","ounce/minute [US]"),
Array("0.0037854118/128","ounce/second [US]"),
Array("(0.028316847*165)/60/60/24","petrograd standard/day"),
Array("(0.028316847*165)/60/60","petrograd standard/hour"),
Array("(0.028316847*165)/60","petrograd standard/minute"),
Array("0.028316847*165","petrograd standard/second"),
Array("1/60/60/24","stere/day"),
Array("1/60/60","stere/hour"),
Array("1/60","stere/minute"),
Array("1","stere/second"),
Array("28.316847/60/60/24","thousand cubic foot/day"),
Array("28.316847/60/60","thousand cubic foot/hour"),
Array("28.316847/60","thousand cubic foot/minute"),
Array("28.316847","thousand cubic foot/second"),
Array("28316847000/60/60/24","trillion cubic foot/day"),
Array("28316847000/60/60","trillion cubic foot/hour"),
Array("28316847000/60","trillion cubic foot/minute"),
Array("28316847000","trillion cubic foot/second")
);

var angle = Array(
Array("1","radian"),
Array("Math.PI/3200","mil"),
Array("Math.PI/200","grad"),
Array("Math.PI/180","degree"),
Array("Math.PI/(180*60)","minute"),
Array("Math.PI/(180*3600)","second"),
Array("Math.PI/16","point"),
Array("Math.PI/8","1/16 circle"),
Array("Math.PI/5","1/10 circle"),
Array("Math.PI/4","1/8 circle"),
Array("Math.PI/3","1/6 circle"),
Array("Math.PI/2","1/4 circle"),
Array("Math.PI","1/2 circle"),
Array("2*Math.PI","full circle")
);

var substance = Array(
Array("1E+3","kilomole"),
Array("4.53592E+2","poundmole"),
Array("1E-3","millimole"),
Array("1","mole")
);

var concentration = Array(
Array("1E+3","kilomole"),
Array("4.53592E+2","poundmole"),
Array("1E-3","millimole"),
Array("1","mole")
);
