nothing = 0;
decimal = 2;

///////// COFFEE PRICES 200
espresso_200 = 7.90
special_italian_200 = 7.50;
yellow_200 = 8.90;
marias_choice_200 = 8.90;
panama_200 = 8.90;
french_caramel_200 = 7.50;
colombian_200 = 7.90;
brazilian_santos_200 = 7.90;
mocha_original_200 = 12.90;
guatemalan_200 = 8.90;
decaffeinated_200 = 9.20;
rainforest_200 = 9.20;
organic_200 = 9.20;
minas_santos_200 = nothing;
greek_style_200 = nothing;

///////// COFFEE PRICES 500
espresso_500 =  nothing;
special_italian_500 = nothing;
yellow_500 =  nothing;
marias_choice_500 =  nothing;
panama_500 =  nothing;
french_caramel_500 =  nothing
colombian_500 =  nothing;
brazilian_santos_500 =  nothing;
mocha_original_500 =  nothing;
guatemalan_500 =  nothing;
decaffeinated_500 =  nothing;
rainforest_500 =  nothing;
organic_500 = nothing;
minas_santos_500 = 13.00;
greek_style_500 = 13.00;

///////// COFFEE PRICES 1k
espresso_1k = 30.35;
special_italian_1k = 28.00;
yellow_1k = 33.30;
marias_choice_1k = 33.30;
panama_1k = 33.30;
french_caramel_1k = 28.00;
colombian_1k = 30.35;
brazilian_santos_1k = 30.35;
mocha_original_1k = 46.00;
guatemalan_1k = 33.30;
decaffeinated_1k = 34.00;
rainforest_1k = 36.00;
organic_1k = 36.00;
minas_santos_1k = nothing;
greek_style_1k = nothing;

///////// CHOCOLATE
mocha_choc_2k = 26.00;


////////// ASIGN CURRENCY TO VARS
espresso_200 = espresso_200.toFixed(decimal);
espresso_500 = espresso_500.toFixed(decimal);
espresso_1k = espresso_1k.toFixed(decimal);
special_italian_200 = special_italian_200.toFixed(decimal);
special_italian_500 = special_italian_500.toFixed(decimal);
special_italian_1k = special_italian_1k.toFixed(decimal);
yellow_200 = yellow_200.toFixed(decimal);
yellow_500 = yellow_500.toFixed(decimal);
yellow_1k = yellow_1k.toFixed(decimal);
marias_choice_200 = marias_choice_200.toFixed(decimal);
marias_choice_500 = marias_choice_500.toFixed(decimal);
marias_choice_1k = marias_choice_1k.toFixed(decimal);
panama_200 = panama_200.toFixed(decimal);
panama_500 = panama_500.toFixed(decimal);
panama_1k = panama_1k.toFixed(decimal);
french_caramel_200 = french_caramel_200.toFixed(decimal);
french_caramel_500 = french_caramel_500.toFixed(decimal);
french_caramel_1k = french_caramel_1k.toFixed(decimal);
colombian_200 = colombian_200.toFixed(decimal);
colombian_500 = colombian_500.toFixed(decimal);
colombian_1k = colombian_1k.toFixed(decimal);
brazilian_santos_200 = brazilian_santos_200.toFixed(decimal);
brazilian_santos_500 = brazilian_santos_500.toFixed(decimal);
brazilian_santos_1k = brazilian_santos_1k.toFixed(decimal);
mocha_original_200 = mocha_original_200.toFixed(decimal);
mocha_original_500 = mocha_original_500.toFixed(decimal);
mocha_original_1k = mocha_original_1k.toFixed(decimal);
guatemalan_200 = guatemalan_200.toFixed(decimal);
guatemalan_500 = guatemalan_500.toFixed(decimal);
guatemalan_1k = guatemalan_1k.toFixed(decimal);
decaffeinated_200 = decaffeinated_200.toFixed(decimal);
decaffeinated_500 = decaffeinated_500.toFixed(decimal);
decaffeinated_1k = decaffeinated_1k.toFixed(decimal);
rainforest_200 = rainforest_200.toFixed(decimal);
rainforest_500 = rainforest_500.toFixed(decimal);
rainforest_1k = rainforest_1k.toFixed(decimal);
organic_200 = organic_200.toFixed(decimal);
organic_500 = organic_500.toFixed(decimal);
organic_1k = organic_1k.toFixed(decimal);
minas_santos_200 = minas_santos_200.toFixed(decimal);
minas_santos_500 = minas_santos_500.toFixed(decimal);
minas_santos_1k = minas_santos_1k.toFixed(decimal);
greek_style_200 = greek_style_200.toFixed(decimal);
greek_style_500 = greek_style_500.toFixed(decimal);
greek_style_1k = greek_style_1k.toFixed(decimal);
//choc
mocha_choc_2k = mocha_choc_2k.toFixed(decimal);


