/***********
** flyer8_5_color4_0
***********/
var flyer8_5_color4_0 = new Array();
//flyer8_5_color4_0[runSize] = $$;
flyer8_5_color4_0[250] = 80;
flyer8_5_color4_0[500] = 90;
flyer8_5_color4_0[1000] = 110;
flyer8_5_color4_0[2500] = 170;
flyer8_5_color4_0[5000] = 210;
flyer8_5_color4_0[10000] = 410;

/***********
** flyer8_5_color4_4
***********/
var flyer8_5_color4_4 = new Array();
flyer8_5_color4_4[250] = 115;
flyer8_5_color4_4[500] = 140;
flyer8_5_color4_4[1000] = 165;
flyer8_5_color4_4[2500] = 230;
flyer8_5_color4_4[5000] = 280;
flyer8_5_color4_4[10000] = 460;


/***********
** flyer8_5: Delivery Method
***********/
var flyer8_5_ups3Day 	=	 new Array()	;
flyer8_5_ups3Day[250] 	=	12	;
flyer8_5_ups3Day[500] 	=	15	;
flyer8_5_ups3Day[1000] 	=	20	;
flyer8_5_ups3Day[2500] 	=	34	;
flyer8_5_ups3Day[5000] 	=	67	;
flyer8_5_ups3Day[10000] 	=	132	;
var flyer8_5_ups2Day 	=	 new Array()	;
flyer8_5_ups2Day[250] 	=	16	;
flyer8_5_ups2Day[500] 	=	19	;
flyer8_5_ups2Day[1000] 	=	26	;
flyer8_5_ups2Day[2500] 	=	45	;
flyer8_5_ups2Day[5000] 	=	88	;
flyer8_5_ups2Day[10000] 	=	175	;
var flyer8_5_ups1Day 	=	 new Array()	;
flyer8_5_ups1Day[250] 	=	45	;
flyer8_5_ups1Day[500] 	=	58	;
flyer8_5_ups1Day[1000] 	=	109	;
flyer8_5_ups1Day[2500] 	=	123	;
flyer8_5_ups1Day[5000] 	=	243	;
flyer8_5_ups1Day[10000] 	=	484	;
var flyer8_5_upsGround 	=	 new Array()	;
flyer8_5_upsGround[250] 	=	9	;
flyer8_5_upsGround[500] 	=	10	;
flyer8_5_upsGround[1000] 	=	11	;
flyer8_5_upsGround[2500] 	=	14	;
flyer8_5_upsGround[5000] 	=	29	;
flyer8_5_upsGround[10000] 	=	58	;
/***********
** flyer8_11_color4_0
***********/
var flyer8_11_color4_0 = new Array();
//flyer5_8_color4_0[runSize] = $$;
flyer8_11_color4_0[250] = 130;
flyer8_11_color4_0[500] = 145;
flyer8_11_color4_0[1000] = 160;
flyer8_11_color4_0[2500] = 255;
flyer8_11_color4_0[5000] = 335;
flyer8_11_color4_0[10000] = 700;
/***********
** flyer8_11_color4_4
***********/
var flyer8_11_color4_4 = new Array();
flyer8_11_color4_4[250] = 165;
flyer8_11_color4_4[500] = 185;
flyer8_11_color4_4[1000] = 220;
flyer8_11_color4_4[2500] = 325;
flyer8_11_color4_4[5000] = 400;
flyer8_11_color4_4[10000] = 750;

/***********
** flyer8_11: Delivery Method
***********/
var flyer8_11_ups3Day 	=	 new Array()	;
flyer8_11_ups3Day[250] = 18;
flyer8_11_ups3Day[500] = 26;
flyer8_11_ups3Day[1000] = 38;
flyer8_11_ups3Day[2500] = 90;
flyer8_11_ups3Day[5000] = 152;
flyer8_11_ups3Day[10000] = 304;

