function BindTel(){var t=document.querySelector("#telField");t&&window.intlTelInput(t,{initialCountry:"auto",geoIpLookup:function(t){$.get("https://ipinfo.io",function(){},"jsonp").always(function(e){var l=e&&e.country?e.country:"";t(l);var n=window.intlTelInputGlobals.getCountryData();document.querySelector("#telField");for(var o=0;o<n.length;o++){var i=n[o];if(l.toLowerCase()==i.iso2){null!=(hdnCountryName=document.getElementById("hdnCountryName"))&&(hdnCountryName.value=i.name),null!=(hdnCountryCode=document.getElementById("hdnCountryCode"))&&(hdnCountryCode.value=i.dialCode);break}}})}}),$(document).ready(function(){document.querySelector("#telField"),$("ul[id*=country-listbox] li").click(function(){if($(this).text().split("+").length>0){var t=$(this).text().split("+")[0],e=$(this).text().split("+")[1];null!=(hdnCountryName=document.getElementById("hdnCountryName"))&&(hdnCountryName.value=t),null!=(hdnCountryCode=document.getElementById("hdnCountryCode"))&&(hdnCountryCode.value=e)}})})}