var isEdit=false; var val_string = "quantity,size,coverstock"; var response_string = "Quantity, Size, Cover Paper"; var shippingmethod_id = 0; function basicPriceCal() { if(getValue('zip') == ''){ sumTotal(); }else{ if(!(getValue('coverstock') == '' || getValue('quantity') == '' || getValue('size') == '')){ calcShipping(); sumTotal(); }else{ sumTotal(); } } turnAroundTime(); } function turnAroundTime() { setValue('turnaroundtime', '7-10 days Printing'); if(getValue('mailservice') == "Yes"){ setValue('turnaroundtime2', '+ 3-5 days Mailing'); }else{ setValue('turnaroundtime2', ''); } } function changeFrontImage(param,type) { return; //alert(type); setChangeFrontImage(); /* var s=param + ".gif"; var img= eval(param); if (type==1) document.quoteform.frontimage.src =img; else document.quoteform.frontimage2.src =img; */ disableBackColorRadio(type); basicPriceCal(); } //------------------------SHARAD--------------------------- //------------------------SHARAD--------------------------- function changeBackImage(param,type) { var s=param + ".gif"; var img= eval(param); /* if (type==1) document.quoteform.backimage.src =img; else document.quoteform.backimage2.src =img; */ basicPriceCal(); } function changeColorImage(){ var d=document.quoteform; var img; var covercolor1 = getValue('covercolor1'); /* switch(covercolor1) { case "4": img = brochure4col; break; case "2": img = brochure2col; break; case "1": img = brochure1col; break; default: img = brochure4col; } d.frontimage.src = img; */ disableBackColorRadio(1); /* var covercolor2 = getValue('covercolor2'); switch(covercolor2) { case "4": img = brochure4col; break; case "2": img = brochure2col; break; case "1": img = brochure1col; break; case "0": img = brochurenone; break; case "B": img = brochuregrey; break; default: img=brochure4col; } d.backimage.src = img; */ disableBackColorRadio(2); basicPriceCal(); } function changeImage(i){ switch(i){ case 0: //document.quoteform.foldimage.src="images/half_fold.gif"; break; case 1: //document.quoteform.foldimage.src="images/half_half.gif"; break; case 2: //document.quoteform.foldimage.src="images/half_trifold.gif"; break; } } function changePageNum() {//alert(type); var d=document.quoteform; if(!is_select(d.fold)) return; var pagesd=d.pages.value; if (pagesd=="4") { d.fold[0].disabled=false; d.fold[2].disabled=false; d.fold[1].disabled=false; //d.insidecolor[0].disabled=true; //d.insidecolor[1].disabled=true; //d.insidecolor[2].disabled=true; d.insidecolor.disabled=true; d.insidestock.selectedIndex = 0; d.insidestock.disabled=true; } else { d.fold[0].checked=true; d.fold[0].disabled=false; d.fold[2].disabled=true; d.fold[1].disabled=true; //d.insidecolor[0].disabled=false; //d.insidecolor[1].disabled=false; //d.insidecolor[2].disabled=false; d.insidecolor.disabled=false; d.insidestock.disabled=false; } dropdown1 = d.pages.value; for(i = d.coverstock.length-1; i > 0;i--){ d.coverstock.options[i] = null; } switch(dropdown1){ case '4': d.coverstock.options[d.coverstock.length] = new Option('60 lb. Offset (Text)', '9', false, false); d.coverstock.options[d.coverstock.length] = new Option('80 lb. Gloss (Text)', '10', false, false); d.coverstock.options[d.coverstock.length] = new Option('100 lb. Gloss (Text)', '6', false, false); d.coverstock.options[d.coverstock.length] = new Option('80 lb. Gloss (Cover)', '7', false, false); d.coverstock.options[d.coverstock.length] = new Option('100 lb. Gloss (Cover)', '8', false, false); break; default: d.coverstock.options[d.coverstock.length] = new Option('60 lb. Offset (Text)', '9', false, false); d.coverstock.options[d.coverstock.length] = new Option('80 lb. Gloss (Text)', '10', false, false); d.coverstock.options[d.coverstock.length] = new Option('100 lb. Gloss (Text)', '6', false, false); d.coverstock.options[d.coverstock.length] = new Option('80 lb. Gloss (Cover)', '7', false, false); d.coverstock.options[d.coverstock.length] = new Option('100 lb. Gloss (Cover)', '8', false, false); break; } basicPriceCal(); } function disableBackColorRadio(type) { var d=document.quoteform; var front_ink=getValue('covercolor1'); var inside_ink=getValue('insidecolor'); if (type==1) { if(!isEdit && (front_ink==4)) { d.coverpms1.value=""; d.coverpms2.value=""; } if(d.covercolor1[0].checked) { d.covercolor2[0].disabled=false; d.covercolor2[2].disabled=false; d.covercolor2[1].disabled=true; d.covercolor2[4].disabled=true; if(!d.covercolor2[0].checked && !d.covercolor2[2].checked && !d.covercolor2[3].checked) d.covercolor2[0].checked=true; } else if(d.covercolor1[1].checked) { d.covercolor2[1].disabled=false; d.covercolor2[0].disabled=true; d.covercolor2[2].disabled=true; d.covercolor2[4].disabled=true; if(!d.covercolor2[1].checked && !d.covercolor2[3].checked) d.covercolor2[1].checked=true; } else if(d.covercolor1[2].checked) { d.covercolor2[4].disabled=false; d.covercolor2[0].disabled=true; d.covercolor2[1].disabled=true; d.covercolor2[2].disabled=true; if(!d.covercolor2[3].checked && !d.covercolor2[4].checked) d.covercolor2[4].checked=true; } if (d.covercolor1[1].checked) { document.getElementById("tpms1").style.display='block'; document.getElementById("tpms2").style.display='block'; document.getElementById("selpms1").style.display='block'; document.getElementById("selpms2").style.display='block'; document.getElementById("pmstext").style.display='block'; } else if(d.covercolor1[2].checked) { document.getElementById("tpms1").style.display='block'; document.getElementById("selpms1").style.display='block'; document.getElementById("pmstext").style.display='block'; document.getElementById("tpms2").style.display='none'; document.getElementById("selpms2").style.display='none'; } else { document.getElementById("tpms1").style.display='none'; document.getElementById("tpms2").style.display='none'; document.getElementById("selpms1").style.display='none'; document.getElementById("selpms2").style.display='none'; document.getElementById("pmstext").style.display='none'; } } else { if(!isEdit){ //d.insidepms1.value=""; //d.insidepms2.value=""; } if (d.insidecolor[1].checked) { document.getElementById("itpms1").style.display='block'; document.getElementById("itpms2").style.display='block'; document.getElementById("iselpms1").style.display='block'; document.getElementById("iselpms2").style.display='block'; document.getElementById("ipmstext").style.display='block'; } else if(d.insidecolor[2].checked) { document.getElementById("itpms1").style.display='block'; document.getElementById("iselpms1").style.display='block'; document.getElementById("ipmstext").style.display='block'; document.getElementById("itpms2").style.display='none'; document.getElementById("iselpms2").style.display='none'; } else { document.getElementById("itpms1").style.display='none'; document.getElementById("itpms2").style.display='none'; document.getElementById("iselpms1").style.display='none'; document.getElementById("iselpms2").style.display='none'; document.getElementById("ipmstext").style.display='none'; } } } function getBasePrice(quantity,size,color){ var pages = getValue('pages'); var arrQty = Array(); arrQty['250_8.5x11_4'] = '286.85'; arrQty['500_8.5x11_4'] = '336.60'; arrQty['750_8.5x11_4'] = '360.00'; arrQty['1000_8.5x11_4'] = '388.00'; arrQty['1250_8.5x11_4'] = '410.00'; arrQty['1500_8.5x11_4'] = '460.00'; arrQty['1750_8.5x11_4'] = '510.00'; arrQty['2000_8.5x11_4'] = '535.00'; arrQty['2250_8.5x11_4'] = '590.00'; arrQty['2500_8.5x11_4'] = '630.60'; arrQty['2750_8.5x11_4'] = '680.00'; arrQty['3000_8.5x11_4'] = '700.00'; arrQty['3250_8.5x11_4'] = '740.00'; arrQty['3500_8.5x11_4'] = '765.00'; arrQty['3750_8.5x11_4'] = '795.00'; arrQty['4000_8.5x11_4'] = '830.00'; arrQty['4250_8.5x11_4'] = '890.00'; arrQty['4500_8.5x11_4'] = '935.00'; arrQty['4750_8.5x11_4'] = '960.00'; arrQty['5000_8.5x11_4'] = '995.00'; arrQty['5250_8.5x11_4'] = '1040.00'; arrQty['5500_8.5x11_4'] = '1070.00'; arrQty['5750_8.5x11_4'] = '1140.00'; arrQty['6000_8.5x11_4'] = '1180.00'; arrQty['6250_8.5x11_4'] = '1230.00'; arrQty['6500_8.5x11_4'] = '1230.10'; arrQty['6750_8.5x11_4'] = '1290.35'; arrQty['7000_8.5x11_4'] = '1340.60'; arrQty['7250_8.5x11_4'] = '1395.00'; arrQty['7500_8.5x11_4'] = '1450.10'; arrQty['7750_8.5x11_4'] = '1510.00'; arrQty['8000_8.5x11_4'] = '1560.60'; arrQty['8250_8.5x11_4'] = '1630.00'; arrQty['8500_8.5x11_4'] = '1670.10'; arrQty['8750_8.5x11_4'] = '1705.00'; arrQty['9000_8.5x11_4'] = '1780.60'; arrQty['9250_8.5x11_4'] = '1850.00'; arrQty['9500_8.5x11_4'] = '1890.10'; arrQty['9750_8.5x11_4'] = '1960.00'; arrQty['10000_8.5x11_4'] = '1990.60'; arrQty['250_8.5x11_8'] = '236.70'; arrQty['500_8.5x11_8'] = '276.58'; arrQty['750_8.5x11_8'] = '310.76'; arrQty['1000_8.5x11_8'] = '348.00'; arrQty['1250_8.5x11_8'] = '390.00'; arrQty['1500_8.5x11_8'] = '440.00'; arrQty['1750_8.5x11_8'] = '490.00'; arrQty['2000_8.5x11_8'] = '515.00'; arrQty['2250_8.5x11_8'] = '570.00'; arrQty['2500_8.5x11_8'] = '610.00'; arrQty['2750_8.5x11_8'] = '660.00'; arrQty['3000_8.5x11_8'] = '680.00'; arrQty['3250_8.5x11_8'] = '720.00'; arrQty['3500_8.5x11_8'] = '755.00'; arrQty['3750_8.5x11_8'] = '795.00'; arrQty['4000_8.5x11_8'] = '830.00'; arrQty['4250_8.5x11_8'] = '890.00'; arrQty['4500_8.5x11_8'] = '935.00'; arrQty['4750_8.5x11_8'] = '960.00'; arrQty['5000_8.5x11_8'] = '995.00'; arrQty['5250_8.5x11_8'] = '1040.00'; arrQty['5500_8.5x11_8'] = '1070.00'; arrQty['5750_8.5x11_8'] = '1140.00'; arrQty['6000_8.5x11_8'] = '1180.00'; arrQty['6250_8.5x11_8'] = '1230.00'; arrQty['6500_8.5x11_8'] = '1230.00'; arrQty['6750_8.5x11_8'] = '1290.00'; arrQty['7000_8.5x11_8'] = '1340.00'; arrQty['7250_8.5x11_8'] = '1395.00'; arrQty['7500_8.5x11_8'] = '1450.00'; arrQty['7750_8.5x11_8'] = '1510.00'; arrQty['8000_8.5x11_8'] = '1560.00'; arrQty['8250_8.5x11_8'] = '1630.00'; arrQty['8500_8.5x11_8'] = '1671.00'; arrQty['8750_8.5x11_8'] = '1705.00'; arrQty['9000_8.5x11_8'] = '1780.00'; arrQty['9250_8.5x11_8'] = '1850.00'; arrQty['9500_8.5x11_8'] = '1890.00'; arrQty['9750_8.5x11_8'] = '1960.00'; arrQty['10000_8.5x11_8'] = '1995.00'; arrQty['250_8.5x11_12'] = '247.00'; arrQty['500_8.5x11_12'] = '308.75'; arrQty['750_8.5x11_12'] = '358.15'; arrQty['1000_8.5x11_12'] = '395.20'; arrQty['1250_8.5x11_12'] = '432.25'; arrQty['1500_8.5x11_12'] = '481.65'; arrQty['1750_8.5x11_12'] = '512.52'; arrQty['2000_8.5x11_12'] = '571.80'; arrQty['2250_8.5x11_12'] = '617.50'; arrQty['2500_8.5x11_12'] = '660.73'; arrQty['2750_8.5x11_12'] = '691.60'; arrQty['3000_8.5x11_12'] = '753.35'; arrQty['3250_8.5x11_12'] = '802.75'; arrQty['3500_8.5x11_12'] = '838.57'; arrQty['3750_8.5x11_12'] = '864.50'; arrQty['4000_8.5x11_12'] = '927.48'; arrQty['4250_8.5x11_12'] = '988.00'; arrQty['4500_8.5x11_12'] = '1016.41'; arrQty['4750_8.5x11_12'] = '1049.75'; arrQty['5000_8.5x11_12'] = '1105.33'; arrQty['5250_8.5x11_12'] = '1148.55'; arrQty['5500_8.5x11_12'] = '1194.24'; arrQty['5750_8.5x11_12'] = '1235.00'; arrQty['6000_8.5x11_12'] = '1284.40'; arrQty['6250_8.5x11_12'] = '1327.62'; arrQty['6500_8.5x11_12'] = '1372.09'; arrQty['6750_8.5x11_12'] = '1420.25'; arrQty['7000_8.5x11_12'] = '1461.01'; arrQty['7250_8.5x11_12'] = '1482.00'; arrQty['7500_8.5x11_12'] = '1549.92'; arrQty['7750_8.5x11_12'] = '1716.65'; arrQty['8000_8.5x11_12'] = '1638.84'; arrQty['8250_8.5x11_12'] = '1673.42'; arrQty['8500_8.5x11_12'] = '1727.77'; arrQty['8750_8.5x11_12'] = '1753.70'; arrQty['9000_8.5x11_12'] = '1816.68'; arrQty['9250_8.5x11_12'] = '1852.50'; arrQty['9500_8.5x11_12'] = '1905.61'; arrQty['9750_8.5x11_12'] = '1957.47'; arrQty['10000_8.5x11_12'] = '1994.53'; arrQty['250_8.5x11_16'] = '276.70'; arrQty['500_8.5x11_16'] = '320.58'; arrQty['750_8.5x11_16'] = '352.76'; arrQty['1000_8.5x11_16'] = '413.40'; arrQty['1250_8.5x11_16'] = '435.50'; arrQty['1500_8.5x11_16'] = '507.00'; arrQty['1750_8.5x11_16'] = '565.50'; arrQty['2000_8.5x11_16'] = '600.60'; arrQty['2250_8.5x11_16'] = '646.10'; arrQty['2500_8.5x11_16'] = '694.98'; arrQty['2750_8.5x11_16'] = '744.38'; arrQty['3000_8.5x11_16'] = '787.80'; arrQty['3250_8.5x11_16'] = '835.90'; arrQty['3500_8.5x11_16'] = '881.40'; arrQty['3750_8.5x11_16'] = '928.20'; arrQty['4000_8.5x11_16'] = '975.00'; arrQty['4250_8.5x11_16'] = '1024.40'; arrQty['4500_8.5x11_16'] = '1068.60'; arrQty['4750_8.5x11_16'] = '1120.60'; arrQty['5000_8.5x11_16'] = '1162.20'; arrQty['5250_8.5x11_16'] = '1219.40'; arrQty['5500_8.5x11_16'] = '1255.80'; arrQty['5750_8.5x11_16'] = '1303.90'; arrQty['6000_8.5x11_16'] = '1349.40'; arrQty['6250_8.5x11_16'] = '1392.30'; arrQty['6500_8.5x11_16'] = '1443.00'; arrQty['6750_8.5x11_16'] = '1495.00'; arrQty['7000_8.5x11_16'] = '1536.60'; arrQty['7250_8.5x11_16'] = '1587.11'; arrQty['7500_8.5x11_16'] = '1629.03'; arrQty['7750_8.5x11_16'] = '1681.36'; arrQty['8000_8.5x11_16'] = '1724.58'; arrQty['8250_8.5x11_16'] = '1771.38'; arrQty['8500_8.5x11_16'] = '1817.53'; arrQty['8750_8.5x11_16'] = '1872.45'; arrQty['9000_8.5x11_16'] = '1911.78'; arrQty['9250_8.5x11_16'] = '1955.00'; arrQty['9500_8.5x11_16'] = '2003.43'; arrQty['9750_8.5x11_16'] = '2055.76'; arrQty['10000_8.5x11_16'] = '2098.98'; arrQty['250_8.5x11_20'] = '276.70'; arrQty['500_8.5x11_20'] = '320.58'; arrQty['750_8.5x11_20'] = '352.76'; arrQty['1000_8.5x11_20'] = '413.40'; arrQty['1250_8.5x11_20'] = '435.50'; arrQty['1500_8.5x11_20'] = '507.00'; arrQty['1750_8.5x11_20'] = '565.50'; arrQty['2000_8.5x11_20'] = '470.60'; arrQty['2250_8.5x11_20'] = '646.10'; arrQty['2500_8.5x11_20'] = '694.98'; arrQty['2750_8.5x11_20'] = '743.60'; arrQty['3000_8.5x11_20'] = '787.80'; arrQty['3250_8.5x11_20'] = '835.90'; arrQty['3500_8.5x11_20'] = '881.40'; arrQty['3750_8.5x11_20'] = '928.20'; arrQty['4000_8.5x11_20'] = '975.00'; arrQty['4250_8.5x11_20'] = '1007.50'; arrQty['4500_8.5x11_20'] = '1068.60'; arrQty['4750_8.5x11_20'] = '1120.60'; arrQty['5000_8.5x11_20'] = '1162.20'; arrQty['5250_8.5x11_20'] = '1219.40'; arrQty['5500_8.5x11_20'] = '1255.80'; arrQty['5750_8.5x11_20'] = '1303.90'; arrQty['6000_8.5x11_20'] = '1349.40'; arrQty['6250_8.5x11_20'] = '1392.30'; arrQty['6500_8.5x11_20'] = '1443.00'; arrQty['6750_8.5x11_20'] = '1495.00'; arrQty['7000_8.5x11_20'] = '1536.60'; arrQty['7250_8.5x11_20'] = '1586.00'; arrQty['7500_8.5x11_20'] = '1628.90'; arrQty['7750_8.5x11_20'] = '1680.90'; arrQty['8000_8.5x11_20'] = '1723.80'; arrQty['8250_8.5x11_20'] = '1770.60'; arrQty['8500_8.5x11_20'] = '1817.40'; arrQty['8750_8.5x11_20'] = '1872.00'; arrQty['9000_8.5x11_20'] = '1911.00'; arrQty['9250_8.5x11_20'] = '1953.90'; arrQty['9500_8.5x11_20'] = '2003.30'; arrQty['9750_8.5x11_20'] = '2055.30'; arrQty['10000_8.5x11_20'] = '2098.20'; arrQty['250_8.5x11_24'] = '276.70'; arrQty['500_8.5x11_24'] = '320.58'; arrQty['750_8.5x11_24'] = '352.76'; arrQty['1000_8.5x11_24'] = '413.40'; arrQty['1250_8.5x11_24'] = '435.50'; arrQty['1500_8.5x11_24'] = '507.00'; arrQty['1750_8.5x11_24'] = '565.50'; arrQty['2000_8.5x11_24'] = '600.60'; arrQty['2250_8.5x11_24'] = '646.10'; arrQty['2500_8.5x11_24'] = '694.98'; arrQty['2750_8.5x11_24'] = '743.60'; arrQty['3000_8.5x11_24'] = '787.80'; arrQty['3250_8.5x11_24'] = '835.90'; arrQty['3500_8.5x11_24'] = '881.40'; arrQty['3750_8.5x11_24'] = '928.20'; arrQty['4000_8.5x11_24'] = '975.00'; arrQty['4250_8.5x11_24'] = '1024.40'; arrQty['4500_8.5x11_24'] = '1072.50'; arrQty['4750_8.5x11_24'] = '1105.00'; arrQty['5000_8.5x11_24'] = '1162.20'; arrQty['5250_8.5x11_24'] = '1219.40'; arrQty['5500_8.5x11_24'] = '1255.80'; arrQty['5750_8.5x11_24'] = '1303.90'; arrQty['6000_8.5x11_24'] = '1349.40'; arrQty['6250_8.5x11_24'] = '1392.30'; arrQty['6500_8.5x11_24'] = '1443.00'; arrQty['6750_8.5x11_24'] = '1495.00'; arrQty['7000_8.5x11_24'] = '1536.60'; arrQty['7250_8.5x11_24'] = '1586.00'; arrQty['7500_8.5x11_24'] = '1628.90'; arrQty['7750_8.5x11_24'] = '1680.90'; arrQty['8000_8.5x11_24'] = '1722.50'; arrQty['8250_8.5x11_24'] = '1770.60'; arrQty['8500_8.5x11_24'] = '1817.40'; arrQty['8750_8.5x11_24'] = '1872.00'; arrQty['9000_8.5x11_24'] = '1911.00'; arrQty['9250_8.5x11_24'] = '1953.90'; arrQty['9500_8.5x11_24'] = '2003.30'; arrQty['9750_8.5x11_24'] = '2055.30'; arrQty['10000_8.5x11_24'] = '2098.20'; arrQty['250_8.5x11_28'] = '276.70'; arrQty['500_8.5x11_28'] = '320.58'; arrQty['750_8.5x11_28'] = '352.76'; arrQty['1000_8.5x11_28'] = '413.40'; arrQty['1250_8.5x11_28'] = '435.50'; arrQty['1500_8.5x11_28'] = '507.00'; arrQty['1750_8.5x11_28'] = '565.50'; arrQty['2000_8.5x11_28'] = '600.60'; arrQty['2250_8.5x11_28'] = '646.10'; arrQty['2500_8.5x11_28'] = '694.98'; arrQty['2750_8.5x11_28'] = '743.60'; arrQty['3000_8.5x11_28'] = '787.80'; arrQty['3250_8.5x11_28'] = '835.90'; arrQty['3500_8.5x11_28'] = '881.40'; arrQty['3750_8.5x11_28'] = '928.20'; arrQty['4000_8.5x11_28'] = '975.00'; arrQty['4250_8.5x11_28'] = '1024.40'; arrQty['4500_8.5x11_28'] = '1068.60'; arrQty['4750_8.5x11_28'] = '1120.60'; arrQty['5000_8.5x11_28'] = '1162.20'; arrQty['5250_8.5x11_28'] = '1219.40'; arrQty['5500_8.5x11_28'] = '1255.80'; arrQty['5750_8.5x11_28'] = '1303.90'; arrQty['6000_8.5x11_28'] = '1349.40'; arrQty['6250_8.5x11_28'] = '1392.30'; arrQty['6500_8.5x11_28'] = '1443.00'; arrQty['6750_8.5x11_28'] = '1495.00'; arrQty['7000_8.5x11_28'] = '1536.60'; arrQty['7250_8.5x11_28'] = '1587.11'; arrQty['7500_8.5x11_28'] = '1629.03'; arrQty['7750_8.5x11_28'] = '1681.36'; arrQty['8000_8.5x11_28'] = '1724.58'; arrQty['8250_8.5x11_28'] = '1771.70'; arrQty['8500_8.5x11_28'] = '1817.53'; arrQty['8750_8.5x11_28'] = '1872.45'; arrQty['9000_8.5x11_28'] = '1911.78'; arrQty['9250_8.5x11_28'] = '1950.00'; arrQty['9500_8.5x11_28'] = '2008.50'; arrQty['9750_8.5x11_28'] = '2060.50'; arrQty['10000_8.5x11_28'] = '2099.50'; arrQty['250_8.5x11_32'] = '276.70'; arrQty['500_8.5x11_32'] = '320.58'; arrQty['750_8.5x11_32'] = '352.76'; arrQty['1000_8.5x11_32'] = '413.40'; arrQty['1250_8.5x11_32'] = '435.50'; arrQty['1500_8.5x11_32'] = '507.00'; arrQty['1750_8.5x11_32'] = '565.50'; arrQty['2000_8.5x11_32'] = '600.60'; arrQty['2250_8.5x11_32'] = '646.10'; arrQty['2500_8.5x11_32'] = '694.98'; arrQty['2750_8.5x11_32'] = '743.60'; arrQty['3000_8.5x11_32'] = '787.80'; arrQty['3250_8.5x11_32'] = '835.90'; arrQty['3500_8.5x11_32'] = '881.40'; arrQty['3750_8.5x11_32'] = '928.20'; arrQty['4000_8.5x11_32'] = '975.00'; arrQty['4250_8.5x11_32'] = '1007.50'; arrQty['4500_8.5x11_32'] = '1068.60'; arrQty['4750_8.5x11_32'] = '1120.60'; arrQty['5000_8.5x11_32'] = '1162.20'; arrQty['5250_8.5x11_32'] = '1219.40'; arrQty['5500_8.5x11_32'] = '1255.80'; arrQty['5750_8.5x11_32'] = '1300.00'; arrQty['6000_8.5x11_32'] = '1365.00'; arrQty['6250_8.5x11_32'] = '1397.50'; arrQty['6500_8.5x11_32'] = '1430.00'; arrQty['6750_8.5x11_32'] = '1462.50'; arrQty['7000_8.5x11_32'] = '1527.50'; arrQty['7250_8.5x11_32'] = '1560.00'; arrQty['7500_8.5x11_32'] = '1625.00'; arrQty['7750_8.5x11_32'] = '1657.50'; arrQty['8000_8.5x11_32'] = '1722.50'; arrQty['8250_8.5x11_32'] = '1755.00'; arrQty['8500_8.5x11_32'] = '1820.00'; arrQty['8750_8.5x11_32'] = '1852.50'; arrQty['9000_8.5x11_32'] = '1917.50'; arrQty['9250_8.5x11_32'] = '1950.00'; arrQty['9500_8.5x11_32'] = '2015.00'; arrQty['9750_8.5x11_32'] = '2047.50'; arrQty['10000_8.5x11_32'] = '2099.50'; arrQty['250_8.5x11_36'] = '276.70'; arrQty['500_8.5x11_36'] = '320.58'; arrQty['750_8.5x11_36'] = '352.76'; arrQty['1000_8.5x11_36'] = '413.40'; arrQty['1250_8.5x11_36'] = '435.50'; arrQty['1500_8.5x11_36'] = '507.00'; arrQty['1750_8.5x11_36'] = '565.50'; arrQty['2000_8.5x11_36'] = '600.60'; arrQty['2250_8.5x11_36'] = '646.10'; arrQty['2500_8.5x11_36'] = '694.98'; arrQty['2750_8.5x11_36'] = '743.60'; arrQty['3000_8.5x11_36'] = '787.80'; arrQty['3250_8.5x11_36'] = '824.20'; arrQty['3500_8.5x11_36'] = '881.40'; arrQty['3750_8.5x11_36'] = '928.20'; arrQty['4000_8.5x11_36'] = '975.00'; arrQty['4250_8.5x11_36'] = '1024.40'; arrQty['4500_8.5x11_36'] = '1068.60'; arrQty['4750_8.5x11_36'] = '1120.60'; arrQty['5000_8.5x11_36'] = '1162.20'; arrQty['5250_8.5x11_36'] = '1219.40'; arrQty['5500_8.5x11_36'] = '1255.80'; arrQty['5750_8.5x11_36'] = '1303.90'; arrQty['6000_8.5x11_36'] = '1349.40'; arrQty['6250_8.5x11_36'] = '1392.30'; arrQty['6500_8.5x11_36'] = '1443.00'; arrQty['6750_8.5x11_36'] = '1482.00'; arrQty['7000_8.5x11_36'] = '1540.50'; arrQty['7250_8.5x11_36'] = '1573.00'; arrQty['7500_8.5x11_36'] = '1638.00'; arrQty['7750_8.5x11_36'] = '1690.00'; arrQty['8000_8.5x11_36'] = '1755.00'; arrQty['8250_8.5x11_36'] = '1787.50'; arrQty['8500_8.5x11_36'] = '1820.00'; arrQty['8750_8.5x11_36'] = '1852.50'; arrQty['9000_8.5x11_36'] = '1917.50'; arrQty['9250_8.5x11_36'] = '1950.00'; arrQty['9500_8.5x11_36'] = '2015.00'; arrQty['9750_8.5x11_36'] = '2047.50'; arrQty['10000_8.5x11_36'] = '2112.50'; arrQty['250_5.5x8.5_4'] = '195.00'; arrQty['500_5.5x8.5_4'] = '210.00'; arrQty['750_5.5x8.5_4'] = '225.00'; arrQty['1000_5.5x8.5_4'] = '246.00'; arrQty['1250_5.5x8.5_4'] = '260.00'; arrQty['1500_5.5x8.5_4'] = '282.00'; arrQty['1750_5.5x8.5_4'] = '301.00'; arrQty['2000_5.5x8.5_4'] = '318.00'; arrQty['2250_5.5x8.5_4'] = '340.00'; arrQty['2500_5.5x8.5_4'] = '354.00'; arrQty['2750_5.5x8.5_4'] = '380.00'; arrQty['3000_5.5x8.5_4'] = '390.60'; arrQty['3250_5.5x8.5_4'] = '420.00'; arrQty['3500_5.5x8.5_4'] = '426.20'; arrQty['3750_5.5x8.5_4'] = '431.00'; arrQty['4000_5.5x8.5_4'] = '462.60'; arrQty['4250_5.5x8.5_4'] = '485.00'; arrQty['4500_5.5x8.5_4'] = '498.60'; arrQty['4750_5.5x8.5_4'] = '520.00'; arrQty['5000_5.5x8.5_4'] = '534.60'; arrQty['5250_5.5x8.5_4'] = '552.00'; arrQty['5500_5.5x8.5_4'] = '570.60'; arrQty['5750_5.5x8.5_4'] = '587.00'; arrQty['6000_5.5x8.5_4'] = '606.60'; arrQty['6250_5.5x8.5_4'] = '620.00'; arrQty['6500_5.5x8.5_4'] = '642.60'; arrQty['6750_5.5x8.5_4'] = '660.00'; arrQty['7000_5.5x8.5_4'] = '678.60'; arrQty['7250_5.5x8.5_4'] = '700.00'; arrQty['7500_5.5x8.5_4'] = '714.60'; arrQty['7750_5.5x8.5_4'] = '730.00'; arrQty['8000_5.5x8.5_4'] = '750.60'; arrQty['8250_5.5x8.5_4'] = '760.00'; arrQty['8500_5.5x8.5_4'] = '786.60'; arrQty['8750_5.5x8.5_4'] = '798.60'; arrQty['9000_5.5x8.5_4'] = '822.60'; arrQty['9250_5.5x8.5_4'] = '845.00'; arrQty['9500_5.5x8.5_4'] = '858.60'; arrQty['9750_5.5x8.5_4'] = '875.00'; arrQty['10000_5.5x8.5_4'] = '895.00'; arrQty['250_5.5x8.5_8'] = '260.00'; arrQty['500_5.5x8.5_8'] = '273.00'; arrQty['750_5.5x8.5_8'] = '292.50'; arrQty['1000_5.5x8.5_8'] = '325.00'; arrQty['1250_5.5x8.5_8'] = '351.00'; arrQty['1500_5.5x8.5_8'] = '370.50'; arrQty['1750_5.5x8.5_8'] = '390.00'; arrQty['2000_5.5x8.5_8'] = '416.00'; arrQty['2250_5.5x8.5_8'] = '442.00'; arrQty['2500_5.5x8.5_8'] = '468.00'; arrQty['2750_5.5x8.5_8'] = '494.00'; arrQty['3000_5.5x8.5_8'] = '520.00'; arrQty['3250_5.5x8.5_8'] = '546.00'; arrQty['3500_5.5x8.5_8'] = '572.00'; arrQty['3750_5.5x8.5_8'] = '598.00'; arrQty['4000_5.5x8.5_8'] = '624.00'; arrQty['4250_5.5x8.5_8'] = '643.50'; arrQty['4500_5.5x8.5_8'] = '663.00'; arrQty['4750_5.5x8.5_8'] = '676.00'; arrQty['5000_5.5x8.5_8'] = '702.00'; arrQty['5250_5.5x8.5_8'] = '728.00'; arrQty['5500_5.5x8.5_8'] = '754.00'; arrQty['5750_5.5x8.5_8'] = '780.00'; arrQty['6000_5.5x8.5_8'] = '793.00'; arrQty['6250_5.5x8.5_8'] = '806.00'; arrQty['6500_5.5x8.5_8'] = '838.50'; arrQty['6750_5.5x8.5_8'] = '858.00'; arrQty['7000_5.5x8.5_8'] = '884.00'; arrQty['7250_5.5x8.5_8'] = '910.00'; arrQty['7500_5.5x8.5_8'] = '936.00'; arrQty['7750_5.5x8.5_8'] = '962.00'; arrQty['8000_5.5x8.5_8'] = '988.00'; arrQty['8250_5.5x8.5_8'] = '1014.00'; arrQty['8500_5.5x8.5_8'] = '1040.00'; arrQty['8750_5.5x8.5_8'] = '1059.50'; arrQty['9000_5.5x8.5_8'] = '1079.00'; arrQty['9250_5.5x8.5_8'] = '1098.50'; arrQty['9500_5.5x8.5_8'] = '1118.00'; arrQty['9750_5.5x8.5_8'] = '1137.50'; arrQty['10000_5.5x8.5_8'] = '1163.50'; arrQty['250_5.5x8.5_12'] = '260.00'; arrQty['500_5.5x8.5_12'] = '273.00'; arrQty['750_5.5x8.5_12'] = '292.50'; arrQty['1000_5.5x8.5_12'] = '325.00'; arrQty['1250_5.5x8.5_12'] = '351.00'; arrQty['1500_5.5x8.5_12'] = '370.50'; arrQty['1750_5.5x8.5_12'] = '390.00'; arrQty['2000_5.5x8.5_12'] = '416.00'; arrQty['2250_5.5x8.5_12'] = '442.00'; arrQty['2500_5.5x8.5_12'] = '468.00'; arrQty['2750_5.5x8.5_12'] = '494.00'; arrQty['3000_5.5x8.5_12'] = '520.00'; arrQty['3250_5.5x8.5_12'] = '546.00'; arrQty['3500_5.5x8.5_12'] = '572.00'; arrQty['3750_5.5x8.5_12'] = '598.00'; arrQty['4000_5.5x8.5_12'] = '624.00'; arrQty['4250_5.5x8.5_12'] = '643.50'; arrQty['4500_5.5x8.5_12'] = '663.00'; arrQty['4750_5.5x8.5_12'] = '676.00'; arrQty['5000_5.5x8.5_12'] = '702.00'; arrQty['5250_5.5x8.5_12'] = '728.00'; arrQty['5500_5.5x8.5_12'] = '754.00'; arrQty['5750_5.5x8.5_12'] = '780.00'; arrQty['6000_5.5x8.5_12'] = '793.00'; arrQty['6250_5.5x8.5_12'] = '806.00'; arrQty['6500_5.5x8.5_12'] = '838.50'; arrQty['6750_5.5x8.5_12'] = '858.00'; arrQty['7000_5.5x8.5_12'] = '884.00'; arrQty['7250_5.5x8.5_12'] = '910.00'; arrQty['7500_5.5x8.5_12'] = '936.00'; arrQty['7750_5.5x8.5_12'] = '962.00'; arrQty['8000_5.5x8.5_12'] = '988.00'; arrQty['8250_5.5x8.5_12'] = '1014.00'; arrQty['8500_5.5x8.5_12'] = '1040.00'; arrQty['8750_5.5x8.5_12'] = '1059.50'; arrQty['9000_5.5x8.5_12'] = '1079.00'; arrQty['9250_5.5x8.5_12'] = '1098.50'; arrQty['9500_5.5x8.5_12'] = '1118.00'; arrQty['9750_5.5x8.5_12'] = '1137.50'; arrQty['10000_5.5x8.5_12'] = '1163.50'; arrQty['250_5.5x8.5_16'] = '260.00'; arrQty['500_5.5x8.5_16'] = '273.00'; arrQty['750_5.5x8.5_16'] = '292.50'; arrQty['1000_5.5x8.5_16'] = '325.00'; arrQty['1250_5.5x8.5_16'] = '351.00'; arrQty['1500_5.5x8.5_16'] = '370.50'; arrQty['1750_5.5x8.5_16'] = '390.00'; arrQty['2000_5.5x8.5_16'] = '416.00'; arrQty['2250_5.5x8.5_16'] = '442.00'; arrQty['2500_5.5x8.5_16'] = '468.00'; arrQty['2750_5.5x8.5_16'] = '494.00'; arrQty['3000_5.5x8.5_16'] = '520.00'; arrQty['3250_5.5x8.5_16'] = '546.00'; arrQty['3500_5.5x8.5_16'] = '572.00'; arrQty['3750_5.5x8.5_16'] = '598.00'; arrQty['4000_5.5x8.5_16'] = '624.00'; arrQty['4250_5.5x8.5_16'] = '643.50'; arrQty['4500_5.5x8.5_16'] = '663.00'; arrQty['4750_5.5x8.5_16'] = '676.00'; arrQty['5000_5.5x8.5_16'] = '702.00'; arrQty['5250_5.5x8.5_16'] = '728.00'; arrQty['5500_5.5x8.5_16'] = '754.00'; arrQty['5750_5.5x8.5_16'] = '780.00'; arrQty['6000_5.5x8.5_16'] = '793.00'; arrQty['6250_5.5x8.5_16'] = '806.00'; arrQty['6500_5.5x8.5_16'] = '838.50'; arrQty['6750_5.5x8.5_16'] = '858.00'; arrQty['7000_5.5x8.5_16'] = '884.00'; arrQty['7250_5.5x8.5_16'] = '910.00'; arrQty['7500_5.5x8.5_16'] = '936.00'; arrQty['7750_5.5x8.5_16'] = '962.00'; arrQty['8000_5.5x8.5_16'] = '988.00'; arrQty['8250_5.5x8.5_16'] = '1014.00'; arrQty['8500_5.5x8.5_16'] = '1040.00'; arrQty['8750_5.5x8.5_16'] = '1059.50'; arrQty['9000_5.5x8.5_16'] = '1079.00'; arrQty['9250_5.5x8.5_16'] = '1098.50'; arrQty['9500_5.5x8.5_16'] = '1118.00'; arrQty['9750_5.5x8.5_16'] = '1137.50'; arrQty['10000_5.5x8.5_16'] = '1163.50'; arrQty['250_5.5x8.5_20'] = '260.00'; arrQty['500_5.5x8.5_20'] = '273.00'; arrQty['750_5.5x8.5_20'] = '292.50'; arrQty['1000_5.5x8.5_20'] = '325.00'; arrQty['1250_5.5x8.5_20'] = '351.00'; arrQty['1500_5.5x8.5_20'] = '370.50'; arrQty['1750_5.5x8.5_20'] = '390.00'; arrQty['2000_5.5x8.5_20'] = '416.00'; arrQty['2250_5.5x8.5_20'] = '442.00'; arrQty['2500_5.5x8.5_20'] = '468.00'; arrQty['2750_5.5x8.5_20'] = '494.00'; arrQty['3000_5.5x8.5_20'] = '520.00'; arrQty['3250_5.5x8.5_20'] = '546.00'; arrQty['3500_5.5x8.5_20'] = '572.00'; arrQty['3750_5.5x8.5_20'] = '598.00'; arrQty['4000_5.5x8.5_20'] = '624.00'; arrQty['4250_5.5x8.5_20'] = '643.50'; arrQty['4500_5.5x8.5_20'] = '663.00'; arrQty['4750_5.5x8.5_20'] = '676.00'; arrQty['5000_5.5x8.5_20'] = '702.00'; arrQty['5250_5.5x8.5_20'] = '728.00'; arrQty['5500_5.5x8.5_20'] = '754.00'; arrQty['5750_5.5x8.5_20'] = '780.00'; arrQty['6000_5.5x8.5_20'] = '793.00'; arrQty['6250_5.5x8.5_20'] = '806.00'; arrQty['6500_5.5x8.5_20'] = '838.50'; arrQty['6750_5.5x8.5_20'] = '858.00'; arrQty['7000_5.5x8.5_20'] = '884.00'; arrQty['7250_5.5x8.5_20'] = '910.00'; arrQty['7500_5.5x8.5_20'] = '936.00'; arrQty['7750_5.5x8.5_20'] = '962.00'; arrQty['8000_5.5x8.5_20'] = '988.00'; arrQty['8250_5.5x8.5_20'] = '1014.00'; arrQty['8500_5.5x8.5_20'] = '1040.00'; arrQty['8750_5.5x8.5_20'] = '1059.50'; arrQty['9000_5.5x8.5_20'] = '1079.00'; arrQty['9250_5.5x8.5_20'] = '1098.50'; arrQty['9500_5.5x8.5_20'] = '1118.00'; arrQty['9750_5.5x8.5_20'] = '1137.50'; arrQty['10000_5.5x8.5_20'] = '1163.50'; arrQty['250_5.5x8.5_24'] = '260.00'; arrQty['500_5.5x8.5_24'] = '273.00'; arrQty['750_5.5x8.5_24'] = '292.50'; arrQty['1000_5.5x8.5_24'] = '325.00'; arrQty['1250_5.5x8.5_24'] = '351.00'; arrQty['1500_5.5x8.5_24'] = '370.50'; arrQty['1750_5.5x8.5_24'] = '390.00'; arrQty['2000_5.5x8.5_24'] = '416.00'; arrQty['2250_5.5x8.5_24'] = '442.00'; arrQty['2500_5.5x8.5_24'] = '468.00'; arrQty['2750_5.5x8.5_24'] = '494.00'; arrQty['3000_5.5x8.5_24'] = '520.00'; arrQty['3250_5.5x8.5_24'] = '546.00'; arrQty['3500_5.5x8.5_24'] = '572.00'; arrQty['3750_5.5x8.5_24'] = '598.00'; arrQty['4000_5.5x8.5_24'] = '624.00'; arrQty['4250_5.5x8.5_24'] = '643.50'; arrQty['4500_5.5x8.5_24'] = '663.00'; arrQty['4750_5.5x8.5_24'] = '676.00'; arrQty['5000_5.5x8.5_24'] = '702.00'; arrQty['5250_5.5x8.5_24'] = '728.00'; arrQty['5500_5.5x8.5_24'] = '754.00'; arrQty['5750_5.5x8.5_24'] = '780.00'; arrQty['6000_5.5x8.5_24'] = '793.00'; arrQty['6250_5.5x8.5_24'] = '806.00'; arrQty['6500_5.5x8.5_24'] = '838.50'; arrQty['6750_5.5x8.5_24'] = '858.00'; arrQty['7000_5.5x8.5_24'] = '884.00'; arrQty['7250_5.5x8.5_24'] = '910.00'; arrQty['7500_5.5x8.5_24'] = '936.00'; arrQty['7750_5.5x8.5_24'] = '962.00'; arrQty['8000_5.5x8.5_24'] = '988.00'; arrQty['8250_5.5x8.5_24'] = '1014.00'; arrQty['8500_5.5x8.5_24'] = '1040.00'; arrQty['8750_5.5x8.5_24'] = '1059.50'; arrQty['9000_5.5x8.5_24'] = '1079.00'; arrQty['9250_5.5x8.5_24'] = '1098.50'; arrQty['9500_5.5x8.5_24'] = '1118.00'; arrQty['9750_5.5x8.5_24'] = '1137.50'; arrQty['10000_5.5x8.5_24'] = '1163.50'; arrQty['250_5.5x8.5_28'] = '260.00'; arrQty['500_5.5x8.5_28'] = '273.00'; arrQty['750_5.5x8.5_28'] = '292.50'; arrQty['1000_5.5x8.5_28'] = '325.00'; arrQty['1250_5.5x8.5_28'] = '351.00'; arrQty['1500_5.5x8.5_28'] = '370.50'; arrQty['1750_5.5x8.5_28'] = '390.00'; arrQty['2000_5.5x8.5_28'] = '416.00'; arrQty['2250_5.5x8.5_28'] = '442.00'; arrQty['2500_5.5x8.5_28'] = '468.00'; arrQty['2750_5.5x8.5_28'] = '494.00'; arrQty['3000_5.5x8.5_28'] = '520.00'; arrQty['3250_5.5x8.5_28'] = '546.00'; arrQty['3500_5.5x8.5_28'] = '572.00'; arrQty['3750_5.5x8.5_28'] = '598.00'; arrQty['4000_5.5x8.5_28'] = '624.00'; arrQty['4250_5.5x8.5_28'] = '643.50'; arrQty['4500_5.5x8.5_28'] = '663.00'; arrQty['4750_5.5x8.5_28'] = '676.00'; arrQty['5000_5.5x8.5_28'] = '702.00'; arrQty['5250_5.5x8.5_28'] = '728.00'; arrQty['5500_5.5x8.5_28'] = '754.00'; arrQty['5750_5.5x8.5_28'] = '780.00'; arrQty['6000_5.5x8.5_28'] = '793.00'; arrQty['6250_5.5x8.5_28'] = '806.00'; arrQty['6500_5.5x8.5_28'] = '838.50'; arrQty['6750_5.5x8.5_28'] = '858.00'; arrQty['7000_5.5x8.5_28'] = '884.00'; arrQty['7250_5.5x8.5_28'] = '910.00'; arrQty['7500_5.5x8.5_28'] = '936.00'; arrQty['7750_5.5x8.5_28'] = '962.00'; arrQty['8000_5.5x8.5_28'] = '988.00'; arrQty['8250_5.5x8.5_28'] = '1014.00'; arrQty['8500_5.5x8.5_28'] = '1040.00'; arrQty['8750_5.5x8.5_28'] = '1059.50'; arrQty['9000_5.5x8.5_28'] = '1079.00'; arrQty['9250_5.5x8.5_28'] = '1098.50'; arrQty['9500_5.5x8.5_28'] = '1118.00'; arrQty['9750_5.5x8.5_28'] = '1137.50'; arrQty['10000_5.5x8.5_28'] = '1163.50'; arrQty['250_5.5x8.5_32'] = '260.00'; arrQty['500_5.5x8.5_32'] = '273.00'; arrQty['750_5.5x8.5_32'] = '292.50'; arrQty['1000_5.5x8.5_32'] = '325.00'; arrQty['1250_5.5x8.5_32'] = '351.00'; arrQty['1500_5.5x8.5_32'] = '370.50'; arrQty['1750_5.5x8.5_32'] = '390.00'; arrQty['2000_5.5x8.5_32'] = '416.00'; arrQty['2250_5.5x8.5_32'] = '442.00'; arrQty['2500_5.5x8.5_32'] = '468.00'; arrQty['2750_5.5x8.5_32'] = '494.00'; arrQty['3000_5.5x8.5_32'] = '520.00'; arrQty['3250_5.5x8.5_32'] = '546.00'; arrQty['3500_5.5x8.5_32'] = '572.00'; arrQty['3750_5.5x8.5_32'] = '598.00'; arrQty['4000_5.5x8.5_32'] = '624.00'; arrQty['4250_5.5x8.5_32'] = '643.50'; arrQty['4500_5.5x8.5_32'] = '663.00'; arrQty['4750_5.5x8.5_32'] = '676.00'; arrQty['5000_5.5x8.5_32'] = '702.00'; arrQty['5250_5.5x8.5_32'] = '728.00'; arrQty['5500_5.5x8.5_32'] = '754.00'; arrQty['5750_5.5x8.5_32'] = '780.00'; arrQty['6000_5.5x8.5_32'] = '793.00'; arrQty['6250_5.5x8.5_32'] = '806.00'; arrQty['6500_5.5x8.5_32'] = '838.50'; arrQty['6750_5.5x8.5_32'] = '858.00'; arrQty['7000_5.5x8.5_32'] = '884.00'; arrQty['7250_5.5x8.5_32'] = '910.00'; arrQty['7500_5.5x8.5_32'] = '936.00'; arrQty['7750_5.5x8.5_32'] = '962.00'; arrQty['8000_5.5x8.5_32'] = '988.00'; arrQty['8250_5.5x8.5_32'] = '1014.00'; arrQty['8500_5.5x8.5_32'] = '1040.00'; arrQty['8750_5.5x8.5_32'] = '1059.50'; arrQty['9000_5.5x8.5_32'] = '1079.00'; arrQty['9250_5.5x8.5_32'] = '1098.50'; arrQty['9500_5.5x8.5_32'] = '1118.00'; arrQty['9750_5.5x8.5_32'] = '1137.50'; arrQty['10000_5.5x8.5_32'] = '1163.50'; arrQty['250_5.5x8.5_36'] = '260.00'; arrQty['500_5.5x8.5_36'] = '273.00'; arrQty['750_5.5x8.5_36'] = '292.50'; arrQty['1000_5.5x8.5_36'] = '325.00'; arrQty['1250_5.5x8.5_36'] = '351.00'; arrQty['1500_5.5x8.5_36'] = '370.50'; arrQty['1750_5.5x8.5_36'] = '390.00'; arrQty['2000_5.5x8.5_36'] = '416.00'; arrQty['2250_5.5x8.5_36'] = '442.00'; arrQty['2500_5.5x8.5_36'] = '468.00'; arrQty['2750_5.5x8.5_36'] = '494.00'; arrQty['3000_5.5x8.5_36'] = '520.00'; arrQty['3250_5.5x8.5_36'] = '546.00'; arrQty['3500_5.5x8.5_36'] = '572.00'; arrQty['3750_5.5x8.5_36'] = '598.00'; arrQty['4000_5.5x8.5_36'] = '624.00'; arrQty['4250_5.5x8.5_36'] = '643.50'; arrQty['4500_5.5x8.5_36'] = '663.00'; arrQty['4750_5.5x8.5_36'] = '676.00'; arrQty['5000_5.5x8.5_36'] = '702.00'; arrQty['5250_5.5x8.5_36'] = '728.00'; arrQty['5500_5.5x8.5_36'] = '754.00'; arrQty['5750_5.5x8.5_36'] = '780.00'; arrQty['6000_5.5x8.5_36'] = '793.00'; arrQty['6250_5.5x8.5_36'] = '806.00'; arrQty['6500_5.5x8.5_36'] = '838.50'; arrQty['6750_5.5x8.5_36'] = '858.00'; arrQty['7000_5.5x8.5_36'] = '884.00'; arrQty['7250_5.5x8.5_36'] = '910.00'; arrQty['7500_5.5x8.5_36'] = '936.00'; arrQty['7750_5.5x8.5_36'] = '962.00'; arrQty['8000_5.5x8.5_36'] = '988.00'; arrQty['8250_5.5x8.5_36'] = '1014.00'; arrQty['8500_5.5x8.5_36'] = '1040.00'; arrQty['8750_5.5x8.5_36'] = '1059.50'; arrQty['9000_5.5x8.5_36'] = '1079.00'; arrQty['9250_5.5x8.5_36'] = '1098.50'; arrQty['9500_5.5x8.5_36'] = '1118.00'; arrQty['9750_5.5x8.5_36'] = '1137.50'; arrQty['10000_5.5x8.5_36'] = '1163.50'; arrQty['250_8.5x11_40'] = '276.70'; arrQty['500_8.5x11_40'] = '320.58'; arrQty['750_8.5x11_40'] = '352.76'; arrQty['1000_8.5x11_40'] = '413.40'; arrQty['1250_8.5x11_40'] = '435.50'; arrQty['1500_8.5x11_40'] = '507.00'; arrQty['1750_8.5x11_40'] = '565.50'; arrQty['2000_8.5x11_40'] = '600.60'; arrQty['2250_8.5x11_40'] = '646.10'; arrQty['2500_8.5x11_40'] = '694.20'; arrQty['2750_8.5x11_40'] = '743.60'; arrQty['3000_8.5x11_40'] = '787.80'; arrQty['3250_8.5x11_40'] = '835.90'; arrQty['3500_8.5x11_40'] = '881.40'; arrQty['3750_8.5x11_40'] = '928.20'; arrQty['4000_8.5x11_40'] = '975.00'; arrQty['4250_8.5x11_40'] = '1024.40'; arrQty['4500_8.5x11_40'] = '1068.60'; arrQty['4750_8.5x11_40'] = '1120.60'; arrQty['5000_8.5x11_40'] = '1162.20'; arrQty['5250_8.5x11_40'] = '1219.40'; arrQty['5500_8.5x11_40'] = '1255.80'; arrQty['5750_8.5x11_40'] = '1303.90'; arrQty['6000_8.5x11_40'] = '1349.40'; arrQty['6250_8.5x11_40'] = '1392.30'; arrQty['6500_8.5x11_40'] = '1443.13'; arrQty['6750_8.5x11_40'] = '1495.45'; arrQty['7000_8.5x11_40'] = '1537.38'; arrQty['7250_8.5x11_40'] = '1587.11'; arrQty['7500_8.5x11_40'] = '1629.03'; arrQty['7750_8.5x11_40'] = '1680.90'; arrQty['8000_8.5x11_40'] = '1724.58'; arrQty['8250_8.5x11_40'] = '1771.70'; arrQty['8500_8.5x11_40'] = '1817.53'; arrQty['8750_8.5x11_40'] = '1872.45'; arrQty['9000_8.5x11_40'] = '1911.78'; arrQty['9250_8.5x11_40'] = '1955.00'; arrQty['9500_8.5x11_40'] = '2003.43'; arrQty['9750_8.5x11_40'] = '2055.76'; arrQty['10000_8.5x11_40'] = '2098.98'; arrQty['250_5.5x8.5_40'] = '253.50'; arrQty['500_5.5x8.5_40'] = '273.00'; arrQty['750_5.5x8.5_40'] = '292.50'; arrQty['1000_5.5x8.5_40'] = '319.80'; arrQty['1250_5.5x8.5_40'] = '338.00'; arrQty['1500_5.5x8.5_40'] = '366.60'; arrQty['1750_5.5x8.5_40'] = '391.30'; arrQty['2000_5.5x8.5_40'] = '413.40'; arrQty['2250_5.5x8.5_40'] = '442.00'; arrQty['2500_5.5x8.5_40'] = '460.20'; arrQty['2750_5.5x8.5_40'] = '494.00'; arrQty['3000_5.5x8.5_40'] = '507.78'; arrQty['3250_5.5x8.5_40'] = '526.50'; arrQty['3500_5.5x8.5_40'] = '553.80'; arrQty['3750_5.5x8.5_40'] = '560.30'; arrQty['4000_5.5x8.5_40'] = '601.38'; arrQty['4250_5.5x8.5_40'] = '630.50'; arrQty['4500_5.5x8.5_40'] = '648.18'; arrQty['4750_5.5x8.5_40'] = '676.00'; arrQty['5000_5.5x8.5_40'] = '694.98'; arrQty['5250_5.5x8.5_40'] = '717.60'; arrQty['5500_5.5x8.5_40'] = '741.78'; arrQty['5750_5.5x8.5_40'] = '763.10'; arrQty['6000_5.5x8.5_40'] = '788.58'; arrQty['6250_5.5x8.5_40'] = '806.00'; arrQty['6500_5.5x8.5_40'] = '835.38'; arrQty['6750_5.5x8.5_40'] = '858.00'; arrQty['7000_5.5x8.5_40'] = '882.18'; arrQty['7250_5.5x8.5_40'] = '910.00'; arrQty['7500_5.5x8.5_40'] = '928.98'; arrQty['7750_5.5x8.5_40'] = '949.00'; arrQty['8000_5.5x8.5_40'] = '975.78'; arrQty['8250_5.5x8.5_40'] = '988.00'; arrQty['8500_5.5x8.5_40'] = '1022.58'; arrQty['8750_5.5x8.5_40'] = '1038.18'; arrQty['9000_5.5x8.5_40'] = '1079.00'; arrQty['9250_5.5x8.5_40'] = '1098.50'; arrQty['9500_5.5x8.5_40'] = '1118.00'; arrQty['9750_5.5x8.5_40'] = '1137.50'; arrQty['10000_5.5x8.5_40'] = '1163.50'; return arrQty[quantity + '_' + size + '_' + pages]; } function getCoverPrice() { var d=document.quoteform; var quantity=d.quantity.value; var c=Math.ceil(quantity/1000); var fcol=getValue('covercolor1'); var bcol=getValue('covercolor2'); var inkcol=fcol+"/"+bcol; var inside_paper_inkcol; switch (getValue('insidecolor')) { case "4": inside_paper_inkcol="4/4"; break; case "2": inside_paper_inkcol="2/2"; break; case "1": inside_paper_inkcol="1/1"; break; default: "4/4"; break; } // alert ("inside_paper_inkcol: " + inside_paper_inkcol); var cost=0.00; var arrCoverprice=new Array(); switch (inkcol) { case "4/4": arrCoverprice["1"]="126.00"; arrCoverprice["2"]="125.00"; arrCoverprice["3"]="124.00"; arrCoverprice["4"]="123.00"; arrCoverprice["5"]="122.00"; arrCoverprice["6"]="121.00"; arrCoverprice["7"]="120.00"; arrCoverprice["8"]="119.00"; arrCoverprice["9"]="118.00"; arrCoverprice["10"]="117.00"; arrCoverprice["11"]="126.00"; arrCoverprice["12"]="125.00"; arrCoverprice["13"]="124.00"; arrCoverprice["14"]="123.00"; arrCoverprice["15"]="122.00"; arrCoverprice["16"]="121.00"; arrCoverprice["17"]="120.00"; arrCoverprice["18"]="119.00"; arrCoverprice["19"]="118.00"; arrCoverprice["20"]="117.00"; break; case "4/2": arrCoverprice["1"]="125.00"; arrCoverprice["2"]="124.00"; arrCoverprice["3"]="123.00"; arrCoverprice["4"]="122.00"; arrCoverprice["5"]="122.00"; arrCoverprice["6"]="122.00"; arrCoverprice["7"]="122.00"; arrCoverprice["8"]="121.00"; arrCoverprice["9"]="121.00"; arrCoverprice["10"]="120.00"; arrCoverprice["11"]="125.00"; arrCoverprice["12"]="124.00"; arrCoverprice["13"]="123.00"; arrCoverprice["14"]="123.00"; arrCoverprice["15"]="122.00"; arrCoverprice["16"]="122.00"; arrCoverprice["17"]="122.00"; arrCoverprice["18"]="121.00"; arrCoverprice["19"]="120.00"; arrCoverprice["20"]="120.00"; break; case "4/1": arrCoverprice["1"]="121.00"; arrCoverprice["2"]="121.00"; arrCoverprice["3"]="120.00"; arrCoverprice["4"]="120.00"; arrCoverprice["5"]="119.00"; arrCoverprice["6"]="118.00"; arrCoverprice["7"]="116.00"; arrCoverprice["8"]="116.00"; arrCoverprice["9"]="116.00"; arrCoverprice["10"]="115.00"; arrCoverprice["11"]="121.00"; arrCoverprice["12"]="120.50"; arrCoverprice["13"]="120.00"; arrCoverprice["14"]="119.50"; arrCoverprice["15"]="119.00"; arrCoverprice["16"]="118.50"; arrCoverprice["17"]="118.00"; arrCoverprice["18"]="117.50"; arrCoverprice["19"]="117.00"; arrCoverprice["20"]="116.00"; break; case "4/0": break; case "2/2": arrCoverprice["1"]="121.00"; arrCoverprice["2"]="120.00"; arrCoverprice["3"]="120.00"; arrCoverprice["4"]="119.00"; arrCoverprice["5"]="119.00"; arrCoverprice["6"]="119.00"; arrCoverprice["7"]="118.00"; arrCoverprice["8"]="118.00"; arrCoverprice["9"]="117.00"; arrCoverprice["10"]="116.00"; arrCoverprice["11"]="121.00"; arrCoverprice["12"]="120.50"; arrCoverprice["13"]="120.00"; arrCoverprice["14"]="119.50"; arrCoverprice["15"]="119.00"; arrCoverprice["16"]="118.50"; arrCoverprice["17"]="118.00"; arrCoverprice["18"]="117.50"; arrCoverprice["19"]="117.00"; arrCoverprice["20"]="116.50"; break; case "2/1": arrCoverprice["1"]="112.00"; arrCoverprice["2"]="111.00"; arrCoverprice["3"]="110.00"; arrCoverprice["4"]="110.00"; arrCoverprice["5"]="110.00"; arrCoverprice["6"]="110.00"; arrCoverprice["7"]="110.00"; arrCoverprice["8"]="109.00"; arrCoverprice["9"]="108.00"; arrCoverprice["10"]="109.00"; arrCoverprice["11"]="112.00"; arrCoverprice["12"]="111.50"; arrCoverprice["13"]="111.00"; arrCoverprice["14"]="110.50"; arrCoverprice["15"]="110.00"; arrCoverprice["16"]="109.50"; arrCoverprice["17"]="109.00"; arrCoverprice["18"]="108.50"; arrCoverprice["19"]="108.00"; arrCoverprice["20"]="108.00"; break; case "2/0": arrCoverprice["1"]="80.00"; arrCoverprice["2"]="81.00"; arrCoverprice["3"]="82.00"; arrCoverprice["4"]="83.00"; arrCoverprice["5"]="84.00"; arrCoverprice["6"]="85.00"; arrCoverprice["7"]="86.00"; arrCoverprice["8"]="87.00"; arrCoverprice["9"]="88.00"; arrCoverprice["10"]="89.00"; arrCoverprice["11"]="80.00"; arrCoverprice["12"]="81.00"; arrCoverprice["13"]="82.00"; arrCoverprice["14"]="83.00"; arrCoverprice["15"]="84.00"; arrCoverprice["16"]="85.00"; arrCoverprice["17"]="86.00"; arrCoverprice["18"]="87.00"; arrCoverprice["19"]="88.00"; arrCoverprice["20"]="89.00"; break; case "1/1": arrCoverprice["1"]="86.00"; arrCoverprice["2"]="87.00"; arrCoverprice["3"]="88.00"; arrCoverprice["4"]="89.00"; arrCoverprice["5"]="90.00"; arrCoverprice["6"]="91.00"; arrCoverprice["7"]="90.00"; arrCoverprice["8"]="90.00"; arrCoverprice["9"]="90.00"; arrCoverprice["10"]="90.00"; arrCoverprice["11"]="86.00"; arrCoverprice["12"]="86.50"; arrCoverprice["13"]="87.00"; arrCoverprice["14"]="87.50"; arrCoverprice["15"]="88.00"; arrCoverprice["16"]="88.50"; arrCoverprice["17"]="89.00"; arrCoverprice["18"]="89.50"; arrCoverprice["19"]="90.00"; arrCoverprice["20"]="90.50"; break; case "1/0": arrCoverprice["1"]="69.00"; arrCoverprice["2"]="70.00"; arrCoverprice["3"]="71.00"; arrCoverprice["4"]="72.00"; arrCoverprice["5"]="73.00"; arrCoverprice["6"]="74.00"; arrCoverprice["7"]="75.00"; arrCoverprice["8"]="76.00"; arrCoverprice["9"]="77.00"; arrCoverprice["10"]="78.00"; arrCoverprice["11"]="69.00"; arrCoverprice["12"]="70.00"; arrCoverprice["13"]="71.00"; arrCoverprice["14"]="72.00"; arrCoverprice["15"]="73.00"; arrCoverprice["16"]="74.00"; arrCoverprice["17"]="75.00"; arrCoverprice["18"]="76.00"; arrCoverprice["19"]="77.00"; arrCoverprice["20"]="78.00"; break; } cost=arrCoverprice[c]; if(!isNaN(cost)){val=currencyFormat(cost);} else {cost=0;} return cost; } function getInsidePrice() { var d=document.quoteform; var quantity=d.quantity.value; var c=Math.ceil(quantity/1000); var fcol=getValue('covercolor1'); var bcol=getValue('covercolor2'); var inkcol=fcol+"/"+bcol; var inside_paper_inkcol; switch (getValue('insidecolor')) { case "4": inside_paper_inkcol="4/4"; break; case "2": inside_paper_inkcol="2/2"; break; case "1": case "0": inside_paper_inkcol="1/1"; break; default: "4/4"; break; } var cost=0.00; var arrInsideprice=new Array(); switch (inside_paper_inkcol) { case "4/4": arrInsideprice["1"]="126.00"; arrInsideprice["2"]="125.00"; arrInsideprice["3"]="124.00"; arrInsideprice["4"]="123.00"; arrInsideprice["5"]="122.00"; arrInsideprice["6"]="121.00"; arrInsideprice["7"]="120.00"; arrInsideprice["8"]="119.00"; arrInsideprice["9"]="118.00"; arrInsideprice["10"]="117.00"; arrInsideprice["11"]="126.00"; arrInsideprice["12"]="125.00"; arrInsideprice["13"]="124.00"; arrInsideprice["14"]="123.00"; arrInsideprice["15"]="122.00"; arrInsideprice["16"]="121.00"; arrInsideprice["17"]="120.00"; arrInsideprice["18"]="119.00"; arrInsideprice["19"]="118.00"; arrInsideprice["20"]="117.00"; break; case "4/2": break; case "4/1": break; case "4/0": break; case "2/2": arrInsideprice["1"]="127.00"; arrInsideprice["2"]="126.00"; arrInsideprice["3"]="125.00"; arrInsideprice["4"]="124.00"; arrInsideprice["5"]="123.50"; arrInsideprice["6"]="123.00"; arrInsideprice["7"]="122.00"; arrInsideprice["8"]="121.00"; arrInsideprice["9"]="121.00"; arrInsideprice["10"]="120.00"; arrInsideprice["11"]="127.00"; arrInsideprice["12"]="126.00"; arrInsideprice["13"]="125.00"; arrInsideprice["14"]="124.00"; arrInsideprice["15"]="123.00"; arrInsideprice["16"]="122.00"; arrInsideprice["17"]="121.00"; arrInsideprice["18"]="120.00"; arrInsideprice["19"]="119.00"; arrInsideprice["20"]="118.00"; break; case "2/1": break; case "2/0": break; case "1/1": arrInsideprice["1"]="87.00"; arrInsideprice["2"]="88.00"; arrInsideprice["3"]="89.00"; arrInsideprice["4"]="89.00"; arrInsideprice["5"]="89.00"; arrInsideprice["6"]="90.00"; arrInsideprice["7"]="90.00"; arrInsideprice["8"]="90.00"; arrInsideprice["9"]="91.00"; arrInsideprice["10"]="92.00"; arrInsideprice["11"]="87.00"; arrInsideprice["12"]="87.50"; arrInsideprice["13"]="88.00"; arrInsideprice["14"]="88.50"; arrInsideprice["15"]="89.00"; arrInsideprice["16"]="89.50"; arrInsideprice["17"]="90.00"; arrInsideprice["18"]="91.50"; arrInsideprice["19"]="92.00"; arrInsideprice["20"]="92.50"; break; case "1/0": case "0/0": break; } cost=arrInsideprice[c]; if(!isNaN(cost)){val=currencyFormat(cost);} else {cost=0;} return cost; } function getMailPrice(quantity,size){ var arrMailPrice = Array(); var selectedQuantity = 0; var qtyArray = new Array("500","1000","2000","2500","3000","4000","5000","6000","7000","8000","9000","10000","11000","12000","13000","14000","15000","16000","17000","18000","19000","20000","25000","28000","34000","40000","50000","100000"); var len = qtyArray.length; arrMailPrice['500_8.5x11'] = '406.00'; arrMailPrice['1000_8.5x11'] = '659.00'; arrMailPrice['2000_8.5x11'] = '1165.00'; arrMailPrice['2500_8.5x11'] = '1418.00'; arrMailPrice['3000_8.5x11'] = '1671.00'; arrMailPrice['4000_8.5x11'] = '2177.00'; arrMailPrice['5000_8.5x11'] = '2683.00'; arrMailPrice['6000_8.5x11'] = '3189.00'; arrMailPrice['7000_8.5x11'] = '3600.50'; arrMailPrice['8000_8.5x11'] = '4093.00'; arrMailPrice['9000_8.5x11'] = '4585.50'; arrMailPrice['10000_8.5x11'] = '5078.00'; arrMailPrice['11000_8.5x11'] = '5570.50'; arrMailPrice['12000_8.5x11'] = '6063.00'; arrMailPrice['13000_8.5x11'] = '6555.50'; arrMailPrice['14000_8.5x11'] = '7048.00'; arrMailPrice['15000_8.5x11'] = '7540.50'; arrMailPrice['16000_8.5x11'] = '8033.00'; arrMailPrice['17000_8.5x11'] = '8525.50'; arrMailPrice['18000_8.5x11'] = '9018.00'; arrMailPrice['19000_8.5x11'] = '9510.50'; arrMailPrice['20000_8.5x11'] = '10003.00'; arrMailPrice['25000_8.5x11'] = '0.00'; arrMailPrice['28000_8.5x11'] = '0.00'; arrMailPrice['34000_8.5x11'] = '0.00'; arrMailPrice['40000_8.5x11'] = '0.00'; arrMailPrice['50000_8.5x11'] = '0.00'; arrMailPrice['100000_8.5x11'] = '0.00'; arrMailPrice['500_5.5x8.5'] = '388.00'; arrMailPrice['1000_5.5x8.5'] = '623.00'; arrMailPrice['2000_5.5x8.5'] = '1093.00'; arrMailPrice['2500_5.5x8.5'] = '1328.00'; arrMailPrice['3000_5.5x8.5'] = '1563.00'; arrMailPrice['4000_5.5x8.5'] = '2033.00'; arrMailPrice['5000_5.5x8.5'] = '2503.00'; arrMailPrice['6000_5.5x8.5'] = '2973.00'; arrMailPrice['7000_5.5x8.5'] = '3443.00'; arrMailPrice['8000_5.5x8.5'] = '3913.00'; arrMailPrice['9000_5.5x8.5'] = '4383.00'; arrMailPrice['10000_5.5x8.5'] = '4853.00'; arrMailPrice['11000_5.5x8.5'] = '5323.00'; arrMailPrice['12000_5.5x8.5'] = '5793.00'; arrMailPrice['13000_5.5x8.5'] = '6263.00'; arrMailPrice['14000_5.5x8.5'] = '6733.00'; arrMailPrice['15000_5.5x8.5'] = '7203.00'; arrMailPrice['16000_5.5x8.5'] = '7673.00'; arrMailPrice['17000_5.5x8.5'] = '8143.00'; arrMailPrice['18000_5.5x8.5'] = '8613.00'; arrMailPrice['19000_5.5x8.5'] = '9083.00'; arrMailPrice['20000_5.5x8.5'] = '9553.00'; arrMailPrice['25000_5.5x8.5'] = '0.00'; arrMailPrice['28000_5.5x8.5'] = '0.00'; arrMailPrice['34000_5.5x8.5'] = '0.00'; arrMailPrice['40000_5.5x8.5'] = '0.00'; arrMailPrice['50000_5.5x8.5'] = '0.00'; arrMailPrice['100000_5.5x8.5'] = '0.00'; for (var i=0; i < len; i++){ if(parseInt(quantity) <= parseInt(qtyArray[i])){ selectedQuantity = qtyArray[i]; break; } } if(selectedQuantity == 0) selectedQuantity = qtyArray[len - 1]; mailprice = parseFloat(arrMailPrice[selectedQuantity + "_" + size]); return mailprice; } function getPagesMultiplier() { var d=document.quoteform; var quantity=d.quantity.value; var pages=d.pages.value; var c=Math.ceil(quantity/1000); var val=0.00; var arrPagesprice=new Array(); switch (pages) { case "8": arrPagesprice["1"]="1.00"; arrPagesprice["2"]="1.00"; arrPagesprice["3"]="1.00"; arrPagesprice["4"]="1.00"; arrPagesprice["5"]="1.00"; arrPagesprice["6"]="1.00"; arrPagesprice["7"]="1.00"; arrPagesprice["8"]="1.00"; arrPagesprice["9"]="1.00"; arrPagesprice["10"]="1.00"; break; case "12": arrPagesprice["1"]="2.00"; arrPagesprice["2"]="2.00"; arrPagesprice["3"]="2.00"; arrPagesprice["4"]="2.00"; arrPagesprice["5"]="2.00"; arrPagesprice["6"]="2.00"; arrPagesprice["7"]="2.00"; arrPagesprice["8"]="2.00"; arrPagesprice["9"]="2.00"; arrPagesprice["10"]="2.00"; break; case "16": arrPagesprice["1"]="3.00"; arrPagesprice["2"]="3.00"; arrPagesprice["3"]="3.00"; arrPagesprice["4"]="3.00"; arrPagesprice["5"]="3.00"; arrPagesprice["6"]="3.00"; arrPagesprice["7"]="3.00"; arrPagesprice["8"]="3.00"; arrPagesprice["9"]="3.00"; arrPagesprice["10"]="3.00"; break; case "20": arrPagesprice["1"]="4.00"; arrPagesprice["2"]="4.00"; arrPagesprice["3"]="4.00"; arrPagesprice["4"]="4.00"; arrPagesprice["5"]="4.00"; arrPagesprice["6"]="4.00"; arrPagesprice["7"]="4.00"; arrPagesprice["8"]="4.00"; arrPagesprice["9"]="4.00"; arrPagesprice["10"]="4.00"; break; case "24": arrPagesprice["1"]="5.00"; arrPagesprice["2"]="5.00"; arrPagesprice["3"]="5.00"; arrPagesprice["4"]="5.00"; arrPagesprice["5"]="5.00"; arrPagesprice["6"]="5.00"; arrPagesprice["7"]="5.00"; arrPagesprice["8"]="5.00"; arrPagesprice["9"]="5.00"; arrPagesprice["10"]="5.00"; break; case "28": arrPagesprice["1"]="6.00"; arrPagesprice["2"]="6.00"; arrPagesprice["3"]="6.00"; arrPagesprice["4"]="6.00"; arrPagesprice["5"]="6.00"; arrPagesprice["6"]="6.00"; arrPagesprice["7"]="6.00"; arrPagesprice["8"]="6.00"; arrPagesprice["9"]="6.00"; arrPagesprice["10"]="6.00"; break; case "32": arrPagesprice["1"]="7.00"; arrPagesprice["2"]="7.00"; arrPagesprice["3"]="7.00"; arrPagesprice["4"]="7.00"; arrPagesprice["5"]="7.00"; arrPagesprice["6"]="7.00"; arrPagesprice["7"]="7.00"; arrPagesprice["8"]="7.00"; arrPagesprice["9"]="7.00"; arrPagesprice["10"]="7.00"; break; case "36": arrPagesprice["1"]="7.00"; arrPagesprice["2"]="7.00"; arrPagesprice["3"]="7.00"; arrPagesprice["4"]="7.00"; arrPagesprice["5"]="7.00"; arrPagesprice["6"]="7.00"; arrPagesprice["7"]="7.00"; arrPagesprice["8"]="7.00"; arrPagesprice["9"]="7.00"; arrPagesprice["10"]="7.00"; break; case "40": arrPagesprice["1"]="8.00"; arrPagesprice["2"]="8.00"; arrPagesprice["3"]="8.00"; arrPagesprice["4"]="8.00"; arrPagesprice["5"]="10.00"; arrPagesprice["6"]="8.00"; arrPagesprice["7"]="8.00"; arrPagesprice["8"]="8.00"; arrPagesprice["9"]="8.00"; arrPagesprice["10"]="8.00"; break; } val=arrPagesprice[c]; if(!isNaN(val)){val=currencyFormat(val);} else {val=0;} return val; } function isDefaultColor(color){ var arrDefaultsColors = new Array (); for (i=0;i < arrDefaultsColors.length ; i ++ ){ if (arrDefaultsColors[i] == color){ return true; } } return false; } function setChangeFrontImage() { var d=document.quoteform; var img; var front_ink=getValue('covercolor1'); switch(front_ink) { case "4": img=brochure4col; d.coverpms1.value=""; d.coverpms2.value=""; break; case "2": img=brochure2col; break; case "1": img=brochure1col; break; default: img=brochure4col; } //d.frontimage.src =img; disableBackColorRadio("1"); var back_ink=getValue('covercolor2'); switch(back_ink) { case "4": img=brochure4col; break; case "2": img=brochure2col; break; case "1": img=brochure1col; break; case "0": img=brochurenone; break; case "black": img=brochuregary; break; default: img=brochure4col; } //d.backimage.src =img; var inside_ink=getValue('insidecolor'); switch(inside_ink) { case "4": img=brochure4col; d.insidepms1.value=""; d.insidepms2.value=""; break; case "2": img=brochure2col; break; case "1": img=brochure1col; d.insidepms2.value=""; break; case "0": img=brochurenone; d.insidepms1.value=""; d.insidepms2.value=""; break; case "black": img=brochuregary; d.insidepms1.value=""; d.insidepms2.value=""; break; default: img=brochure4col; } //d.frontimage2.src =img; disableBackColorRadio("2"); basicPriceCal(); } function setDefaults(){ disableBackColorRadio(); disableBackColorRadio(1); setEditValues(); } function setColorPrice() { var d =document.quoteform; var cost =0.00; var pms1=d.coverpms1.value; var pms2=d.coverpms2.value; var ipms1=d.insidepms1.value; var ipms2=d.insidepms2.value; var colorcost =0.00; colorcost = '50.00'; if(pms1!="" && ! isDefaultColor(pms1)) cost=cost+parseFloat(colorcost); if(pms2!="" && ! isDefaultColor(pms2)) cost=parseFloat(colorcost)+parseFloat(cost); if(ipms1!="" && ! isDefaultColor(ipms1)) cost=cost+parseFloat(colorcost); if(ipms2!="" && ! isDefaultColor(ipms2)) cost=parseFloat(colorcost)+parseFloat(cost); if(!isNaN(cost)){ d.pmsprice.value=currencyFormat(cost); } } function setFoldPrice() { var d=document.quoteform; var quantity = d.quantity.value; var fold = parseInt(getValue('fold'))+1; var b=Math.ceil(quantity/1000); var arrFoldingprice=new Array(); var cost=0.00; if (fold=="6") { d.foldprice.value= currencyFormat(0.00); } if (fold=="7") { d.foldprice.value= currencyFormat(50.00); } if (fold=="8") { d.foldprice.value= currencyFormat(65.00); } } function setPaperStock() { var d = document.quoteform; var quantity = d.quantity.value; var c = (quantity/1000); var size = getValue('size'); var pstockcover = d.coverstock.value; var pstockinside = d.insidestock.value; var cost = 0.00; var pstockcost = 0.00; var pstockcovercost = 0.00; var pstockinsidecost = 0.00; var insidepages = (d.pages.value-4) / 4; var arrPStockCover = new Array (); var arrPStockInside = new Array (); if(size=="5.5x8.5") { arrPStockCover["6"]="9.00"; arrPStockCover["7"]="125.00"; arrPStockCover["8"]="155.00"; arrPStockCover["9"]="-13.00"; arrPStockCover["10"]="0.00"; arrPStockInside["6"]="15.00"; arrPStockInside["7"]="75.00"; arrPStockInside["8"]="125.00"; arrPStockInside["9"]="-13.00"; arrPStockInside["10"]="0.00"; } else if(size=="8.5x11") { arrPStockCover["6"]="17.00"; arrPStockCover["7"]="135.00"; arrPStockCover["8"]="185.00"; arrPStockCover["9"]="-20.00"; arrPStockCover["10"]="0.00"; arrPStockInside["6"]="20.00"; arrPStockInside["7"]="85.00"; arrPStockInside["8"]="135.00"; arrPStockInside["9"]="-20.00"; arrPStockInside["10"]="0.00"; } pstockcovercost=arrPStockCover[pstockcover]; pstockinsidecost=arrPStockInside[pstockinside]; //alert(pstockcovercost + " , " + pstockinsidecost); if(!isNaN(pstockcovercost)) { val=currencyFormat(pstockcovercost); } else { pstockcovercost=0; } if(!isNaN(pstockinsidecost)) { val=currencyFormat(pstockinsidecost); } else { pstockinsidecost=0; } pstockcost=parseFloat(pstockcovercost) + parseFloat(pstockinsidecost * insidepages); cost=parseFloat(pstockcost)*parseFloat(c); if(!isNaN(cost)){ d.coverstockprice.value=currencyFormat(cost); //d.coverstock.value=currencyFormat(cost); } } function setProofPricePages() { var d = document.quoteform; var pages = parseInt(d.pages.value) / 4; var cost=0.00; var proof = parseInt(getValue('proof'))+1; var size = getValue('size'); if ( proof=="3" ) { if ( pages == 1 ) { cost = 45.00; } else { cost = parseFloat(pages) * 40.00; if(size == '5.5x8.5') cost = cost * 1; else cost = cost * 2; } } if ( !isNaN(cost) ) { d.proofprice.value = currencyFormat(cost); } } function sumTotal(){ var d=document.quoteform; var quantity=d.quantity.value; var args = upsellParams(arguments); if(args[0] && args[0]>0) quantity = args[0]; var size=getValue('size'); var pages=d.pages.value; var insidepaper=d.insidestock.value; var fcol=getValue('covercolor1'); var mailquantity = getValue('mailquantity'); var mailservice = getValue('mailservice'); var bcol=getValue('covercolor2'); var inkcol=fcol+"/"+bcol; var proof=getValue('proof'); var a=Math.floor(quantity/1000); var b=pages/4; var baseprice=-1; var fold = getValue('fold'); setProofPricePages(); //setColorPrice(); setPaperStock(); setFoldPrice(); if(quantity!="" && pages!="") { baseprice= getBasePrice(quantity,size,inkcol); if(isNaN(baseprice)) { baseprice=0; } coverprice=baseprice*getCoverPrice()/100; insideprice=baseprice*getInsidePrice()/100; //console.log(inkcol); pagesprice=getPagesMultiplier(); if (inkcol=="4/0") { baseprice=parseFloat(baseprice) + (insideprice*pagesprice); } else { baseprice=coverprice + (insideprice*pagesprice); } } if(mailservice == "Yes"){ if(mailquantity == 0){ mailprice = 0; }else{ mailprice = getMailPrice(mailquantity,size); } }else{ mailprice = 0; } //alert(mailprice); if(!isNaN(baseprice)) {d.baseprice.value=currencyFormat(baseprice);} else { d.baseprice.value=currencyFormat(0);} tot=0.00; if( parseInt(d.baseprice.value)<0) d.baseprice.value=currencyFormat(0); if(!isNaN(mailprice)) { d.mailprice.value = currencyFormat(mailprice); } tot+=parseFloat(d.baseprice.value); tot+=parseFloat(d.pmsprice.value); tot+=parseFloat(d.coverstockprice.value); tot+=parseFloat(d.foldprice.value); tot+=parseFloat(d.proofprice.value); tot += parseFloat(d.mailprice.value); //alert(tot); if(!isNaN(tot)) d.totalprice.value=currencyFormat(tot); if(parseInt(tot)<=0) d.totalprice.value=currencyFormat(0); if(args[1]) return getValue('totalprice');doupsell(); gtot=0.00; gtot+=parseFloat(d.shippingcost.value); gtot+=parseFloat(d.totalprice.value); d.grandtotal.value = currencyFormat(gtot); if((d.totalprice.value!="" || !isNaN(d.totalprice.value))) pts_tot = d.totalprice.value; if(d.totalprice.value=="" ) pts_tot =0; d.pts.value = parseInt(parseFloat(pts_tot)); } function validateForm() { var d = document.quoteform; str = ""; if (d.quantity.options[d.quantity.selectedIndex].value=="") { str += "-Missing quantity\n"; } if (d.pages.options[d.pages.selectedIndex].value=="") { str += "-Missing Number of pages\n"; } if (d.coverstock.selectedIndex == 0) { str += "-Missing Cover Paper Stock\n"; } if (d.insidestock.selectedIndex == 0 && d.pages.selectedIndex != 1) { str += "-Missing Inside Paper Stock\n"; } if (d.zip.value=="") { str += "-Missing zipcode\n"; } if (str != "") { alert("The following fields are missing or have errors:\n"+str); return false; } return true; } function setEditValues(){ setValue('baseprice', '0.00'); setValue('proofprice', '0.00'); setValue('mailprice', '0.00'); setValue('totalprice', '0.00'); }