function calc() {

var iTot = 0;
var mTot = 0;
	document.forms["add_cart1"].elements["quantity"].value = document.forms["add_cart1"].elements["quantity_2500_10000_100000"].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["colors_flyers"].type=="select-one")
	{ var colors_flyers = document.forms["add_cart1"].elements["colors_flyers"].options[document.forms["add_cart1"].elements["colors_flyers"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["colors_flyers"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["colors_flyers"].length; i++)
	{if (document.forms["add_cart1"].elements["colors_flyers"][i].checked)
	{var colors_flyers =i ;
	break;}}
}else
{
	var colors_flyers =0;
	}}

	if (document.forms["add_cart1"].elements["jheight"].type=="select-one")
	{ var jheight = document.forms["add_cart1"].elements["jheight"].options[document.forms["add_cart1"].elements["jheight"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["jheight"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["jheight"].length; i++)
	{if (document.forms["add_cart1"].elements["jheight"][i].checked)
	{var jheight =i ;
	break;}}
}else
{
	var jheight =0;
	}}

	if (document.forms["add_cart1"].elements["jwidth"].type=="select-one")
	{ var jwidth = document.forms["add_cart1"].elements["jwidth"].options[document.forms["add_cart1"].elements["jwidth"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["jwidth"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["jwidth"].length; i++)
	{if (document.forms["add_cart1"].elements["jwidth"][i].checked)
	{var jwidth =i ;
	break;}}
}else
{
	var jwidth =0;
	}}

	if (document.forms["add_cart1"].elements["hole_drilling"].type=="select-one")
	{ var hole_drilling = document.forms["add_cart1"].elements["hole_drilling"].options[document.forms["add_cart1"].elements["hole_drilling"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["hole_drilling"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["hole_drilling"].length; i++)
	{if (document.forms["add_cart1"].elements["hole_drilling"][i].checked)
	{var hole_drilling =i ;
	break;}}
}else
{
	var hole_drilling =0;
	}}

	if (document.forms["add_cart1"].elements["perforation"].type=="select-one")
	{ var perforation = document.forms["add_cart1"].elements["perforation"].options[document.forms["add_cart1"].elements["perforation"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["perforation"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["perforation"].length; i++)
	{if (document.forms["add_cart1"].elements["perforation"][i].checked)
	{var perforation =i ;
	break;}}
}else
{
	var perforation =0;
	}}

	if (document.forms["add_cart1"].elements["scoring"].type=="select-one")
	{ var scoring = document.forms["add_cart1"].elements["scoring"].options[document.forms["add_cart1"].elements["scoring"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["scoring"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["scoring"].length; i++)
	{if (document.forms["add_cart1"].elements["scoring"][i].checked)
	{var scoring =i ;
	break;}}
}else
{
	var scoring =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 < 5000 && (jheight*jwidth) <= 12 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((12)*3.2)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 5000 && quantity < 10000) && (jheight*jwidth) <= 12 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((12)*1.75)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 10000 && quantity <= 25000) && (jheight*jwidth) <= 12 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((12)*1.45)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity > 25000 && (jheight*jwidth) <= 12 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((12)*1.45)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity < 5000 && (jheight*jwidth) > 12 && (jheight*jwidth) < 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*3.25)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 5000 && quantity < 10000) && (jheight*jwidth) > 12 && (jheight*jwidth) < 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.8)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >=10000 && quantity <= 25000) && (jheight*jwidth) > 12 && (jheight*jwidth) < 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.55)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity > 25000 && (jheight*jwidth) > 12 && (jheight*jwidth) < 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.55)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity < 5000 && (jheight*jwidth) == 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((24)*2.49)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 5000 && quantity < 10000) && (jheight*jwidth) == 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((24)*1.491666)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 10000 && quantity <= 25000) && (jheight*jwidth) == 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((24)*1.45)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity > 25000 && (jheight*jwidth) == 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((24)*1.45)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity < 5000 && (jheight*jwidth) > 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*3.25)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 5000 && quantity < 10000) && (jheight*jwidth) > 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.8)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 10000 && quantity <= 25000) && (jheight*jwidth) > 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.55)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity > 25000 && (jheight*jwidth) > 24 && colors_flyers == "4/0")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.55)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.95*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity < 5000 && (jheight*jwidth) <= 12 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((12)*3.2)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 5000 && quantity < 10000) && (jheight*jwidth) <= 12 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((12)*1.75)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 10000 && quantity <= 25000) && (jheight*jwidth) <= 12 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((12)*1.45)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity > 25000 && (jheight*jwidth) <= 12 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((12)*1.45)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity < 5000 && (jheight*jwidth) > 12 && (jheight*jwidth) < 24 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*3.25)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 5000 && quantity < 10000) && (jheight*jwidth) > 12 && (jheight*jwidth) < 24 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.8)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 10000 && quantity <= 25000) && (jheight*jwidth) > 12 && (jheight*jwidth) < 24 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.55)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity > 25000 && (jheight*jwidth) > 12 && (jheight*jwidth) < 24 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.55)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity < 5000 && (jheight*jwidth) == 24 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((24)*2.49)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 5000 && quantity < 10000) && (jheight*jwidth) == 24 && colors_flyers == "4/4" )
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((24)*1.491666)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 10000 && quantity <= 25000) && (jheight*jwidth) == 24 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((24)*1.45)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity > 25000 && (jheight*jwidth) == 24 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((24)*1.45)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity < 5000 && (jheight*jwidth) > 24 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*3.25)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 5000 && quantity < 10000) && (jheight*jwidth) > 24 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.8)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if ((quantity >= 10000 && quantity <= 25000) && (jheight*jwidth) > 24 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.55)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		mTot = mTot + iTot /quantity;
	}


	if (quantity > 25000 && (jheight*jwidth) > 24 && colors_flyers == "4/4")
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((((((((Math.ceil(jheight)))*((Math.ceil(jwidth))))*1.55)*(quantity/1000))*itemInfo[1][7][turnaround1235_recon])+20)+((20*itemInfo[1][5][scoring])+(itemInfo[1][5][scoring]*((quantity/1000)*20)))+((20*itemInfo[1][4][perforation])+(itemInfo[1][4][perforation]*((quantity/1000)*20)))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["hole_drilling"].selectedIndex]*((quantity/1000)*20))))*.75;
		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(8);
