$(function(){ // ¾Ë¸²ÆË¾÷ ¿­±â function alertPopupView(txt){ const alertTxt = txt; $("div.estimate_alert_poopup p.estimate_alert_txt").html(alertTxt); $("div.estimate_alert_poopup").fadeIn(); } // ÆÐŰÁö ¼±Åýà ¼¼ºÎ¾È³» Ãâ·Â function pakageChange(){ $("input[name=pakage]").change(function(){ $("div.f_box p.no_data").hide(); var id = $(this).attr("id"); $(".pakage_detail_area .pakage_box").not($("."+id)).hide(); $(".pakage_detail_area ."+id).show(); }); } pakageChange(); // ¼ýÀÚ¸¸ ÀÔ·Â function estimateOnlyNum(){ $("#count").on("input", function(){ this.value = this.value.replace(/[^0-9]/g, ''); // 1 ÀÌÇÏ ¹æÁö if(this.value === "" || parseInt(this.value) < 1){ this.value = 1; } }); // È­»ìÇ¥·Î ³»¸± ¶§µµ 1 ÀÌÇÏ ¹æÁö $("#count").on("change", function(){ if(parseInt(this.value) < 1 || isNaN(this.value)){ this.value = 1; } }); } estimateOnlyNum(); // Çà»ç ³¯Â¥+½Ã°£ ¼³Á¤ let startDateVal = ""; let startTimeVal = ""; // ----------------------------- // ½ÃÀÛ ³¯Â¥ // ----------------------------- const startPicker = flatpickr("#start_date", { locale: "ko", enableTime: false, disableMobile: true, dateFormat: "Y-m-d", minDate: "today", onChange: function(selectedDates){ // ³¯Â¥ ¼±ÅÃµÇ¸é ½Ã°£ select Ȱ¼ºÈ­ $("#start_time").prop("disabled", false); } }); $("#date_size").on("change", function(){ const eventDates = parseInt($(this).val()); if(isNaN(eventDates) || eventDates == 0 ){ $("#start_date").prop("disabled", true); }else{ $("#start_date").prop("disabled", false); } }); // ½ÃÀÛ ½Ã°£ $("#start_time").on("change", function(){ const startHour = parseInt($(this).val()); if(isNaN(startHour)) return; // Á¾·á½Ã°£ = ½ÃÀÛ + 3½Ã°£ let endHour = startHour + 3; if(endHour > 24){ endHour = endHour - 24; } setEndTime(endHour); // Á¾·á select Ȱ¼ºÈ­ $("#end_time").prop("disabled", false); }); function setEndTime(hour){ $("#end_time").val(hour); } // Á¾·á ½Ã°£ $("#end_time").on("change", function(){ const startTime = $("#start_time").val(); const endTime = $(this).val(); const endTimeCheck = endTime - startTime; if( endTimeCheck < 1 ){ alertPopupView("Á¾·á½Ã°£Àº ½ÃÀ۽𣺸´Ù ÀÌÈÄ¿©¾ß ÇÕ´Ï´Ù."); const set = parseInt(startTime) + 1; $("#end_time").val(set); $("#end_time").focus(); return; } }); // ¼¼ºÎ¾È³» ÆË¾÷ ¿­±â function pakageDetailPopupOpen(){ $(".pakage_detail_bt").click(function(){ const id = $(this).closest("label").prev("input[name=pakage]").val(); $("div.pakage_detail_wrap div.pakage_detail").hide(); $("div.package_detail_popup").fadeIn(); $("#"+id).show(); }); } pakageDetailPopupOpen(); // ÆË¾÷ ´Ý±â function pakageDetailPopupClose(){ $("div.package_detail_popup .popup_close_bt, div.package_detail_popup .popup_bg, div.estimate_alert_poopup .popup_close_bt, div.estimate_alert_poopup .popup_bg, div.estimate_info_poopup .popup_close_bt, div.estimate_info_poopup .popup_bg").click(function(){ $("div.pakage_detail_wrap div.pakage_detail").hide(); $(this).closest("div.popup_wrap").fadeOut(); }); } pakageDetailPopupClose(); // °ßÀû °è»ê // ========================= // °íÁ¤ ºñ¿ë // ========================= const fixedSetupPrice = 300000; // ÃâÀå + ¼¼ÆÃ const fixedReturnPrice = 150000; // ö¼ö + ȸ¼ö const envPrice = 50000; // ȯ°æºÎ´ã±Ý let fixedTotal = fixedSetupPrice + fixedReturnPrice + envPrice; // ========================= // °¡°Ý Á¤º¸ // ========================= const packagePrices = { CoffeeFoodBasic: 25000, CoffeeFoodPremium: 35000, FingerFoodBasic: 35000, FingerFoodPremium: 45000, PartyFoodStandard: 45000, DinnerFoodA: 55000, DinnerFoodB: 65000, DinnerFoodC: 75000, DinnerFoodS: 105000 }; const baseEventHour = 3; // ±âº»Á¦°ø Çà»ç½Ã°£ const cleanupHour = 1; // ö¼ö½Ã°£ let setupHour = 2; // ¼¼ÆÃ½Ã°£(±âº») , µð³ÊǪµå´Â ¼¼ÆÃ½Ã°£ 3½Ã°£À¸·Î º¯°æµÊ. const overtimeFee = 100000; // Ãʰú½Ã°£ ºñ¿ë const nightFee = 100000; // ¾ß°£Â÷Áö ºñ¿ë PM 9:00 ~ AM 9:00 Æ÷ÇÔ ½Ã°£ °è»ê const helperFee = 200000; // ¼­¹ö ºñ¿ë const cleaningFee = 200000; // Ŭ¸®´×ÇÇ const stairsFee = 200000; // °è´Ü¿îÀÓ·á const tableFee = 50000; // ÄÉÀÌÅ͸µ Å×ÀÌºí ºñ¿ë // ¼±Å󻿪 º¯¼ö / ÅØ½ºÆ® Ãâ·Â¿ë let pakageTxt = ""; let countTxt = ""; let dateStartTxt = ""; let dateEndTxt = ""; let whereTxt = ""; let whereDetailTxt = ""; let helperTxt = ""; let cleaningTxt = ""; let tableTxt = ""; let stairTxt = ""; // ========================= // ÃÑ °ßÀû °è»ê ÇÔ¼ö // ========================= function calculateEstimate() { // ------------------------- // ÆÐŰÁö // ------------------------- const packageType = $("input[name='pakage']:checked").val(); const people = Number($("#count").val()) || 0; const unitPrice = packagePrices[packageType] || 0; // À½½Äºñ const foodPrice = unitPrice * people; // µð³ÊǪµå ¿©ºÎ¿¡ µû¸¥ ¼¼ÆÃ½Ã°£ let setupHour = 2; if( packageType === "DinnerFoodA" || packageType === "DinnerFoodB" || packageType === "DinnerFoodC" || packageType === "DinnerFoodS" ){ setupHour = 3; } // ------------------------- // Çà»ç ½Ã°£ // ------------------------- const dayCount = parseInt($("#date_size").val()) || 1; const startDate = $("#start_date").val(); const startHour = parseInt($("#start_time").val()); const endHour = parseInt($("#end_time").val()); const eventHour = endHour - startHour; if( eventHour < 1 ){ alertPopupView("Á¾·á½Ã°£Àº ½ÃÀ۽𣺸´Ù ÀÌÈÄ¿©¾ß ÇÕ´Ï´Ù."); const set = parseInt(startTime) + 1; $("#end_time").val(set); $("#end_time").focus(); return; } // ----------------------------- // Ãʰú Çà»ç ºñ¿ë // ----------------------------- let overtimeHour = 0; if( eventHour ){ overtimeHour = Math.max(0, eventHour - baseEventHour); } const overtimePrice = overtimeHour * overtimeFee; // ----------------------------- // Àüü ¿î¿µ ½Ã°£ // (¼¼ÆÃ ~ ö¼ö) // ----------------------------- let operationStart = 0; // ¼¼ÆÃ½Ã°£ Æ÷ÇÔ let operationEnd = 0; // ö¼ö½Ã°£ Æ÷ÇÔ if( startHour && setupHour ){ operationStart = startHour - setupHour; // ¼¼ÆÃ½Ã°£ Æ÷ÇÔ operationEnd = endHour + cleanupHour; // ö¼ö½Ã°£ Æ÷ÇÔ } // ----------------------------- // ¾ß°£½Ã°£ °è»ê // PM9 ~ AM9 // ----------------------------- let nightHour = 0; let current = operationStart; while(current < operationEnd){ const hour = current; // ¾ß°£½Ã°£ Á¶°Ç if(hour >= 21 || hour < 9){ nightHour++; } current++; } const nightChargePrice = nightHour * nightFee; // ------------------------- // ÃâÀå·á // ------------------------- const tripPrice = Number($("select[name='addr']").val()); // ------------------------- // ¼­¹öºñ // ------------------------- const helperCount = Number($("input[name='helper']:checked").val()) || 0; const helperPrice = helperCount * helperFee; // ------------------------- // Ŭ¸®´×ÇÇ // ------------------------- const cleaningPrice = $("#cleaning_type1").is(":checked") ? cleaningFee : 0; // ------------------------- // ÄÉÀÌÅ͸µ Å×À̺í // ------------------------- const tableCount = Number($("input[name='table']:checked").val()) || 0; const tableRealCount = tableCount ; /* if(tableCount === 1) { tableRealCount = 3; } if(tableCount === 2) { tableRealCount = 4; } if(tableCount === 3) { tableRealCount = 5; } */ const tablePrice = tableRealCount * tableFee; // ------------------------- // °è´Ü ¿îÀÓ·á // ------------------------- const stairsPrice = $("#useStairs").is(":checked") ? stairsFee : 0; // À½½Äºñ°¡ 500¸¸¿ø ÀÌ»óÀ̶ó¸é °íÁ¤ºñ¿ëÀº À½½Ä°¡°ÝÀÇ 10% if(foodPrice > 5000000){ fixedTotal = foodPrice * 0.1; } // ------------------------- // ÃÑ ÇÕ°è // ------------------------- const allPrice = foodPrice + overtimePrice + nightChargePrice + tripPrice + helperPrice + cleaningPrice + tablePrice + stairsPrice + fixedTotal; const vatPrice = (allPrice * dayCount) * 0.1; const totalPrice = ( allPrice * dayCount ) + vatPrice; // ========================= // ÄÜ¼Ö Ãâ·Â // ========================= /* console.log({ °íÁ¤ºñ¿ë:fixedTotal, À½½Äºñ: foodPrice, ¿À¹ö½Ã°£: overtimeHour, ¿À¹öŸÀÓ: overtimePrice, ¾ß°£½Ã°£: nightHour, ¾ß°£Â÷Áö: nightChargePrice, ÃâÀå·á: tripPrice, ¼­¹öºñ: helperPrice, Ŭ¸®´×ÇÇ: cleaningPrice, Å×À̺íºñ: tablePrice, °è´Ü¿îÀÓ·á: stairsPrice, Çà»çÀϼö : dayCount, Çà»ç½Ã°£ : eventHour, ºÎ°¡¼¼ : vatPrice, ÃÑÇÕ°è: totalPrice }); */ // ========================= // È­¸é Ãâ·Â ¿¹½Ã // ========================= $(".total_price").text( totalPrice.toLocaleString() + "¿ø" ); $("#fixedPrice").text( fixedTotal.toLocaleString() + "¿ø" ); // ¼±Å󻿪 switch( packageType ){ case "CoffeeFoodBasic" : pakageTxt = "Ä¿ÇÇǪµå Basic"; break; case "CoffeeFoodPremium" : pakageTxt = "Ä¿ÇÇǪµå Premium"; break; case "FingerFoodBasic" : pakageTxt = "ÇΰÅǪµå Basic"; break; case "FingerFoodPremium" : pakageTxt = "ÇΰÅǪµå Premium"; break; case "PartyFoodStandard" : pakageTxt = "ÆÄƼǪµå Standard"; break; case "DinnerFoodA" : pakageTxt = "µð³ÊǪµå A Type"; break; case "DinnerFoodB" : pakageTxt = "µð³ÊǪµå B Type"; break; case "DinnerFoodC" : pakageTxt = "µð³ÊǪµå C Type"; break; case "DinnerFoodS" : pakageTxt = "µð³ÊǪµå S Type"; break; default: pakageTxt = ""; } // Dinner Food + 50ÀÎÀÌ»ó ºÎÅÍ Å¬¸®´×Çǰ¡ Çʼö·Î ¼±Åà function autoCleaningFee(){ const isDinner = packageType === "DinnerFoodA" || packageType === "DinnerFoodB" || packageType === "DinnerFoodC" || packageType === "DinnerFoodS"; if(people >= 50 && isDinner){ $("#cleaning_type1") .prop({ checked: true, disabled: true }) .data("auto-checked", true); }else{ const wasAutoChecked = $("#cleaning_type1").data("auto-checked"); $("#cleaning_type1").prop("disabled", false); // ÀÚµ¿ üũ¿´´ø °æ¿ì¸¸ ÇØÁ¦ if(wasAutoChecked){ $("#cleaning_type1").prop("checked", false); $("#cleaning_type1").removeData("auto-checked"); } } } autoCleaningFee(); if( people > 0 ){ countTxt = people+"¸í"; } let addrSelectTxt = $("select[name='addr'] option:selected").text(); if( addrSelectTxt !== "Àå¼Ò ¼±ÅÃ" ){ whereTxt = $("select[name='addr'] option:selected").text(); } let addrDetailVal = $("input[name=addr_detail]").val(); if( addrDetailVal && addrDetailVal.trim() !== ""){ whereDetailTxt = addrDetailVal; } if( $("input[name=helper]:checked").length > 0 ){ if( helperCount === 0 ){ helperTxt = "ºÒÇÊ¿ä"; }else{ helperTxt = helperCount+"¸í"; } } cleaningTxt = $("#cleaning_type1").is(":checked") ? "Æ÷ÇÔ" : "ºÒÆ÷ÇÔ"; if( $("input[name=table]:checked").length > 0 ){ if( tableRealCount > 0 ){ tableTxt = tableRealCount+"°³ ÇÊ¿ä"; }else{ tableTxt = "0°³ ÇÊ¿ä" } } stairTxt = $("#useStairs").is(":checked") ? "ÇÊ¿ä" : "ºÒÇÊ¿ä"; $("#pakageValue").html(pakageTxt); $("#countValue").html(countTxt); $("#foodPrice").html(foodPrice.toLocaleString()+"¿ø"); $("#dateValue").html( startDate+" ºÎÅÍ "+dayCount+"ÀÏ µ¿¾È ÁøÇà / Çà»ç ½Ã°£ "+startHour+":00~"+endHour+":00"); $("#overtimeVal").html( overtimeHour+"½Ã°£"); $("#overtimePrice").html( overtimePrice.toLocaleString()+"¿ø"); $("#nightFeeVal").html( nightHour+"½Ã°£"); $("#nightChargePrice").html( nightChargePrice.toLocaleString()+"¿ø"); $("#whereValue").html(whereTxt); $("#whereDetailValue").html(whereDetailTxt); $("#tripPrice").html( tripPrice.toLocaleString()+"¿ø"); $("#helperValue").html(helperTxt); $("#helperPrice").html( helperPrice.toLocaleString()+"¿ø"); $("#cleaningValue").html(cleaningTxt); $("#cleaningPrice").html( cleaningPrice.toLocaleString()+"¿ø"); $("#tableValue").html(tableTxt); $("#tablePrice").html( tablePrice.toLocaleString()+"¿ø"); $("#stairValue").html(stairTxt); $("#stairsPrice").html( stairsPrice.toLocaleString()+"¿ø"); $("#vatPrice").html( vatPrice.toLocaleString()+"¿ø"); $("#totalPrice").html( totalPrice.toLocaleString()+"¿ø"); /* $("#pakageValue").html(pakageTxt); $("#countValue").html(countTxt); $("#dateValue").html( startDate+" ºÎÅÍ "+dayCount+"ÀÏ µ¿¾È ÁøÇà / Çà»ç ½Ã°£ "+startHour+":00~"+endHour+":00"); $("#whereValue").html(whereTxt); $("#whereDetailValue").html(whereDetailTxt); $("#helperValue").html(helperTxt); $("#cleaningValue").html(cleaningTxt); $("#tableValue").html(tableTxt); $("#stairValue").html(stairTxt); */ } // ========================= // À̺¥Æ® ¿¬°á // ========================= $(document).on( "change keyup", "input, select", function () { calculateEstimate(); } ); /* Å×½ºÆ®¿ë $("#pakage21").prop({"checked":true}); $("#count").val(22); $("#start_date").val("2026-05-23"); $("select[name=addr] option:nth-child(3)").prop({"selected":"selected"}); $("input[name=addr_detail]").val("¼­¿ï½Ã °­³²±¸ Å×·¹¶õ·Î 123, ¤·¤·ºôµù"); $("#helper2").prop({"checked":true}); $("#cleaning_type1").prop({"checked":true}); $("#table2").prop({"checked":true}); $("#useStairs").prop({"checked":true}); */ $("#estimate_page_bt").click(function(){ const packageVal = $("#pakageValue").text(); const countVal = $("#countValue").text(); const dateVal = $("#date_size").val(); const startDateVal = $("#start_date").val(); const startTimeVal = $("#start_time option:selected").val(); const endTimeVal = $("#end_time option:selected").val(); const addrVal = $("#whereValue").text(); const addrDetailVal = $("#whereDetailValue").text(); const helperCountVal = $("#helperValue").text(); const tableCountVal = $("#tableValue").text(); if( packageVal == null || packageVal == "" ){ alertPopupView("ÆÐŰÁö¸¦ ¼±ÅÃ ÇØÁÖ¼¼¿ä."); $("input#pakage11").focus(); return; }else if( countVal == 0 || countVal == null || countVal == "" || countVal == "0"){ alertPopupView("Çà»ç ÀοøÀ» ÀÔ·Â ÇØÁÖ¼¼¿ä."); $("input#count").focus(); return; }else if( dateVal == null || dateVal == "" || dateVal == 0 || startDateVal == null || startDateVal == "" || startTimeVal == null || startTimeVal == "" || startTimeVal < 0 || endTimeVal == null || endTimeVal == "" || endTimeVal < 0 ){ alertPopupView("Çà»ç ÀϽø¦ ¿Ã¹Ù¸£°Ô ÀÔ·Â ÇØÁÖ¼¼¿ä."); $("div.event_date_area").focus(); return; }else if( addrVal == null || addrVal == "" || addrDetailVal == null || addrDetailVal == ""){ alertPopupView("Çà»ç Àå¼Ò¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·Â ÇØÁÖ¼¼¿ä."); $("select[name=addr]").focus(); return; }else if( helperCountVal == null || helperCountVal == "" ){ alertPopupView("¼­¹öÀοøÀ» ¼±ÅÃ ÇØÁÖ¼¼¿ä."); $("input#helper1").focus(); return; }else if( tableCountVal == null || tableCountVal == "" ){ alertPopupView("ÄÉÀÌÅ͸µ Å×À̺íÀ» ¼±ÅÃ ÇØÁÖ¼¼¿ä."); $("input#table1").focus(); return; } $("div.estimate_info_poopup").fadeIn(); }); $("#estimate_save_bt").on("click", function () { const packageVal = $("#pakageValue").text(); const countVal = $("#countValue").text(); const dateVal = $("#date_size").val(); const startDateVal = $("#start_date").val(); const startTimeVal = $("#start_time option:selected").val(); const endTimeVal = $("#end_time option:selected").val(); const addrVal = $("#whereValue").text(); const addrDetailVal = $("#whereDetailValue").text(); const helperCountVal = $("#helperValue").text(); const tableCountVal = $("#tableValue").text(); if( packageVal == null || packageVal == "" ){ alertPopupView("ÆÐŰÁö¸¦ ¼±ÅÃ ÇØÁÖ¼¼¿ä."); $("input#pakage11").focus(); return; }else if( countVal == 0 || countVal == null || countVal == "" || countVal == "0"){ alertPopupView("Çà»ç ÀοøÀ» ÀÔ·Â ÇØÁÖ¼¼¿ä."); $("input#count").focus(); return; }else if( dateVal == null || dateVal == "" || dateVal == 0 || startDateVal == null || startDateVal == "" || startTimeVal == null || startTimeVal == "" || startTimeVal < 0 || endTimeVal == null || endTimeVal == "" || endTimeVal < 0 ){ alertPopupView("Çà»ç ÀϽø¦ ¿Ã¹Ù¸£°Ô ÀÔ·Â ÇØÁÖ¼¼¿ä."); $("div.event_date_area").focus(); return; }else if( addrVal == null || addrVal == "" || addrDetailVal == null || addrDetailVal == ""){ alertPopupView("Çà»ç Àå¼Ò¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·Â ÇØÁÖ¼¼¿ä."); $("select[name=addr]").focus(); return; }else if( helperCountVal == null || helperCountVal == "" ){ alertPopupView("¼­¹öÀοøÀ» ¼±ÅÃ ÇØÁÖ¼¼¿ä."); $("input#helper1").focus(); return; }else if( tableCountVal == null || tableCountVal == "" ){ alertPopupView("ÄÉÀÌÅ͸µ Å×À̺íÀ» ¼±ÅÃ ÇØÁÖ¼¼¿ä."); $("input#table1").focus(); return; } const target = document.querySelector(".estimated_result"); // ¹öư ¿µ¿ª ¼û±â±â $(".ep_bts").addClass("no-print"); html2canvas(target, { scale: 1, // ÇØ»óµµ (Áß¿ä) useCORS: true }).then(canvas => { const imgData = canvas.toDataURL("image/png"); const { jsPDF } = window.jspdf; const pdf = new jsPDF("p", "mm", "a4"); const imgWidth = 210; // A4 width const pageHeight = 297; const imgHeight = canvas.height * imgWidth / canvas.width; let position = 0; pdf.addImage(imgData, "PNG", 0, position, imgWidth, imgHeight); pdf.save("ÄÉÀÌÅ͸µ_°ßÀû¼­.pdf"); }).finally(() => { // ´Ù½Ã ¹öư º¹±¸ $(".ep_bts").removeClass("no-print"); }); }); // ¹®ÀÇ ½Åû ¹öư $("button.estimate_action_bt").click(function(){ let estimate_final_txt = ""; const estimateNameVal = $("input[name=estimate_name]").val(); const estimateTelVal = $("input[name=estimate_tel]").val(); const estimateAgreeVal = $("#estimate_agree").prop("checked"); const finalPrice = $("#estimated_cost").text(); const dateTxtVal = $("#dateValue").text(); if( estimateNameVal === null || estimateNameVal === "" ){ alertPopupView("¿¹¾àÀÚ ¼ºÇÔ&±â¾÷¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä."); $("input[name=estimate_name]").focus(); return; }else if( estimateTelVal === null || estimateTelVal === "" ){ alertPopupView("¿¬¶ôó¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä."); $("input[name=estimate_tel]").focus(); return; }else if( estimateAgreeVal === false ){ alertPopupView("°³ÀÎÁ¤º¸ À̿뵿ÀǸ¦ ÇØÁÖ¼¼¿ä."); $("input#estimate_agree").focus(); return; } $("div.estimate_info_poopup").hide(); estimate_final_txt = ` ±â¾÷¸í&¼ºÇÔ : `+estimateNameVal+` ¿¬¶ôó : `+estimateTelVal+` °íÁ¤ºñ¿ë : ÃâÀå + ¼¼ÆÃ + ö¼ö + ȸ¼ö + ȯ°æºÎ´ã±Ý = `+$("#fixedPrice").text()+` À½½Äºñ : `+pakageTxt+` x `+countTxt+` = `+$("#foodPrice").text()+` Çà»çÀϽà : `+dateTxtVal+` ÃʰúÇà»ç : `+$("#overtimeVal").closest("dd").text()+` = `+$("#overtimePrice").text()+` ¾ß°£Çà»ç : `+$("#nightFeeVal").closest("dd").text()+` = `+$("#nightChargePrice").text()+` Çà»çÀå¼Ò : `+whereDetailTxt+` ÃâÀå·á : `+whereTxt+` = `+$("#tripPrice").text()+` ¼­¹öºñ : `+$("#helperValue").closest("dd").text()+` = `+$("#helperPrice").text()+` Ŭ¸®´×ÇÇ : `+cleaningTxt+` = `+$("#cleaningPrice").text()+` Å×À̺í : `+$("#tableValue").closest("dd").text()+` = `+$("#tablePrice").text()+` °è´Ü ¿îÀÓ·á : `+stairTxt+` = `+$("#stairsPrice").text()+` ºÎ°¡¼¼ : `+$("#vatPrice").text()+` ¿¹»ó°ßÀû : `+finalPrice+` `; $("textarea#final_txt").text(estimate_final_txt); $("textarea[name=add1]").val(estimate_final_txt); com_formmail_formCheck(); }); });