var flyer8_11_ups2Day 	=	 new Array()	;
flyer8_11_ups2Day[250] = 23;
flyer8_11_ups2Day[500] = 35;
flyer8_11_ups2Day[1000] = 53;
flyer8_11_ups2Day[2500] = 123;
flyer8_11_ups2Day[5000] = 206;
flyer8_11_ups2Day[10000] = 426;

var flyer8_11_ups1Day 	=	 new Array()	;
flyer8_11_ups1Day[250] = 35;
flyer8_11_ups1Day[500] = 49;
flyer8_11_ups1Day[1000] = 63;
flyer8_11_ups1Day[2500] = 140;
flyer8_11_ups1Day[5000] = 230;
flyer8_11_ups1Day[10000] = 460;

var flyer8_11_upsGround 	=	 new Array()	;
flyer8_11_upsGround[250] = 10;
flyer8_11_upsGround[500] = 15;
flyer8_11_upsGround[1000] = 20;
flyer8_11_upsGround[2500] = 30;
flyer8_11_upsGround[5000] = 50;
flyer8_11_upsGround[10000] = 65;


/***********
** flyer8_11_70_color4_0 Uncoated
***********/
var flyer8_11_70_color4_0 = new Array();
flyer8_11_70_color4_0[250] = 190;
flyer8_11_70_color4_0[500] = 205;
flyer8_11_70_color4_0[1000] = 225;
flyer8_11_70_color4_0[2500] = 385;
flyer8_11_70_color4_0[5000] = 450;
flyer8_11_70_color4_0[10000] = 830;

/***********
** flyer8_11_70_color4_4 Uncoated
***********/
var flyer8_11_70_color4_4 = new Array();
flyer8_11_70_color4_4[250] = 320;
flyer8_11_70_color4_4[500] = 375;
flyer8_11_70_color4_4[1000] = 380;
flyer8_11_70_color4_4[2500] = 465;
flyer8_11_70_color4_4[5000] = 525;
flyer8_11_70_color4_4[10000] = 865;

/***********
** flyer8_11_70: Uncoated Delivery Method
***********/
var flyer8_11_70_ups3Day 	=	 new Array()	;
flyer8_11_70_ups3Day[250] = 20;
flyer8_11_70_ups3Day[500] = 25;
flyer8_11_70_ups3Day[1000] = 30;
flyer8_11_70_ups3Day[2500] = 75;
flyer8_11_70_ups3Day[5000] = 152;
flyer8_11_70_ups3Day[10000] = 300;

var flyer8_11_70_ups2Day 	=	 new Array()	;
flyer8_11_70_ups2Day[250] = 30;
flyer8_11_70_ups2Day[500] = 35;
flyer8_11_70_ups2Day[1000] = 40;
flyer8_11_70_ups2Day[2500] = 105;
flyer8_11_70_ups2Day[5000] = 206;
flyer8_11_70_ups2Day[10000] = 400;

var flyer8_11_70_ups1Day 	=	 new Array()	;
flyer8_11_70_ups1Day[250] = 40;
flyer8_11_70_ups1Day[500] = 47;
flyer8_11_70_ups1Day[1000] = 53;
flyer8_11_70_ups1Day[2500] = 120;
flyer8_11_70_ups1Day[5000] = 230;
flyer8_11_70_ups1Day[10000] = 450;

var flyer8_11_70_upsGround 	=	 new Array()	;
flyer8_11_70_upsGround[250] = 10;
flyer8_11_70_upsGround[500] = 15;
flyer8_11_70_upsGround[1000] = 20;
flyer8_11_70_upsGround[2500] = 30;
flyer8_11_70_upsGround[5000] = 50;
flyer8_11_70_upsGround[10000] = 65;

/***********
** flyer8_11_70Linen_color4_0
***********/
var flyer8_11_70Linen_color4_0 = new Array();
flyer8_11_70Linen_color4_0[250] = 180;
flyer8_11_70Linen_color4_0[500] = 200;
flyer8_11_70Linen_color4_0[1000] = 225;
flyer8_11_70Linen_color4_0[2500] = 400;
flyer8_11_70Linen_color4_0[5000] = 600;
flyer8_11_70Linen_color4_0[10000] = 1100;

