// JavaScript Documentfunction shirtprice(numsmall, numlarge, color, type, formnum) {	numsmall = numsmall*1;	numlarge = numlarge*1;	var pricesmall = 0;	var pricelarge = 0;	var shirttotal = 0;	if(type.match("Heavy Cotton")) {		if(color.match("White") || color.match("7527")) {			if(numsmall < 72) {				pricesmall = 1.51;			}			else {				pricesmall = 1.26;			}			if(numlarge < 72) {				pricelarge = 2.3;			}			else {				pricelarge = 2.05;			}		}		else if(color.match("538") || color.match("422")) {			if(numsmall < 72) {				pricesmall = 1.78;			}			else {				pricesmall = 1.54;			}			if(numlarge < 72) {				pricelarge = 2.64;			}			else {				pricelarge = 2.34;			}		}		else {			if(numsmall < 72) {				pricesmall = 2.07;			}			else {				pricesmall = 1.78;			}			if(numlarge < 72) {				pricelarge = 3.07;			}			else {				pricelarge = 2.7;			}		}	}	if(type.match("Blend 50/50")) {		if(color.match("White") || color.match("7527")) {			if(numsmall < 72) {				pricesmall = 1.54;			}			else {				pricesmall = 1.28;			}			if(numlarge < 72) {				pricelarge = 2.36;			}			else {				pricelarge = 2.06;			}		}		else if(color.match("538") || color.match("422")) {			if(numsmall < 72) {				pricesmall = 1.87;			}			else {				pricesmall = 1.62;			}			if(numlarge < 72) {				pricelarge = 2.73;			}			else {				pricelarge = 2.47;			}		}		else {			if(numsmall < 72) {				pricesmall = 2.17;			}			else {				pricesmall = 1.86;			}			if(numlarge < 72) {				pricelarge = 3.19;			}			else {				pricelarge = 2.89;			}		}	}				shirttotal = pricelarge*numlarge*1.5 + pricesmall*numsmall*1.5;		//mark up shirt price not less than $30 because shipping is $20		if(shirttotal < (pricelarge*numlarge + pricesmall* numsmall+ 30)) {			shirttotal = pricelarge*numlarge + pricesmall* numsmall+ 30;		}				var screentotal = formnum.screentotal.value;		var grandtotal = Math.ceil(screentotal*1 + shirttotal*1);		var numshirts = formnum.smallshirts.value*1 + formnum.largeshirts.value*1;		if(numshirts >= 12) {		formnum.total.value = grandtotal;		formnum.pricelarge.value = pricelarge;		formnum.pricesmall.value = pricesmall;		formnum.shirttotal.value = shirttotal;		}		else {			formnum.total.value = "- -";		}		}