fieldInfo[1] = new Array(8);
pfInfo[1] = new Array(8);
var sDescArr = new Array(8);
fieldInfo[1][0] = "colors_flyers";
itemInfo[1][0] = new Array(2);
pfInfo[1][0] = new Array(2);
itemInfo[1][0][0] = 0;
pfInfo[1][0][0] = '0';
itemInfo[1][0][1] = 0;
pfInfo[1][0][1] = '0';
fieldInfo[1][1] = "jheight";
itemInfo[1][1] = new Array(61);
pfInfo[1][1] = new Array(61);
itemInfo[1][1][0] = 0;
pfInfo[1][1][0] = '0';
itemInfo[1][1][1] = 0;
pfInfo[1][1][1] = '0';
itemInfo[1][1][2] = 0;
pfInfo[1][1][2] = '0';
itemInfo[1][1][3] = 0;
pfInfo[1][1][3] = '0';
itemInfo[1][1][4] = 0;
pfInfo[1][1][4] = '0';
itemInfo[1][1][5] = 0;
pfInfo[1][1][5] = '0';
itemInfo[1][1][6] = 0;
pfInfo[1][1][6] = '0';
itemInfo[1][1][7] = 0;
pfInfo[1][1][7] = '0';
itemInfo[1][1][8] = 0;
pfInfo[1][1][8] = '0';
itemInfo[1][1][9] = 0;
pfInfo[1][1][9] = '0';
itemInfo[1][1][10] = 0;
pfInfo[1][1][10] = '0';
itemInfo[1][1][11] = 0;
pfInfo[1][1][11] = '0';
itemInfo[1][1][12] = 0;
pfInfo[1][1][12] = '0';
itemInfo[1][1][13] = 0;
pfInfo[1][1][13] = '0';
itemInfo[1][1][14] = 0;
pfInfo[1][1][14] = '0';
itemInfo[1][1][15] = 0;
pfInfo[1][1][15] = '0';
itemInfo[1][1][16] = 0;
pfInfo[1][1][16] = '0';
itemInfo[1][1][17] = 0;
pfInfo[1][1][17] = '0';
itemInfo[1][1][18] = 0;
pfInfo[1][1][18] = '0';
itemInfo[1][1][19] = 0;
pfInfo[1][1][19] = '0';
itemInfo[1][1][20] = 0;
pfInfo[1][1][20] = '0';
itemInfo[1][1][21] = 0;
pfInfo[1][1][21] = '0';
itemInfo[1][1][22] = 0;
pfInfo[1][1][22] = '0';
itemInfo[1][1][23] = 0;
pfInfo[1][1][23] = '0';
itemInfo[1][1][24] = 0;
pfInfo[1][1][24] = '0';
itemInfo[1][1][25] = 0;
pfInfo[1][1][25] = '0';
itemInfo[1][1][26] = 0;
pfInfo[1][1][26] = '0';
itemInfo[1][1][27] = 0;
pfInfo[1][1][27] = '0';
itemInfo[1][1][28] = 0;
pfInfo[1][1][28] = '0';
itemInfo[1][1][29] = 0;
pfInfo[1][1][29] = '0';
itemInfo[1][1][30] = 0;
pfInfo[1][1][30] = '0';
itemInfo[1][1][31] = 0;
pfInfo[1][1][31] = '0';
itemInfo[1][1][32] = 0;
pfInfo[1][1][32] = '0';
itemInfo[1][1][33] = 0;
pfInfo[1][1][33] = '0';
itemInfo[1][1][34] = 0;
pfInfo[1][1][34] = '0';
itemInfo[1][1][35] = 0;
pfInfo[1][1][35] = '0';
itemInfo[1][1][36] = 0;
pfInfo[1][1][36] = '0';
itemInfo[1][1][37] = 0;
pfInfo[1][1][37] = '0';
itemInfo[1][1][38] = 0;
pfInfo[1][1][38] = '0';
itemInfo[1][1][39] = 0;
pfInfo[1][1][39] = '0';
itemInfo[1][1][40] = 0;
pfInfo[1][1][40] = '0';
itemInfo[1][1][41] = 0;
pfInfo[1][1][41] = '0';
itemInfo[1][1][42] = 0;
pfInfo[1][1][42] = '0';
itemInfo[1][1][43] = 0;
pfInfo[1][1][43] = '0';
itemInfo[1][1][44] = 0;
pfInfo[1][1][44] = '0';
itemInfo[1][1][45] = 0;
pfInfo[1][1][45] = '0';
itemInfo[1][1][46] = 0;
pfInfo[1][1][46] = '0';
itemInfo[1][1][47] = 0;
pfInfo[1][1][47] = '0';
itemInfo[1][1][48] = 0;
pfInfo[1][1][48] = '0';
itemInfo[1][1][49] = 0;
pfInfo[1][1][49] = '0';
itemInfo[1][1][50] = 0;
pfInfo[1][1][50] = '0';
itemInfo[1][1][51] = 0;
pfInfo[1][1][51] = '0';
itemInfo[1][1][52] = 0;
pfInfo[1][1][52] = '0';
itemInfo[1][1][53] = 0;
pfInfo[1][1][53] = '0';
itemInfo[1][1][54] = 0;
pfInfo[1][1][54] = '0';
itemInfo[1][1][55] = 0;
pfInfo[1][1][55] = '0';
itemInfo[1][1][56] = 0;
pfInfo[1][1][56] = '0';
itemInfo[1][1][57] = 0;
pfInfo[1][1][57] = '0';
itemInfo[1][1][58] = 0;
pfInfo[1][1][58] = '0';
itemInfo[1][1][59] = 0;
pfInfo[1][1][59] = '0';
itemInfo[1][1][60] = 0;
pfInfo[1][1][60] = '0';
fieldInfo[1][2] = "jwidth";
itemInfo[1][2] = new Array(43);
pfInfo[1][2] = new Array(43);
itemInfo[1][2][0] = 0;
pfInfo[1][2][0] = '0';
itemInfo[1][2][1] = 0;
pfInfo[1][2][1] = '0';
itemInfo[1][2][2] = 0;
pfInfo[1][2][2] = '0';
itemInfo[1][2][3] = 0;
pfInfo[1][2][3] = '0';
itemInfo[1][2][4] = 0;
pfInfo[1][2][4] = '0';
itemInfo[1][2][5] = 0;
pfInfo[1][2][5] = '0';
itemInfo[1][2][6] = 0;
pfInfo[1][2][6] = '0';
itemInfo[1][2][7] = 0;
pfInfo[1][2][7] = '0';
itemInfo[1][2][8] = 0;
pfInfo[1][2][8] = '0';
itemInfo[1][2][9] = 0;
pfInfo[1][2][9] = '0';
itemInfo[1][2][10] = 0;
pfInfo[1][2][10] = '0';
itemInfo[1][2][11] = 0;
pfInfo[1][2][11] = '0';
itemInfo[1][2][12] = 0;
pfInfo[1][2][12] = '0';
itemInfo[1][2][13] = 0;
pfInfo[1][2][13] = '0';
itemInfo[1][2][14] = 0;
pfInfo[1][2][14] = '0';
itemInfo[1][2][15] = 0;
pfInfo[1][2][15] = '0';
itemInfo[1][2][16] = 0;
pfInfo[1][2][16] = '0';
itemInfo[1][2][17] = 0;
pfInfo[1][2][17] = '0';
itemInfo[1][2][18] = 0;
pfInfo[1][2][18] = '0';
itemInfo[1][2][19] = 0;
pfInfo[1][2][19] = '0';
itemInfo[1][2][20] = 0;
pfInfo[1][2][20] = '0';
itemInfo[1][2][21] = 0;
pfInfo[1][2][21] = '0';
itemInfo[1][2][22] = 0;
pfInfo[1][2][22] = '0';
itemInfo[1][2][23] = 0;
pfInfo[1][2][23] = '0';
itemInfo[1][2][24] = 0;
pfInfo[1][2][24] = '0';
itemInfo[1][2][25] = 0;
pfInfo[1][2][25] = '0';
itemInfo[1][2][26] = 0;
pfInfo[1][2][26] = '0';
itemInfo[1][2][27] = 0;
pfInfo[1][2][27] = '0';
itemInfo[1][2][28] = 0;
pfInfo[1][2][28] = '0';
itemInfo[1][2][29] = 0;
pfInfo[1][2][29] = '0';
itemInfo[1][2][30] = 0;
pfInfo[1][2][30] = '0';
itemInfo[1][2][31] = 0;
pfInfo[1][2][31] = '0';
itemInfo[1][2][32] = 0;
pfInfo[1][2][32] = '0';
itemInfo[1][2][33] = 0;
pfInfo[1][2][33] = '0';
itemInfo[1][2][34] = 0;
pfInfo[1][2][34] = '0';
itemInfo[1][2][35] = 0;
pfInfo[1][2][35] = '0';
itemInfo[1][2][36] = 0;
pfInfo[1][2][36] = '0';
itemInfo[1][2][37] = 0;
pfInfo[1][2][37] = '0';
itemInfo[1][2][38] = 0;
pfInfo[1][2][38] = '0';
itemInfo[1][2][39] = 0;
pfInfo[1][2][39] = '0';
itemInfo[1][2][40] = 0;
pfInfo[1][2][40] = '0';
itemInfo[1][2][41] = 0;
pfInfo[1][2][41] = '0';
itemInfo[1][2][42] = 0;
pfInfo[1][2][42] = '0';
fieldInfo[1][3] = "hole_drilling";
itemInfo[1][3] = new Array(4);
pfInfo[1][3] = new Array(4);
itemInfo[1][3][0] = 0.00;
pfInfo[1][3][0] = 'NON';
itemInfo[1][3][1] = 1.00;
pfInfo[1][3][1] = 'NON';
itemInfo[1][3][2] = 1.00;
pfInfo[1][3][2] = 'NON';
itemInfo[1][3][3] = 1.00;
pfInfo[1][3][3] = 'NON';
fieldInfo[1][4] = "perforation";
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] = 0.00;
pfInfo[1][4][1] = 'NON';
fieldInfo[1][5] = "scoring";
itemInfo[1][5] = new Array(2);
pfInfo[1][5] = new Array(2);
itemInfo[1][5][0] = 1.00;
pfInfo[1][5][0] = 'NON';
itemInfo[1][5][1] = 0.00;
pfInfo[1][5][1] = 'NON';
fieldInfo[1][6] = "quantity_2500_10000_100000";
itemInfo[1][6] = new Array(16);
pfInfo[1][6] = new Array(16);
itemInfo[1][6][0] = 2500.00;
pfInfo[1][6][0] = 'NON';
itemInfo[1][6][1] = 5000.00;
pfInfo[1][6][1] = 'NON';
itemInfo[1][6][2] = 10000.00;
pfInfo[1][6][2] = 'NON';
itemInfo[1][6][3] = 15000.00;
pfInfo[1][6][3] = 'NON';
itemInfo[1][6][4] = 20000.00;
pfInfo[1][6][4] = 'NON';
itemInfo[1][6][5] = 25000.00;
pfInfo[1][6][5] = 'NON';
itemInfo[1][6][6] = 30000.00;
pfInfo[1][6][6] = 'NON';
itemInfo[1][6][7] = 35000.00;
pfInfo[1][6][7] = 'NON';
itemInfo[1][6][8] = 40000.00;
pfInfo[1][6][8] = 'NON';
itemInfo[1][6][9] = 45000.00;
pfInfo[1][6][9] = 'NON';
itemInfo[1][6][10] = 50000.00;
pfInfo[1][6][10] = 'NON';
itemInfo[1][6][11] = 60000.00;
pfInfo[1][6][11] = 'NON';
itemInfo[1][6][12] = 70000.00;
pfInfo[1][6][12] = 'NON';
itemInfo[1][6][13] = 80000.00;
pfInfo[1][6][13] = 'NON';
itemInfo[1][6][14] = 90000.00;
pfInfo[1][6][14] = 'NON';
itemInfo[1][6][15] = 100000.00;
pfInfo[1][6][15] = 'NON';
fieldInfo[1][7] = "turnaround1235_recon";
itemInfo[1][7] = new Array(3);
pfInfo[1][7] = new Array(3);
itemInfo[1][7][0] = 1.00;
pfInfo[1][7][0] = 'NON';
itemInfo[1][7][1] = 1.50;
pfInfo[1][7][1] = 'NON';
itemInfo[1][7][2] = 2.00;
pfInfo[1][7][2] = 'NON';
baseInfo[1] = 0;