PageSourceSearch

https://philkotse.com/commonScripts?v=CmqsgEAP6_QBi00ttYMojYXjm1C4jqU_HnA1i6sJmME1

js philkotse.com collected 2026-10-02 06:20:43 UTC 31,641 bytes, 1 lines download raw bytes

1function initMap(n){var t=$("#hdX").val().replace(",","."),i=$("#hdY").val().replace(",",".");$(n).html('<iframe width="100%" height="100%" frameborder= "0" style= "border:0" src="https://www.google.com/maps/embed/v1/place?q='+t+","+i+'&key=AIzaSyAT1NB-OnXJdTbW7Gx5M7lH57DH7JbTxKA&zoom=14" allowfullscreen><\/iframe>')}function initMapFromAddress(n,t){$(n).html('<iframe width="100%" height="100%" frameborder= "0" style= "border:0" src="http://maps.google.com/maps?q='+encodeURIComponent(t)+'&zoom=14&amp;output=embed" allowfullscreen><\/iframe>')}function formatPhone(n){var t=n.length;return t>8&&t<12&&(n=n.insertAt(t-4,"-"),n=n.insertAt(t-7,"-")),n}function loadPopupFromUrl(n,t,i){Loading();$.get(n,t).done(function(n){Loaded();n!=""?$("#popup").append(n).append(i):MessageError("An error occurred, please try again later")}).fail(function(n,t){var i="";i=n.status===0?"Not connect.\n Verify Network.":n.status==404?"Requested page not found. [404]":n.status==500?"Internal Server Error [500].":t==="parsererror"?"Requested JSON parse failed.":t==="timeout"?"Time out error.":t==="abort"?"Ajax request aborted.":"Uncaught Error.\n"+n.responseText;Loaded();alert(i)})}function refreshCaptcha(){refreshNewCaptcha("imgCaptchaNew")}function refreshNewCaptcha(n){$("#"+n).attr("src","/HandlerWeb/CaptchaHandler.ashx?t="+(new Date).getMilliseconds())}function getUserInfoCallBack(){if(CheckAutoSaved(),initOneSignal(),setTimeout(function(){CheckPopupSubscribe()},500),$("#commentBoxContainer").length>0){var n=$("#commentBoxContainer").attr("data-article-id"),t=$("#commentBoxContainer").attr("data-article-type");$.ajax({url:"/CarReview/CommentReview",data:{articleId:n,articleType:t},success:function(n){$("#commentBoxContainer").html(n)}})}_ChatBoxConversation.InitShowBoxChat();$(".showMenuLogin").on("click",function(){$(".menu-product").hide();$("#menuUserLogin").removeClass("hidden").show(300)});$("#backMenu").on("click",function(){$("#menuUserLogin").addClass("hidden").hide();$(".menu-product").show(300)});$("#menuUserLogin .menu-top-ver2 li .icon").on("click",function(){$(this).parent().hasClass("open")?$(this).parent().removeClass("open"):$(this).parent().addClass("open")});suggestLoginGoogle()}function suggestLoginGoogle(){var r=$("#hddUserId").val(),n,t,i;if(r!==undefined&&r!=null&&r>0)Utility.SetCookie("_isFirstRequest",0,1);else{if(n=window.location.pathname,n!=""&&(n.indexOf("/car-review/")>-1||n.indexOf("-price-philippines")>-1)){$("body #g_id_onload").length&&$("body").append('<script src="https://accounts.google.com/gsi/client" defer><\/script>');return}t=Utility.GetCookie("_isFirstRequest");t!=""&&t!=undefined?(i=parseInt(parseInt(t)+1),i==3&&$("body #g_id_onload").length&&$("body").append('<script src="https://accounts.google.com/gsi/client" defer><\/script>'),parseInt(i)<3&&Utility.SetCookie("_isFirstRequest",parseInt(i),1)):Utility.SetCookie("_isFirstRequest",1,1)}}function getUserInfo(){$.ajax({type:"GET",cache:!1,data:{},url:"/Auto/AccountInfo",success:function(n){$("#box-user").append(n)},complete:function(){getUserInfoCallBack()},error:function(){}})}function CheckPopupSubscribe(){$("#subscribe-guide-container").length>0&&oneSignalStatus.IsBrowserSupported&&!oneSignalStatus.IsSubscribed&&$("#subscribe-guide-container").html('<div id="subscribe-guide" class="mg-top-30">To receive notifications immediately when you have new messages from buyers, click on the subscribe button in the lower left corner of your screen. responding to inquiries quickly will increase your chances of selling<\/div>')}function HideSubscribe(n){$(".subscribe-suggestion-container").hide();setCookieHideSubscribePopup(n)}function CheckExistCookieHideSubscribe(n){var t="hidePopupSubscribeId"+n,i=getCookie(t);return i!=""?!0:!1}function setCookieHideSubscribePopup(n){var t=new Date,i=t.getTime();i+=864e5;t.setTime(i);document.cookie="hidePopupSubscribeId"+n+"=true; expires="+t.toUTCString()+"; path=/"}function getCookie(n){for(var r=n+"=",f=decodeURIComponent(document.cookie),u=f.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""}function initOneSignal(){var i,t,n;
1window.location.host!="philkotse.local"&&(i=$("#hddOneSignalAppId").val(),i!=undefined&&i!=""&&(t=$("#hddUserId").val(),n=window.OneSignal||[],n.push(function(){var r=n.isPushNotificationsSupported();if(r)oneSignalStatus.IsBrowserSupported=!0;else{oneSignalStatus.IsBrowserSupported=!1;return}n.init({appId:i,notifyButton:{enable:!0},autoRegister:!0,requiresUserPrivacyConsent:!1});$(document).trigger("one_signal_inited");(t==undefined||t<0)&&(t=0);n.sendTags({userId:t}).then(function(){})}),n.getUserId(function(n){console.log("OneSignal User ID:",n);OneSignal_SendTags(n,t)}),n.isPushNotificationsEnabled(function(t){t?oneSignalStatus.IsSubscribed=!0:(oneSignalStatus.IsSubscribed=!1,n.showNativePrompt())})))}function OneSignal_SendTags(n,t){t>0&&n!=null&&OneSignal.getTags(function(n){console.log("OneSignal User tag:",n.userId);n.userId=="0"&&OneSignal.sendTags({userId:t})})}function URLSearchParamsCustom(n){this.url=n;this.has=function(t){var i=new RegExp("[?&]"+t+"=([^&#]*)").exec(n);return i!==null&&i[1]&&decodeURI(i[1]).trim()!==""};this.get=function(t){var i=new RegExp("[?&]"+t+"=([^&#]*)").exec(n);return i===null?null:decodeURI(i[1])||0}}function isIE(){var n=window.navigator.userAgent;return/MSIE (\d+\.\d+);/.test(navigator.userAgent)?!0:/Trident.*rv\:11\./.test(navigator.userAgent)?!0:!1}function FirebasePhoneVerifier(n,t,i){function f(){return{success:!1,data:null,message:null,code:null}}function l(t){var r=f();$.ajax({url:i.VerifyFormUrl,success:function(u){u&&u.trim()!==""?($("#"+n).html(u),r.success=!0,$("#"+i.VerifyPopupId).attr("data-id",c),$("#"+i.VerifyFormId).removeData("validator").removeData("unobtrusiveValidation"),$.validator.unobtrusive.parse($("#"+i.VerifyPopupId)),$("#"+i.VerifyFormId).unbind("submit"),$("#"+i.VerifyFormId).submit(function(n){n.preventDefault();return}),$("#"+i.VerifyPopupId+" .close, #"+i.VerifyFormId+" .cancel").unbind("click"),$("#"+i.VerifyPopupId+" .close, #"+i.VerifyFormId+" .cancel").click(function(){if(p(),e){e=!1;var n=f();return n.message="Your phone number has not been verified. Please try again!",t(n)}}),$("#"+i.VerifyFormId+' button[type="submit"], #'+i.VerifyFormId+' [name="Code"]').prop("disabled",!0),i.OnFormLoad instanceof Function&&i.OnFormLoad(),$("#"+i.VerifyFormId+' [name="Code"]').unbind("keyup"),$("#"+i.VerifyFormId+' [name="Code"]').keyup(function(){$("#"+i.VerifyFormId+" .otpMessage").empty()})):r.message="There is an error with OTP function. Please try again later!"},error:function(){r.message="There is an error with OTP function. Please try again later!"},complete:function(){return t(r)}})}function a(n,t){var r=f();$.ajax({type:"POST",url:i.GetOtpUrl,data:n,success:function(n){n?n.Error?r.message=n.Title:r.success=!0:r.message="There is an error with OTP function. Please try again later!"},error:function(){r.message="There is an error with OTP function. Please try again later!"},complete:function(){return t(r)}})}function v(n){u=$("#"+i.VerifyFormId+' [name="Code"]').val();var t=f();$("#"+i.VerifyFormId).valid()&&$.ajax({type:"POST",url:i.VerifyUrl,data:{PhoneNumber:r,Code:u,__RequestVerificationToken:$("#"+i.VerifyFormId).find('[name="__RequestVerificationToken"]').val()},success:function(n){n?n.Error?t.message=n.Title:t.success=!0:t.message="There is an error with OTP function. Please try again later!"},error:function(){t.message="There is an error with OTP function. Please try again later!"},complete:function(){return n(t)}})}function y(n){$("#"+i.VerifyFormId+' button[type="submit"], #'+i.VerifyFormId+' [name="Code"]').prop("disabled",!1);$("#"+i.VerifyFormId).unbind("submit");$("#"+i.VerifyFormId).submit(function(t){t.preventDefault();$("#"+i.VerifyFormId+" .otpMessage").empty();v(function(t){if(!t.success){$("#"+i.VerifyFormId+" .otpMessage").empty().html(t.message).show();i.OnVerifyFailed instanceof Function&&i.OnVerifyFailed();return}return n(t)})});$("#"+i.VerifyPopupId+" .resend").unbind("click");$("#"+i.VerifyPopupId+" .resend").click(function(){$("#"+i.VerifyFormId+' button[type="submit"], #'+i.VerifyFormId+' [name="Code"]').prop("disabled",!0);o.reset();o.verify();$("#"+i.VerifyFormId+" .otpMessage").empty();$("#"+i.VerifyFormId+" .otpSentMessage").hide()})}function p(){w();h()}function w(){$("#"+n).empty()}function h(){var t=$("#"+n).next();t.attr("id")==="btnSendOtp"&&t.remove()}function b(t,i){h();
1$("#"+n).after('<div id="btnSendOtp" style="display: none;"><\/div>');o=new firebase.auth.RecaptchaVerifier("btnSendOtp",{size:"invisible",callback:t});var r=o.verify();r.catch instanceof Function&&r.catch(i)}function s(){$("#"+n).empty();i.OnVerifyComplete instanceof Function&&i.OnVerifyComplete()}function k(){return phoneNumberValidator.isValidMobilePhoneNumber(t)}var r=t,u=undefined,e=!0,o=null,c=+new Date;FirebaseAppInitializer.Init();this.Verify=function(t){if(!k()){var o=f();return o.message="Phone number format is invalid",t(o,r,u)}l(function(o){if(!o.success)return e=!1,t(o,r,u);$("#"+i.VerifyFormId+" .otpSentMessage").hide();b(function(f){$("#"+i.VerifyPopupId+' [name="recaptchaToken"]').val(f);var o={phoneNumber:r,recaptchaToken:f};a(o,function(f){if(!f.success)return s(),t(f,r,u);$("#"+i.VerifyFormId+" .otpSentMessage").show();y(function(f){if(f.success)$("#"+n).html(i.SuccessTemplate),setTimeout(function(){return s(),t(f,r,u)},1200);else return e?t(f,r,u):(s(),t(f,r,u))})})},function(){var n=f();return n.message="An error occurred, please try again later",s(),t(n,r,u)})})}}function pmt(n,t,i,r,u){var f,e;return(r||(r=0),u||(u=0),n===0)?-(i+r)/t:(e=Math.pow(1+n,t),f=-n*i*(e+r)/(e-1),u===1&&(f/=1+n),f)}function loadImageOriginal(){}function initLazyLoad(){var n=lozad("img.lazy, img.lazy-hidden",{threshold:.1});n.observe()}function parseFromPriceCode(n){var t=/\d+/g,i=undefined,r=undefined,u;return!n||n==="0"||n.trim()===""||(n.indexOf("mlt")>-1?r=n.match(t).join([]):n.indexOf("mgt")>-1?i=n.match(t).join([]):(u=n.split("-"),i=u[0].match(t).join([]),r=u[1].match(t).join([]))),{minprice:i,maxprice:r}}function setCookieHideBanner(n){var t="hideBannerId"+n;Utility.SetCookie(t,!0,1)}function checkCookieIsHideBanner(n){var t="hideBannerId"+n;return Utility.CheckCookie(t)}function checkTermAndConditionPopup(n){if(typeof n!="undefined"&&n!=""&&$("#popup").length>0)$("#popup").on("change","#termsAgreedPopup",function(){$(this).is(":checked")?$(n,"#popup").removeClass("readonly-btn"):$(n,"#popup").addClass("readonly-btn")})}function checkTermAndConditionPopupOtherButton(n,t){if(typeof n!="undefined"&&n!=""&&$(t).length>0)$(t).on("change",".termsAgreedPopup",function(){$(this).is(":checked")?$(n,t).removeClass("readonly-btn"):$(n,t).addClass("readonly-btn")})}var ProductPage,ArticelPage,Captcha,oneSignalStatus,autoSaving,FirebaseAppInitializer,loanCalculator,markSoldPopup,ajax_feed,Utility,feedbackDealerTypeEnum,emailValidate;(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n(require("jquery")):n(jQuery)})(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var v,c;if(arguments.length>1&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(v=s.expires,c=s.expires=new Date,c.setMilliseconds(c.getMilliseconds()+v*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(var l=u?undefined:{},y=document.cookie?document.cookie.split("; "):[],a=0,b=y.length;a<b;a++){var p=y[a].split("="),w=f(p.shift()),h=p.join("=");if(u===w){l=r(h,o);break}u||(h=r(h))===undefined||(l[w]=h)}return l};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t)}});ProductPage={impressionCount:function(){if($("#hddListId").length==0||$("#hddListId").val()=="")return!1},viewCount:function(){if($("#hddProductId").length==0||isNaN(parseInt($("#hddProductId").val())))return!1;$.ajax({type:"POST",cache:!1,url:"/Auto/AddProductViewCount/",data:{productId:parseInt($("#hddProductId").val())},success:function(){}})},setProductCookie:function(){var t,n;$("#hddSearchInfo").length==1&&(t=$("#hddSearchInfo").val(),$.cookie("SearchInfo",t,{path:"/",expires:1}),$("#linkSearchAdv").length==1&&$("#linkSearchAdv").attr("href","/advanced-search?act=1"),$("#hddProductId").length==1&&(n=parseInt($("#hddBodyTypeId").val()),(isNaN(n)||n==0)&&(n=2),$.cookie("Auto4UClassification",n,{path:"/",expires:30}),$.cookie("Auto4U",$("#hddPrice").val(),{path:"/",expires:30}),$.cookie("CookieRegionId",$("#hddRegionId").val(),{path:"/",expires:30})))}};ArticelPage={viewCount:function(){if($(" #hddArticleId").length==0||isNaN(parseInt($("#hddArticleId").val())))return!1;
1$.ajax({type:"POST",cache:!1,url:"/Article/AddArticleViewCount/",data:{id:parseInt($("#hddArticleId").val())},success:function(){}})}};String.prototype.insertAt=function(n,t){return this.substr(0,n)+t+this.substr(n)};$.fn.serializeObject=function(){var n={},t=this.serializeArray();return $.each(t,function(){n[this.name]!==undefined?(n[this.name].push||(n[this.name]=[n[this.name]]),n[this.name].push(this.value||"")):n[this.name]=this.value||""}),n};Captcha={getCaptchaV2:function(n){var t=$("#"+n),i=t.attr("data-form-id");t.attr("src","/HandlerWeb/CaptchaHandlerV2.ashx?type="+i+"&t="+(new Date).getMilliseconds())}};oneSignalStatus={Initialized:!1,IsSubscribed:!1,IsBrowserSupported:!0,OnListChat:2,Popup:3};var phoneNumberValidator={PhoneRegex:new RegExp(/^0-?\d{2,3}-?\d{3}-?\d{4}$/),MobilePhoneRegex:new RegExp(/^0-?\d{1,3}-?\d{3}-?\d{4}$/),PhoneNumberEg:"eg: 09012345678 | 08112345678",isValidMobilePhoneNumber:function(){return!0}},mobilePhoneVerifier={Initialized:!1,Init:function(){this.Initialized=!0},InitCallbackParams:function(){return{success:!1,data:null,message:null,code:null}},CheckIfPhoneIsUsed:function(n,t){if(t instanceof Function){var i=mobilePhoneVerifier.InitCallbackParams();if(!phoneNumberValidator.isValidMobilePhoneNumber(n))return i.message="Your phone number is invalid",t(i);$.ajax({url:"/Account/CheckExitsMobile",type:"POST",data:{phone:n},success:function(n){return i.success=!n.Error,i.message=n.Title,t(i)}})}},VerifyOTP:function(n,t,i){var r,u,f;if(t instanceof Function){if(mobilePhoneVerifier.Initialized||mobilePhoneVerifier.Init(),r=mobilePhoneVerifier.InitCallbackParams(),!phoneNumberValidator.isValidMobilePhoneNumber(n))return r.message="Your phone number is invalid",t(r);u={VerifyPopupId:"verifyOtp",VerifyFormId:"frmVerifyOtp",VerifyFormUrl:"/Common/VerifyOTP",GetOtpUrl:"/Common/GetOTP",VerifyUrl:"/Common/VerifyOTPv2",SuccessTemplate:VerifyPhoneSuccess(),OnFormLoad:function(){AutoScroll()},OnVerifyComplete:function(){AutoScroll()}};i&&i!==null&&i.OnVerifyFailed instanceof Function&&(u.OnVerifyFailed=i.OnVerifyFailed);f=new FirebasePhoneVerifier("verifyotpbox",n,u);f.Verify(function(n,i,r){return n.phone=i,n.code=r,t(n)})}},VerifyUserPhoneNumber:function(n,t){mobilePhoneVerifier.CheckIfPhoneIsUsed(n,function(i){if(!i.success)return t(i);mobilePhoneVerifier.VerifyOTP(n,t)})},HandleOTPVerifyTask:function(n,t,i,r){var u,e,f;if(i instanceof Function){if(!phoneNumberValidator.isValidMobilePhoneNumber(n))return u=mobilePhoneVerifier.InitCallbackParams(),u.message="Your phone number is invalid",i(u);e=function(n,t){var i=mobilePhoneVerifier.InitCallbackParams();return i.success=!0,t(i)};f=e;t&&(f=mobilePhoneVerifier.CheckIfPhoneIsUsed);f(n,function(t){if(!t.success)return i(t);mobilePhoneVerifier.VerifyOTP(n,i,r)})}}},tabUtilities={Init:function(){var n=tabUtilities.GetCurrentTabCount();n++;$.cookie("OpenTabCount",n,{path:"/"});$(window).on("beforeunload",function(){n=tabUtilities.GetCurrentTabCount();n>0&&n--;$.cookie("OpenTabCount",n,{path:"/"});tabUtilities.OnTabCloseCallbacks.forEach(function(n){n()})})},GetCurrentTabCount:function(){var n=$.cookie("OpenTabCount");return n===undefined&&(n=0),parseInt(n)},OnTabCloseCallbacks:[],BindOnTabClose:function(n){n instanceof Function&&tabUtilities.OnTabCloseCallbacks.push(n)}};autoSaving={callSaveAuto:function(n,t,i){i instanceof Function&&n>0&&t>0&&$.ajax({type:"POST",cache:!1,url:"/Auto/ProductSave_Insert/",data:{productId:t},success:i})},callDeleteSavedAuto:function(n,t,i){i instanceof Function&&n>0&&t>0&&$.ajax({type:"POST",cache:!1,url:"/MyAccount/ProductSave_Delete/",data:{productId:t},success:i})}};FirebaseAppInitializer={Initialized:!1,Init:function(){if(!FirebaseAppInitializer.Initialized)if(firebase.apps.length===0)firebase.initializeApp(firebaseConfig),this.Initialized=!0;else{var n=firebase.initializeApp(firebaseConfig,"myApp_Philkotse_Firebase_OTP");this.Initialized=!0}},RecaptchaVerifier:null};loanCalculator={Lenders:{GDFI:{Terms:{UsedCars:[12,18,24,36],NewCars:[36,48,60]}},SouthAsia:{Terms:{UsedCars:[12,18,24,36],NewCars:[36,48,60]}},Other:{Terms:[12,18,24,36,48,60]}},InterestType:{Total:1,Annual:2,Monthly:3},Formulae:{calculateDownPaymentAmount:function(n,t){return n*t/100}
1,calculateAmountFinanced:function(n,t){return n-t},calculateMonthlyPayment:function(n,t,i,r){switch(n){case loanCalculator.InterestType.Total:return t*(1+i/100)/r;case loanCalculator.InterestType.Annual:return Math.abs(pmt(i/1200,r,t,0,0));case loanCalculator.InterestType.Monthly:return Math.abs(pmt(i/100,r,t,0,0));default:return 0}}}};var mapDirection={getDirectionForm:function(n,t){$.ajax({type:"GET",url:"/Auto/GetDirection?sellerId="+n,success:function(n){t(n)}})},getDirectionLink:function(n,t){return!n||!t||n.trim()===""||t.trim()===""?"":"https://www.google.com/maps?saddr="+encodeURIComponent(n).replace(/[!'()*]/g,escape)+"&daddr="+encodeURIComponent(t).replace(/[!'()*]/g,escape)},getLocationLink:function(n,t){return"http://www.google.com/maps/place/"+n+","+t}},userAddress={saveUserAddress:function(n,t){$.ajax({type:"POST",url:"/MyAccount/SaveUserAddress",data:n,success:function(n){t(n)},error:function(){t({Title:"An error occurred! Please try again later!",Error:!0})}})}},autoRecommend={GetRecommendedListings:function(n,t,i,r){r instanceof Function&&$.ajax({url:"/Auto/Recommend",data:{pageType:n,top:t,autoId:i},success:function(n){r(!0,n)},error:function(){r(!1,null)}})},GetRecommendedListingsHome:function(n,t){t instanceof Function&&$.ajax({url:"/Auto/RecommendHome",data:{top:n},success:function(n){t(!0,n)},error:function(){t(!1,null)}})}},autoDetect={detectCarFromImage:function(n,t,i,r){var u,f;if(r instanceof Function){for(u=new FormData,f=0;f<t.length;f++)u.append("imageData",t[f]);i&&u.append("merge",JSON.stringify(i));$.ajax({url:n,type:"POST",data:u,contentType:!1,processData:!1,success:function(n){r(!0,n)},error:function(){r(!1,null)}})}}};(function(n){function t(t){n(t).find("a").each(function(){(n(this).attr("rel")==null||n(this).attr("rel")=="")&&n(this).attr("rel","nofollow")})}function i(n){if(n.indexOf("philkotse.com")==-1)return n;let t=n;return t.indexOf("http")==-1&&(t="//"+t),'<a href="'+t+'" rel="nofollow" target="_blank">'+n+"<\/a>"}n.fn.reDefindLinkInContent=function(){t(this);let r=n(this).html(),u=r.replace(/(?:(?=http\:|https\:|www\.?)[a-zA-Z0-9\.\:/\-_\%\&]+(?=\s)?)/gm,i);n(this).empty();n(this).html(u)};n.fn.modifyHyperlinkAttributes=function(){var t=this;n(t).find("a").each(function(){var r=n(this).attr("href"),t,i;/(?:(?=http\:|https\:|www\.?)[a-zA-Z0-9\.\:/\-_\%\&]+(?=\s)?)/gm.test(r)&&r.indexOf(location.origin)!==0&&(t=n(this).attr("rel"),(!t||t&&t.trim()==="")&&n(this).attr("rel","nofollow"),i=n(this).attr("target"),(!i||i&&i.trim()==="")&&n(this).attr("target","_blank"))})}})(jQuery);$(function(){ProductPage.setProductCookie();ProductPage.impressionCount();ProductPage.viewCount();ArticelPage.viewCount();$("#FacebookUrl").length>0&&$("#FacebookUrl").blur(function(){$("#FacebookUrl").val($.trim($("#FacebookUrl").val()))});$("#Contact_FacebookUrl").length>0&&$("#Contact_FacebookUrl").blur(function(){$("#Contact_FacebookUrl").val($.trim($("#Contact_FacebookUrl").val()))});$(".toTop").on("click",function(n){n.preventDefault();var t=$(window).scrollTop();$("html,body").stop().animate({scrollTop:0},300)});if($(window).scroll(function(){var n=$(window).scrollTop()/$(window).height();n=n>1?1:n;$(".toTop").stop().animate({opacity:n},10)}),getUserInfo(),$(".product_detail_des").length==1&&$(".product_detail_des").reDefindLinkInContent(),initLazyLoad(),$('button[data-class="dvs-btn-link"]').length>0)$('button[data-class="dvs-btn-link"]').on("click",function(){var n=$(this).data("link");n!=""&&n!=undefined&&(location.href=n)})});markSoldPopup={getMarkSoldForm:function(n,t){$.ajax({type:"GET",url:"/MyAccount/MarkSold",data:{productId:n},success:function(n){t(n)}})},submitForm:function(n,t,i,r,u){$.ajax({type:"POST",url:"/MyAccount/MarkSoldGift",data:{productId:n,channelId:t,channelInfo:i,soldType:r},success:function(n){u(n)},error:function(){u({Title:"An error occurred! Please try again later!",Error:!0})}})}};ajax_feed=ajax_feed||{};ajax_feed={post_json_extention:function(n,t,i,r,u){$.ajax({url:n,type:"POST",dataType:"json",data:t,async:!1,beforeSend:function(){i!=null&&i!=undefined&&i()},success:function(n){var u=window.location.pathname,i=t!=null&&t.url
1!=undefined?t.url:"/dang-nhap";t===null||t.login===undefined||t.login?t===null||t.access===undefined||t.access||(window.location.href=i):window.location.href=i+"?returnUrl="+u;r!=null&&r!=undefined&&r(n)},error:function(n){console.log(n.statusText+n.responseText);u!=null&&u!=undefined&&u()}})},post_html_extention:function(n,t,i,r,u){$.ajax({url:n,type:"POST",dataType:"html",cache:!1,data:t,async:!1,beforeSend:function(){i!=null&&i!=undefined&&i()},success:function(n){var u=window.location.pathname,i=t!=null&&t.url!=undefined?t.url:"/dang-nhap";t===null||t.login===undefined||t.login?t===null||t.access===undefined||t.access||(window.location.href=i):window.location.href=i+"?returnUrl="+u;r!=null&&r!=undefined&&r(n)},error:function(n){console.log(n.statusText);u!=null&&u!=undefined&&u()}})}};var _ChatBoxConversation={InitShowBoxChat:function(){var r;try{var t=window.location.hash,i=$("#hddUserId").val(),n=window.location.pathname;if(t!=""&&t!=undefined&&t=="#chat")if(i==undefined){if($("#hddAnchorChatWap").length&&n!="/login/")window.location.href="/login/#chat";else if($("#hddAnchorChat").length){$("#hddAnchorChat").val("#chat");OpenPopupLogin();return}}else _ChatBoxConversation.ShowBoxChat();else if($.cookie("_urlAnchorChat")=="1"&&(n=="/"||n=="")){if(i==undefined){window.history.pushState({},"","/#chat");OpenPopupLogin();return}window.history.pushState({},"","/#chat");_ChatBoxConversation.ShowBoxChat()}r=n+""+window.location.hash;r=="/login/#chat"&&$("#btnLogin").click(function(){$.cookie("_urlAnchorChat",1,{path:"/",expires:1})})}catch(u){consolo.log("#chat")}},ShowBoxChat:function(){$("#chat-ui .starter-icon-container .icon-chat").click();$.cookie("_urlAnchorChat","",{path:"/",expires:1})},SetCookieAnchorChat:function(){$("#hddAnchorChat").val()=="#chat"&&$.cookie("_urlAnchorChat",1,{path:"/",expires:1})}},GtmUtils={pushOtpFailedEvent:function(n,t){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"insurance_OTP_not_successful",phoneNumber:n,email:t})},pushEmailSubmission:function(n,t){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:n,email:t})},pushDataEvent:function(n){window.dataLayer=window.dataLayer||[];window.dataLayer.push(n)}},InputBinder={DropDown:{FetchOptions:function(n,t,i,r){$.ajax({type:t,url:n,data:i,success:function(n){if(r instanceof Function)return r(!0,n)},error:function(){if(r instanceof Function)return r(!1,null)}})},BindOptions:function(n,t,i,r,u,f){$(n).find("option:gt(0)").remove();var e=$(n).html();if(i){if($.each(i,function(n,i){var f=i[u].trim().replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">");e+=t==i[r]?'<option value="'+i[r]+'" selected="selected">'+f+"<\/option>":'<option value="'+i[r]+'">'+f+"<\/option>"}),$(n).html(e),f instanceof Function)return f(!0)}else return f(!1)},FetchAndBindOptions:function(n,t,i,r,u,f,e,o){var s=InputBinder.DropDown.GenerateKey(n,i),h=$("body").data("GetDropDown_"+s);h?InputBinder.DropDown.BindOptions(r,u,h,f,e,function(n){if(o instanceof Function)return o(n)}):InputBinder.DropDown.FetchOptions(n,t,i,function(n,t){if(n)$("body").data("GetDropDown_"+s,t),InputBinder.DropDown.BindOptions(r,u,t,f,e,function(n){if(o instanceof Function)return o(n)});else if(o instanceof Function)return o(!1)})},GenerateKey:function(n,t){var r=encodeURI(n)+"|",i;if(t)for(i in t)t.hasOwnProperty(i)&&(r+=i+"_"+t[i]+"|");return r}}},ImageUploader={RotateUrlPrefix:"rotate/",Rotate90UrlPrefix:"rotate/90/",Rotate180UrlPrefix:"rotate/180/",Rotate270UrlPrefix:"rotate/270/",IsValidImageType:function(n){var t=n.name.split(".").pop().toLowerCase();return $.inArray(t,["gif","png","jpg","jpeg"])>-1},HasValidSize:function(file,size){return file.size<=eval(size*1048576)},UploadImage:function(n,t,i,r){for(var u=0,f=[],e=0;e<i.length;e++)(function(e){setTimeout(function(){var s,h,o;if(!ImageUploader.IsValidImageType(i[e])){u++;alert("Incorrect image format (gif, png, jpg, jpeg)");u===i.length&&r instanceof Function&&r(f);return}if(s=4,!ImageUploader.HasValidSize(i[e],s)){u++;alert("Image size exceeds "+s+" Mb limit");u===i.length&&r instanceof Function&&r(f);return}h=null;o=new FormData;o.append("id","TTR");o.append("fileToUpload",i[e]);o.append("project","BXHPhil");o.append("UploadType","upload");o.append("StringDecypt",t);o.append("submit","Upload Image");$.ajax({url:n+"/UploadHandler.php",type:"POST",data:o,cache:!1,dataType:"json",async:!1,processData:!1,contentType:!1,success:function(n){n&&n.OK&&(h=n.OK)},complete:function(){u++;f.push(h);u===i.length&&r instanceof Function&&r(f)}})},0)})(e)},UploadImageSequential:function(n,t,i,r){var u=0,f=[];setTimeout(function(){ImageUploader.UploadFileIndexRecursive(0,n,t,i,f,u,r)},100)},UploadFileIndexRecursive:function(n,t,i,r,u,f,e){var s,h,o;if(!ImageUploader.IsValidImageType(r[n])){f++;alert("Incorrect image format (gif, png, jpg, jpeg)");f===r.length&&e instanceof Function&&e(u);return}if(s=4,!ImageUploader.HasValidSize(r[n],s)){f++;alert("Image size exceeds "+s+" Mb limit");f===r.length&&e instanceof Function&&e(u);return}h=null;o=new FormData;o.append("id","TTR");o.append("fileToUpload",r[n]);o.append("project","BXHPhil");o.append("UploadType","upload");o.append("StringDecypt",i);o.append("submit","Upload Image");$.ajax({url:t+"/UploadHandler.php",type:"POST",data:o,cache:!1,dataType:"json",async:!1,processData:!1,contentType:!1,success:function(n){n&&n.OK&&(h=n.OK)},complete:function(){f++;u.push(h);f===r.length&&e instanceof Function?e(u):ImageUploader.UploadFileIndexRecursive(++n,t,i,r,u,f,e)}})},GetRotatedImage:function(n){var t="";return n.indexOf(ImageUploader.RotateUrlPrefix)===-1?t=ImageUploader.Rotate270UrlPrefix+n:n.indexOf(ImageUploader.Rotate270UrlPrefix)!==-1?t=ImageUploader.Rotate180UrlPrefix+n.replace(ImageUploader.Rotate270UrlPrefix,""):n.indexOf(ImageUploader.Rotate180UrlPrefix)!==-1?t=ImageUploader.Rotate90UrlPrefix+n.replace(ImageUploader.Rotate180UrlPrefix,""):n.indexOf(ImageUploader.Rotate90UrlPrefix)!==-1&&(t=n.replace(ImageUploader.Rotate90UrlPrefix,"")),t}},DateTimeUtils={IsValidDate_ddMMyyyy:function(n){var u=n.split("/"),f=+u[2],t,i,r;return isNaN(f)?!1:(t=+u[1],isNaN(t)||t<1||t>12)?!1:(i=+u[0],isNaN(i)||i<1||i>31)?!1:(r=new Date(f,t-1,i),r.getDate()!==i||r.getMonth()!==t-1||r.getFullYear()!==f)?!1:!0},CreateDateFrom_ddMMyyyy:function(n){var i=n.split("/"),r=+i[2],u=+i[1],f=+i[0],t=new Date(r,u-1,f);return t.getDate()!==f||t.getMonth()!==u-1||t.getFullYear()!==r?null:t},DatesOnTheSameDay:function(n,t){return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()}},CustomBanner={Init:function(){}},CommonsEvent={InitLozadLoadImg:function(n){let t="img.lazy, img.lazy-hidden, .lazy-no-bg, .lozad";!n||(t=n+" .lazy, "+n+" .lazy-hidden, "+n+" .lazy-no-bg, "+n+" .lozad");let i=lozad(t,{threshold:.1});i.observe()},ShowPopup:function(){$("#popup").show();CommonsEvent.AddNoScroll()},ClosePopup:function(){$("#popup").empty();CommonsEvent.RemoveNoScroll()},AddNoScroll:function(){$("body").addClass("no-scroll")},RemoveNoScroll:function(){$("body").removeClass("no-scroll")},Loading:function(){$("#loadding").html('<div class="bg-popup-loading"> <img src="/ContentV2/Wap/img/loading300.gif" alt="loading" class="loading"/><\/div><div class="modal-backdrop in"><\/div>');CommonsEvent.AddNoScroll()},Loaded:function(){$("#loadding").empty();CommonsEvent.RemoveNoScroll()},ReloadPage:function(){document.location.reload()},RedirectPage:function(n){window.location.href=n!=""&&n!=undefined?n:"/"},RefreshCaptcha:function(n){$("#"+n).attr("src","/HandlerWeb/CaptchaHandler.ashx?t="+(new Date).getMilliseconds())},InitCookieLoginGoogle:function(){var n=Utility.GetCookie("_isFirstRequest");(n==""||n==undefined)&&Utility.SetCookie("_isFirstRequest",1,30)}};Utility={EscapeRegExp:function(n){return n.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")},EncodeTextSearch:function(n){return n.replace(/[&\/\\#,+()$~%.'":*?<>{}^@]/g,"")},SetCookie:function(n,t,i,r){var u,f;i?(u=new Date,u.setTime(u.getTime()+i*864e5),f="expires="+u.toUTCString(),document.cookie=n+"="+t+";"+f+";path=/",document.cookie=r?n+"="+t+";"+f+";max-age="+r+";path=/":n+"="+t+";"+f+";path=/"):document.cookie=r?n+"="+t+";max-age="+r+";path=/":n+"="+t+";path=/"},GetCookie:function(n){for(var r=n+"=",f=decodeURIComponent(document.cookie),u=f.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""},CheckCookie:function(n){const t=this;let i=t.GetCookie(n);return i!=""?!0:!1},DeleteCookie:function(n){const i=this;let t=i.GetCookie(n);t&&(document.cookie=n+"="+t+"; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")},RemoveHtmlTags:function(n){return n!=""?n.replace(/<[^>]*>/g,""):n},RemoveHashTag:function(){if(window.location.hash="",window.history.pushState){var n=document.location.href.replace("#","");window.history.replaceState(null,null,n)}},ValidateEmail:function(n){return/^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9_]+)*)@([A-Za-z0-9]+)(([\.\-‌​]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$/.test(n)},ValidateNumber:function(n){return/^[0-9]+$/.test(n)},ValidateLinkYoutube:function(n){return/^(?:http(?:s) ?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\''<> #]+)/.test(n)},IsDoubleClicked:function(n,t){return n.data("isclicked")?!0:(t=typeof t!="undefined"?t:100,n.data("isclicked",!0),setTimeout(function(){n.removeData("isclicked")},t),!1)},FormatPrice:function(n){n+="";x=n.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";for(var t=/(\d+)(\d{3})/;t.test(x1);)x1=x1.replace(t,"$1,$2");return x1+x2}};feedbackDealerTypeEnum={getQuote:1,inquire:2,requestTestDrive:3,callRequest:4,promoRequest:5,availPromo:6,bookAnAppointment:7};emailValidate={EmailRegex:new RegExp(/^[\w+][\w\.\-]+@[\w\-]+(\.\w{2,4})+$/),isValidEmail:function(n){return emailValidate.EmailRegex.test(n)}};$(document).on("one_signal_inited",function(){oneSignalStatus.Initialized=!0})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.