function setCoverColor(sel,num) { if ( $(sel).val() != 'Select One' ) { $('input[name="covercolor1"][value="' + num + '"]').prop('checked', true); } if ( num == 2 && $(sel).val() == 'Select One' ) { $('input[name="covercolor1"][value="1"]').prop('checked', true); } } function setFoilEmboss() { var coverpms1 = $('input[name="coverpms1"]'); var coverpms2 = $('input[name="coverpms2"]'); var foiler = $('select[name="foiler"]').val(); var embosser = $('select[name="embosser"]').val(); coverpms1.val(''); coverpms2.val(''); $('#twocol').val(''); $('#twocol2').val(''); $('input[name="covercolor1"][value="1"]').prop('checked', false); $('input[name="covercolor1"][value="2"]').prop('checked', false); if ( foiler == '' ) { if ( embosser != '' ) { coverpms1.val(embosser); $('#twocol').val(embosser); $('input[name="covercolor1"][value="1"]').prop('checked', true); } } else { $('#twocol').val('Foil'); coverpms1.val(foiler); if ( embosser != '' ) { coverpms2.val(embosser); $('#twocol2').val(embosser); $('input[name="covercolor1"][value="2"]').prop('checked', true); } else { coverpms2.val(''); $('#twocol2').val(''); $('input[name="covercolor1"][value="1"]').prop('checked', true); } } } var isEdit=false; var val_string = "quantity,size,coverstock"; var response_string = "Quantity,Size,Paper Stock"; shippingmethod_id = 0; function basicPriceCal() { if(getValue('zip') == ''){ sumTotal(); }else{ if(!(getValue('coverstock') == '' || getValue('quantity') == '' || getValue('size') == '')){ //make sure values are different from previous before calculating shipping again. calcShipping(); sumTotal(); }else{ sumTotal(); } } turnAroundTime(); } function turnAroundTime() { setValue('turnaroundtime', '10 days Printing'); setValue('turnaroundtime2', ''); } function changeImage(){ var sel = document.quoteform.papercolor[document.quoteform.papercolor.selectedIndex].value; switch(sel){ case '0': document.images.pmsimage.src = "images/pmsnone.gif"; break; case 'White': document.images.pmsimage.src = "images/white.gif"; break; case 'Blue': document.images.pmsimage.src = "images/blue.gif"; break; case 'Red': document.images.pmsimage.src = "images/red.gif"; break; case 'Black': document.images.pmsimage.src = "images/black_linen.gif"; break; case 'Dark Blue': document.images.pmsimage.src = "images/blue_linen.jpg"; break; case 'Dark Red': document.images.pmsimage.src = "images/red_linen.jpg"; break; case 'Dark Grey': document.images.pmsimage.src = "images/gray_linen.gif"; break; case 'Dark Green': document.images.pmsimage.src = "images/green_linen.gif"; break; case 'GreenbrierFelt': document.images.pmsimage.src = "images/green_felt.jpg"; break; case 'New Black': document.images.pmsimage.src = "images/black_linen.gif"; break; } basicPriceCal(); } function fnOperation() { if(!is_radio(document.quoteform.covercolor1)) return; if(document.quoteform.covercolor1[0].checked) { restore(); document.quoteform.twocol.disabled = true; document.quoteform.twocol2.disabled = true; operationchange(1); //foilSpot(); } if(document.quoteform.covercolor1[1].checked) { restore(); document.quoteform.onecol.disabled = true; operationchange(1); //foilSpot(); } if(document.quoteform.covercolor1[2].checked) { restore(); document.quoteform.twocol.disabled = true; document.quoteform.twocol2.disabled = true; document.quoteform.onecol.disabled = true; operationchange(2); //foilSpot(); } basicPriceCal(); } function foilSpot() { d=document.quoteform; document.getElementById("selfoil1").style.display = 'none'; document.getElementById("selfoil2").style.display = 'none'; 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'; document.getElementById("colorchart").style.display = 'none'; document.getElementById("Gold1").style.display = 'none'; document.getElementById("Silver1").style.display = 'none'; document.getElementById("Gold2").style.display = 'none'; document.getElementById("Silver2").style.display = 'none'; if (d.covercolor1[0].checked) { if(d.onecol[d.onecol.selectedIndex].value=='Foil') { document.getElementById("tpms1").style.display='block'; document.getElementById("tpms2").style.display = 'none'; document.getElementById("selpms1").style.display = 'none'; document.getElementById("selpms2").style.display = 'none'; document.getElementById("pmstext").style.display = 'none'; document.getElementById("selfoil1").style.display='block'; document.getElementById("selfoil2").style.display = 'none'; } else if (d.onecol[d.onecol.selectedIndex].value=='Spot Color') { document.getElementById("tpms1").style.display='block'; document.getElementById("selpms1").style.display='block'; document.getElementById("pmstext").style.display='block'; document.getElementById("colorchart").style.display='block'; document.getElementById("tpms2").style.display = 'none'; document.getElementById("selpms2").style.display = 'none'; document.getElementById("selfoil1").style.display = 'none'; document.getElementById("selfoil2").style.display = 'none'; }else if (d.onecol[d.onecol.selectedIndex].value=='Embossed'){ setValue('coverpms1', 'Embossed'); } else { d.coverpms1.value=""; d.coverpms2.value=""; } d.twocol.selectedIndex=0; d.twocol2.selectedIndex=0; } else if(d.covercolor1[1].checked) { if(d.twocol[d.twocol.selectedIndex].value=='Foil') { document.getElementById("tpms1").style.display='block'; document.getElementById("selpms1").style.display = 'none'; document.getElementById("pmstext").style.display = 'none'; document.getElementById("colorchart").style.display = 'none'; document.getElementById("selfoil1").style.display='block'; } else if (d.twocol[d.twocol.selectedIndex].value=='Spot Color') { document.getElementById("tpms1").style.display='block'; document.getElementById("selpms1").style.display='block'; document.getElementById("pmstext").style.display='block'; document.getElementById("colorchart").style.display='none'; document.getElementById("selfoil1").style.display = 'none'; }else if (d.twocol[d.twocol.selectedIndex].value=='Embossed'){ setValue('coverpms1', 'Embossed'); } else { d.coverpms1.value=""; d.coverpms2.value=""; } if(d.twocol2[d.twocol2.selectedIndex].value=='Foil') { document.getElementById("tpms2").style.display='block'; document.getElementById("selpms2").style.display = 'none'; document.getElementById("pmstext").style.display = 'none'; document.getElementById("colorchart").style.display = 'none'; document.getElementById("selfoil2").style.display='block'; } else if (d.twocol2[d.twocol2.selectedIndex].value=='Spot Color') { document.getElementById("tpms2").style.display='block'; document.getElementById("selpms2").style.display='block'; document.getElementById("pmstext").style.display='block'; document.getElementById("colorchart").style.display='none'; document.getElementById("selfoil2").style.display = 'none'; }else if (d.twocol2[d.twocol2.selectedIndex].value=='Embossed'){ setValue('coverpms2', 'Embossed'); } else { d.coverpms1.value=""; d.coverpms2.value=""; } d.onecol.selectedIndex=0; } else if(d.covercolor1[2].checked) { 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'; document.getElementById("colorchart").style.display = 'none'; document.getElementById("selfoil1").style.display = 'none'; document.getElementById("selfoil2").style.display = 'none'; d.onecol.selectedIndex=0; d.twocol.selectedIndex=0; d.twocol2.selectedIndex=0; } else { d.coverpms1.value=""; d.coverpms2.value=""; } } function getBasePrice(size,qty,stock,color) { //console.log('qty + stock + size + color'); //console.log(qty +'_'+stock+ '_'+ size + '_' + color); var arrQty = new Array(); arrQty['10000_66_9x12_4'] = '5180.00'; arrQty['9500_66_9x12_4'] = '0.00'; arrQty['9000_66_9x12_4'] = '0.00'; arrQty['8500_66_9x12_4'] = '0.00'; arrQty['8000_66_9x12_4'] = '0.00'; arrQty['7500_66_9x12_4'] = '0.00'; arrQty['7000_66_9x12_4'] = '0.00'; arrQty['6500_66_9x12_4'] = '0.00'; arrQty['6000_66_9x12_4'] = '0.00'; arrQty['5500_66_9x12_4'] = '0.00'; arrQty['5000_66_9x12_4'] = '2790.00'; arrQty['4500_66_9x12_4'] = '0.00'; arrQty['4000_66_9x12_4'] = '0.00'; arrQty['3500_66_9x12_4'] = '0.00'; arrQty['3000_66_9x12_4'] = '0.00'; arrQty['2500_66_9x12_4'] = '1860.00'; arrQty['2000_66_9x12_4'] = '0.00'; arrQty['1500_66_9x12_4'] = '0.00'; arrQty['1000_66_9x12_4'] = '1090.00'; arrQty['500_66_9x12_4'] = '990.00'; arrQty['250_66_9x12_4'] = '890.00'; arrQty['10000_66_9x12_2'] = '6556.25'; arrQty['9500_66_9x12_2'] = '6275.00'; arrQty['9000_66_9x12_2'] = '5993.75'; arrQty['8500_66_9x12_2'] = '5712.50'; arrQty['8000_66_9x12_2'] = '5431.25'; arrQty['7500_66_9x12_2'] = '5150.00'; arrQty['7000_66_9x12_2'] = '4868.75'; arrQty['6500_66_9x12_2'] = '4588.13'; arrQty['6000_66_9x12_2'] = '4306.25'; arrQty['5500_66_9x12_2'] = '4025.63'; arrQty['5000_66_9x12_2'] = '3743.75'; arrQty['4500_66_9x12_2'] = '3431.88'; arrQty['4000_66_9x12_2'] = '3118.75'; arrQty['3500_66_9x12_2'] = '2806.25'; arrQty['3000_66_9x12_2'] = '2493.75'; arrQty['2500_66_9x12_2'] = '2181.88'; arrQty['2000_66_9x12_2'] = '1868.75'; arrQty['1500_66_9x12_2'] = '1556.56'; arrQty['1000_66_9x12_2'] = '1244.38'; arrQty['500_66_9x12_2'] = '869.38'; arrQty['250_66_9x12_2'] = '618.75'; arrQty['10000_66_9x12_1'] = '5044.03'; arrQty['9500_66_9x12_1'] = '4880.94'; arrQty['9000_66_9x12_1'] = '4555.27'; arrQty['8500_66_9x12_1'] = '4229.60'; arrQty['8000_66_9x12_1'] = '4167.94'; arrQty['7500_66_9x12_1'] = '3842.27'; arrQty['7000_66_9x12_1'] = '3658.79'; arrQty['6500_66_9x12_1'] = '3465.12'; arrQty['6000_66_9x12_1'] = '3403.47'; arrQty['5500_66_9x12_1'] = '3209.79'; arrQty['5000_66_9x12_1'] = '3030.64'; arrQty['4500_66_9x12_1'] = '2840.72'; arrQty['4000_66_9x12_1'] = '2633.99'; arrQty['3500_66_9x12_1'] = '2442.75'; arrQty['3000_66_9x12_1'] = '2238.67'; arrQty['2500_66_9x12_1'] = '1874.51'; arrQty['2000_66_9x12_1'] = '1710.02'; arrQty['1500_66_9x12_1'] = '1283.82'; arrQty['1000_66_9x12_1'] = '1050.70'; arrQty['500_66_9x12_1'] = '693.13'; arrQty['250_66_9x12_1'] = '521.53'; arrQty['10000_65_9x12_4'] = '5230.00'; arrQty['9500_65_9x12_4'] = '0.00'; arrQty['9000_65_9x12_4'] = '0.00'; arrQty['8500_65_9x12_4'] = '0.00'; arrQty['8000_65_9x12_4'] = '0.00'; arrQty['7500_65_9x12_4'] = '0.00'; arrQty['7000_65_9x12_4'] = '0.00'; arrQty['6500_65_9x12_4'] = '0.00'; arrQty['6000_65_9x12_4'] = '0.00'; arrQty['5500_65_9x12_4'] = '0.00'; arrQty['5000_65_9x12_4'] = '2780.00'; arrQty['4500_65_9x12_4'] = '0.00'; arrQty['4000_65_9x12_4'] = '0.00'; arrQty['3500_65_9x12_4'] = '0.00'; arrQty['3000_65_9x12_4'] = '0.00'; arrQty['250_14_9x12_1'] = '495.30'; arrQty['500_14_9x12_1'] = '695.76'; arrQty['1000_14_9x12_1'] = '995.68'; arrQty['1500_14_9x12_1'] = '1242.54'; arrQty['2000_14_9x12_1'] = '1495.40'; arrQty['2500_14_9x12_1'] = '1853.28'; arrQty['3000_14_9x12_1'] = '2160.12'; arrQty['3500_14_9x12_1'] = '2457.00'; arrQty['4000_14_9x12_1'] = '2765.88'; arrQty['4500_14_9x12_1'] = '3032.64'; arrQty['5000_14_9x12_1'] = '3299.40'; arrQty['5500_14_9x12_1'] = '3580.20'; arrQty['6000_14_9x12_1'] = '3861.00'; arrQty['6500_14_9x12_1'] = '4141.80'; arrQty['7000_14_9x12_1'] = '4422.60'; arrQty['7500_14_9x12_1'] = '4675.32'; arrQty['8000_14_9x12_1'] = '4949.10'; arrQty['8500_14_9x12_1'] = '5222.88'; arrQty['9000_14_9x12_1'] = '5496.66'; arrQty['9500_14_9x12_1'] = '5770.44'; arrQty['10000_14_9x12_1'] = '6037.20'; arrQty['250_14_9x12_2'] = '773.50'; arrQty['500_14_9x12_2'] = '949.00'; arrQty['1000_14_9x12_2'] = '1195.00'; arrQty['1500_14_9x12_2'] = '1358.50'; arrQty['2000_14_9x12_2'] = '1595.00'; arrQty['2500_14_9x12_2'] = '1877.00'; arrQty['3000_14_9x12_2'] = '2195.00'; arrQty['3500_14_9x12_2'] = '2593.50'; arrQty['4000_14_9x12_2'] = '2899.00'; arrQty['4500_14_9x12_2'] = '3204.50'; arrQty['5000_14_9x12_2'] = '3510.00'; arrQty['5500_14_9x12_2'] = '3796.00'; arrQty['6000_14_9x12_2'] = '4082.00'; arrQty['6500_14_9x12_2'] = '4368.00'; arrQty['7000_14_9x12_2'] = '4654.00'; arrQty['7500_14_9x12_2'] = '4940.00'; arrQty['8000_14_9x12_2'] = '5226.00'; arrQty['8500_14_9x12_2'] = '5512.00'; arrQty['9000_14_9x12_2'] = '5798.00'; arrQty['9500_14_9x12_2'] = '6084.00'; arrQty['10000_14_9x12_2'] = '6357.00'; arrQty['250_15_9x12_1'] = '495.30'; arrQty['500_15_9x12_1'] = '695.76'; arrQty['1000_15_9x12_1'] = '995.68'; arrQty['1500_15_9x12_1'] = '1242.54'; arrQty['2000_15_9x12_1'] = '1495.40'; arrQty['2500_15_9x12_1'] = '1853.28'; arrQty['3000_15_9x12_1'] = '2160.12'; arrQty['3500_15_9x12_1'] = '2457.00'; arrQty['4000_15_9x12_1'] = '2765.88'; arrQty['4500_15_9x12_1'] = '3032.64'; arrQty['5000_15_9x12_1'] = '3299.40'; arrQty['5500_15_9x12_1'] = '3580.20'; arrQty['6000_15_9x12_1'] = '3861.00'; arrQty['6500_15_9x12_1'] = '4141.80'; arrQty['7000_15_9x12_1'] = '4422.60'; arrQty['7500_15_9x12_1'] = '4675.32'; arrQty['8000_15_9x12_1'] = '4949.10'; arrQty['8500_15_9x12_1'] = '5222.88'; arrQty['9000_15_9x12_1'] = '5496.66'; arrQty['9500_15_9x12_1'] = '5770.44'; arrQty['10000_15_9x12_1'] = '6037.20'; arrQty['250_15_9x12_2'] = '773.50'; arrQty['500_15_9x12_2'] = '949.00'; arrQty['1000_15_9x12_2'] = '1195.00'; arrQty['1500_15_9x12_2'] = '1358.50'; arrQty['2000_15_9x12_2'] = '1595.00'; arrQty['2500_15_9x12_2'] = '1877.00'; arrQty['3000_15_9x12_2'] = '2195.00'; arrQty['3500_15_9x12_2'] = '2593.50'; arrQty['4000_15_9x12_2'] = '2899.00'; arrQty['4500_15_9x12_2'] = '3204.50'; arrQty['5000_15_9x12_2'] = '3510.00'; arrQty['5500_15_9x12_2'] = '3796.00'; arrQty['6000_15_9x12_2'] = '4082.00'; arrQty['6500_15_9x12_2'] = '4368.00'; arrQty['7000_15_9x12_2'] = '4654.00'; arrQty['7500_15_9x12_2'] = '4940.00'; arrQty['8000_15_9x12_2'] = '5226.00'; arrQty['8500_15_9x12_2'] = '5512.00'; arrQty['9000_15_9x12_2'] = '5798.00'; arrQty['9500_15_9x12_2'] = '6084.00'; arrQty['10000_15_9x12_2'] = '6357.00'; arrQty['250_67_9x12_4'] = '695.00'; arrQty['500_67_9x12_4'] = '890.00'; arrQty['1000_67_9x12_4'] = '998.00'; arrQty['2500_67_9x12_4'] = '1860.00'; arrQty['5000_67_9x12_4'] = '2840.00'; arrQty['10000_67_9x12_4'] = '4760.00'; arrQty['250_52_9x12_4'] = '1104.00'; arrQty['500_52_9x12_4'] = '1188.00'; arrQty['1000_52_9x12_4'] = '1488.00'; arrQty['2500_52_9x12_4'] = '2520.00'; arrQty['5000_52_9x12_4'] = '4056.00'; arrQty['10000_52_9x12_4'] = '7680.00'; arrQty['250_64_9x12_4'] = '698.00'; arrQty['500_64_9x12_4'] = '878.00'; arrQty['1000_64_9x12_4'] = '998.00'; arrQty['2500_64_9x12_4'] = '1870.00'; arrQty['5000_64_9x12_4'] = '2830.00'; arrQty['10000_64_9x12_4'] = '4890.00'; arrQty['250_53_9x12_1'] = '0.00'; arrQty['500_53_9x12_1'] = '0.00'; arrQty['1000_53_9x12_1'] = '0.00'; arrQty['10000_13_9x12_2'] = '6357.00'; arrQty['9500_13_9x12_2'] = '6084.00'; arrQty['9000_13_9x12_2'] = '5798.00'; arrQty['8500_13_9x12_2'] = '5512.00'; arrQty['8000_13_9x12_2'] = '5226.00'; arrQty['7500_13_9x12_2'] = '4940.00'; arrQty['7000_13_9x12_2'] = '4654.00'; arrQty['6500_13_9x12_2'] = '4368.00'; arrQty['6000_13_9x12_2'] = '4082.00'; arrQty['5500_13_9x12_2'] = '3796.00'; arrQty['5000_13_9x12_2'] = '3510.00'; arrQty['4500_13_9x12_2'] = '3204.50'; arrQty['4000_13_9x12_2'] = '2899.00'; arrQty['3500_13_9x12_2'] = '2593.50'; arrQty['3000_13_9x12_2'] = '2195.00'; arrQty['2500_13_9x12_2'] = '1877.00'; arrQty['2000_13_9x12_2'] = '1595.00'; arrQty['1500_13_9x12_2'] = '1358.50'; arrQty['1000_13_9x12_2'] = '1195.00'; arrQty['500_13_9x12_2'] = '949.00'; arrQty['250_13_9x12_2'] = '773.50'; arrQty['10000_13_9x12_1'] = '6037.20'; arrQty['9500_13_9x12_1'] = '5770.44'; arrQty['9000_13_9x12_1'] = '5496.66'; arrQty['8500_13_9x12_1'] = '5222.88'; arrQty['8000_13_9x12_1'] = '4949.10'; arrQty['7500_13_9x12_1'] = '4675.32'; arrQty['7000_13_9x12_1'] = '4422.60'; arrQty['6500_13_9x12_1'] = '4141.80'; arrQty['6000_13_9x12_1'] = '3861.00'; arrQty['5500_13_9x12_1'] = '3580.20'; arrQty['5000_13_9x12_1'] = '3299.40'; arrQty['4500_13_9x12_1'] = '3032.64'; arrQty['4000_13_9x12_1'] = '2765.88'; arrQty['3500_13_9x12_1'] = '2457.00'; arrQty['3000_13_9x12_1'] = '2160.12'; arrQty['2500_13_9x12_1'] = '1853.28'; arrQty['2000_13_9x12_1'] = '1495.40'; arrQty['1500_13_9x12_1'] = '1242.54'; arrQty['1000_13_9x12_1'] = '995.68'; arrQty['500_13_9x12_1'] = '695.76'; arrQty['250_13_9x12_1'] = '495.30'; arrQty['10000_5_9x12_4'] = '3890.00'; arrQty['9500_5_9x12_4'] = '3750.00'; arrQty['9000_5_9x12_4'] = '3595.50'; arrQty['8500_5_9x12_4'] = '3450.00'; arrQty['8000_5_9x12_4'] = '3295.50'; arrQty['7500_5_9x12_4'] = '3150.00'; arrQty['7000_5_9x12_4'] = '2995.00'; arrQty['6500_5_9x12_4'] = '2850.50'; arrQty['6000_5_9x12_4'] = '2695.00'; arrQty['5500_5_9x12_4'] = '2545.50'; arrQty['5000_5_9x12_4'] = '2890.00'; arrQty['4500_5_9x12_4'] = '2290.00'; arrQty['4000_5_9x12_4'] = '2195.50'; arrQty['3500_5_9x12_4'] = '2050.50'; arrQty['3000_5_9x12_4'] = '1895.00'; arrQty['2500_5_9x12_4'] = '1695.00'; arrQty['2000_5_9x12_4'] = '1595.50'; arrQty['1500_5_9x12_4'] = '1475.50'; arrQty['1000_5_9x12_4'] = '995.00'; arrQty['500_5_9x12_4'] = '895.00'; arrQty['250_5_9x12_4'] = '795.00'; arrQty['10000_5_9x12_2'] = '5245.00'; arrQty['9500_5_9x12_2'] = '5020.00'; arrQty['9000_5_9x12_2'] = '4795.00'; arrQty['8500_5_9x12_2'] = '4570.00'; arrQty['8000_5_9x12_2'] = '4345.00'; arrQty['7500_5_9x12_2'] = '4120.00'; arrQty['7000_5_9x12_2'] = '3895.00'; arrQty['6500_5_9x12_2'] = '3670.50'; arrQty['6000_5_9x12_2'] = '3445.00'; arrQty['5500_5_9x12_2'] = '3220.50'; arrQty['5000_5_9x12_2'] = '2995.00'; arrQty['4500_5_9x12_2'] = '2745.50'; arrQty['4000_5_9x12_2'] = '2495.00'; arrQty['3500_5_9x12_2'] = '2245.00'; arrQty['3000_5_9x12_2'] = '1995.00'; arrQty['2500_5_9x12_2'] = '1745.50'; arrQty['2000_5_9x12_2'] = '1495.00'; arrQty['1500_5_9x12_2'] = '1245.25'; arrQty['1000_5_9x12_2'] = '995.50'; arrQty['500_5_9x12_2'] = '695.50'; arrQty['250_5_9x12_2'] = '595.00'; arrQty['10000_5_9x12_1'] = '4723.69'; arrQty['9500_5_9x12_1'] = '4574.20'; arrQty['9000_5_9x12_1'] = '4375.67'; arrQty['8500_5_9x12_1'] = '4277.13'; arrQty['8000_5_9x12_1'] = '4120.61'; arrQty['7500_5_9x12_1'] = '3922.08'; arrQty['7000_5_9x12_1'] = '3753.89'; arrQty['6500_5_9x12_1'] = '3576.36'; arrQty['6000_5_9x12_1'] = '3319.84'; arrQty['5500_5_9x12_1'] = '3142.31'; arrQty['5000_5_9x12_1'] = '3078.08'; arrQty['4500_5_9x12_1'] = '2804.00'; arrQty['4000_5_9x12_1'] = '2614.50'; arrQty['3500_5_9x12_1'] = '2439.19'; arrQty['3000_5_9x12_1'] = '2252.12'; arrQty['2500_5_9x12_1'] = '2118.30'; arrQty['2000_5_9x12_1'] = '1867.52'; arrQty['1500_5_9x12_1'] = '1476.84'; arrQty['1000_5_9x12_1'] = '1263.14'; arrQty['500_5_9x12_1'] = '835.37'; arrQty['250_5_9x12_1'] = '678.07'; arrQty['2500_65_9x12_4'] = '1990.00'; arrQty['2000_65_9x12_4'] = '0.00'; arrQty['1500_65_9x12_4'] = '0.00'; arrQty['1000_65_9x12_4'] = '1190.00'; arrQty['500_65_9x12_4'] = '1080.00'; arrQty['250_65_9x12_4'] = '1040.00'; arrQty['10000_65_9x12_2'] = '5245.00'; arrQty['9500_65_9x12_2'] = '5020.00'; arrQty['9000_65_9x12_2'] = '4795.00'; arrQty['8500_65_9x12_2'] = '4570.00'; arrQty['8000_65_9x12_2'] = '4345.00'; arrQty['7500_65_9x12_2'] = '4120.00'; arrQty['7000_65_9x12_2'] = '3895.00'; arrQty['6500_65_9x12_2'] = '3670.50'; arrQty['6000_65_9x12_2'] = '3445.00'; arrQty['5500_65_9x12_2'] = '3220.50'; arrQty['5000_65_9x12_2'] = '2995.00'; arrQty['4500_65_9x12_2'] = '2745.50'; arrQty['4000_65_9x12_2'] = '2495.00'; arrQty['3500_65_9x12_2'] = '2245.00'; arrQty['3000_65_9x12_2'] = '1995.00'; arrQty['2500_65_9x12_2'] = '1745.50'; arrQty['2000_65_9x12_2'] = '1495.00'; arrQty['1500_65_9x12_2'] = '1245.25'; arrQty['1000_65_9x12_2'] = '995.50'; arrQty['500_65_9x12_2'] = '695.50'; arrQty['250_65_9x12_2'] = '495.00'; arrQty['10000_65_9x12_1'] = '3821.23'; arrQty['9500_65_9x12_1'] = '3697.68'; arrQty['9000_65_9x12_1'] = '3450.96'; arrQty['8500_65_9x12_1'] = '3204.24'; arrQty['8000_65_9x12_1'] = '3157.53'; arrQty['7500_65_9x12_1'] = '2910.81'; arrQty['7000_65_9x12_1'] = '2771.81'; arrQty['6500_65_9x12_1'] = '2625.09'; arrQty['6000_65_9x12_1'] = '2578.38'; arrQty['5500_65_9x12_1'] = '2431.66'; arrQty['5000_65_9x12_1'] = '2295.94'; arrQty['4500_65_9x12_1'] = '2152.06'; arrQty['4000_65_9x12_1'] = '1995.45'; arrQty['3500_65_9x12_1'] = '1850.57'; arrQty['3000_65_9x12_1'] = '1695.96'; arrQty['2500_65_9x12_1'] = '1420.08'; arrQty['2000_65_9x12_1'] = '1295.47'; arrQty['1500_65_9x12_1'] = '972.59'; arrQty['1000_65_9x12_1'] = '795.98'; arrQty['500_65_9x12_1'] = '525.10'; arrQty['250_65_9x12_1'] = '395.10'; arrQty['10000_53_9x12_4'] = '0.00'; arrQty['9500_53_9x12_4'] = '0.00'; arrQty['9000_53_9x12_4'] = '0.00'; arrQty['8500_53_9x12_4'] = '0.00'; arrQty['8000_53_9x12_4'] = '0.00'; arrQty['7500_53_9x12_4'] = '0.00'; arrQty['7000_53_9x12_4'] = '0.00'; arrQty['6500_53_9x12_4'] = '0.00'; arrQty['6000_53_9x12_4'] = '0.00'; arrQty['5500_53_9x12_4'] = '0.00'; arrQty['5000_53_9x12_4'] = '7390.00'; arrQty['4500_53_9x12_4'] = '0.00'; arrQty['4000_53_9x12_4'] = '0.00'; arrQty['3500_53_9x12_4'] = '0.00'; arrQty['3000_53_9x12_4'] = '0.00'; arrQty['2500_53_9x12_4'] = '4690.00'; arrQty['2000_53_9x12_4'] = '0.00'; arrQty['1500_53_9x12_4'] = '0.00'; arrQty['1000_53_9x12_4'] = '2185.00'; arrQty['500_53_9x12_4'] = '1830.00'; arrQty['250_53_9x12_4'] = '1660.00'; arrQty['10000_53_9x12_2'] = '0.00'; arrQty['9500_53_9x12_2'] = '0.00'; arrQty['9000_53_9x12_2'] = '0.00'; arrQty['8500_53_9x12_2'] = '0.00'; arrQty['8000_53_9x12_2'] = '0.00'; arrQty['7500_53_9x12_2'] = '0.00'; arrQty['7000_53_9x12_2'] = '0.00'; arrQty['6500_53_9x12_2'] = '0.00'; arrQty['6000_53_9x12_2'] = '0.00'; arrQty['5500_53_9x12_2'] = '0.00'; arrQty['5000_53_9x12_2'] = '0.00'; arrQty['4500_53_9x12_2'] = '0.00'; arrQty['4000_53_9x12_2'] = '0.00'; arrQty['3500_53_9x12_2'] = '0.00'; arrQty['3000_53_9x12_2'] = '0.00'; arrQty['2500_53_9x12_2'] = '0.00'; arrQty['2000_53_9x12_2'] = '0.00'; arrQty['1500_53_9x12_2'] = '0.00'; arrQty['1000_53_9x12_2'] = '0.00'; arrQty['500_53_9x12_2'] = '0.00'; arrQty['250_53_9x12_2'] = '0.00'; arrQty['10000_53_9x12_1'] = '0.00'; arrQty['9500_53_9x12_1'] = '0.00'; arrQty['9000_53_9x12_1'] = '0.00'; arrQty['8500_53_9x12_1'] = '0.00'; arrQty['8000_53_9x12_1'] = '0.00'; arrQty['7500_53_9x12_1'] = '0.00'; arrQty['7000_53_9x12_1'] = '0.00'; arrQty['6500_53_9x12_1'] = '0.00'; arrQty['6000_53_9x12_1'] = '0.00'; arrQty['5500_53_9x12_1'] = '0.00'; arrQty['5000_53_9x12_1'] = '0.00'; arrQty['4500_53_9x12_1'] = '0.00'; arrQty['4000_53_9x12_1'] = '0.00'; arrQty['3500_53_9x12_1'] = '0.00'; arrQty['3000_53_9x12_1'] = '0.00'; arrQty['2500_53_9x12_1'] = '0.00'; arrQty['2000_53_9x12_1'] = '0.00'; arrQty['1500_53_9x12_1'] = '0.00'; var varIndex = qty +'_'+stock+ '_'+ size + '_' + color return arrQty[varIndex]; } function getPocketPrice(side) { var arrPocket = new Array (); if(side=="Left Only") { arrPocket["Left Only"]="18.00";} else if(side=="Right Only") { arrPocket["Right Only"]="18.00";} else if(side=="Left + Right") { arrPocket["Left + Right"]="36.00";} return arrPocket[side]; } function isDefaultColor(color) { var arrDefaultsColors = new Array (); colors=''; for (i=0;i < arrDefaultsColors.length ; i ++ ) { if (arrDefaultsColors[i] == color) { return true; } } return false; } function operationchange(type){ //return; d = document.quoteform; // Reset for(i = d.coverstock.options.length-1;i>0;i--){ d.coverstock.options[i] = null; } for(i=d.papercolor.options.length-1;i>0;i--){ d.papercolor.options[i] = null; } for(i=d.quantity.options.length-1;i>0;i--){ //d.quantity.options[i] = null; } switch (type){ case 1: d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('12 pt. Cover','5'); d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('Beckett Cambric Linen','13'); d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('Becket RSVP Felt','14'); d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('Becket Embossed Cambric','15'); d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('16 Pt. Silk w/ Lamination','53'); d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('14pt. w/ Spot UV (Outside and Pockets)','65'); d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('100lb. Cover Coated Linen','66'); break; case 2: d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('14 Pt. Gloss','67'); d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('14 Pt. Uncoated','52'); d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('14 Pt. Matte/Dull','64'); d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('16 Pt. Silk w/ Lamination','53'); d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('14pt. w/ Spot UV (Outside and Pockets)','65'); d.coverstock.options[document.quoteform.coverstock.options.length] = new Option('100lb. Cover Coated Linen','66'); break; } } function paperStockChange(){ d = document.quoteform; // Reset for(i=d.papercolor.options.length-1;i>0;i--){ d.papercolor.options[i] = null; } for(i=d.quantity.options.length-1;i>0;i--){ d.quantity.options[i] = null; } switch(d.coverstock[d.coverstock.selectedIndex].value){ case "5": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); if (!d.covercolor1[2].checked) { d.papercolor.options[d.papercolor.options.length] = new Option('Blue','Blue'); d.papercolor.options[d.papercolor.options.length] = new Option('Red','Red'); d.papercolor.options[d.papercolor.options.length] = new Option('Black','Black'); } d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "13": d.papercolor.options[d.papercolor.options.length] = new Option('Dark Blue','Dark Blue'); d.papercolor.options[d.papercolor.options.length] = new Option('Dark Red','Dark Red'); d.papercolor.options[d.papercolor.options.length] = new Option('Dark Grey','Dark Grey'); d.papercolor.options[d.papercolor.options.length] = new Option('Dark Green','Dark Green'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "14": d.papercolor.options[d.papercolor.options.length] = new Option('Greenbrier','GreenbrierFelt'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "15": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "53": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "65": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "66": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "67": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "52": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "64": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; } } function spotPaperStockChange(){ d = document.quoteform; if(!is_select(d.coverstock)) return; var qty = d.quantity[d.quantity.selectedIndex].value; // Reset for(i=d.papercolor.options.length-1;i>0;i--){ d.papercolor.options[i] = null; } for(i=d.quantity.options.length-1;i>0;i--){ d.quantity.options[i] = null; } switch(d.coverstock[d.coverstock.selectedIndex].value){ case "5": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); if (!d.covercolor1[2].checked) { d.papercolor.options[d.papercolor.options.length] = new Option('Blue','Blue'); d.papercolor.options[d.papercolor.options.length] = new Option('Red','Red'); d.papercolor.options[d.papercolor.options.length] = new Option('Black','Black'); } d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "13": d.papercolor.options[d.papercolor.options.length] = new Option('Dark Blue','Dark Blue'); d.papercolor.options[d.papercolor.options.length] = new Option('Dark Red','Dark Red'); d.papercolor.options[d.papercolor.options.length] = new Option('Dark Grey','Dark Grey'); d.papercolor.options[d.papercolor.options.length] = new Option('Dark Green','Dark Green'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "14": d.papercolor.options[d.papercolor.options.length] = new Option('Greenbrier','GreenbrierFelt'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "15": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "53": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "65": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "66": d.papercolor.options[d.papercolor.options.length] = new Option('White','White'); d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; } $('#quantity').val(qty); } function fullColorPaperStockChange(){ d = document.quoteform; if(!is_select(d.coverstock)) return; var qty = d.quantity[d.quantity.selectedIndex].value; for(i=d.quantity.options.length-1;i>0;i--) d.quantity.options[i] = null; switch(d.coverstock[d.coverstock.selectedIndex].value){ case "53": d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "65": d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "66": d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('1500','1500'); d.quantity.options[d.quantity.options.length] = new Option('2000','2000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('3000','3000'); d.quantity.options[d.quantity.options.length] = new Option('3500','3500'); d.quantity.options[d.quantity.options.length] = new Option('4000','4000'); d.quantity.options[d.quantity.options.length] = new Option('4500','4500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('5500','5500'); d.quantity.options[d.quantity.options.length] = new Option('6000','6000'); d.quantity.options[d.quantity.options.length] = new Option('6500','6500'); d.quantity.options[d.quantity.options.length] = new Option('7000','7000'); d.quantity.options[d.quantity.options.length] = new Option('7500','7500'); d.quantity.options[d.quantity.options.length] = new Option('8000','8000'); d.quantity.options[d.quantity.options.length] = new Option('8500','8500'); d.quantity.options[d.quantity.options.length] = new Option('9000','9000'); d.quantity.options[d.quantity.options.length] = new Option('9500','9500'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "67": d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "52": d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; case "64": d.quantity.options[d.quantity.options.length] = new Option('250','250'); d.quantity.options[d.quantity.options.length] = new Option('500','500'); d.quantity.options[d.quantity.options.length] = new Option('1000','1000'); d.quantity.options[d.quantity.options.length] = new Option('2500','2500'); d.quantity.options[d.quantity.options.length] = new Option('5000','5000'); d.quantity.options[d.quantity.options.length] = new Option('10000','10000'); break; } $('#quantity').val(qty); } function restore() { document.quoteform.twocol.disabled = false; document.quoteform.twocol2.disabled = false; document.quoteform.onecol.disabled = false; } function sbt() { d=document.quoteform; if (!validRequired(d.zip,"Zip Code")) { return false; } if (!validNum(d.zip,"Zip Code")) { return false; } if (d.quantity.selectedIndex == 0) { alert('Please select Quantity to continue'); d.quantity.focus(); return false; } if (d.coverstock.selectedIndex == 0) { alert('Please select Paper Stock to continue'); d.coverstock.focus(); return false; } if (d.shipmethod.selectedIndex == 0) { alert('Please select Shipping Method to continue'); d.shipmethod.focus(); return false; } var stock=d.coverstock.value; window.open("bd3.php?quantity="+d.quantity.value+"&size=9x12&stock="+stock+"&zip="+d.zip.value+"&shipmethod="+d.shipmethod.value+"&item=quoteforms",'Now','toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=500,width=600'); } function selPocket() { var d=document.quoteform; dropdown1 = d.pocket.value; for(i = d.slits.length-1; i > 0;i--){ d.slits.options[i] = null; } switch(dropdown1){ case 'Left Only': d.slits.options[d.slits.length] = new Option('Left Side', 'Left Side', false, false); d.slits.options[d.slits.length] = new Option('None', 'None', false, false); break; case 'Right Only': d.slits.options[d.slits.length] = new Option('Right Side', 'Right Side', false, false); d.slits.options[d.slits.length] = new Option('None', 'None', false, false); break; default: d.slits.options[d.slits.length] = new Option('Left Side', 'Left Side', false, false); d.slits.options[d.slits.length] = new Option('Right Side', 'Right Side', false, false); d.slits.options[d.slits.length] = new Option('Left + Right', 'Left + Right', false, false); d.slits.options[d.slits.length] = new Option('None', 'None', false, false); break; } } function setColor(sel, val){ var d = document.quoteform; if(sel == "coverpms1"){ d.coverpms1.value = val; }else{ d.coverpms2.value = val; } } function setColorPrice(){ var d = document.quoteform; var cost = 0.00; var coverpms1 = d.coverpms1.value; var coverpms2 = d.coverpms2.value; var colorcost = 0.00; colorcost="75.00"; if( ( coverpms1 != "" && coverpms1 != "Select One" ) && ! isDefaultColor(coverpms1)) cost=parseFloat(colorcost); if( ( coverpms2 != "" && coverpms2 != "Select One" ) && ! isDefaultColor(coverpms2)) cost=parseFloat(colorcost)+parseFloat(cost); if(!isNaN(cost)){ d.pmsprice.value=currencyFormat(cost); } } function setDefaults(){ fnOperation(); setEditValues(); } function setProofPrice() { var d = document.quoteform; var cost = 0.00; var proof = parseInt(getValue('proof'))+1; var arrProofprice = new Array(); arrProofprice["1"] = "0.00"; arrProofprice["2"] = "0.00"; arrProofprice["3"] = "45.00"; if(parseInt(proof)<=0 && parseInt(proof)>4){ cost=0; }else{ cost=arrProofprice[proof]; } if(!isNaN(cost)){ d.proofprice.value=currencyFormat(cost); } } function setProofText() { var d =document.quoteform; var gProof =getValue('proof'); if (gProof == 0) document.getElementById("prooftext").innerHTML = "" else if(gProof == 1) document.getElementById("prooftext").innerHTML = "PDF proofs accurately display document layout; however, they offer variable accuracy when reproducing color. Color fidelity of PDF proofs is affected by monitor calibration and lighting. Pantone colors do not always appear as true on your screen. Consult current Pantone ® Color Publications for accurate color. PDF proofs are sent online via email.
" else document.getElementById("prooftext").innerHTML = "These proofs are useful for CMYK images such as photos, but are less accurate for illustrations, solids and specific Pantone colors. BargainPrinting.com does not guarantee that your hard copy proof will match press sheet color and only recommends them as an approximation for how your final job will print. Hard copy proofs are sent via Next Day Air. Please add 2 business days to turnaround time.
" } function sumTotal(){ // disable the following shipping methods shipDisable('07'); //'Pick Up from Long Island City' var d=document.quoteform; var qty=d.quantity.value; var args = upsellParams(arguments); if(args[0] && args[0]>0) qty = args[0]; var size=getValue('size'); var color=getValue('covercolor1'); //console.log('color : '+color); var papercolor=d.papercolor.value; var stock=d.coverstock.value; var pocket=d.pocket.value; var proof=getValue('proof'); var a=Math.floor(qty/1000); var c=Math.ceil(qty/1000); var baseprice=0; setColorPrice(); setProofPrice(); if(qty!="" && stock!="" && papercolor!="0") { baseprice = getBasePrice(size,qty,stock,color); } // determine pocket price pocketprice= getPocketPrice(pocket); if (color == '4') pocketprice = 0; pocketprice=pocketprice*parseInt(c); if(!isNaN(baseprice)) {d.baseprice.value=currencyFormat(baseprice);} else { d.baseprice.value=currencyFormat(0);} if(!isNaN(pocketprice)) d.pocketprice.value=currencyFormat(pocketprice); else d.pocketprice.value=currencyFormat(0); tot=0.00; if( parseInt(d.baseprice.value)<0) d.baseprice.value=currencyFormat(0); tot+=parseFloat(d.pmsprice.value); tot+=parseFloat(d.baseprice.value); tot+=parseFloat(d.pocketprice.value); tot+=parseFloat(d.proofprice.value); if(!isNaN(tot)) d.totalprice.value=currencyFormat(tot); if(parseInt(tot)<=0) d.totalprice.value=currencyFormat(0); if(args[1]) return getValue('totalprice');doupsell(); if(d.totalprice.value!="" || !isNaN(d.totalprice.value)) pts_tot=d.totalprice.value; gtot=0.00; gtot+=parseFloat(d.shippingcost.value); gtot+=parseFloat(d.totalprice.value); d.grandtotal.value = currencyFormat(gtot); if(d.totalprice.value=="" ) pts_tot =0; // if(!isNaN(pts_tot)) d.pts.value= parseInt(parseFloat(pts_tot)) } function validateForm() { d=document.quoteform; str = ""; if (d.quantity.selectedIndex == 0) { str += "-Missing quantity\n"; } /* if (d.covercolor1[0].checked && d.onecol.selectedIndex == 0) { str += "-Missing option for One Operation\n"; } if (d.covercolor1[1].checked && (d.twocol.selectedIndex == 0 || d.twocol2.selectedIndex == 0)) { str += "-Missing options for Two Operations\n"; } if ((d.covercolor1[0].checked) && (d.onecol.value == 'Spot Color') && (d.coverpms1.value == "")) { str += "-Missing Color for One Operation\n"; } if (d.covercolor1[1].checked) // && (theForm.coverpms1.value == "" || theForm.coverpms2.value == "")) { if (((d.twocol.value == 'Spot Color' || d.twocol.value == 'Foil') && d.coverpms1.value == "") || ((d.twocol2.value == 'Spot Color' || d.twocol2.value == 'Foil') && d.coverpms2.value == "")) { str += "-Missing Color for Two Operations\n"; } } */ if (d.coverstock.selectedIndex == 0) { str += "-Missing Paper Stock\n"; } if (d.papercolor.selectedIndex == 0) { str += "-Missing Paper Color\n"; } if (d.pocket.selectedIndex == 0) { str += "-Missing Pockets\n"; } if (d.slits.selectedIndex == 0) { str += "-Missing Business Slits\n"; } if(d.zip.value == ""){ str += "-Missing Zip Code\n"; } if(str != "") { alert("The following fields are missing:\n"+str); return false; } return true; } function setEditValues() { var d=document.quoteform; setValue('baseprice', '0.00'); setValue('proofprice', '0.00'); setValue('totalprice', '0.00'); }