var ara =  new Array(); 
ara[0] = 1;//cubic meter
ara[1] = Math.pow(10,-9);//cubic millimeter
ara[2] = Math.pow(10,-6);//cubic centimeter
ara[3] = .001;//liter
ara[4] = Math.pow(10,-6);//milliliter

ara[5] = Math.pow(0.0254,3);//cubic inches
ara[6] = ara[5]*1728;//cubic feet = 1728 cu in
ara[7] = ara[6]*27;//cubic yard = 27 cu ft

//UK System 
ara[8] = ara[1]*59.19379; //fluid minims = 59.19379 cu mm
ara[9] = ara[8]*60; //fluid drams (fl dr) = 60 minims
ara[10] = ara[9]*8; //fluid ounces (fl oz) = 8 fluid drams
ara[11] = ara[10]*20; // pint = 20 fluid ounces
ara[12] = ara[11]/4; // gills = 1/4 pint
ara[13] = ara[11]*2; // quart = 2pint
ara[14] = ara[13]*4; // gallon = 4 quart
ara[15] = ara[14]*36; // oil barrel = 36 gallons
ara[16] = ara[14]*31; // liq barrel = 31 gallons
ara[17] = ara[14]*31.5; // beer barrel = 31.5 gallons
ara[18] = ara[13]*32; // bushel = 32 quarts
ara[19] = ara[13]*8; // peck = 8 dry quarts

//US System liquid
ara[20] = ara[1]*61.61152; //fluid minims = 61.61152 cu mm
ara[21] = ara[20]*60; //fluid drams (fl dr) = 60 minims
ara[22] = ara[21]*8; //fluid ounces (fl oz) = 8 fluid drams
ara[23] = ara[22]*16; // pint = 16 fluid ounces
ara[24] = ara[23]/4; // gills = 1/4 pint
ara[25] = ara[23]*2; // quart = 2pint
ara[26] = ara[25]*4; // gallon = 4 quart
ara[27] = ara[26]*42; // oil barrel = 42 gallons
ara[28] = ara[26]*31; // liq barrel = 31 gallons
ara[29] = ara[26]*31.5; // beer barrel = 31.5 gallons

//US System Dry
ara[30] = ara[5]*33.6;//pint = 33.6 cu in
ara[31] = ara[30]*2;// quart = 2pint
ara[32] = ara[31]*4;// gallon = 4 quart
ara[33] = ara[31]*8;// peck = 8 dry quarts
ara[34] = ara[31]*32;// bushel = 32 quarts

//others
ara[35] = ara[6]*128;// cord = 128 cu ft
ara[36] = ara[4]*5;// teaspoon =  5mil
ara[37] = ara[36]*3;// tablespoon = 3 teaspoon
ara[38] = ara[37]*16;// cup = 16 tablespoon 



function color(test)
{
var cn =document.getElementsByTagName("input");
cn = cn.length;

	for(var j=19; j<37; j++)
	{
			var myI=document.getElementsByTagName("input").item(j);
			//myI.setAttribute("style",ch);
			myI.style.backgroundColor=test;
	}
}


function color1(test)
{
var myI=document.getElementsByTagName("table").item(0);
//myI.setAttribute("style",ch);
myI.style.backgroundColor=test;
}