function calc() {
var iTot = 0;
var mTot = 0;
	document.forms["add_cart1"].elements["quantity"].value = document.forms["add_cart1"].elements["quantity_500_1000_10000"].value;


	if (document.forms["add_cart1"].elements["quantity"].type=="select-one")
	{ var quantity = document.forms["add_cart1"].elements["quantity"].options[document.forms["add_cart1"].elements["quantity"].selectedIndex].value; }
	else
	{ var quantity = document.forms["add_cart1"].elements["quantity"].value; }

	if (document.forms["add_cart1"].elements["bccolors"].type=="select-one")
	{ var bccolors = document.forms["add_cart1"].elements["bccolors"].options[document.forms["add_cart1"].elements["bccolors"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["bccolors"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["bccolors"].length; i++)
	{if (document.forms["add_cart1"].elements["bccolors"][i].checked)
	{var bccolors =i ;
	break;}}
}else
{
	var bccolors =0;
	}}

	if (document.forms["add_cart1"].elements["bc_cardstock"].type=="select-one")
	{ var bc_cardstock = document.forms["add_cart1"].elements["bc_cardstock"].options[document.forms["add_cart1"].elements["bc_cardstock"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["bc_cardstock"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["bc_cardstock"].length; i++)
	{if (document.forms["add_cart1"].elements["bc_cardstock"][i].checked)
	{var bc_cardstock =i ;
	break;}}
}else
{
	var bc_cardstock =0;
	}}

	if (document.forms["add_cart1"].elements["proof"].type=="select-one")
	{ var proof = document.forms["add_cart1"].elements["proof"].options[document.forms["add_cart1"].elements["proof"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["proof"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["proof"].length; i++)
	{if (document.forms["add_cart1"].elements["proof"][i].checked)
	{var proof =i ;
	break;}}
}else
{
	var proof =0;
	}}

	if (document.forms["add_cart1"].elements["turnaround1235_recon"].type=="select-one")
	{ var turnaround1235_recon = document.forms["add_cart1"].elements["turnaround1235_recon"].options[document.forms["add_cart1"].elements["turnaround1235_recon"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["turnaround1235_recon"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["turnaround1235_recon"].length; i++)
	{if (document.forms["add_cart1"].elements["turnaround1235_recon"][i].checked)
	{var turnaround1235_recon = document.forms["add_cart1"].elements["turnaround1235_recon"][i].value;

	var index_turnaround = i;
	break;}}
}else
{
	var turnaround1235_recon = document.forms["add_cart1"].elements["turnaround1235_recon"].value;

	var index_turnaround = 0;
	}}

	if ((quantity > 0 && quantity <= 1000) && (bc_cardstock == "14 pt. Gloss Cover") && (turnaround1235_recon == "10 Days"))
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + (((((.12 * quantity) * itemInfo[1][0][document.forms["add_cart1"].elements["bccolors"].selectedIndex]) + ((40*1)+(1*((quantity/1000)*20))))) * (itemInfo[1][4][turnaround1235_recon]/1.176)) +itemInfo[1][2][document.forms["add_cart1"].elements["proof"].selectedIndex];
		mTot = mTot + iTot /quantity;
	}


	if ((quantity > 0 && quantity <= 1000) && (bc_cardstock == "14 pt. Gloss Cover") && (turnaround1235_recon == "5 Days"))
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + (((((.12 * quantity) * itemInfo[1][0][document.forms["add_cart1"].elements["bccolors"].selectedIndex]) + ((40*1)+(1*((quantity/1000)*20))))) * (itemInfo[1][4][turnaround1235_recon]/1.3)) +itemInfo[1][2][document.forms["add_cart1"].elements["proof"].selectedIndex];
		mTot = mTot + iTot /quantity;
	}


	if ((quantity > 1000) && (bc_cardstock == "14 pt. Gloss Cover") && (turnaround1235_recon == "10 Days"))
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((120+(.06 * (quantity-1000))) * itemInfo[1][0][document.forms["add_cart1"].elements["bccolors"].selectedIndex]) + ((40*1)+(1*((quantity/1000)*20)))) * (itemInfo[1][4][turnaround1235_recon]/1.176)) +itemInfo[1][2][document.forms["add_cart1"].elements["proof"].selectedIndex];
		mTot = mTot + iTot /quantity;
	}


	if ((quantity > 1000) && (bc_cardstock == "14 pt. Gloss Cover") && (turnaround1235_recon == "5 Days"))
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((120+(.06 * (quantity-1000))) * itemInfo[1][0][document.forms["add_cart1"].elements["bccolors"].selectedIndex]) + ((40*1)+(1*((quantity/1000)*20)))) * (itemInfo[1][4][turnaround1235_recon]/1.3)) +itemInfo[1][2][document.forms["add_cart1"].elements["proof"].selectedIndex];
		mTot = mTot + iTot /quantity;
	}


	if ((quantity > 0 && quantity <= 1000) && (bc_cardstock == "14 pt. Gloss Cover") && (turnaround1235_recon == "7 Days"))
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + (((((.12 * quantity) * itemInfo[1][0][document.forms["add_cart1"].elements["bccolors"].selectedIndex]) + ((40*1)+(1*((quantity/1000)*20))))) * (itemInfo[1][4][turnaround1235_recon]/1.176)) +itemInfo[1][2][document.forms["add_cart1"].elements["proof"].selectedIndex];
		mTot = mTot + iTot /quantity;
	}


	if ((quantity > 0 && quantity <= 1000) && (bc_cardstock == "14 pt. Gloss Cover") && (turnaround1235_recon == "5 Days"))
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + (((((.12 * quantity) * itemInfo[1][0][document.forms["add_cart1"].elements["bccolors"].selectedIndex]) + ((40*1)+(1*((quantity/1000)*20))))) * (itemInfo[1][4][turnaround1235_recon]/1.3)) +itemInfo[1][2][document.forms["add_cart1"].elements["proof"].selectedIndex];
		mTot = mTot + iTot /quantity;
	}


	if ((quantity > 1000) && (bc_cardstock == "14 pt. Gloss Cover") && (turnaround1235_recon == "7 Days"))
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((120+(.06 * (quantity-1000))) * itemInfo[1][0][document.forms["add_cart1"].elements["bccolors"].selectedIndex]) + ((40*1)+(1*((quantity/1000)*20)))) * (itemInfo[1][4][turnaround1235_recon]/1.176)) +itemInfo[1][2][document.forms["add_cart1"].elements["proof"].selectedIndex];
		mTot = mTot + iTot /quantity;
	}


	if ((quantity > 1000) && (bc_cardstock == "14 pt. Gloss Cover") && (turnaround1235_recon == "5 Days"))
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((120+(.06 * (quantity-1000))) * itemInfo[1][0][document.forms["add_cart1"].elements["bccolors"].selectedIndex]) + ((40*1)+(1*((quantity/1000)*20)))) * (itemInfo[1][4][turnaround1235_recon]/1.3)) +itemInfo[1][2][document.forms["add_cart1"].elements["proof"].selectedIndex];
		mTot = mTot + iTot /quantity;
	}


	if ((quantity > 0 && quantity <= 1000) && (bc_cardstock == "13 pt. Matte Cover"))
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + (((((.12 * quantity) * itemInfo[1][0][document.forms["add_cart1"].elements["bccolors"].selectedIndex] * 1.7) + ((40*1)+(1*((quantity/1000)*20))))) * itemInfo[1][4][turnaround1235_recon]) +itemInfo[1][2][document.forms["add_cart1"].elements["proof"].selectedIndex];
		mTot = mTot + iTot /quantity;
	}


	if ((quantity > 1000) && (bc_cardstock == "13 pt. Matte Cover"))
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((120+(.06 * (quantity-1000))) * itemInfo[1][0][document.forms["add_cart1"].elements["bccolors"].selectedIndex] * 1.7) + ((40*1)+(1*((quantity/1000)*20)))) * itemInfo[1][4][turnaround1235_recon]) +itemInfo[1][2][document.forms["add_cart1"].elements["proof"].selectedIndex];
		mTot = mTot + iTot /quantity;
	}

		
