// JavaScript Document

function roundNumber(num, dec) {
	var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
	return result;
}

function CurrencyFormatted(amount)
{
	var i = parseFloat(amount);
	if(isNaN(i)) { i = 0.00; }
	var minus = '';
	if(i < 0) { minus = '-'; }
	i = Math.abs(i);
	i = parseInt((i + .005) * 100);
	i = i / 100;
	s = new String(i);
	if(s.indexOf('.') < 0) { s += '.00'; }
	if(s.indexOf('.') == (s.length - 2)) { s += '0'; }
	s = minus + s;
	return s;
}

function showTotals() {
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2.00;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay1() {
var qty = document.calc.qty1.value;
document.calc.cost1.value = CurrencyFormatted(qty * 4);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2.00;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay2() {
var qty = document.calc.qty2.value;
document.calc.cost2.value = CurrencyFormatted(qty * 3);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay3() {
var qty = document.calc.qty3.value;
document.calc.cost3.value = CurrencyFormatted(qty * 10);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay4() {
var qty = document.calc.qty4.value;
document.calc.cost4.value = CurrencyFormatted(qty * 2);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay5() {
var qty = document.calc.qty5.value;
document.calc.cost5.value = CurrencyFormatted(qty * 2);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay6() {
var qty = document.calc.qty6.value;
document.calc.cost6.value = CurrencyFormatted(qty * 2);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay7() {
var qty = document.calc.qty7.value;
document.calc.cost7.value = CurrencyFormatted(qty * 2);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay8() {
var qty = document.calc.qty8.value;
document.calc.cost8.value = CurrencyFormatted(qty * 2);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay9() {
var qty = document.calc.qty9.value;
document.calc.cost9.value = CurrencyFormatted(qty * 2);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay10() {
var qty = document.calc.qty10.value;
document.calc.cost10.value = CurrencyFormatted(qty * 2);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay11() {
var qty = document.calc.qty11.value;
document.calc.cost11.value = CurrencyFormatted(qty * 2);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay12() {
var qty = document.calc.qty12.value;
document.calc.cost12.value = CurrencyFormatted(qty * 3);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay13() {
var qty = document.calc.qty13.value;
document.calc.cost13.value = CurrencyFormatted(qty * 3);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay14() {
var qty = document.calc.qty14.value;
document.calc.cost14.value = CurrencyFormatted(qty * 3);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay15() {
var qty = document.calc.qty15.value;
document.calc.cost15.value = CurrencyFormatted(qty * 4);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay16() {
var qty = document.calc.qty16.value;
document.calc.cost16.value = CurrencyFormatted(qty * 10);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay17() {
var qty = document.calc.qty17.value;
document.calc.cost17.value = CurrencyFormatted(qty * 10);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay18() {
var qty = document.calc.qty18.value;
document.calc.cost18.value = CurrencyFormatted(qty * .4);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay19() {
var qty = document.calc.qty19.value;
document.calc.cost19.value = CurrencyFormatted(qty * .4);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay20() {
var qty = document.calc.qty20.value;
document.calc.cost20.value = CurrencyFormatted(qty * 25);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay21() {
var qty = document.calc.qty21.value;
document.calc.cost21.value = CurrencyFormatted(qty * 48);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay22() {
var qty = document.calc.qty22.value;
document.calc.cost22.value = CurrencyFormatted(qty * 48);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay23() {
var qty = document.calc.qty23.value;
document.calc.cost23.value = CurrencyFormatted(qty * 48);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay24() {
var qty = document.calc.qty24.value;
document.calc.cost24.value = CurrencyFormatted(qty * 48);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay25() {
var qty = document.calc.qty25.value;
document.calc.cost25.value = CurrencyFormatted(qty * 48);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay26() {
var qty = document.calc.qty26.value;
document.calc.cost26.value = CurrencyFormatted(qty * 15);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}

function showpay27() {
var qty = document.calc.qty27.value;
document.calc.cost27.value = CurrencyFormatted(qty * 5);
var subtotal = Number(document.calc.cost1.value) + Number(document.calc.cost2.value) + Number(document.calc.cost3.value) + Number(document.calc.cost4.value) + Number(document.calc.cost5.value) + Number(document.calc.cost6.value) + Number(document.calc.cost7.value) + Number(document.calc.cost8.value) + Number(document.calc.cost9.value) + Number(document.calc.cost10.value) + Number(document.calc.cost11.value) + Number(document.calc.cost12.value) + Number(document.calc.cost13.value) + Number(document.calc.cost14.value) + Number(document.calc.cost15.value) + Number(document.calc.cost16.value) + Number(document.calc.cost17.value) + Number(document.calc.cost18.value) + Number(document.calc.cost19.value) + Number(document.calc.cost20.value) + Number(document.calc.cost21.value) + Number(document.calc.cost22.value) + Number(document.calc.cost23.value) + Number(document.calc.cost24.value) + Number(document.calc.cost25.value) + Number(document.calc.cost26.value) + Number(document.calc.cost27.value);

if(subtotal < 20) {
	var shipping = 2;
}
else {
	var shipping = subtotal * .1;
}

var total = Number(subtotal) + Number(shipping);
document.calc.subtotal.value = CurrencyFormatted(subtotal);
document.calc.shipping.value = CurrencyFormatted(shipping);
document.calc.total.value = CurrencyFormatted(total);
}