function updateTotalCoffee(){
updateTotal_1();
updateTotal_2();
updateTotal_3();
updateTotal_4();
updateTotal_5();
updateTotal_6();
updateTotal_7();
updateTotal_8();
updateTotal_9();
updateTotal_10();
updateTotal_11();
updateTotal_12();
updateTotal_13();
updateTotal_14();
updateTotal_15();
updateTotal_16();
/////////////////
updateTotal_1b();
updateTotal_2b();
updateTotal_3b();
updateTotal_4b();
updateTotal_5b();
updateTotal_6b();
updateTotal_7b();
updateTotal_8b();
updateTotal_9b();
updateTotal_10b();
updateTotal_11b();
updateTotal_12b();
updateTotal_13b();
//updateTotal_14b();
//updateTotal_15b();
//////////////////
coffeeTotal();
///////////////////
updateTotalTea_1();
updateTotalTea_2();
updateTotalTea_3();
updateTotalTea_4();
updateTotalTea_5();
updateTotalTea_6();
updateTotalTea_7();
updateTotalTea_8();
updateTotalTea_9();
updateTotalTea_10();
updateTotalTea_11();
updateTotalTea_12();
updateTotalTea_13();
///////////////////
teaTotal();
/////////////////
updateSubTotal();
}

function updateTotal_1(){
	ammount_1_200_t = document.mocha_form.ammount_1_200.value;
	//ammount_1_500_t = document.mocha_form.ammount_1_500.value;
	ammount_1_1k_t = document.mocha_form.ammount_1_1k.value;
	ammount_1_total = (espresso_200 * ammount_1_200_t)+(espresso_1k * ammount_1_1k_t);
	document.mocha_form.ammount_1_total.value = "$"+ammount_1_total.toFixed(decimal);
}
function updateTotal_2(){
	ammount_2_200_t = document.mocha_form.ammount_2_200.value;
	//ammount_2_500_t = document.mocha_form.ammount_2_500.value;
	ammount_2_1k_t = document.mocha_form.ammount_2_1k.value;
	ammount_2_total = (special_italian_200 * ammount_2_200_t)+(special_italian_1k * ammount_2_1k_t);
	document.mocha_form.ammount_2_total.value = "$"+ammount_2_total.toFixed(decimal);
}
function updateTotal_3(){
	ammount_3_200_t = document.mocha_form.ammount_3_200.value;
	//ammount_3_500_t = document.mocha_form.ammount_3_500.value;
	ammount_3_1k_t = document.mocha_form.ammount_3_1k.value;
	ammount_3_total = (yellow_200 * ammount_3_200_t)+(yellow_1k * ammount_3_1k_t);
	document.mocha_form.ammount_3_total.value = "$"+ammount_3_total.toFixed(decimal);
}
function updateTotal_4(){
	ammount_4_200_t = document.mocha_form.ammount_4_200.value;
	//ammount_4_500_t = document.mocha_form.ammount_4_500.value;
	ammount_4_1k_t = document.mocha_form.ammount_4_1k.value;
	ammount_4_total = (marias_choice_200 * ammount_4_200_t)+(marias_choice_1k * ammount_4_1k_t);
	document.mocha_form.ammount_4_total.value = "$"+ammount_4_total.toFixed(decimal);
}
function updateTotal_5(){
	ammount_5_200_t = document.mocha_form.ammount_5_200.value;
	//ammount_5_500_t = document.mocha_form.ammount_5_500.value;
	ammount_5_1k_t = document.mocha_form.ammount_5_1k.value;
	ammount_5_total = (panama_200 * ammount_5_200_t)+(panama_1k * ammount_5_1k_t);
	document.mocha_form.ammount_5_total.value = "$"+ammount_5_total.toFixed(decimal);
}
function updateTotal_6(){
	ammount_6_200_t = document.mocha_form.ammount_6_200.value;
	//ammount_6_500_t = document.mocha_form.ammount_6_500.value;
	ammount_6_1k_t = document.mocha_form.ammount_6_1k.value;
	ammount_6_total = (french_caramel_200 * ammount_6_200_t)+(french_caramel_1k * ammount_6_1k_t);
	document.mocha_form.ammount_6_total.value = "$"+ammount_6_total.toFixed(decimal);
}
function updateTotal_7(){
	ammount_7_200_t = document.mocha_form.ammount_7_200.value;
	//ammount_7_500_t = document.mocha_form.ammount_7_500.value;
	ammount_7_1k_t = document.mocha_form.ammount_7_1k.value;
	ammount_7_total = (colombian_200 * ammount_7_200_t)+(colombian_1k * ammount_7_1k_t);
	document.mocha_form.ammount_7_total.value = "$"+ammount_7_total.toFixed(decimal);
}
function updateTotal_8(){
	ammount_8_200_t = document.mocha_form.ammount_8_200.value;
	//ammount_8_500_t = document.mocha_form.ammount_8_500.value;
	ammount_8_1k_t = document.mocha_form.ammount_8_1k.value;
	ammount_8_total = (brazilian_santos_200 * ammount_8_200_t)+(brazilian_santos_1k * ammount_8_1k_t);
	document.mocha_form.ammount_8_total.value = "$"+ammount_8_total.toFixed(decimal);
}
function updateTotal_9(){
	ammount_9_200_t = document.mocha_form.ammount_9_200.value;
	//ammount_9_500_t = document.mocha_form.ammount_9_500.value;
	ammount_9_1k_t = document.mocha_form.ammount_9_1k.value;
	ammount_9_total = (mocha_original_200 * ammount_9_200_t)+(mocha_original_1k * ammount_9_1k_t);
	document.mocha_form.ammount_9_total.value = "$"+ammount_9_total.toFixed(decimal);
}
function updateTotal_10(){
	ammount_10_200_t = document.mocha_form.ammount_10_200.value;
	//ammount_10_500_t = document.mocha_form.ammount_10_500.value;
	ammount_10_1k_t = document.mocha_form.ammount_10_1k.value;
	ammount_10_total = (guatemalan_200 * ammount_10_200_t)+(guatemalan_1k * ammount_10_1k_t);
	document.mocha_form.ammount_10_total.value = "$"+ammount_10_total.toFixed(decimal);
}
function updateTotal_11(){
	ammount_11_200_t = document.mocha_form.ammount_11_200.value;
	//ammount_11_500_t = document.mocha_form.ammount_1_500.value;
	ammount_11_1k_t = document.mocha_form.ammount_11_1k.value;
	ammount_11_total = (decaffeinated_200 * ammount_11_200_t)+(decaffeinated_1k * ammount_11_1k_t);
	document.mocha_form.ammount_11_total.value = "$"+ammount_11_total.toFixed(decimal);
}
function updateTotal_12(){
	ammount_12_200_t = document.mocha_form.ammount_12_200.value;
	//ammount_12_500_t = document.mocha_form.ammount_12_500.value;
	ammount_12_1k_t = document.mocha_form.ammount_12_1k.value;
	ammount_12_total = (rainforest_200 * ammount_12_200_t)+(rainforest_1k * ammount_12_1k_t);
	document.mocha_form.ammount_12_total.value = "$"+ammount_12_total.toFixed(decimal);
}
function updateTotal_13(){
	ammount_13_200_t = document.mocha_form.ammount_13_200.value;
	//ammount_13_500_t = document.mocha_form.ammount_13_500.value;
	ammount_13_1k_t = document.mocha_form.ammount_13_1k.value;
	ammount_13_total = (organic_200 * ammount_13_200_t)+(organic_1k * ammount_13_1k_t);
	document.mocha_form.ammount_13_total.value = "$"+ammount_13_total.toFixed(decimal);
}
function updateTotal_14(){
	//ammount_14_200_t = document.mocha_form.ammount_14_200.value;
	ammount_14_500_t = document.mocha_form.ammount_14_500.value;
	//ammount_14_1k_t = document.mocha_form.ammount_14_1k.value;
	ammount_14_total = (minas_santos_500 * ammount_14_500_t);
	document.mocha_form.ammount_14_total.value = "$"+ammount_14_total.toFixed(decimal);
}
function updateTotal_15(){
	//ammount_15_200_t = document.mocha_form.ammount_15_200.value;
	ammount_15_500_t = document.mocha_form.ammount_15_500.value;
	//ammount_15_1k_t = document.mocha_form.ammount_15_1k.value;
	ammount_15_total = (greek_style_500 * ammount_15_500_t);
	document.mocha_form.ammount_15_total.value = "$"+ammount_15_total.toFixed(decimal);
}
function updateTotal_16(){
	//ammount_15_200_t = document.mocha_form.ammount_15_200.value;
	ammount_16_2k_t = document.mocha_form.ammount_16_2k.value;
	//ammount_15_1k_t = document.mocha_form.ammount_15_1k.value;
	ammount_16_total = (mocha_choc_2k * ammount_16_2k_t);
	document.mocha_form.ammount_16_total.value = "$"+ammount_16_total.toFixed(decimal);
}
/////////////////////////////////////////////////////////////////////////////// beans included...
/////////////////////////////////////////////////////////////////////////////// beans included...
/////////////////////////////////////////////////////////////////////////////// beans included...
function updateTotal_1b(){
	ammountb_1_200_t = document.mocha_form.ammountb_1_200.value;
	//ammountb_1_500_t = document.mocha_form.ammountb_1_500.value;
	ammountb_1_1k_t = document.mocha_form.ammountb_1_1k.value;
	ammountb_1_total = (espresso_200 * ammountb_1_200_t)+(espresso_1k * ammountb_1_1k_t);
	document.mocha_form.ammountb_1_total.value = "$"+ammountb_1_total.toFixed(decimal);
}
function updateTotal_2b(){
	ammountb_2_200_t = document.mocha_form.ammountb_2_200.value;
	//ammountb_2_500_t = document.mocha_form.ammountb_2_500.value;
	ammountb_2_1k_t = document.mocha_form.ammountb_2_1k.value;
	ammountb_2_total = (special_italian_200 * ammountb_2_200_t)+(special_italian_1k * ammountb_2_1k_t);
	document.mocha_form.ammountb_2_total.value = "$"+ammountb_2_total.toFixed(decimal);
}
function updateTotal_3b(){
	ammountb_3_200_t = document.mocha_form.ammountb_3_200.value;
	//ammountb_3_500_t = document.mocha_form.ammountb_3_500.value;
	ammountb_3_1k_t = document.mocha_form.ammountb_3_1k.value;
	ammountb_3_total = (yellow_200 * ammountb_3_200_t)+(yellow_1k * ammountb_3_1k_t);
	document.mocha_form.ammountb_3_total.value = "$"+ammountb_3_total.toFixed(decimal);
}
function updateTotal_4b(){
	ammountb_4_200_t = document.mocha_form.ammountb_4_200.value;
	//ammountb_4_500_t = document.mocha_form.ammountb_4_500.value;
	ammountb_4_1k_t = document.mocha_form.ammountb_4_1k.value;
	ammountb_4_total = (marias_choice_200 * ammountb_4_200_t)+(marias_choice_1k * ammountb_4_1k_t);
	document.mocha_form.ammountb_4_total.value = "$"+ammountb_4_total.toFixed(decimal);
}
function updateTotal_5b(){
	ammountb_5_200_t = document.mocha_form.ammountb_5_200.value;
	//ammountb_5_500_t = document.mocha_form.ammountb_5_500.value;
	ammountb_5_1k_t = document.mocha_form.ammountb_5_1k.value;
	ammountb_5_total = (panama_200 * ammountb_5_200_t)+(panama_1k * ammountb_5_1k_t);
	document.mocha_form.ammountb_5_total.value = "$"+ammountb_5_total.toFixed(decimal);
}
function updateTotal_6b(){
	ammountb_6_200_t = document.mocha_form.ammountb_6_200.value;
	//ammountb_6_500_t = document.mocha_form.ammountb_6_500.value;
	ammountb_6_1k_t = document.mocha_form.ammountb_6_1k.value;
	ammountb_6_total = (french_caramel_200 * ammountb_6_200_t)+(french_caramel_1k * ammountb_6_1k_t);
	document.mocha_form.ammountb_6_total.value = "$"+ammountb_6_total.toFixed(decimal);
}
function updateTotal_7b(){
	ammountb_7_200_t = document.mocha_form.ammountb_7_200.value;
	//ammountb_7_500_t = document.mocha_form.ammountb_7_500.value;
	ammountb_7_1k_t = document.mocha_form.ammountb_7_1k.value;
	ammountb_7_total = (colombian_200 * ammountb_7_200_t)+(colombian_1k * ammountb_7_1k_t);
	document.mocha_form.ammountb_7_total.value = "$"+ammountb_7_total.toFixed(decimal);
}
function updateTotal_8b(){
	ammountb_8_200_t = document.mocha_form.ammountb_8_200.value;
	//ammountb_8_500_t = document.mocha_form.ammountb_8_500.value;
	ammountb_8_1k_t = document.mocha_form.ammountb_8_1k.value;
	ammountb_8_total = (brazilian_santos_200 * ammountb_8_200_t)+(brazilian_santos_1k * ammountb_8_1k_t);
	document.mocha_form.ammountb_8_total.value = "$"+ammountb_8_total.toFixed(decimal);
}
function updateTotal_9b(){
	ammountb_9_200_t = document.mocha_form.ammountb_9_200.value;
	//ammountb_9_500_t = document.mocha_form.ammountb_9_500.value;
	ammountb_9_1k_t = document.mocha_form.ammountb_9_1k.value;
	ammountb_9_total = (mocha_original_200 * ammountb_9_200_t)+(mocha_original_1k * ammountb_9_1k_t);
	document.mocha_form.ammountb_9_total.value = "$"+ammountb_9_total.toFixed(decimal);
}
function updateTotal_10b(){
	ammountb_10_200_t = document.mocha_form.ammountb_10_200.value;
	//ammountb_10_500_t = document.mocha_form.ammountb_10_500.value;
	ammountb_10_1k_t = document.mocha_form.ammountb_10_1k.value;
	ammountb_10_total = (guatemalan_200 * ammountb_10_200_t)+(guatemalan_1k * ammountb_10_1k_t);
	document.mocha_form.ammountb_10_total.value = "$"+ammountb_10_total.toFixed(decimal);
}
function updateTotal_11b(){
	ammountb_11_200_t = document.mocha_form.ammountb_11_200.value;
	//ammountb_11_500_t = document.mocha_form.ammountb_1_500.value;
	ammountb_11_1k_t = document.mocha_form.ammountb_11_1k.value;
	ammountb_11_total = (decaffeinated_200 * ammountb_11_200_t)+(decaffeinated_1k * ammountb_11_1k_t);
	document.mocha_form.ammountb_11_total.value = "$"+ammountb_11_total.toFixed(decimal);
}
function updateTotal_12b(){
	ammountb_12_200_t = document.mocha_form.ammountb_12_200.value;
	//ammountb_12_500_t = document.mocha_form.ammountb_12_500.value;
	ammountb_12_1k_t = document.mocha_form.ammountb_12_1k.value;
	ammountb_12_total = (rainforest_200 * ammountb_12_200_t)+(rainforest_1k * ammountb_12_1k_t);
	document.mocha_form.ammountb_12_total.value = "$"+ammountb_12_total.toFixed(decimal);
}
function updateTotal_13b(){
	ammountb_13_200_t = document.mocha_form.ammountb_13_200.value;
	//ammountb_13_500_t = document.mocha_form.ammountb_13_500.value;
	ammountb_13_1k_t = document.mocha_form.ammountb_13_1k.value;
	ammountb_13_total = (organic_200 * ammountb_13_200_t)+(organic_1k * ammountb_13_1k_t);
	document.mocha_form.ammountb_13_total.value = "$"+ammountb_13_total.toFixed(decimal);
}
function updateTotal_14b(){
	//ammountb_14_200_t = document.mocha_form.ammountb_14_200.value;
	ammountb_14_500_t = document.mocha_form.ammountb_14_500.value;
	//ammountb_14_1k_t = document.mocha_form.ammountb_14_1k.value;
	ammountb_14_total = (minas_santos_500 * ammountb_14_500_t);
	document.mocha_form.ammountb_14_total.value = "$"+ammountb_14_total.toFixed(decimal);
}
function updateTotal_15b(){
	//ammountb_15_200_t = document.mocha_form.ammountb_15_200.value;
	ammountb_15_500_t = document.mocha_form.ammountb_15_500.value;
	//ammountb_15_1k_t = document.mocha_form.ammountb_15_1k.value;
	ammountb_15_total = (greek_style_500 * ammountb_15_500_t);
	document.mocha_form.ammountb_15_total.value = "$"+ammountb_15_total.toFixed(decimal);
}

function coffeeTotal(){
coffe_total = ammount_1_total+ammount_2_total+ammount_3_total+ammount_4_total+ammount_5_total+ammount_6_total+ammount_7_total+ammount_8_total+ammount_9_total+ammount_10_total+ammount_11_total+ammount_12_total+ammount_13_total+ammount_14_total+ammount_15_total+ammountb_1_total+ammountb_2_total+ammountb_3_total+ammountb_4_total+ammountb_5_total+ammountb_6_total+ammountb_7_total+ammountb_8_total+ammountb_9_total+ammountb_10_total+ammountb_11_total+ammountb_12_total+ammountb_13_total;
document.mocha_form.coffee_total.value = "$"+coffe_total.toFixed(decimal);
}