// JavaScript Documentfunction screenprinting(numsmall, numlarge, totalcolorsin, color, formnum, side) {	numsmall = numsmall*1;	numlarge = numlarge*1;	var totalshirts = numsmall + numlarge;	totalshirts = totalshirts*1;	var priceper = 0;	var setup1 = 0;	var setup2 = 0;	var total = 0;	var screentotal = 0;	var fullcolorfee = 0;	var totalcolors = 0;	if(totalcolorsin.match("full")) {		if(color.match("Black") || color.match("412") || color.match("285") || color.match("274")) {			totalcolors = 5;		}		else {			totalcolors = 4;		}	}	else {			totalcolors = totalcolorsin;			totalcolors = totalcolors*1;	}	switch(totalcolors) {		case 1:		if(totalshirts < 24) {			priceper = 1.25;		}		else if (totalshirts < 48) {			priceper = 1.05;		}		else if (totalshirts < 144) {			priceper = .8;		}		else if (totalshirts < 500) {			priceper = .65;		}		else if (totalshirts >= 500) {			priceper = .5;		}		break;		case 2:		if(totalshirts < 24) {			priceper = 2;		}		else if (totalshirts < 48) {			priceper = 1.65;		}		else if (totalshirts < 144) {			priceper = 1.3;		}		else if (totalshirts < 500) {			priceper = .95;		}		else if (totalshirts >= 500) {			priceper = .75;		}		break;		case 3:		if(totalshirts < 24) {			priceper = 2.75;		}		else if (totalshirts < 48) {			priceper = 2.15;		}		else if (totalshirts < 144) {			priceper = 1.75;		}		else if (totalshirts < 500) {			priceper = 1.25;		}		else if (totalshirts >= 500) {			priceper = 1;		}		break;		case 4:		if(totalshirts < 24) {			priceper = 3.25;		}		else if (totalshirts < 48) {			priceper = 2.5;		}		else if (totalshirts < 144) {			priceper = 2.15;		}		else if (totalshirts < 500) {			priceper = 1.55;		}		else if (totalshirts >= 500) {			priceper = 1.25;		}		break;		case 5:		if(totalshirts < 24) {			priceper = 3.75;		}		else if (totalshirts < 48) {			priceper = 2.85;		}		else if (totalshirts < 144) {			priceper = 2.5;		}		else if (totalshirts < 500) {			priceper = 1.85;		}		else if (totalshirts >= 500) {			priceper = 1.5;		}		break;			}					total = priceper*totalshirts*1.5;		// first side		if(side == 0) {		formnum.side1total.value = total;		formnum.side1per.value = priceper;			if(totalshirts < 289) {	setup1 = totalcolors*15;	}	else {		setup1 = 0;	}		if(totalcolorsin.match("full")) {					if(totalshirts < 289) {			setup1 = 80+setup1*1;		}	}			formnum.setup1.value = setup1*1;		}										// second side 		if(side == 1) {			formnum.side2total.value = total;			formnum.side2per.value = priceper;				if(totalshirts < 289) {	setup2 = totalcolors*15;	}	else {		setup2 = 0;	}		if(totalcolorsin.match("full")) {					if(totalshirts < 289) {			setup2 = 80+setup2*1;		}	}				formnum.setup2.value = setup2;		}											var side1total = 0;			side1total = formnum.side1total.value;			var setup1total = 0;			setup1total = formnum.setup1.value;			var side2total = 0;			side2total = formnum.side2total.value;			var setup2total = 0;			setup2total = formnum.setup2.value;		screentotal = side1total*1 + side2total*1 + setup1total*1 + setup2total*1;		formnum.screentotal.value = screentotal;}