if(iTot == 0)
{
tTot = iTot;
document.getElementById("sptotal").innerHTML = 'Free';
document.forms["add_cart1"].elements["total"].value = '$0.00';
document.forms["add_cart1"].elements["price"].value = '$0.00';
document.getElementById("spprice").innerHTML = 'Free';
}
else
{
tTot = Math.round(iTot * 100) / 100 + .00001;
	var price_factor = 1;
tTot = tTot*price_factor;var totX = "" + tTot;
	totX = totX.substring(0,totX.indexOf(".") + 3);
	if(totX > 0 )
{
document.getElementById("sptotal").innerHTML = "$" + totX;}
else
{
document.getElementById("sptotal").innerHTML = "Free";}


	document.forms["add_cart1"].elements["total"].value = "$" + totX;

	pTot = (tTot/quantity);
	var totX = "" + pTot;
	totX = totX.substring(0,totX.indexOf(".") + 4);
	document.forms["add_cart1"].elements["price"].value = "$" + totX;
	if(totX > 0 )
{
document.getElementById("spprice").innerHTML =  "$" + totX;}
else
{
document.getElementById("spprice").innerHTML =  "Free";}

}
}
var itemInfo = new Array(1) ;
var fieldInfo = new Array(1) ;
var pfInfo = new Array(1) ;
var baseInfo = new Array(1) ;
itemInfo[1] = new Array(5);
fieldInfo[1] = new Array(5);
pfInfo[1] = new Array(5);
var sDescArr = new Array(5);
fieldInfo[1][0] = "bccolors";
itemInfo[1][0] = new Array(3);
pfInfo[1][0] = new Array(3);
itemInfo[1][0][0] = 1.00;
pfInfo[1][0][0] = 'NON';
itemInfo[1][0][1] = 1.60;
pfInfo[1][0][1] = 'NON';
itemInfo[1][0][2] = 1.90;
pfInfo[1][0][2] = 'NON';
fieldInfo[1][1] = "bc_cardstock";
itemInfo[1][1] = new Array(2);
pfInfo[1][1] = new Array(2);
itemInfo[1][1][0] = 1.00;
pfInfo[1][1][0] = 'NON';
itemInfo[1][1][1] = 1.00;
pfInfo[1][1][1] = 'NON';
fieldInfo[1][2] = "proof";
itemInfo[1][2] = new Array(3);
pfInfo[1][2] = new Array(3);
itemInfo[1][2][0] = 0.00;
pfInfo[1][2][0] = 'NON';
itemInfo[1][2][1] = 35.00;
pfInfo[1][2][1] = 'NON';
itemInfo[1][2][2] = 50.00;
pfInfo[1][2][2] = 'NON';
fieldInfo[1][3] = "quantity_500_1000_10000";
itemInfo[1][3] = new Array(11);
pfInfo[1][3] = new Array(11);
itemInfo[1][3][0] = 500.00;
pfInfo[1][3][0] = 'NON';
itemInfo[1][3][1] = 1000.00;
pfInfo[1][3][1] = 'NON';
itemInfo[1][3][2] = 2000.00;
pfInfo[1][3][2] = 'NON';
itemInfo[1][3][3] = 3000.00;
pfInfo[1][3][3] = 'NON';
itemInfo[1][3][4] = 4000.00;
pfInfo[1][3][4] = 'NON';
itemInfo[1][3][5] = 5000.00;
pfInfo[1][3][5] = 'NON';
itemInfo[1][3][6] = 6000.00;
pfInfo[1][3][6] = 'NON';
itemInfo[1][3][7] = 7000.00;
pfInfo[1][3][7] = 'NON';
itemInfo[1][3][8] = 8000.00;
pfInfo[1][3][8] = 'NON';
itemInfo[1][3][9] = 9000.00;
pfInfo[1][3][9] = 'NON';
itemInfo[1][3][10] = 10000.00;
pfInfo[1][3][10] = 'NON';
fieldInfo[1][4] = "turnaround1235_recon";
itemInfo[1][4] = new Array(2);
pfInfo[1][4] = new Array(2);
itemInfo[1][4][0] = 1.00;
pfInfo[1][4][0] = 'NON';
itemInfo[1][4][1] = 1.30;
pfInfo[1][4][1] = 'NON';
baseInfo[1] = 0;
