function calc() {
var iTot = 0;
var mTot = 0;
	document.forms["add_cart1"].elements["quantity"].value = document.forms["add_cart1"].elements["quantity_25_200"].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["Color_brochures_new"].type=="select-one")
	{ var Color_brochures_new = document.forms["add_cart1"].elements["Color_brochures_new"].options[document.forms["add_cart1"].elements["Color_brochures_new"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["Color_brochures_new"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["Color_brochures_new"].length; i++)
	{if (document.forms["add_cart1"].elements["Color_brochures_new"][i].checked)
	{var Color_brochures_new =i ;
	break;}}
}else
{
	var Color_brochures_new =0;
	}}

	if (document.forms["add_cart1"].elements["papertype_menu"].type=="select-one")
	{ var papertype_menu = document.forms["add_cart1"].elements["papertype_menu"].options[document.forms["add_cart1"].elements["papertype_menu"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["papertype_menu"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["papertype_menu"].length; i++)
	{if (document.forms["add_cart1"].elements["papertype_menu"][i].checked)
	{var papertype_menu =i ;
	break;}}
}else
{
	var papertype_menu =0;
	}}

	if (document.forms["add_cart1"].elements["Lamination"].type=="select-one")
	{ var Lamination = document.forms["add_cart1"].elements["Lamination"].options[document.forms["add_cart1"].elements["Lamination"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["Lamination"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["Lamination"].length; i++)
	{if (document.forms["add_cart1"].elements["Lamination"][i].checked)
	{var Lamination =i ;
	break;}}
}else
{
	var Lamination =0;
	}}

	if (document.forms["add_cart1"].elements["scoring_menus"].type=="select-one")
	{ var scoring_menus = document.forms["add_cart1"].elements["scoring_menus"].options[document.forms["add_cart1"].elements["scoring_menus"].selectedIndex].value; }
	else
	{if (document.forms["add_cart1"].elements["scoring_menus"].length>0)
{

	for (var i=0; i < document.forms["add_cart1"].elements["scoring_menus"].length; i++)
	{if (document.forms["add_cart1"].elements["scoring_menus"][i].checked)
	{var scoring_menus =i ;
	break;}}
}else
{
	var scoring_menus =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 <= 25)
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((5+(quantity*((.11+(itemInfo[1][1][document.forms["add_cart1"].elements["papertype_menu"].selectedIndex]/10)*.5)*itemInfo[1][0][document.forms["add_cart1"].elements["Color_brochures_new"].selectedIndex]))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["scoring_menus"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["scoring_menus"].selectedIndex]*((quantity/1000)*20)))+((40*itemInfo[1][2][document.forms["add_cart1"].elements["Lamination"].selectedIndex])+(itemInfo[1][2][document.forms["add_cart1"].elements["Lamination"].selectedIndex]*quantity)))*itemInfo[1][5][turnaround1235_recon]+8);
		mTot = mTot + iTot /quantity;
	}


	if (quantity > 25 && quantity <= 75)
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((5+(quantity*((.11+(itemInfo[1][1][document.forms["add_cart1"].elements["papertype_menu"].selectedIndex]/10)*.5)*itemInfo[1][0][document.forms["add_cart1"].elements["Color_brochures_new"].selectedIndex]))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["scoring_menus"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["scoring_menus"].selectedIndex]*((quantity/1000)*20)))+((40*itemInfo[1][2][document.forms["add_cart1"].elements["Lamination"].selectedIndex])+(itemInfo[1][2][document.forms["add_cart1"].elements["Lamination"].selectedIndex]*quantity)))*itemInfo[1][5][turnaround1235_recon]+8)*1.05;
		mTot = mTot + iTot /quantity;
	}


	if (quantity > 75)
	{
		turnaround1235_recon = index_turnaround;
iTot = iTot + ((5+(quantity*((.11+(itemInfo[1][1][document.forms["add_cart1"].elements["papertype_menu"].selectedIndex]/10)*.5)*itemInfo[1][0][document.forms["add_cart1"].elements["Color_brochures_new"].selectedIndex]))+((20*itemInfo[1][3][document.forms["add_cart1"].elements["scoring_menus"].selectedIndex])+(itemInfo[1][3][document.forms["add_cart1"].elements["scoring_menus"].selectedIndex]*((quantity/1000)*20)))+((20*itemInfo[1][2][document.forms["add_cart1"].elements["Lamination"].selectedIndex])+(itemInfo[1][2][document.forms["add_cart1"].elements["Lamination"].selectedIndex]*quantity)))*itemInfo[1][5][turnaround1235_recon]+8)*1.05;
		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
{
if (document.forms["add_cart1"].elements["price_factor"].value == 1)
{
        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";
             }

}
else
{
tTot = Math.round(iTot * 100) / 100 + .00001;
	var maxDisc = 0;
var price_factor = document.forms["add_cart1"].elements["price_factor"].value;
var calculatedDisc;
var discountedTotal;
var iDiscount;
var youSave;
var displayDisc;

calculatedDisc = tTot*(1-price_factor);
if(calculatedDisc > maxDisc && maxDisc > 0 )
{
    discountedTotal=tTot-maxDisc;
    iDiscount = maxDisc;
    displayDisc = "" + (Math.round(iDiscount* 100) / 100 + .001);
    displayDisc = displayDisc.substring(0, displayDisc.indexOf(".") + 3);
    document.getElementById("idYouSave").innerHTML = "$" + displayDisc;}
else
{
    discountedTotal=tTot*price_factor;
    iDiscount = (1-price_factor)*100;
displayDisc = "" + (Math.round(calculatedDisc* 100) / 100 + .001);
displayDisc = displayDisc.substring(0, displayDisc.indexOf(".") + 3);
document.getElementById("idYouSave").innerHTML ="" + Math.round(iDiscount) + "%" ;
document.getElementById("idYouSaveNew").innerHTML =  "- $" + displayDisc ;
}
var xDiscountedTotal = "" + discountedTotal;


	
xDiscountedTotal = xDiscountedTotal.substring(0,xDiscountedTotal.indexOf(".") + 3);
document.getElementById("idNowOnly").innerHTML = "$" + xDiscountedTotal;
	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);
pTot = (discountedTotal/quantity);
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(6);
fieldInfo[1] = new Array(6);
pfInfo[1] = new Array(6);
var sDescArr = new Array(6);
fieldInfo[1][0] = "Color_brochures_new";
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.05;
pfInfo[1][0][1] = 'NON';
itemInfo[1][0][2] = 1.10;
pfInfo[1][0][2] = 'NON';
fieldInfo[1][1] = "papertype_menu";
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.50;
pfInfo[1][1][1] = 'NON';
fieldInfo[1][2] = "Lamination";
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] = 0.50;
pfInfo[1][2][1] = 'NON';
itemInfo[1][2][2] = 0.64;
pfInfo[1][2][2] = 'NON';
fieldInfo[1][3] = "scoring_menus";
itemInfo[1][3] = new Array(4);
pfInfo[1][3] = new Array(4);
itemInfo[1][3][0] = 1.00;
pfInfo[1][3][0] = 'NON';
itemInfo[1][3][1] = 1.09;
pfInfo[1][3][1] = 'NON';
itemInfo[1][3][2] = 1.09;
pfInfo[1][3][2] = 'NON';
itemInfo[1][3][3] = 1.09;
pfInfo[1][3][3] = 'NON';
fieldInfo[1][4] = "quantity_25_200";
itemInfo[1][4] = new Array(8);
pfInfo[1][4] = new Array(8);
itemInfo[1][4][0] = 25.00;
pfInfo[1][4][0] = 'NON';
itemInfo[1][4][1] = 50.00;
pfInfo[1][4][1] = 'NON';
itemInfo[1][4][2] = 75.00;
pfInfo[1][4][2] = 'NON';
itemInfo[1][4][3] = 100.00;
pfInfo[1][4][3] = 'NON';
itemInfo[1][4][4] = 125.00;
pfInfo[1][4][4] = 'NON';
itemInfo[1][4][5] = 150.00;
pfInfo[1][4][5] = 'NON';
itemInfo[1][4][6] = 175.00;
pfInfo[1][4][6] = 'NON';
itemInfo[1][4][7] = 200.00;
pfInfo[1][4][7] = 'NON';
fieldInfo[1][5] = "turnaround1235_recon";
itemInfo[1][5] = new Array(4);
pfInfo[1][5] = new Array(4);
itemInfo[1][5][0] = 1.00;
pfInfo[1][5][0] = 'NON';
itemInfo[1][5][1] = 1.20;
pfInfo[1][5][1] = 'NON';
itemInfo[1][5][2] = 1.50;
pfInfo[1][5][2] = 'NON';
itemInfo[1][5][3] = 2.00;
pfInfo[1][5][3] = 'NON';
baseInfo[1] = 0;