var fonts_tobeinit=new Array();var inkcolors_tobeinit=new Array();var greetings_tobeinit=new Array();var layouts_tobeinit=new Array();var monograms_tobeinit=new Array();var motifs_tobeinit=new Array();var papercolors_tobeinit=new Array();var foreground_papercolors_tobeinit=new Array();var background_papercolors_tobeinit=new Array();var foreground_colors_tobeinit=new Array();var background_colors_tobeinit=new Array();var foil_colors_tobeinit=new Array();var foilborder_colors_tobeinit=new Array();var napkin_colors_tobeinit=new Array();var dominantinkcolors_tobeinit=new Array();var accentinkcolors_tobeinit=new Array();var scents_tobeinit=new Array();var coordinated_exist='N';var ribbon_exist='N';var liner_exist='N';var extra_exist='N';var essential_exist='N';var p_essential_exist='N';function getCoordinatedInfo(id){for(d0_v=0;d0_v<coordinated_infos.length;d0_v++){if(coordinated_infos[d0_v][0]==id){return coordinated_infos[d0_v];}}};function d0_c(id){for(d0_t=0;d0_t<ribbon_infos.length;d0_t++){if(ribbon_infos[d0_t][0]==id){return ribbon_infos[d0_t];}}};function d0_b(id){for(d0_F=0;d0_F<liner_infos.length;d0_F++){if(liner_infos[d0_F][0]==id){return liner_infos[d0_F];}}};function _onkeypress(){return false;};function d0_a(d0_Q){d0_Q=d0_Q+"";if(d0_Q.indexOf(".")!= -1){d0_ac=d0_Q.split(".");d0_S=d0_ac[0];d0_R=d0_ac[1];if(d0_R!=null){if(d0_R.length==0){d0_R='00';}else if(d0_R.length==1){d0_R=d0_R+'0';}else if(d0_R.length>2){d0_R=d0_R.substring(0,2);}}else d0_R='00';return d0_S+'.'+d0_R;}else{if(d0_Q=="NaN")return d0_Q;else return d0_Q+".00";}};function showGiftDiv(){var giftmsgdivinnerstyle=getStyleObject("div_gift_message");if(document.form_0.chkShowGiftMsgBlock){if(document.form_0.chkShowGiftMsgBlock.checked)giftmsgdivinnerstyle.display='block';else giftmsgdivinnerstyle.display='none';}else giftmsgdivinnerstyle.display='none';};function changeFontDiv(id){box=document.form_0.elements[id];try{getElement('current_font_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/fonts/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";}catch(Ex){}};function changeMonogramDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_monogram_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/monograms/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";}catch(Ex){}};function changeGreetingDiv(id){box=document.form_0.elements[id];try{getElement('current_greeting_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/images/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";}catch(Ex){}};function changeMotifDiv(id){box=document.form_0.elements[id];try{getElement('current_motif_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/motifs/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";}catch(Ex){}};function changeLayoutDiv(id){box=document.form_0.elements[id];try{getElement('current_layout_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/layouts/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";}catch(Ex){}};function showHighlightedColorDiv(highlighter_element,highlighted_color_element){try{highlighter_element.style.left=highlighted_color_element.offsetLeft;highlighter_element.style.top=highlighted_color_element.offsetTop;highlighter_element.style.display='block';}catch(Ex){}};function changeInkColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_inkcolor_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/colors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));}catch(Ex){}};function changeDominantInkColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_dominantinkcolor_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/colors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));}catch(Ex){}};function changeAccentInkColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_accentinkcolor_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/colors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));}catch(Ex){}};function changePaperColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_papercolor_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/papercolors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));}catch(Ex){}};function changeForegroundPaperColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_foreground_papercolor_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/papercolors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));if(box.options[box.selectedIndex].value.replace(/\s/g,"")=="White"){getElement('current_foreground_papercolor_2').src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/papercolors/"+currentproduct_mfgname+"/WhiteNoBrdr.jpg";}else{getElement('current_foreground_papercolor_2').src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/papercolors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";}}catch(Ex){}};function changeBackgroundPaperColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_background_papercolor_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/papercolors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));getElement('current_background_papercolor_2').src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/papercolors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";}catch(Ex){}};function changeScentColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_scentcolor_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/scentcolors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));}catch(Ex){}};function changeForegroundColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_foreground_color_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/papercolors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));}catch(Ex){}};function changeBackgroundColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_background_color_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/papercolors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));}catch(Ex){}};function changeFoilColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_foil_color_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/papercolors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));}catch(Ex){}};function changeFoilBorderColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_foilborder_color_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/papercolors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));}catch(Ex){}};function changeNapkinColorDiv(id,currentproduct_mfgname){box=document.form_0.elements[id];try{getElement('current_napkin_color_'+id).src=sImageServerURL+"/intershoproot/eCS/Store/en/imagesOnline/papercolors/"+currentproduct_mfgname+"/"+box.options[box.selectedIndex].value.replace(/\s/g,"")+".jpg";showHighlightedColorDiv(getElement('highlighter_'+id),getElement('highlighted_'+id+'_'+box.options[box.selectedIndex].value.replace(/\s/g,"")));}catch(Ex){}};function updatePriceCalc_Env(a0_bl,d0_P,d0_k,d0_m,d0_n,d0_l){var d0_x="";qty=document.form_0.elements['main_personalized'].value;d0_z=document.form_0.elements['pc_qbtp_qty_envelope'];d0_z.value=qty;document.form_0.elements['Quantity_'+d0_z.id].value=qty;var printed_checkbox=document.form_0.elements['pc_envelope_personalized'];if(printed_checkbox&&printed_checkbox.checked){document.form_0.elements['Personalized_'+d0_z.id].value='Y';var d0_j=d0_m;d0_x=(d0_k*qty+_capp(a0_bl,qty,d0_n,d0_l,d0_j)).toFixed(2);getElement("div_pc_envelope_printfee").innerHTML=(_capp(a0_bl,qty,d0_n,d0_l,d0_j)).toFixed(2);}else{document.form_0.elements['Personalized_'+d0_z.id].value='N';d0_x="";getElement("div_pc_envelope_printfee").innerHTML="";}div_cost_obj=getElement('div_pc_envelope_cost');div_cost_obj.innerHTML=d0_x;updatePriceCalc_Total();};function updatePriceCalc_Liner(d0_P){qty=document.form_0.elements['pc_qbtp_qty_liner'].value;d0_H=d0_b(d0_P);if(d0_H!=null){d0_s=parseFloat(d0_H[1])*qty;divLinerPrice=getElement('div_pc_liner_cost');divLinerPrice.innerHTML=d0_a(d0_s);}var d0_u=document.form_0.elements['pc_liner_selection'];for(i=0;i<d0_u.options.length;i++){if(d0_u.options[i].value==d0_P){document.form_0.elements['Quantity_'+d0_P].value=qty;document.form_0.elements['CoordinatedSelected_'+d0_P].value='Y';getElement(d0_P).checked=true;}else{document.form_0.elements['Quantity_'+d0_u.options[i].value].value="";document.form_0.elements['CoordinatedSelected_'+d0_u.options[i].value].value='N';getElement(d0_u.options[i].value).checked=false;}}if((d0_u.options[0].selected)&&(d0_u.value.indexOf("-inc@")<=0)){document.form_0.elements['Quantity_'+d0_P].value="";document.form_0.elements['CoordinatedSelected_'+d0_P].value='N';getElement(d0_P).checked=false;}updatePriceCalc_Total();};function updatePriceCalc_Ribbon(d0_P){qty=document.form_0.elements['pc_qbtp_qty_ribbon'].value;d0_G=d0_c(d0_P);if(d0_G!=null){d0_s=parseFloat(d0_G[1])*qty;divRibbonPrice=getElement('div_pc_ribbon_cost');divRibbonPrice.innerHTML=d0_a(d0_s);}var d0_Y=document.form_0.elements['pc_ribbon_selection'];for(i=0;i<d0_Y.options.length;i++){if(d0_Y.options[i].value==d0_P){document.form_0.elements['Quantity_'+d0_P].value=qty;document.form_0.elements['CoordinatedSelected_'+d0_P].value='Y';getElement(d0_P).checked=true;}else{document.form_0.elements['Quantity_'+d0_Y.options[i].value].value="";document.form_0.elements['CoordinatedSelected_'+d0_Y.options[i].value].value='N';getElement(d0_Y.options[i].value).checked=false;}}if((d0_Y.options[0].selected)&&(d0_Y.value.indexOf("-inc@")<=0)){document.form_0.elements['Quantity_'+d0_P].value="";document.form_0.elements['CoordinatedSelected_'+d0_P].value='N';getElement(d0_P).checked=false;}updatePriceCalc_Total();};function updatePriceCalc_Coordinated(a0_bl,d0_P,qty,d0_m,d0_k,d0_n,d0_l,mode){var d0_x="";var printed_checkbox=document.form_0.elements['pc_coordinated_personalized_'+d0_P];if(qty==null||qty==""){qty=document.form_0.elements['pc_coordinated_qty_'+d0_P].value;}if(qty==''){document.form_0.elements['Quantity_'+d0_P].value="";document.form_0.elements['Personalized_'+d0_P].value='N';document.form_0.elements['CoordinatedSelected_'+d0_P].value='N';getElement(d0_P).checked=false;if(printed_checkbox&&printed_checkbox.checked){if(document.form_0.elements['rd_pc_coordinated_personalized_'+d0_P]){document.form_0.elements['rd_pc_coordinated_personalized_'+d0_P][0].checked=false;document.form_0.elements['rd_pc_coordinated_personalized_'+d0_P][1].checked=false;if(mode&&mode=="check")alert("You need to select the quantity for this item!");}}}else{document.form_0.elements['Quantity_'+d0_P].value=qty;document.form_0.elements['CoordinatedSelected_'+d0_P].value='Y';getElement(d0_P).checked=true;if(printed_checkbox&&printed_checkbox.checked){document.form_0.elements['Personalized_'+d0_P].value='Y';var d0_j=d0_m;d0_x=(d0_k*qty+_capp(a0_bl,qty,d0_n,d0_l,d0_j)).toFixed(2);if(document.form_0.elements['rd_pc_coordinated_personalized_'+d0_P])document.form_0.elements['rd_pc_coordinated_personalized_'+d0_P][0].checked=true;getElement('div_pc_printfee_'+d0_P).innerHTML=(_capp(a0_bl,qty,d0_n,d0_l,d0_j)).toFixed(2);}else{document.form_0.elements['Personalized_'+d0_P].value='N';d0_x=(d0_k*qty).toFixed(2);getElement('div_pc_printfee_'+d0_P).innerHTML="";}}div_cost_obj=getElement('div_pc_'+d0_P);div_cost_obj.innerHTML=d0_x;updatePriceCalc_Total();};function updatePriceCalc_qbtp(d0_P,d0_k){var d0_x="";qty=document.form_0.elements['main_personalized'].value;if(qty==''){getElement(d0_P).checked=false;}else{d0_X=document.form_0.elements['pc_coordinated_qty_'+d0_P];if(d0_X&&d0_X.checked){document.form_0.elements['pc_coordinated_qty_'+d0_P].value=qty;document.form_0.elements['Quantity_'+d0_P].value=qty;document.form_0.elements['Personalized_'+d0_P].value='N';document.form_0.elements['CoordinatedSelected_'+d0_P].value='Y';getElement(d0_P).checked=true;d0_x=(d0_k*qty).toFixed(2);}else{document.form_0.elements['pc_coordinated_qty_'+d0_P].value="";document.form_0.elements['Quantity_'+d0_P].value="";document.form_0.elements['Personalized_'+d0_P].value='N';document.form_0.elements['CoordinatedSelected_'+d0_P].value='N';getElement(d0_P).checked=false;d0_x="";}}div_cost_obj=getElement('div_pc_'+d0_P);div_cost_obj.innerHTML=d0_x;updatePriceCalc_Total();};function updatePriceCalc_Essential(a0_bl,d0_P,qty,d0_k,d0_m,d0_n,d0_l,mode){var d0_x="";var printed_checkbox=document.form_0.elements['pc_essential_personalized_'+d0_P];if(qty==null||qty==""){qty=document.form_0.elements['pc_essential_qty_'+d0_P].value;}d0_N=document.form_0.elements['pc_essential_envelope_qty_'+d0_P];if(d0_N){d0_N.value=(qty=="")?"":qty;}if(qty==''){document.form_0.elements['Quantity_'+d0_P].value="";document.form_0.elements['EssentialSelected_'+d0_P].value="N";document.form_0.elements['Personalized_'+d0_P].value="N";getElement(d0_P).checked=false;var ess_env_checkbox=document.form_0.elements['pc_essential_envelope_personalized_'+d0_P];if(ess_env_checkbox){ess_env_checkbox.checked=true;ess_env_checkbox.click();document.form_0.elements['rd_pc_essential_envelope_personalized_'+d0_P][1].checked=true;document.form_0.elements['rd_pc_essential_envelope_personalized_'+d0_P][0].disabled=true;document.form_0.elements['rd_pc_essential_envelope_personalized_'+d0_P][1].disabled=true;}if(document.form_0.elements['rd_pc_essential_personalized_'+d0_P]&&printed_checkbox&&printed_checkbox.checked){document.form_0.elements['rd_pc_essential_personalized_'+d0_P][0].checked=false;document.form_0.elements['rd_pc_essential_personalized_'+d0_P][1].checked=false;if(mode&&mode=="check")alert("You need to select the quantity for this item!");}}else{document.form_0.elements['Quantity_'+d0_P].value=qty;document.form_0.elements['EssentialSelected_'+d0_P].value="Y";getElement(d0_P).checked=true;ess_env_checkbox=document.form_0.elements['pc_essential_envelope_personalized_'+d0_P];if(printed_checkbox&&printed_checkbox.checked){document.form_0.elements['Personalized_'+d0_P].value="Y";var d0_j=d0_m;d0_x=(d0_k*qty+_capp(a0_bl,qty,d0_n,d0_l,d0_j)).toFixed(2);if(document.form_0.elements['rd_pc_essential_personalized_'+d0_P])document.form_0.elements['rd_pc_essential_personalized_'+d0_P][0].checked=true;getElement('div_pc_printfee_'+d0_P).innerHTML=(_capp(a0_bl,qty,d0_n,d0_l,d0_j)).toFixed(2);if(ess_env_checkbox){if(ess_env_checkbox.checked){ess_env_checkbox.checked=false;ess_env_checkbox.click();}document.form_0.elements['rd_pc_essential_envelope_personalized_'+d0_P][0].disabled=false;document.form_0.elements['rd_pc_essential_envelope_personalized_'+d0_P][1].disabled=false;}}else{document.form_0.elements['Personalized_'+d0_P].value="N";d0_x=(d0_k*qty).toFixed(2);getElement('div_pc_printfee_'+d0_P).innerHTML="";if(ess_env_checkbox){ess_env_checkbox.checked=true;ess_env_checkbox.click();document.form_0.elements['rd_pc_essential_envelope_personalized_'+d0_P][1].checked=true;document.form_0.elements['rd_pc_essential_envelope_personalized_'+d0_P][0].disabled=true;document.form_0.elements['rd_pc_essential_envelope_personalized_'+d0_P][1].disabled=true;}}}div_cost_obj=getElement('div_pc_'+d0_P);div_cost_obj.innerHTML=d0_x;updatePriceCalc_Total();};function updatePriceCalc_Essential_Env(a0_bl,d0_P,d0_k,d0_m,d0_n,d0_l,d0_i){var d0_x="";qty=document.form_0.elements['pc_essential_envelope_qty_'+d0_P].value;var printed_checkbox=document.form_0.elements['pc_essential_envelope_personalized_'+d0_P];if(qty!=""){document.form_0.elements['Quantity_'+d0_i].value=qty;getElement(d0_i).checked=true;if(printed_checkbox&&printed_checkbox.checked){document.form_0.elements['Personalized_'+d0_i].value="Y";var d0_j=d0_m;d0_x=(d0_k*qty+_capp(a0_bl,qty,d0_n,d0_l,d0_j)).toFixed(2);getElement('div_pc_essential_envelope_printfee_'+d0_P).innerHTML=(_capp(a0_bl,qty,d0_n,d0_l,d0_j)).toFixed(2);}else{document.form_0.elements['Personalized_'+d0_i].value="N";d0_x="";getElement('div_pc_essential_envelope_printfee_'+d0_P).innerHTML="";}}else{document.form_0.elements['Quantity_'+d0_i].value="";document.form_0.elements['Personalized_'+d0_i].value="N";getElement(d0_i).checked=false;}div_cost_obj=getElement('div_pc_essential_envelope_cost_'+d0_P);div_cost_obj.innerHTML=d0_x;updatePriceCalc_Total();};function updatePriceCalc_Total(){var d0_ab=0;var d0_T=0;var d0_Z=0;var d0_M=0;var d0_w=0;var d0_D=0;var d0_C=0;var d0_A=0;div_primary_product_cost_obj=getElement('div_primary_product_cost');if(div_primary_product_cost_obj.innerHTML!=""){d0_T=parseFloat(div_primary_product_cost_obj.innerHTML);}div_env_cost_obj=getElement('div_pc_envelope_cost');if(div_env_cost_obj)if(div_env_cost_obj.innerHTML!=""){d0_A=parseFloat(div_env_cost_obj.innerHTML);}div_ribbon_product_cost_obj=getElement('div_pc_ribbon_cost');if(div_ribbon_product_cost_obj)if(div_ribbon_product_cost_obj.innerHTML!=""){d0_Z=parseFloat(div_ribbon_product_cost_obj.innerHTML);}div_liner_product_cost_obj=getElement('div_pc_liner_cost');if(div_liner_product_cost_obj)if(div_liner_product_cost_obj.innerHTML!=""){d0_M=parseFloat(div_liner_product_cost_obj.innerHTML);}if(coordinated_exist=='Y'){for(i=0;i<coordinated_infos.length;i++){if((coordinated_infos[i][0]!="")&&(document.form_0.elements['pc_coordinated_qty_'+coordinated_infos[i][0]].value!="")){d0_w=parseFloat(d0_w)+parseFloat(getElement('div_pc_'+coordinated_infos[i][0]).innerHTML);}}}if(typeof essentials_infos!="undefined")for(i=0;i<essentials_infos.length;i++){if((essentials_infos[i][0]!="")&&(document.form_0.elements['pc_essential_qty_'+essentials_infos[i][0]])&&(document.form_0.elements['pc_essential_qty_'+essentials_infos[i][0]].value!="")){d0_D=parseFloat(d0_D)+parseFloat(getElement('div_pc_'+essentials_infos[i][0]).innerHTML);}}if(typeof p_essentials_infos!="undefined")for(i=0;i<p_essentials_infos.length;i++){if((p_essentials_infos[i][0]!="")&&(document.form_0.elements['pc_essential_qty_'+p_essentials_infos[i][0]])&&(document.form_0.elements['pc_essential_qty_'+p_essentials_infos[i][0]].value!="")){d0_C=parseFloat(d0_C)+parseFloat(getElement('div_pc_'+p_essentials_infos[i][0]).innerHTML);var ess_env_checkbox=document.form_0.elements['pc_essential_envelope_personalized_'+p_essentials_infos[i][0]];if(ess_env_checkbox&&ess_env_checkbox.checked)d0_C=parseFloat(d0_C)+parseFloat(getElement('div_pc_essential_envelope_cost_'+p_essentials_infos[i][0]).innerHTML);}}d0_ab=parseFloat(d0_T)+parseFloat(d0_M)+parseFloat(d0_w)+parseFloat(d0_D)+parseFloat(d0_C)+parseFloat(d0_A)+parseFloat(d0_Z);div_pc_total_cost=getElement('pc_total_cost');div_pc_total_cost.innerHTML="Total Before Shipping: $"+d0_ab.toFixed(2);};function updatePriceCalc(a0_bl,qty,d0_P,d0_o,d0_j,d0_q,d0_p){var printed_checkbox=document.form_0.elements['pc_main_personalized_'+d0_P];obj_env_checkbox=document.form_0.elements['pc_envelope_personalized'];document.form_0.elements['Quantity_'+d0_P].value=qty;if(printed_checkbox.checked){document.form_0.elements['Personalized_'+d0_P].value='Y';var d0_x=(d0_o*qty+_capp(a0_bl,qty,d0_q,d0_p,d0_j)).toFixed(2);div_primary_product_cost_obj=getElement('div_primary_product_cost');div_primary_product_cost_obj.innerHTML=d0_x;getElement('div_primary_product_printfee').innerHTML=(_capp(a0_bl,qty,d0_q,d0_p,d0_j)).toFixed(2);if(obj_env_checkbox){if(obj_env_checkbox.checked){obj_env_checkbox.checked=false;obj_env_checkbox.click();}else{obj_env_checkbox.checked=true;obj_env_checkbox.click();}document.form_0.elements['rd_pc_envelope_personalized'][0].disabled=false;document.form_0.elements['rd_pc_envelope_personalized'][1].disabled=false;}if(document.form_0.elements['pc_ribbon_selection']){document.form_0.elements['pc_ribbon_selection'].disabled=false;}}else{document.form_0.elements['Personalized_'+d0_P].value='N';var d0_x=(d0_o*qty).toFixed(2);div_primary_product_cost_obj=getElement('div_primary_product_cost');div_primary_product_cost_obj.innerHTML=d0_x;getElement('div_primary_product_printfee').innerHTML="";if(obj_env_checkbox){obj_env_checkbox.checked=true;obj_env_checkbox.click();document.form_0.elements['rd_pc_envelope_personalized'][1].checked=true;document.form_0.elements['rd_pc_envelope_personalized'][0].disabled=true;document.form_0.elements['rd_pc_envelope_personalized'][1].disabled=true;}if(document.form_0.elements['pc_ribbon_selection']){document.form_0.elements['pc_ribbon_selection'].selectedIndex=0;document.form_0.elements['pc_ribbon_selection'].onchange();document.form_0.elements['pc_ribbon_selection'].disabled=true;}}for(k=0;k<document.form_0.elements.length;k++){el=document.form_0.elements[k];if(el.name.indexOf("pc_qbtp_qty_")!= -1){var d0_aa;if(el.name.indexOf("pc_qbtp_qty_coordinated_")!= -1)d0_aa=document.form_0.elements['pc_coordinated_qty_'+el.id];else if(el.name.indexOf("pc_qbtp_qty_envelope")!= -1){d0_aa=document.form_0.elements['pc_qbtp_qty_envelope'];}else d0_aa=document.form_0.elements[el.id];if(d0_aa.type=="checkbox"){if(d0_aa.checked){d0_aa.value=qty;d0_aa.checked=false;d0_aa.click();}}else{d0_aa.value=qty;if(ribbon_exist=='Y'){d0_O=document.form_0.elements['pc_ribbon_selection'];if((d0_O.selectedIndex!=0)||((d0_O.selectedIndex==0)&&(d0_O.value.indexOf("-inc@")>0))){updatePriceCalc_Ribbon(d0_O.value);}}if(liner_exist=='Y'){d0_E=document.form_0.elements['pc_liner_selection'];if((d0_E.selectedIndex!=0)||((d0_E.selectedIndex==0)&&(d0_E.value.indexOf("-inc@")>0))){updatePriceCalc_Liner(d0_E.value);}}}}else if(el.name.indexOf("pc_coordinated_personalized_")!= -1){if(printed_checkbox.checked){if(el.id&&el.id=="onlyavailableprinted"){}else{if(el.name.indexOf("rd_pc_coordinated_personalized_")!= -1){el.disabled=false;}if(el.name=='pc_coordinated_personalized_earlyenvelope')el.style.display='block';if(getElement('pc_earlyenvelope_label'))getElement('pc_earlyenvelope_label').style.display='block';if(getElement('pc_earlyenvelope_cost_label'))getElement('pc_earlyenvelope_cost_label').style.display='block';}}else{if(el.name.indexOf("rd_pc_coordinated_personalized_")!= -1){if(el.value=="blank")el.checked=true;else el.checked=false;el.disabled=true;}else{el.checked=true;el.click();}if(el.name=='pc_coordinated_personalized_earlyenvelope')el.style.display='none';if(getElement('pc_earlyenvelope_label'))getElement('pc_earlyenvelope_label').style.display='none';if(getElement('pc_earlyenvelope_cost_label'))getElement('pc_earlyenvelope_cost_label').style.display='none';}}}updatePriceCalc_Total();};function updatePriceCalc_Unpersonalized(qty,d0_k,d0_P){var d0_x=(d0_k*qty).toFixed(2);div_primary_product_cost_obj=getElement('div_primary_product_cost');div_primary_product_cost_obj.innerHTML=d0_x;document.form_0.elements['Quantity_'+d0_P].value=qty;updatePriceCalc_Total();};var blankorder_popup_shown=false;function beginPopupDiv(d0_cs){document.write('<div id="'+d0_cs+'" class="popupDiv">');document.write('<div class="popupDivBG"></div>');document.write('<div class="popupDivFG">');document.write('<table cellpadding="0" cellspacing="0" class="popupDivContent">');document.write('<tr>');document.write('<td align="center">');};function endPopupDiv(){document.write('</td>');document.write('</tr>');document.write('</table>');document.write('</div>');document.write('</div>');};function renderPopupDiv(){d0_cs="d_alert";beginPopupDiv(d0_cs);document.write('<div id="'+d0_cs+'_inner">');document.write('<table cellpadding="3" cellspacing="0" border="0" width="100%" class="formcopy">');document.write('	<tr>');document.write('		<td class="formcopy color_Black" align="center" valign="top" colspan="2">');document.write('			<b>One or more items are selected Blank.</b>');document.write('			<br><span class="special-label-color">Please click PROCEED to order as selected.</span>');document.write('		</td>');document.write('	</tr>');document.write('	<tr>');document.write('		<td class="formcopy" align="center" valign="top" colspan="2">');document.write('		  <table cellpadding="0" cellspacing="0">');document.write('		  <tr>');document.write('		  <td valign="middle" align="left" style="padding-right:10px;">');document.write('			  <a style="cursor:hand;" onclick="hidePopupDiv();return false;"><img src="/intershoproot/eCS/Store/en/imagesOnline/theme/bttn_no_changeprintoptions.gif"></a>');document.write('			</td>');document.write('		  <td valign="middle" align="left" style="padding-left:10px;">');document.write('		  	<a style="cursor:hand;" onclick="submitandhidePopupDiv();"><img src="/intershoproot/eCS/Store/en/imagesOnline/theme/bttn_yes.gif"></a>');document.write('		  </td>');document.write('			</tr>');document.write('			</table>');document.write('		</td>');document.write('	</tr>');document.write('	<tr>');document.write('		<td class="formcopy" align="left" valign="top" colspan="2">');document.write('			<br>To order an item printed*, select Printed option as shown.<br>');document.write('			<img width="339" style="border:1px solid #cccccc;" src="/intershoproot/eCS/Store/en/imagesOnline/order_printed_help.jpg">');document.write('			*For additional fees.');document.write('		</td>');document.write('	</tr>');document.write('</table>');document.write('</div>');endPopupDiv();};function d0_ch(){blankorder_popup_shown=true;d0_cs="d_alert";document.getElementById(d0_cs).style.height=document.body.scrollHeight;if(document.body.scrollHeight<screen.availHeight)document.getElementById(d0_cs).style.height=screen.availHeight;document.getElementById(d0_cs).style.left=document.body.scrollLeft;document.getElementById(d0_cs).style.top=document.body.scrollTop;document.getElementById(d0_cs).style.display='block';};function hidePopupDiv(){d0_cs="d_alert";document.getElementById(d0_cs).style.display='none';};function submitandhidePopupDiv(){try{_inf();submitForm();}catch(Ex){document.form_0.submit();}d0_cs="d_alert";getElement(d0_cs+"_inner").innerHTML='<img style="margin:75px 0px 75px 0px;" src="'+sImageServerURL+'/intershoproot/eCS/Store/en/imagesOnline/icon_wait.gif" width="32" height="32">';}
