// Author: R. Beekharry
// If reused, please refer author of this function

function calc()
{

var nInputNum = document.conv.InputNum;
cInputNum2 = document.conv.InputNum.value

var nInput = document.conv.SelectInput;
select_input = nInput.options[nInput.selectedIndex].value

var nOutput = document.conv.SelectOutput;
select_output = nOutput.options[nOutput.selectedIndex].value

if(select_input == null || select_output == null)
	{
	window.alert("Please select an Input and Output unit of measure to calculate.");
	}
// cup input
if(select_input == "cup" && select_output == "cup")
	{
	document.getElementById("Output").value = 1 * cInputNum2
	}

if(select_input == "cup" && select_output == "dram")
	{
	document.getElementById("Output").value = 63.99957* cInputNum2
	}

if(select_input == "cup" && select_output == "drop")
	{
	document.getElementById("Output").value = 3648.103* cInputNum2
	}
	
if(select_input == "cup" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.0625 * cInputNum2
	}

if(select_input == "cup" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.05204211 * cInputNum2
	}
	
if(select_input == "cup" && select_output == "liter")
	{
	document.getElementById("Output").value = 0.2365882 * cInputNum2
	}
	
if(select_input == "cup" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 236.5882 * cInputNum2
	}

if(select_input == "cup" && select_output == "ounce")
	{
	document.getElementById("Output").value = 8 * cInputNum2
	}

if(select_input == "cup" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 8.326738 * cInputNum2
	}
	
if(select_input == "cup" && select_output == "pint")
	{
	document.getElementById("Output").value = 0.5 * cInputNum2
	}
	
if(select_input == "cup" && select_output == "pintUK")
	{
	document.getElementById("Output").value = 0.4163373 * cInputNum2
	}
	
if(select_input == "cup" && select_output == "quart")
	{
	document.getElementById("Output").value = 0.25 * cInputNum2
	}
	
if(select_input == "cup" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 16 * cInputNum2
	}
	
if(select_input == "cup" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 48 * cInputNum2
	}
// dram input
if(select_input == "dram" && select_output == "cup")
	{
	document.getElementById("Output").value = 0.01562511 * cInputNum2
	}

if(select_input == "dram" && select_output == "dram")
	{
	document.getElementById("Output").value = 1* cInputNum2
	}

if(select_input == "dram" && select_output == "drop")
	{
	document.getElementById("Output").value = 57.002* cInputNum2
	}
	
if(select_input == "dram" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.0009765691 * cInputNum2
	}

if(select_input == "dram" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.0008131635 * cInputNum2
	}
	
if(select_input == "dram" && select_output == "liter")
	{
	document.getElementById("Output").value = 0.003696716 * cInputNum2
	}
	
if(select_input == "dram" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 3.696716 * cInputNum2
	}

if(select_input == "dram" && select_output == "ounce")
	{
	document.getElementById("Output").value = 0.1250008 * cInputNum2
	}

if(select_input == "dram" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 0.1301062 * cInputNum2
	}
	
if(select_input == "dram" && select_output == "pint")
	{
	document.getElementById("Output").value = 0.007812553 * cInputNum2
	}
	
if(select_input == "dram" && select_output == "pintUK")
	{
	document.getElementById("Output").value = 0.006505314 * cInputNum2
	}
	
if(select_input == "dram" && select_output == "quart")
	{
	document.getElementById("Output").value = 0.003906276 * cInputNum2
	}
	
if(select_input == "dram" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 0.2500018 * cInputNum2
	}
	
if(select_input == "dram" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 0.750005 * cInputNum2
	}
	
// drop input
if(select_input == "drop" && select_output == "cup")
	{
	document.getElementById("Output").value = 0.0002741151 * cInputNum2
	}

if(select_input == "drop" && select_output == "dram")
	{
	document.getElementById("Output").value = 0.01754325* cInputNum2
	}

if(select_input == "drop" && select_output == "drop")
	{
	document.getElementById("Output").value = 1* cInputNum2
	}
	
if(select_input == "drop" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.00001713219 * cInputNum2
	}

if(select_input == "drop" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.00001426553 * cInputNum2
	}
	
if(select_input == "drop" && select_output == "liter")
	{
	document.getElementById("Output").value = 0.0000648524 * cInputNum2
	}
	
if(select_input == "drop" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 0.0648524 * cInputNum2
	}

if(select_input == "drop" && select_output == "ounce")
	{
	document.getElementById("Output").value = 0.00219292 * cInputNum2
	}

if(select_input == "drop" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 0.002282486 * cInputNum2
	}
	
if(select_input == "drop" && select_output == "pint")
	{
	document.getElementById("Output").value = 0.0001370575 * cInputNum2
	}
	
if(select_input == "drop" && select_output == "pintUK")
	{
	document.getElementById("Output").value = 0.0001141243 * cInputNum2
	}
	
if(select_input == "drop" && select_output == "quart")
	{
	document.getElementById("Output").value = 0.00006852877 * cInputNum2
	}
	
if(select_input == "drop" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 0.004385842 * cInputNum2
	}
	
if(select_input == "drop" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 0.01315752 * cInputNum2
	}
	
// gallon input
if(select_input == "gallon" && select_output == "cup")
	{
	document.getElementById("Output").value = 16 * cInputNum2
	}

if(select_input == "gallon" && select_output == "dram")
	{
	document.getElementById("Output").value = 1023.993* cInputNum2
	}

if(select_input == "gallon" && select_output == "drop")
	{
	document.getElementById("Output").value = 58369.65* cInputNum2
	}
	
if(select_input == "gallon" && select_output == "gallon")
	{
	document.getElementById("Output").value = 1 * cInputNum2
	}

if(select_input == "gallon" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.8326738 * cInputNum2
	}
	
if(select_input == "gallon" && select_output == "liter")
	{
	document.getElementById("Output").value = 3.785412 * cInputNum2
	}
	
if(select_input == "gallon" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 3785.412 * cInputNum2
	}

if(select_input == "gallon" && select_output == "ounce")
	{
	document.getElementById("Output").value = 128 * cInputNum2
	}

if(select_input == "gallon" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 133.2278 * cInputNum2
	}
	
if(select_input == "gallon" && select_output == "pint")
	{
	document.getElementById("Output").value = 8 * cInputNum2
	}
	
if(select_input == "gallon" && select_output == "pintUK")
	{
	document.getElementById("Output").value = 6.661393 * cInputNum2
	}
	
if(select_input == "gallon" && select_output == "quart")
	{
	document.getElementById("Output").value = 4 * cInputNum2
	}
	
if(select_input == "gallon" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 256 * cInputNum2
	}
	
if(select_input == "gallon" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 768 * cInputNum2
	}

// gallon(UK) input
if(select_input == "gallonUK" && select_output == "cup")
	{
	document.getElementById("Output").value = 19.21521 * cInputNum2
	}

if(select_input == "gallonUK" && select_output == "dram")
	{
	document.getElementById("Output").value = 1229.765* cInputNum2
	}

if(select_input == "gallonUK" && select_output == "drop")
	{
	document.getElementById("Output").value = 70099.06* cInputNum2
	}
	
if(select_input == "gallonUK" && select_output == "gallon")
	{
	document.getElementById("Output").value = 1.20095* cInputNum2
	}

if(select_input == "gallonUK" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 1 * cInputNum2
	}
	
if(select_input == "gallonUK" && select_output == "liter")
	{
	document.getElementById("Output").value = 4.546092 * cInputNum2
	}
	
if(select_input == "gallonUK" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 4546.092 * cInputNum2
	}

if(select_input == "gallonUK" && select_output == "ounce")
	{
	document.getElementById("Output").value = 153.7217 * cInputNum2
	}

if(select_input == "gallonUK" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 160 * cInputNum2
	}
	
if(select_input == "gallonUK" && select_output == "pint")
	{
	document.getElementById("Output").value = 9.607604* cInputNum2
	}
	
if(select_input == "gallonUK" && select_output == "pintUK")
	{
	document.getElementById("Output").value = 8 * cInputNum2
	}
	
if(select_input == "gallonUK" && select_output == "quart")
	{
	document.getElementById("Output").value = 4.803802* cInputNum2
	}
	
if(select_input == "gallonUK" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 307.4433 * cInputNum2
	}
	
if(select_input == "gallonUK" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 922.3299 * cInputNum2
	}

//liter input
if(select_input == "liter" && select_output == "cup")
	{
	document.getElementById("Output").value = 4.226753 * cInputNum2
	}

if(select_input == "liter" && select_output == "dram")
	{
	document.getElementById("Output").value = 270.5104* cInputNum2
	}

if(select_input == "liter" && select_output == "drop")
	{
	document.getElementById("Output").value = 15419.63* cInputNum2
	}
	
if(select_input == "liter" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.2641721* cInputNum2
	}

if(select_input == "liter" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.2199692* cInputNum2
	}
	
if(select_input == "liter" && select_output == "liter")
	{
	document.getElementById("Output").value = 1 * cInputNum2
	}
	
if(select_input == "liter" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 1000 * cInputNum2
	}

if(select_input == "liter" && select_output == "ounce")
	{
	document.getElementById("Output").value = 33.81402 * cInputNum2
	}

if(select_input == "liter" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 35.19506 * cInputNum2
	}
	
if(select_input == "liter" && select_output == "pint")
	{
	document.getElementById("Output").value = 2.113376* cInputNum2
	}
	
if(select_input == "liter" && select_output == "pintUK")
	{
	document.getElementById("Output").value =1.759754 * cInputNum2
	}
	
if(select_input == "liter" && select_output == "quart")
	{
	document.getElementById("Output").value = 1.056688* cInputNum2
	}
	
if(select_input == "liter" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 67.62805 * cInputNum2
	}
	
if(select_input == "liter" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 202.8841 * cInputNum2
	}

//milliliter input
if(select_input == "milliliter" && select_output == "cup")
	{
	document.getElementById("Output").value = 0.004226753 * cInputNum2
	}

if(select_input == "milliliter" && select_output == "dram")
	{
	document.getElementById("Output").value = 0.2705104* cInputNum2
	}

if(select_input == "milliliter" && select_output == "drop")
	{
	document.getElementById("Output").value = 15.41963* cInputNum2
	}
	
if(select_input == "milliliter" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.0002641721* cInputNum2
	}

if(select_input == "milliliter" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.0002199692* cInputNum2
	}
	
if(select_input == "milliliter" && select_output == "liter")
	{
	document.getElementById("Output").value = 0.001* cInputNum2
	}
	
if(select_input == "milliliter" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 1 * cInputNum2
	}

if(select_input == "milliliter" && select_output == "ounce")
	{
	document.getElementById("Output").value = 0.03381402 * cInputNum2
	}

if(select_input == "milliliter" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 0.03519506 * cInputNum2
	}
	
if(select_input == "milliliter" && select_output == "pint")
	{
	document.getElementById("Output").value = 0.002113376* cInputNum2
	}
	
if(select_input == "milliliter" && select_output == "pintUK")
	{
	document.getElementById("Output").value =0.001759754 * cInputNum2
	}
	
if(select_input == "milliliter" && select_output == "quart")
	{
	document.getElementById("Output").value = 0.001056688* cInputNum2
	}
	
if(select_input == "milliliter" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 0.06762805 * cInputNum2
	}
	
if(select_input == "milliliter" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 0.2028841 * cInputNum2
	}

//ounce input
if(select_input == "ounce" && select_output == "cup")
	{
	document.getElementById("Output").value = 0.125 * cInputNum2
	}

if(select_input == "ounce" && select_output == "dram")
	{
	document.getElementById("Output").value = 7.999946* cInputNum2
	}

if(select_input == "ounce" && select_output == "drop")
	{
	document.getElementById("Output").value = 456.0129* cInputNum2
	}
	
if(select_input == "ounce" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.0078125* cInputNum2
	}

if(select_input == "ounce" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.006505264* cInputNum2
	}
	
if(select_input == "ounce" && select_output == "liter")
	{
	document.getElementById("Output").value = 0.02957353* cInputNum2
	}
	
if(select_input == "ounce" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 29.57353* cInputNum2
	}

if(select_input == "ounce" && select_output == "ounce")
	{
	document.getElementById("Output").value = 1 * cInputNum2
	}

if(select_input == "ounce" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 1.040842 * cInputNum2
	}
	
if(select_input == "ounce" && select_output == "pint")
	{
	document.getElementById("Output").value = 0.0625* cInputNum2
	}
	
if(select_input == "ounce" && select_output == "pintUK")
	{
	document.getElementById("Output").value =0.05204216 * cInputNum2
	}
	
if(select_input == "ounce" && select_output == "quart")
	{
	document.getElementById("Output").value = 0.03125* cInputNum2
	}
	
if(select_input == "ounce" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 2 * cInputNum2
	}
	
if(select_input == "ounce" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 6 * cInputNum2
	}

//ounce(UK) input
if(select_input == "ounceUK" && select_output == "cup")
	{
	document.getElementById("Output").value = 0.120095 * cInputNum2
	}

if(select_input == "ounceUK" && select_output == "dram")
	{
	document.getElementById("Output").value = 7.686027* cInputNum2
	}

if(select_input == "ounceUK" && select_output == "drop")
	{
	document.getElementById("Output").value = 438.1189* cInputNum2
	}
	
if(select_input == "ounceUK" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.0078125* cInputNum2
	}

if(select_input == "ounceUK" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.00625* cInputNum2
	}
	
if(select_input == "ounceUK" && select_output == "liter")
	{
	document.getElementById("Output").value = 0.02841307* cInputNum2
	}
	
if(select_input == "ounceUK" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 28.41307* cInputNum2
	}

if(select_input == "ounceUK" && select_output == "ounce")
	{
	document.getElementById("Output").value = 0.9607604* cInputNum2
	}

if(select_input == "ounceUK" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 1 * cInputNum2
	}
	
if(select_input == "ounceUK" && select_output == "pint")
	{
	document.getElementById("Output").value = 0.06004752* cInputNum2
	}
	
if(select_input == "ounceUK" && select_output == "pintUK")
	{
	document.getElementById("Output").value =0.05000002 * cInputNum2
	}
	
if(select_input == "ounceUK" && select_output == "quart")
	{
	document.getElementById("Output").value = 0.03002376* cInputNum2
	}
	
if(select_input == "ounceUK" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 1.921521* cInputNum2
	}
	
if(select_input == "ounceUK" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 5.764562* cInputNum2
	}

//pint input
if(select_input == "pint" && select_output == "cup")
	{
	document.getElementById("Output").value = 2 * cInputNum2
	}

if(select_input == "pint" && select_output == "dram")
	{
	document.getElementById("Output").value = 127.9991* cInputNum2
	}

if(select_input == "pint" && select_output == "drop")
	{
	document.getElementById("Output").value = 7296.206* cInputNum2
	}
	
if(select_input == "pint" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.125* cInputNum2
	}

if(select_input == "pint" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.1040842* cInputNum2
	}
	
if(select_input == "pint" && select_output == "liter")
	{
	document.getElementById("Output").value = 0.4731765* cInputNum2
	}
	
if(select_input == "pint" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 473.1765* cInputNum2
	}

if(select_input == "pint" && select_output == "ounce")
	{
	document.getElementById("Output").value = 16* cInputNum2
	}

if(select_input == "pint" && select_output == "ounceUK")
	{
	document.getElementById("Output").value =16.65348* cInputNum2
	}
	
if(select_input == "pint" && select_output == "pint")
	{
	document.getElementById("Output").value = 1* cInputNum2
	}
	
if(select_input == "pint" && select_output == "pintUK")
	{
	document.getElementById("Output").value =0.8326742 * cInputNum2
	}
	
if(select_input == "pint" && select_output == "quart")
	{
	document.getElementById("Output").value = 0.5* cInputNum2
	}
	
if(select_input == "pint" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 32* cInputNum2
	}
	
if(select_input == "pint" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 96* cInputNum2
	}

//pint(UK) input
if(select_input == "pintUK" && select_output == "cup")
	{
	document.getElementById("Output").value = 2.401899 * cInputNum2
	}

if(select_input == "pintUK" && select_output == "dram")
	{
	document.getElementById("Output").value = 153.7205* cInputNum2
	}

if(select_input == "pintUK" && select_output == "drop")
	{
	document.getElementById("Output").value = 8762.374* cInputNum2
	}
	
if(select_input == "pintUK" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.1501187* cInputNum2
	}

if(select_input == "pintUK" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.1249999* cInputNum2
	}
	
if(select_input == "pintUK" && select_output == "liter")
	{
	document.getElementById("Output").value = 0.568261* cInputNum2
	}
	
if(select_input == "pintUK" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 568.261* cInputNum2
	}

if(select_input == "pintUK" && select_output == "ounce")
	{
	document.getElementById("Output").value = 19.21519* cInputNum2
	}

if(select_input == "pintUK" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 19.99999* cInputNum2
	}
	
if(select_input == "pintUK" && select_output == "pint")
	{
	document.getElementById("Output").value = 1.200949* cInputNum2
	}
	
if(select_input == "pintUK" && select_output == "pintUK")
	{
	document.getElementById("Output").value = 1 * cInputNum2
	}
	
if(select_input == "pintUK" && select_output == "quart")
	{
	document.getElementById("Output").value = 0.6004747* cInputNum2
	}
	
if(select_input == "pintUK" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 38.43039* cInputNum2
	}
	
if(select_input == "pintUK" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 115.2911* cInputNum2
	}

//quart input
if(select_input == "quart" && select_output == "cup")
	{
	document.getElementById("Output").value = 4 * cInputNum2
	}

if(select_input == "quart" && select_output == "dram")
	{
	document.getElementById("Output").value = 255.9983* cInputNum2
	}

if(select_input == "quart" && select_output == "drop")
	{
	document.getElementById("Output").value = 14592.41* cInputNum2
	}
	
if(select_input == "quart" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.25* cInputNum2
	}

if(select_input == "quart" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.2081685* cInputNum2
	}
	
if(select_input == "quart" && select_output == "liter")
	{
	document.getElementById("Output").value = 0.9463529* cInputNum2
	}
	
if(select_input == "quart" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 946.3529* cInputNum2
	}

if(select_input == "quart" && select_output == "ounce")
	{
	document.getElementById("Output").value = 32* cInputNum2
	}

if(select_input == "quart" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 33.30695* cInputNum2
	}
	
if(select_input == "quart" && select_output == "pint")
	{
	document.getElementById("Output").value = 2* cInputNum2
	}
	
if(select_input == "quart" && select_output == "pintUK")
	{
	document.getElementById("Output").value = 1.665348* cInputNum2
	}
	
if(select_input == "quart" && select_output == "quart")
	{
	document.getElementById("Output").value = 1* cInputNum2
	}
	
if(select_input == "quart" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 64* cInputNum2
	}
	
if(select_input == "quart" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 192* cInputNum2
	}

//tbs input
if(select_input == "tablespoon" && select_output == "cup")
	{
	document.getElementById("Output").value = 0.0625 * cInputNum2
	}

if(select_input == "tablespoon" && select_output == "dram")
	{
	document.getElementById("Output").value = 3.999972* cInputNum2
	}

if(select_input == "tablespoon" && select_output == "drop")
	{
	document.getElementById("Output").value = 228.0064* cInputNum2
	}
	
if(select_input == "tablespoon" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.00390625* cInputNum2
	}

if(select_input == "tablespoon" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.003252632* cInputNum2
	}
	
if(select_input == "tablespoon" && select_output == "liter")
	{
	document.getElementById("Output").value = 0.01478676* cInputNum2
	}
	
if(select_input == "tablespoon" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 14.78676* cInputNum2
	}

if(select_input == "tablespoon" && select_output == "ounce")
	{
	document.getElementById("Output").value = 0.5* cInputNum2
	}

if(select_input == "tablespoon" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 0.5204211* cInputNum2
	}
	
if(select_input == "tablespoon" && select_output == "pint")
	{
	document.getElementById("Output").value = 0.03125* cInputNum2
	}
	
if(select_input == "tablespoon" && select_output == "pintUK")
	{
	document.getElementById("Output").value = 0.02602107* cInputNum2
	}
	
if(select_input == "tablespoon" && select_output == "quart")
	{
	document.getElementById("Output").value = 0.015625* cInputNum2
	}
	
if(select_input == "tablespoon" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 1* cInputNum2
	}
	
if(select_input == "tablespoon" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 3* cInputNum2
	}

//tsp input
if(select_input == "teaspoon" && select_output == "cup")
	{
	document.getElementById("Output").value = 0.02083333 * cInputNum2
	}

if(select_input == "teaspoon" && select_output == "dram")
	{
	document.getElementById("Output").value = 1.333324* cInputNum2
	}

if(select_input == "teaspoon" && select_output == "drop")
	{
	document.getElementById("Output").value = 76.00215* cInputNum2
	}
	
if(select_input == "teaspoon" && select_output == "gallon")
	{
	document.getElementById("Output").value = 0.001302083* cInputNum2
	}

if(select_input == "teaspoon" && select_output == "gallonUK")
	{
	document.getElementById("Output").value = 0.001084211* cInputNum2
	}
	
if(select_input == "teaspoon" && select_output == "liter")
	{
	document.getElementById("Output").value = 0.004928922* cInputNum2
	}
	
if(select_input == "teaspoon" && select_output == "milliliter")
	{
	document.getElementById("Output").value = 4.928922* cInputNum2
	}

if(select_input == "teaspoon" && select_output == "ounce")
	{
	document.getElementById("Output").value = 0.1666667* cInputNum2
	}

if(select_input == "teaspoon" && select_output == "ounceUK")
	{
	document.getElementById("Output").value = 0.1734737* cInputNum2
	}
	
if(select_input == "teaspoon" && select_output == "pint")
	{
	document.getElementById("Output").value = 0.01041667* cInputNum2
	}
	
if(select_input == "teaspoon" && select_output == "pintUK")
	{
	document.getElementById("Output").value = 0.008673694* cInputNum2
	}
	
if(select_input == "teaspoon" && select_output == "quart")
	{
	document.getElementById("Output").value = 0.005208333* cInputNum2
	}
	
if(select_input == "teaspoon" && select_output == "tablespoon")
	{
	document.getElementById("Output").value = 0.3333333* cInputNum2
	}
	
if(select_input == "teaspoon" && select_output == "teaspoon")
	{
	document.getElementById("Output").value = 1* cInputNum2
	}
}