'; tk_jQuery_instance("#book_call_contact_form #contact_results").hide().html(output).slideDown(); tk_jQuery_instance("#ajax-loader_book_call").hide(); top.location.href='https://cn.tradekey.com/'+"index.html?action=memberarea_index"; //top.location.href="index.html?action=memberarea_index";	if(json_object.value !== 3 || json_object.value !== 3) { setTimeout(function () { if (_floatbox.hasClass('visiable')) { _floatbox.animate({"right": "-275px"}, {duration: 350}).removeClass('visiable'); } }, 1500); } } }); } }); //reset previously set border colors and hide all message on .keyup() tk_jQuery_instance("#book_call_contact_form input[required=true], #book_call_contact_form textarea[required=true]").keyup(function() { tk_jQuery_instance(this).css('border-color',''); tk_jQuery_instance("#contact_results").slideUp(); }); }); function get_phone_code_book_call(country) {	if(country == "") { return; } tk_jQuery_instance.ajax({ type: "POST", url: "/ajax.php?action=common.get_country_code&return=json", data: "country="+country, dataType: "json", beforeSend: function() { tk_jQuery_instance("#book_call_contact_form #loading_code_book_call #ajax-loader_book_call").show(); }, complete: function() { tk_jQuery_instance("#book_call_contact_form #loading_code_book_call #ajax-loader_book_call").hide(); }, success: function(msg) { if (!msg.description[0].msg) msg.description[0].msg = "1"; tk_jQuery_instance("#book_call_contact_form #code").val(+msg.description[0].msg); } }); } function allowOnlyNumberKey(evt){ var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; }