/***********
** flyer8_11_70Linen_color4_4
***********/
var flyer8_11_70Linen_color4_4 = new Array();
flyer8_11_70Linen_color4_4[250] = 320;
flyer8_11_70Linen_color4_4[500] = 335
flyer8_11_70Linen_color4_4[1000] = 380;
flyer8_11_70Linen_color4_4[2500] = 600;
flyer8_11_70Linen_color4_4[5000] = 825;
flyer8_11_70Linen_color4_4[10000] = 1600;

/***********
** flyer8_11_70: Delivery Method
***********/
var flyer8_11_70Linen_ups3Day 	=	 new Array()	;
flyer8_11_70Linen_ups3Day[250] 	=	20	;
flyer8_11_70Linen_ups3Day[500] 	=	25
flyer8_11_70Linen_ups3Day[1000] 	=	60	;
flyer8_11_70Linen_ups3Day[2500] 	=	150	;
flyer8_11_70Linen_ups3Day[5000] 	=	304	;
flyer8_11_70Linen_ups3Day[10000] 	=	600	;
	;
var flyer8_11_70Linen_ups2Day 	=	 new Array()	;
flyer8_11_70Linen_ups2Day[250] 	=	30	;
flyer8_11_70Linen_ups2Day[500] 	=	40
flyer8_11_70Linen_ups2Day[1000] 	=	80	;
flyer8_11_70Linen_ups2Day[2500] 	=	210	;
flyer8_11_70Linen_ups2Day[5000] 	=	412	;
flyer8_11_70Linen_ups2Day[10000] 	=	800	;
	;
var flyer8_11_70Linen_ups1Day 	=	 new Array()	;
flyer8_11_70Linen_ups1Day[250] 	=	65	;
flyer8_11_70Linen_ups1Day[500] 	=	85
flyer8_11_70Linen_ups1Day[1000] 	=	159	;
flyer8_11_70Linen_ups1Day[2500] 	=	360	;
flyer8_11_70Linen_ups1Day[5000] 	=	690	;
flyer8_11_70Linen_ups1Day[10000] 	=	1350	;
	;
var flyer8_11_70Linen_upsGround 	=	 new Array()	;
flyer8_11_70Linen_upsGround[250] 	=	10	;
flyer8_11_70Linen_upsGround[500] 	=	15
flyer8_11_70Linen_upsGround[1000] 	=	20	;
flyer8_11_70Linen_upsGround[2500] 	=	30	;
flyer8_11_70Linen_upsGround[5000] 	=	60	;
flyer8_11_70Linen_upsGround[10000] 	=	109	;

/***********
** flyer8_11_100_color4_0 -100lb Semi Gloss Cover
***********/
var flyer8_11_100_color4_0 = new Array();
flyer8_11_100_color4_0[1000] = 245;
flyer8_11_100_color4_0[2500] = 370;
flyer8_11_100_color4_0[5000] = 640;
flyer8_11_100_color4_0[10000] = 1120;

/***********
** flyer8_11_100_color4_4 -100lb Semi Gloss Cover
***********/
var flyer8_11_100_color4_4 = new Array();
flyer8_11_100_color4_4[1000] = 265;
flyer8_11_100_color4_4[2500] = 400;
flyer8_11_100_color4_4[5000] = 680;
flyer8_11_100_color4_4[10000] = 1245;

/***********
** flyer8_11_100: Delivery Method -100lb Semi Gloss Cover
***********/
var flyer8_11_100_ups3Day 	=	 new Array()	;
flyer8_11_100_ups3Day[1000] 	=	52	;
flyer8_11_100_ups3Day[2500] 	=	121	;
flyer8_11_100_ups3Day[5000] 	=	232	;
flyer8_11_100_ups3Day[10000] 	=	454	;

