+84 0969180990

[Desired Outcome] in less time than you can imagine

Họ và tên *
Email *
Điện thoại *

[tcb-script] (function () { var ApplyExcelFormSubmitEvent = function(form){ if(!form) return false; var excelformSubmitBtn = form.querySelector(‘[id=WGhEV2VsREN3ekU9submit’); if(excelformSubmitBtn){ excelformSubmitBtn.onclick = function(event){ event.preventDefault(); var btn = this; if(btn.getAttribute(‘disabled’) == ‘disabled’) return false; if(form.onsubmit()){ btn.setAttribute(‘disabled’, ‘disabled’); form.submit(); } else btn.removeAttribute(‘disabled’); } } var ExcelCheckAutoForm = function() { var form = document.forms[‘excelformWGhEV2VsREN3ekU9’]; var excelAutoRequiredFields = [‘f4′,’f16′,’f13’]; for (i = 0; i < excelAutoRequiredFields.length; i++) { var field = form[excelAutoRequiredFields[i]]; if (field) { field.style.border = null; if (((field.value).replace(/^s+|s+$/g, ”)).length == 0) { field.style.border = “1px solid red”; field.focus(); return false; } else if (field.nodeName == ‘SELECT’) { if (field.options[field.selectedIndex].value == ”) { field.style.border = “1px solid red”; field.focus(); return false; } } else if (field.type == ‘checkbox’) { if (field.checked == false) { field.style.border = “1px solid red”; field.focus(); return false; } } } } var excelEmailFields = [‘f16’]; var emailPattern = /^([a-zd!#$%&’*+-/=?^_`{|}~u00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]+(.[a-zd!#$%&’*+-/=?^_`{|}~u00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]+)*|”((([ t]*rn)?[ t]+)?([x01-x08x0bx0cx0e-x1fx7fx21x23-x5bx5d-x7eu00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]|\[x01-x09x0bx0cx0d-x7fu00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]))*(([ t]*rn)?[ t]+)?”)@(([a-zdu00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]|[a-zdu00A0-uD7FFuF900-uFDCFuFDF0-uFFEF][a-zd-._~u00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]*[a-zdu00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]).)+([a-zu00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]|[a-zu00A0-uD7FFuF900-uFDCFuFDF0-uFFEF][a-zd-._~u00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]*[a-zu00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]).?$/i; for (i = 0; i < excelEmailFields.length; i++) { var field = form[excelEmailFields[i]]; if (field) { field.style.border = null; var email = field.value.trim(); if (email != ” && !emailPattern.test(email)) { field.style.border = “1px solid red”; field.focus(); return false; } } } function isGoodDate(dt, format) { var reGoodDate = null; switch (format) { case ‘dd/mm/yyyy’: reGoodDate = /^(0?[1-9]|[12][0-9]|3[01])[- /.]((0?[1-9]|1[012])[- /.](19|20)?[0-9]{2})*$/; break; case ‘mm/dd/yyyy’: reGoodDate = /^((0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])[- /.](19|20)?[0-9]{2})*$/; break; } if (reGoodDate && reGoodDate.test(dt)) return true; return false; } var excelDateFields = []; for (i = 0; i < excelDateFields.length; i++) { var field = form[excelDateFields[i]]; if (field) { field.style.border = null; var dateFormat = field.getAttribute(‘placeholder’).toLowerCase(); var date = field.value.trim(); if (date != ” && !isGoodDate(date, dateFormat)) { field.style.border = “1px solid red”; field.focus(); return false; } } } var dateHours = form.querySelectorAll(‘[ft=datehour]’); for (i = 0; i < dateHours.length; i++) { var field = dateHours[i]; var spanHM = form.querySelector(‘[id=’ + field.getAttribute(‘name’) + ‘]’); var hour = spanHM.querySelectorAll(‘select’)[0].value; var min = spanHM.querySelectorAll(‘select’)[1].value; field.value = field.value + ‘ ‘ + hour + ‘:’ + min; } var currUrl = new URL(document.location); if (typeof (ectrack) != undefined) { var utmInfo = ectrack.getUtm(true); if (utmInfo != null && utmInfo != ”) form.elements[‘utm’].value = utmInfo; } var pageToken = document.querySelector(‘meta[name=ec_pagetoken]’); if(pageToken) currUrl.searchParams.append(“pagetoken”, pageToken.getAttribute(‘value’)); form.action += currUrl.search; var date = new Date(); var offset = date.getTimezoneOffset(); var offsetHours = Math.abs(Math.floor(offset / 60)); var offsetMinutes = Math.abs(offset % 60); form.elements[‘utcoffsethours’].value = offsetHours; form.elements[‘utcoffsetminutes’].value = offsetMinutes; var url = window.location.href; if(url.split(“?”).length > 1){ var query = url.split(“?”)[1]; var vars = query.split(‘&’); for(var i = 0; i<vars.length; i++){ var pair = vars[i].split(‘=’); var parName = pair[0]; var parVal = pair[1]; if(parName.startsWith(‘_ec_p_’)){ var hidField = document.querySelector(“input[fn=” + parName.toLowerCase() + “]”); if(hidField != null && hidField.value == ”) hidField.value = decodeURIComponent(parVal.replace(/+/g, ‘ ‘)); } } } document.charset = “UTF-8”; var btnSubmit = form.elements[‘WGhEV2VsREN3ekU9submit’]; if(btnSubmit) btnSubmit.disabled = true; return true; } form.onsubmit = ExcelCheckAutoForm; }; var form = document.forms[‘excelformWGhEV2VsREN3ekU9’]; ApplyExcelFormSubmitEvent(form); })(); [/tcb-script]