// This Javascript Doccument Contains All Header Functions For The Conversion Calculator

// THIS FUNCTION CONVERTS TEMP IN FAHR. TO CELSIUS AND KELVIN
function ConvertFah(Fahr, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 100	
var a = parseFloat(Fahr);
// This converts TempF to TempC
var b = 0.55556 * (Fahr - 32);
// This rounds and returns var b to the form as TempC
form.TempC.value = Math.round(b * DecPl) / DecPl;
// This rounds and returns TempK to form
form.TempK.value = Math.round((b + 273.15) * DecPl) / DecPl;
// This rounds and returns TempF to form
form.TempF.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS TEMP IN CELSIUS TO FAHR. AND KELVIN
function ConvertC(Celc, form)
{
// This defines the number of Decimal Places in the Displayed Answers
var DecPl = 100	
var a = parseFloat(Celc);
// This converts C to F
var b = ( (1.8 * Celc) + 32 );
// This rounds and returns var b to form as TempF
form.TempF.value = Math.round(b * DecPl) / DecPl;
// This rounds and returns TempK to form
form.TempK.value = Math.round((a + 273.15) * DecPl) / DecPl;
// This rounds and returns TempC to form
form.TempC.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS TEMP IN KELVIN TO FAHR. AND CELSIUS
function ConvertK(Kelv, form)
{
// This defines the number of Decimal Places in the Displayed Answers
var DecPl = 100	
var a = parseFloat(Kelv);
// This converts K to F
var b = ( (1.8 * (Kelv - 273.15) ) + 32 );
// This rounds and returns var b to form as TempF
form.TempF.value = Math.round(b * DecPl) / DecPl;
// This rounds and returns TempC to form
form.TempC.value = Math.round((a - 273.15) * DecPl) / DecPl;
// This rounds and returns TempC to form
form.TempK.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS LENGTH IN FEET TO OTHER UNITS
function ConvertF(Feet, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(Feet);
// This rounds and returns Meters to form
form.LengthM.value = Math.round(a * 0.3048 * DecPl) / DecPl;
// This rounds and returns Centimeters to form
form.LengthCM.value = Math.round(a * 30.48 * DecPl) / DecPl;
// This rounds and returns Inches to form
form.LengthI.value = Math.round(a * DecPl * 12) / DecPl;
// This rounds and returns Feet to form
form.LengthF.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS LENGTH IN INCHES TO OTHER UNITS
function ConvertI(Inch, form)
{
// This defines the number of Decimal Places in the Displayed Answers
var DecPl = 1000;	
var a = parseFloat(Inch);
// This rounds and returns Meters to form
form.LengthM.value = Math.round(a * 0.0254 * DecPl) / DecPl;
// This rounds and returns Feet to form
form.LengthF.value = Math.round(a * DecPl / 12) / DecPl;
// This rounds and returns Centimeters to form
form.LengthCM.value = Math.round(a * 2.54 * DecPl) / DecPl;
// This rounds and returns Inches to form
form.LengthI.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS LENGTH IN METERS TO OTHER UNITS
function ConvertM(Meter, form)
{
// This defines the number of Decimal Places in the Displayed Answers
var DecPl = 1000;	
var a = parseFloat(Meter);
// This rounds and returns Centimeters to form
form.LengthCM.value = Math.round(a * 100 * DecPl) / DecPl;
// This rounds and returns Feet to form
form.LengthF.value = Math.round(a * 3.28084 * DecPl) / DecPl;
// This rounds and returns Inches to form
form.LengthI.value = Math.round(a * 39.37008 * DecPl) / DecPl;
// This rounds and returns Inches to form
form.LengthM.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS LENGTH IN CENTIMETERS TO OTHER UNITS
function ConvertCM(CM, form)
{
// This defines the number of Decimal Places in the Displayed Answers
var DecPl = 1000;	
var a = parseFloat(CM);
// This rounds and returns Meters to form
form.LengthM.value = Math.round(a * 0.01 * DecPl) / DecPl;
// This rounds and returns Feet to form
form.LengthF.value = Math.round(a * 0.0328084 * DecPl) / DecPl;
// This rounds and returns Inches to form
form.LengthI.value = Math.round(a * 0.3937008 * DecPl) / DecPl;
// This rounds and returns Centimeters to form
form.LengthCM.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL US GALLONS TO OTHER UNITS
function ConvertVolUSG(USG, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(USG);
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 3.785412 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 4 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 128 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 16 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 256 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 768 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.8326725 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 3785.412 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 3.33069 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 133.2276 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 15.1416 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 252.3608 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 757.08236 * DecPl) / DecPl;
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN LITERS TO OTHER UNITS
function ConvertVolLit(Liters, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(Liters);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.2641721 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 1.0566882 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 33.8140226 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 4.2267528 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 67.6280451 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 202.8841354 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.2199692 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 1000 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 0.879877 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 35.1950797 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 4 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 66.6666667 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 200 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN US QUARTS TO OTHER UNITS
function ConvertVolUSQuart(USQuart, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(USQuart);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.25 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 0.9463529 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 32 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 4 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 64 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 192 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.2081685 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 946.35295 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 0.8326742 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 33.3069675 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 3.7854118 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 63.0901967 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 189.27059 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN US OUNCES TO OTHER UNITS
function ConvertVolUSOz(USoz, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(USoz);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.0078125 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 0.0295735 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 0.03125 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 0.125 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 2 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 6 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.0065053 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 29.5735297 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 0.0260211 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 1.0408427 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 0.1182941 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 1.9715686 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 5.9147059 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN US CUP TO OTHER UNITS
function ConvertVolUSCup(UScup, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(UScup);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.0625 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 0.2365882 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 0.25 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 8 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 16 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 48 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.0520421 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 236.5882375 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 0.2081685 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 8.3267419 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 0.9463529 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 15.7725492 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 47.3176475 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN US TABLESPOONS TO OTHER UNITS
function ConvertVolUSTbls(UStbls, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(UStbls);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.003906 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 0.0147868 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 0.015625 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 0.5 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 0.0625 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 3 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.0032526 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 14.7867648 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 0.0130105 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 0.5204214 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 0.0591471 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 0.9857843 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 2.957353 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN US TEASPOONS TO OTHER UNITS
function ConvertVolUSTsp(UStsp, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(UStsp);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.0013021 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 0.0049289 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 0.0052083 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 0.1666667 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 0.0208333 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 0.3333333 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.0010842 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 4.9289216 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 0.0043368 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 0.1734738 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 0.0197157 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 0.3285948 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 0.9857843 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN UK GALLON TO OTHER UNITS
function ConvertVolUKG(UKgal, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(UKgal);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 1.2009499 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 4.54609 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 4.8037997 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 153.7215898 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 19.2151987 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 307.4431796 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 922.3295389 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 4546.09 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 4 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 160 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 18.18436 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 303.0726667 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 909.218 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN MILLILITERS TO OTHER UNITS
function ConvertVolMl(ml, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(ml);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.0002642 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 0.001 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 0.0010567 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 0.033814 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 0.0042268 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 0.067628 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 0.2028841 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.00022 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 0.0008799 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 0.0351951 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 0.004 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 0.0666667 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 0.2 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN UK QUARTS TO OTHER UNITS
function ConvertVolUKQuart(UKquart, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(UKquart);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.3002375 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 1.1365225 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 1.2009499 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 38.4303975 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 4.8037997 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 76.8607949 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 230.5823847 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.25 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 1136.5225 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 40 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 4.54609 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 75.7681667 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 227.3045 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN UK OUNCES TO OTHER UNITS
function ConvertVolUKOz(UKoz, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(UKoz);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.0075059 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 0.0284131 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 0.0300237 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 0.9607599 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 0.120095 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 1.9215199 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 5.7645596 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.00625 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 28.4130625 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 0.025 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 0.1136523  * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 1.8942042 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 5.6826125 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN METRIC CUPS TO OTHER UNITS
function ConvertVolMetCup(METcup, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(METcup);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.066043 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 0.25 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 0.2641721 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 8.4535056 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 1.0566882 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 16.9070113 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 50.7210338 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.0549923 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 250 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 0.2199692 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 8.7987699 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 16.6666667 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 50 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN METRIC TABLESPOONS TO OTHER UNITS
function ConvertVolMetTbls(METtbls, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(METtbls);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.0039626 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 0.015 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 0.0158503 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 0.5072103 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 0.0634013 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 1.0144207 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 3.043262 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.0032995 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 15 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 0.0131982 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 0.5279262 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 0.06 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * 3 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * DecPl) / DecPl;
}

// THIS FUNCTION CONVERTS VOL IN METRIC TEASPOON TO OTHER UNITS
function ConvertVolMetTsp(METtsp, form)
{
// This defines the number of Decimal Places in the Displayed Answers. 10 = 1 dec pl, 100 = 2 dec pl... etc
var DecPl = 1000;	
var a = parseFloat(METtsp);
// This rounds and returns US Gallons
form.VolUSG.value = Math.round(a * 0.0013209 * DecPl) / DecPl;
// This rounds and returns Liters
form.VolLit.value = Math.round(a * 0.005 * DecPl) / DecPl;
// This rounds and returns Quarts
form.VolUSQuart.value = Math.round(a * 0.0052834 * DecPl) / DecPl;
// This rounds and returns US oz 
form.VolUSOz.value = Math.round(a * 0.1690701 * DecPl) / DecPl;
// This rounds and returns US Cup
form.VolUSCup.value = Math.round(a * 0.0211338 * DecPl) / DecPl;
// This rounds and returns US Tablespooons
form.VolUSTbls.value = Math.round(a * 0.3381402 * DecPl) / DecPl;
// This rounds and returns US Teaspoon
form.VolUSTsp.value = Math.round(a * 1.0144207 * DecPl) / DecPl;
// This rounds and returns UK Gallons
form.VolUKG.value = Math.round(a * 0.0010998 * DecPl) / DecPl;
// This rounds and returns Milliliters
form.VolMl.value = Math.round(a * 5 * DecPl) / DecPl;
// This rounds and returns UK Quarts
form.VolUKQuart.value = Math.round(a * 0.0043994 * DecPl) / DecPl;
// This rounds and returns Uk Oz
form.VolUKOz.value = Math.round(a * 0.1759754 * DecPl) / DecPl;
// This rounds and returns Metric Cup
form.VolMetCup.value = Math.round(a * 0.02 * DecPl) / DecPl;
// This rounds and returns Metric Tablespoons
form.VolMetTbls.value = Math.round(a * 0.3333333 * DecPl) / DecPl;
// This rounds and returns Metric Teaspoons
form.VolMetTsp.value = Math.round(a * DecPl) / DecPl;
}