var flyer8_11_100_ups2Day 	=	 new Array()	;
flyer8_11_100_ups2Day[1000] 	=	69	;
flyer8_11_100_ups2Day[2500] 	=	160	;
flyer8_11_100_ups2Day[5000] 	=	307	;
flyer8_11_100_ups2Day[10000] 	=	602	;
;
var flyer8_11_100_ups1Day 	=	 new Array()	;
flyer8_11_100_ups1Day[1000] 	=	193	;
flyer8_11_100_ups1Day[2500] 	=	440	;
flyer8_11_100_ups1Day[5000] 	=	842	;
flyer8_11_100_ups1Day[10000] 	=	1650	;

var flyer8_11_100_upsGround 	=	 new Array()	;
flyer8_11_100_upsGround[1000] 	=	25	;
flyer8_11_100_upsGround[2500] 	=   56	;
flyer8_11_100_upsGround[5000] 	=	103	;
flyer8_11_100_upsGround[10000] 	=	197	;

/***********
** flyer11_17_color4_0
***********/
var flyer11_17_color4_0 = new Array();
flyer11_17_color4_0[250] = 315;
flyer11_17_color4_0[500] = 345;
flyer11_17_color4_0[1000] = 400;
flyer11_17_color4_0[2500] = 650;
flyer11_17_color4_0[5000] = 890;
flyer11_17_color4_0[10000] = 1400;

/***********
** flyer11_17_color4_4
***********/
var flyer11_17_color4_4 = new Array();
flyer11_17_color4_4[250] = 415;
flyer11_17_color4_4[500] = 450;
flyer11_17_color4_4[1000] = 520;
flyer11_17_color4_4[2500] = 700;
flyer11_17_color4_4[5000] = 1025;
flyer11_17_color4_4[10000] = 1475;

/***********
** flyer11_17: Delivery Method
***********/
var flyer11_17_ups3Day = new Array();
flyer11_17_ups3Day[250] = 23;
flyer11_17_ups3Day[500] = 39;
flyer11_17_ups3Day[1000] = 65;
flyer11_17_ups3Day[2500] = 157;
flyer11_17_ups3Day[5000] = 313;
flyer11_17_ups3Day[10000] = 594;

var flyer11_17_ups2Day = new Array();
flyer11_17_ups2Day[250] = 31;
flyer11_17_ups2Day[500] = 53;
flyer11_17_ups2Day[1000] = 90;
flyer11_17_ups2Day[2500] = 215;
flyer11_17_ups2Day[5000] = 431;
flyer11_17_ups2Day[10000] = 862;

var flyer11_17_ups1Day = new Array();
flyer11_17_ups1Day[250] = 43;
flyer11_17_ups1Day[500] = 63;
flyer11_17_ups1Day[1000] = 96;
flyer11_17_ups1Day[2500] = 234;
flyer11_17_ups1Day[5000] = 469;
flyer11_17_ups1Day[10000] = 938;

var flyer11_17_upsGround = new Array();
flyer11_17_upsGround[250] = 15;
flyer11_17_upsGround[500] = 20;
flyer11_17_upsGround[1000] = 28;
flyer11_17_upsGround[2500] = 35;
flyer11_17_upsGround[5000] = 65;
flyer11_17_upsGround[10000] = 100;

/***********
** flyer11_17_70_color4_0 Uncoated
***********/
var flyer11_17_70_color4_0 = new Array();
flyer11_17_70_color4_0[250] = 400;
flyer11_17_70_color4_0[500] = 420;
flyer11_17_70_color4_0[1000] = 450;
flyer11_17_70_color4_0[2500] = 700;
flyer11_17_70_color4_0[5000] = 900;
flyer11_17_70_color4_0[10000] = 1380;

