function showtime () { endday = new Date("09/05/2024 15:00:00"); enddayTime = endday.getTime() today = new Date(); minPerDay = 60 * 1000 ; hoursPerDay = 60 * minPerDay; dayPerDay = 24 * hoursPerDay; monthPerDay = 30 * dayPerDay; secsLeft = (enddayTime - today.getTime()) / minPerDay; secsRound = Math.round(secsLeft); secsRemain = secsLeft - secsRound; secsRemain = (secsRemain < 0) ? secsRemain = 60 - ((secsRound - secsLeft) * 60) : secsRemain = (secsLeft - secsRound) * 60; secsRemain = Math.round(secsRemain); minLeft = ((enddayTime - today.getTime()) / hoursPerDay); minRound = Math.round(minLeft); minRemain = minLeft - minRound; minRemain = (minRemain < 0) ? minRemain = 60 - ((minRound - minLeft) * 60) : minRemain = ((minLeft - minRound) * 60); minRemain = Math.round(minRemain - 0.495); hoursLeft = ((enddayTime - today.getTime()) / dayPerDay); hoursRound = Math.round(hoursLeft); hoursRemain = hoursLeft - hoursRound; hoursRemain = (hoursRemain < 0) ? hoursRemain = 24 - ((hoursRound - hoursLeft) * 24) : hoursRemain = ((hoursLeft - hoursRound) * 24); hoursRemain = Math.round(hoursRemain); timeRemain = hoursRemain + ":" + minRemain; document.orderform.timeview.value = timeRemain; setTimeout("showtime()",1000); } function chkcount(){ var paper_code = document.orderform.paper_code; var qty_code = document.orderform.qty_code; var size_code_imsi = document.orderform.size_code_imsi; var color_code = document.orderform.color_code; size_code_imsi.options[0].value = "pss99_1"; size_code_imsi.options[0].text = "195*135"; size_code_imsi.options[1].value = "pss99_2"; size_code_imsi.options[1].text = "190*130"; size_code_imsi.options[2].value = "pss99_3"; size_code_imsi.options[2].text = "185*125"; size_code_imsi.options[3].value = "pss99_4"; size_code_imsi.options[3].text = "180*120"; size_code_imsi.options[4].value = "pss99_5"; size_code_imsi.options[4].text = "165*115"; size_code_imsi.options[5].value = "pss99_6"; size_code_imsi.options[5].text = "220*105"; } function costchange(){ memo1_change(); var kind_code =document.orderform.kind_code; var paper_code =document.orderform.paper_code; var color_code =document.orderform.color_code; var size_code_imsi =document.orderform.size_code_imsi; var qty_code =document.orderform.qty_code; var price =document.orderform.pay; var subtitle = document.orderform.product_num.value; var size01 = document.orderform.size01; var size02 = document.orderform.size02; var size_code = document.orderform.size_code.value; size_code = "pss99"; if(size_code_imsi.value == "pss99_1"){ size01.value=195; size02.value=135; } else if(size_code_imsi.value == "pss99_2"){ size01.value=190; size02.value=130; } else if(size_code_imsi.value == "pss99_3"){ size01.value=185; size02.value=125; } else if(size_code_imsi.value == "pss99_4"){ size01.value=180; size02.value=120; } else if(size_code_imsi.value == "pss99_5"){ size01.value=165; size02.value=115; } else if(size_code_imsi.value == "pss99_6"){ size01.value=220; size02.value=105; } if(qty_code.value == 200){price.value = 15000*subtitle} else if(qty_code.value == 300){price.value = 20000*subtitle} else if(qty_code.value == 400){price.value = 25000*subtitle} else if(qty_code.value == 500){price.value = 30000*subtitle} else if(qty_code.value == 600){price.value = 35000*subtitle} else if(qty_code.value == 800){price.value = 40000*subtitle} else if(qty_code.value == 1000){price.value = 50000*subtitle} price01_change(); } function memo1_change() { var kind_code =document.orderform.kind_code; var paper_code =document.orderform.paper_code; var color_code =document.orderform.color_code; var size_code_imsi =document.orderform.size_code_imsi; var qty_code =document.orderform.qty_code; var price =document.orderform.pay; var subtitle = document.orderform.product_num; document.all.memo1.innerHTML = paper_code.options[paper_code.selectedIndex].innerText + " / " + color_code.options[color_code.selectedIndex].innerText + " / " + size_code_imsi.options[size_code_imsi.selectedIndex].innerText+" / "+ qty_code.options[qty_code.selectedIndex].innerText + " / " + subtitle.options[subtitle.selectedIndex].innerText; } function price01_change() { var frm = document.orderform; var imsi_memo = frm.imsi_memo.value; if (frm.size_code_imsi.value=="pss99_6"){ document.all.imsi_memo.style.display=""; document.all.memo.innerHTML = imsi_memo; }else{ document.all.imsi_memo.style.display="none"; document.all.memo.innerHTML = ""; } //ÈÄ°¡°ø_Å×ÀÔ if(frm.after_tape.value!=""){ after_tape_cost(); } //ÈÄ°¡°øÃÑÇÕ total_after(); var price = frm.pay; var price_01 = frm.price_01; var after_price = frm.after_total_price_plus.value; price_01.value = Math.round(price.value); document.all.span_price.innerHTML = comma(Math.round(price.value)); document.all.break_pro_price_plus.innerHTML = comma(Math.round(price.value)); //Á¦Ç° ÃÑ¾× document.all.span_total_estimate_prie.innerHTML = comma(Math.round(eval(price.value)+eval(after_price))); //Á¦Ç° + ÈÄ°¡°ø ÃÑ¾× //ºÎ°¡¼¼ tax_price = (eval(price.value)+eval(after_price))/10 frm.tax_price.value = tax_price; document.all.span_tax_price.innerHTML = comma(tax_price); //°ßÀûÃÑ¾× estimate_price = eval(price.value)+eval(after_price)+eval(tax_price) frm.estimate_price_end.value = estimate_price; document.all.span_estimate_price_end.innerHTML = comma(estimate_price); }