/***********
** flyer11_17_70_color4_4 Uncoated
***********/
var flyer11_17_70_color4_4 = new Array();
flyer11_17_70_color4_4[250] = 640;
flyer11_17_70_color4_4[500] = 720;
flyer11_17_70_color4_4[1000] = 740;
flyer11_17_70_color4_4[2500] = 950;
flyer11_17_70_color4_4[5000] = 1200;
flyer11_17_70_color4_4[10000] = 1800;
;
/***********
** flyer11_17_70: Uncoated Delivery Method 
***********/
var flyer11_17_70_ups3Day 	=	 new Array()	;
flyer11_17_70_ups3Day[250] 	=	13	;
flyer11_17_70_ups3Day[500] 	=	16	;
flyer11_17_70_ups3Day[1000] 	=	130	;
flyer11_17_70_ups3Day[2500] 	=	314	;
flyer11_17_70_ups3Day[5000] 	=	626	;
flyer11_17_70_ups3Day[10000] 	=	1188	;

var flyer11_17_70_ups2Day 	=	 new Array()	;
flyer11_17_70_ups2Day[250] 	=	17	;
flyer11_17_70_ups2Day[500] 	=	21	;
flyer11_17_70_ups2Day[1000] 	=	180	;
flyer11_17_70_ups2Day[2500] 	=	430	;
flyer11_17_70_ups2Day[5000] 	=	862	;
flyer11_17_70_ups2Day[10000] 	=	1724	;

var flyer11_17_70_ups1Day 	=	 new Array()	;
flyer11_17_70_ups1Day[250] 	=	50	;
flyer11_17_70_ups1Day[500] 	=	61	;
flyer11_17_70_ups1Day[1000] 	=	288	;
flyer11_17_70_ups1Day[2500] 	=	702	;
flyer11_17_70_ups1Day[5000] 	=	1407	;
flyer11_17_70_ups1Day[10000] 	=	2814	;

var flyer11_17_70_upsGround 	=	 new Array()	;
flyer11_17_70_upsGround[250] 	=	15	;
flyer11_17_70_upsGround[500] 	=	20	;
flyer11_17_70_upsGround[1000] 	=	28	;
flyer11_17_70_upsGround[2500] 	=	58	;
flyer11_17_70_upsGround[5000] 	=	109	;
flyer11_17_70_upsGround[10000] 	=	218	;


/***********
** folding fee
***********/
var semi_100 	=	 new Array();
semi_100[1000] = 30;
semi_100[2500] = 50;
semi_100[5000] = 100;
semi_100[10000] = 200;
var other 	=	 new Array();
other[250] = 10;
other[500] = 12;
other[1000] = 15;
other[2500] = 30;
other[5000] = 60;
other[10000] = 150;


function calc(){
	f = document.add;
	totalDiv = document.getElementById("subTotal");
	shippingDiv = document.getElementById("shipping");
	pcSize = f.pcSize.options[f.pcSize.selectedIndex].value;
	fold = f.folding.options[f.folding.selectedIndex].value;
	stock = f.stock.options[f.stock.selectedIndex].value;
	color = f.color.options[f.color.selectedIndex].value;
	runsize = f.runsize.options[f.runsize.selectedIndex].value;
	delivery = f.delivery.options[f.delivery.selectedIndex].value;
	shippingCost =0;
	total = 0;
 if(runsize != "" && color !="" && fold != "" && pcSize != "" && stock != ""){
		product = "flyer";
	   
	   if(pcSize == '8.5" x 11"' ) 
		   product += "8_11";
  	   else if(pcSize == '8.5" x 5.5"' )    
    	   product += "8_5";   
	   else
		   product += "11_17";
		   
	   if(stock == "Recycled 70lb Uncoated Text")   
			product += "_70";  
		else if(stock == "Recycled 70lb Linen Text")   
			product += "_70Linen";
		else if(stock =="Recycled 100lb Semi Gloss Cover")
     		product += "_100";	 

	if(fold == "No Fold" && color == "4:0 - 1 sided, full color on front")
		total = eval(product+"_color4_0[runsize]");
	else if(fold == "No Fold" && color == "4:4 - 2 sided, full color on front and back")
		total = eval(product+"_color4_4[runsize]");
	else{ // brochure
		if(stock =="Recycled 100lb Semi Gloss Cover"){
			total = eval(product+"_color4_4[runsize]")*1+semi_100[runsize];//add folding fee
		}else{
		    total = eval(product+"_color4_4[runsize]")*1+other[runsize];//add folding fee
		}
	}
	if(delivery != "" && delivery!="Pick Up"){
		//alert(product);
	  product=product.replace("brochure","flyer");
	  if(delivery == "UPS 3 DAY SELECT")
		 shippingCost = eval(product+"_ups3Day[runsize]");
	  else if(delivery == "UPS 2nd DAY AIR")
	  	 shippingCost = eval(product+"_ups2Day[runsize]");
	  else if(delivery == "UPS NEXT DAY AIR")
	  	 shippingCost = eval(product+"_ups1Day[runsize]");  
	  else if(delivery == "UPS GROUND")
  	  	 shippingCost = eval(product+"_upsGround[runsize]");  
	  shippingDiv.innerHTML = "Shipping Cost: $"+shippingCost;
    }
	if(delivery == "" || delivery=="Pick Up")
	  shippingDiv.innerHTML = "Shipping Cost: $0";
  }
f.total.value = total;
total += shippingCost;
totalDiv.innerHTML = "Subtotal: $"+total;
f.shippingCost.value = shippingCost;
}
function changeOption(obj){
var chosen = obj.options[obj.selectedIndex].value;
f = document.add;
if(chosen == '8.5" x 5.5"'){
f.folding.options.length=0;
f.folding.options[0]=new Option("---Select A Folding Option---", "", true, false);
f.folding.options[1]=new Option("No Fold", "No Fold", false, false);	
  
  if(f.stock.options.length!=2){
	 f.stock.options.length=0;
	 f.stock.options[0]=new Option("----Select Stock Type----", "", true, false);
	 f.stock.options[1]=new Option("Recycled 100lb Gloss Text", "Recycled 100lb Gloss Text", false, false);
  }  
}else if(chosen == '8.5" x 11"' || chosen == '11" x 17"'){
f.folding.options.length=0;
f.folding.options[0]=new Option("---Select A Folding Option---", "", true, false);
f.folding.options[1]=new Option("No Fold", "No Fold", false, false);
f.folding.options[2]=new Option("Half Fold", "Half Fold", false,false);
f.folding.options[3]=new Option("Tri-Fold", "Tri-Fold", false,false);
  if(chosen == '8.5" x 11"'	&& f.stock.options.length!=5){
	 f.stock.options.length=0;
	 f.stock.options[0]=new Option("----Select Stock Type----", "", true, false);
	 f.stock.options[1]=new Option("Recycled 100lb Gloss Text", "Recycled 100lb Gloss Text", false, false);
	 f.stock.options[2]=new Option("Recycled 100lb Semi Gloss Cover", "Recycled 100lb Semi Gloss Cover", false, false);
	 f.stock.options[3]=new Option("Recycled 70lb Uncoated Text", "Recycled 70lb Uncoated Text", false, false);
	 f.stock.options[4]=new Option("Recycled 70lb Linen Text", "Recycled 70lb Linen Text", false, false);	 
  }else if(chosen == '11" x 17"' && f.stock.options.length!=3){
	 f.stock.options.length=0;
	 f.stock.options[0]=new Option("----Select Stock Type----", "", true, false);
	 f.stock.options[1]=new Option("Recycled 100lb Gloss Text", "Recycled 100lb Gloss Text", false, false);
	 f.stock.options[2]=new Option("Recycled 70lb Uncoated Text", "Recycled 70lb Uncoated Text", false, false);
	 //f.stock.options[3]=new Option("Recycled 70lb Linen Text", "Recycled 70lb Linen Text", false, false);	 
  }
}else if(chosen == "No Fold" && f.color.options.length!=3){
f.color.options.length=0;
f.color.options[0]=new Option("---Select Print/Color Type---", "", true, false);
f.color.options[1]=new Option("4:0-1 sided, full color on front","4:0 - 1 sided, full color on front", false, false);
f.color.options[2]=new Option("4:4-2 sided, full color on front and back","4:4 - 2 sided, full color on front and back", false, false);

}else if((chosen == "Half Fold" || chosen == "Tri-Fold"|| chosen == "Half Score"|| chosen == "Tri-Fold Score")&& f.color.options.length!=1){
f.color.options.length=0;
f.color.options[0]=new Option("4:4-2 sided, full color on front and back","4:4-2 sided, full color on front and back", true, false);
}else if(chosen == "Recycled 70lb Linen Text"){
f.runsize.options.length=0;
f.runsize.options[0]=new Option("----Select A Run Size----", "", true, false);
f.runsize.options[1]=new Option("250", "250", false, false);
f.runsize.options[2]=new Option("500","500", false, false);
f.runsize.options[3]=new Option("1,000","1000", false, false);
f.runsize.options[4]=new Option("2,500","2500", false, false);
f.runsize.options[5]=new Option("5,000","5000", false, false);
f.runsize.options[6]=new Option("10,000","10000", false, false);
//f.runsize.options[5]=new Option("15,000","15000", false, false);
//f.runsize.options[6]=new Option("20,000","20000", false, false);
f.folding.options.length=0;
f.folding.options[0]=new Option("---Select A Folding Option---", "", true, false);
f.folding.options[1]=new Option("No Fold", "No Fold", false, false);
f.folding.options[2]=new Option("Half Fold", "Half Fold", false,false);
f.folding.options[3]=new Option("Tri-Fold", "Tri-Fold", false,false);
}else if(chosen == "Recycled 100lb Semi Gloss Cover"){
	f.folding.options.length=0;
f.folding.options[0]=new Option("---Select A Folding Option---", "", true, false);
f.folding.options[1]=new Option("No Fold", "No Fold", false, false);	
f.folding.options[2]=new Option("Half Score", "Half Score", false, false);
f.folding.options[3]=new Option("Tri-Fold Score", "Tri-Fold Score", false, false);
f.runsize.options.length=0;
//new Option(text, value, defaultSelected, selected)
f.runsize.options[0]=new Option("----Select A Run Size----", "", true, false);
f.runsize.options[1]=new Option("1,000","1000", false, false);
f.runsize.options[2]=new Option("2,500","2500", false, false);
f.runsize.options[3]=new Option("5,000","5000", false, false);
f.runsize.options[4]=new Option("10,000","10000", false, false);
//f.runsize.options[5]=new Option("15,000","15000", false, false);
//f.runsize.options[6]=new Option("20,000","20000", false, false);
}else if(f.runsize.options.length!= 9 && (chosen == "Recycled 100lb Gloss Text" || chosen == "Recycled 70lb Uncoated Text")){
f.runsize.options.length=0;
f.runsize.options[0]=new Option("----Select A Run Size----", "", true, false);
f.runsize.options[1]=new Option("250", "250", false, false);
f.runsize.options[2]=new Option("500","500", false, false);
f.runsize.options[3]=new Option("1,000","1000", false, false);
f.runsize.options[4]=new Option("2,500","2500", false, false);
f.runsize.options[5]=new Option("5,000","5000", false, false);
f.runsize.options[6]=new Option("10,000","10000", false, false);
//f.runsize.options[7]=new Option("15,000","15000", false, false);
//f.runsize.options[8]=new Option("20,000","20000", false, false);

f.folding.options.length=0;
f.folding.options[0]=new Option("---Select A Folding Option---", "", true, false);
f.folding.options[1]=new Option("No Fold", "No Fold", false, false);
f.folding.options[2]=new Option("Half Fold", "Half Fold", false,false);
f.folding.options[3]=new Option("Tri-Fold", "Tri-Fold", false,false);

}
calc();
}
