var paymentformat = { "paymentoption13": { "paymentmethodtitle" : "Affiliate Speedpay", "paymentmethoddescription" : "", "paymentmethodformat" : [ { "groupheading" : "
  • affiliate_speedpayname
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} ]}, { "groupheading" : "
  • affiliate_speedpayaccountno
  • ", "groupfields" : [ {"field": "
  • Account No
     * 
  • "} ]}, { "groupheading" : "
  • affiliate_speedpayaddress
  • ", "groupfields" : [ {"field": "
  • Address 1
     * 
  • "} , {"field": "
  • Address 2
     * 
  • "} , {"field": "
  • City
     * 
  • "} , {"field": "
  • State
     * 
  • "} , {"field": "
  • Country
     * 
  • "} ]}, { "groupheading" : "
  • Extra Info
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption10": { "paymentmethodtitle" : "BAC-VAT", "paymentmethoddescription" : "", "paymentmethodformat" : [ { "groupheading" : "
  • BAC-VATname
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} ]}, { "groupheading" : "
  • BAC-VATaccountno
  • ", "groupfields" : [ {"field": "
  • Account No
     * 
  • "} ]}, { "groupheading" : "
  • BAC-VATbank
  • ", "groupfields" : [ {"field": "
  • Bank Name
     * 
  • "} , {"field": "
  • Swift / BSB
     * 
  • "} ]}, { "groupheading" : "
  • BAC-VATaddress
  • ", "groupfields" : [ {"field": "
  • Address 1
     * 
  • "} , {"field": "
  • Address 2
     * 
  • "} , {"field": "
  • City
     * 
  • "} , {"field": "
  • State
     * 
  • "} , {"field": "
  • Country
     * 
  • "} ]}, { "groupheading" : "
  • Extra Info
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption1": { "paymentmethodtitle" : "Cheque", "paymentmethoddescription" : "Cheque Details", "paymentmethodformat" : [ { "groupheading" : "
  • Full Name to Appear on Check
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} ]}, { "groupheading" : "
  • Address to Send Check to
  • ", "groupfields" : [ {"field": "
  • Address 1
     * 
  • "} , {"field": "
  • Address 2
     * 
  • "} , {"field": "
  • City
     * 
  • "} , {"field": "
  • State
     * 
  • "} , {"field": "
  • Country
     * 
  • "} ]}, { "groupheading" : "
  • Additional Check Information
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption2": { "paymentmethodtitle" : "Electronic Transfer", "paymentmethoddescription" : "Electronic Transfer detail", "paymentmethodformat" : [ { "groupheading" : "
  • Electronic transfer name
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} ]}, { "groupheading" : "
  • Electronic transfer IBAN
  • ", "groupfields" : [ {"field": "
  • Account No
     * 
  • "} ]}, { "groupheading" : "
  • Electronic transfer bank
  • ", "groupfields" : [ {"field": "
  • Bank Name
     * 
  • "} , {"field": "
  • Swift / BSB
     * 
  • "} ]}, { "groupheading" : "
  • Electronic transfer address
  • ", "groupfields" : [ {"field": "
  • Address 1
     * 
  • "} , {"field": "
  • Address 2
     * 
  • "} , {"field": "
  • City
     * 
  • "} , {"field": "
  • State
     * 
  • "} , {"field": "
  • Country
     * 
  • "} ]}, { "groupheading" : "
  • Additional info
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption14": { "paymentmethodtitle" : "Envoy", "paymentmethoddescription" : "", "paymentmethodformat" : [ { "groupheading" : "
  • EnvoyBankdetails
  • ", "groupfields" : [ {"field": "
  • Country
     * 
  • "} , {"field": "
  • Bank Name
     * 
  • "} , {"field": "
  • Address 1
     * 
  • "} , {"field": "
  • Address 2
     * 
  • "} , {"field": "
  • City
     * 
  • "} , {"field": "
  • State
     * 
  • "} ]}, { "groupheading" : "
  • Envoyaccount
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} , {"field": "
  • Account Number
     * 
  • "} , {"field": "
  • IBAN
     * 
  • "} , {"field": "
  • envoybankcode
     * 
  • "} , {"field": "
  • envoybranchcode
     * 
  • "} , {"field": "
  • checkdigits
     * 
  • "} , {"field": "
  • Swift/BSB/Routing
     * 
  • "} ]}, { "groupheading" : "
  • Extra Info
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption6": { "paymentmethodtitle" : "Firepay", "paymentmethoddescription" : "", "paymentmethodformat" : [ { "groupheading" : "
  • firepayname
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} ]}, { "groupheading" : "
  • firepayemail
  • ", "groupfields" : [ {"field": "
  • Email Address
     * 
  • "} ]}, { "groupheading" : "
  • firepayinfo
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption12": { "paymentmethodtitle" : "Intercash Prepaid Card", "paymentmethoddescription" : "The Intercash Prepaid Card gives you instant access to your commission payments. You can enter your existing Card Number below or sign up for one now.

    This is a secure page", "paymentmethodformat" : [ { "groupheading" : "
  • Enter your name as it appears on your Intercash Prepaid Card or other Intercash card:
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} ]}, { "groupheading" : "
  • Enter your Intercash Prepaid Card number or other Intercash card number:
  • ", "groupfields" : [ {"field": "
  • Account No
     * 
  • "} ]}, { "groupheading" : "
  • Extra Info
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption8": { "paymentmethodtitle" : "monetaru", "paymentmethoddescription" : "", "paymentmethodformat" : [ { "groupheading" : "
  • monetaruemail
  • ", "groupfields" : [ {"field": "
  • Email Address
     * 
  • "} ]}, { "groupheading" : "
  • monetaruaccountno
  • ", "groupfields" : [ {"field": "
  • Account No
     * 
  • "} ]}, { "groupheading" : "
  • monetaruinfo
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption9": { "paymentmethodtitle" : "moneybookers", "paymentmethoddescription" : "Moneybookers is not available for the Brazilian merchant.", "paymentmethodformat" : [ { "groupheading" : "
  • Moneybooker Account Name
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} ]}, { "groupheading" : "
  • Moneybooker Contact Email
  • ", "groupfields" : [ {"field": "
  • Email Address
     * 
  • "} ]}, { "groupheading" : "
  • Moneybooker Account Info
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption5": { "paymentmethodtitle" : "neteller", "paymentmethoddescription" : "Click here to register directly with Neteller for your own account https://www.neteller.com/signup/index.jsf", "paymentmethodformat" : [ { "groupheading" : "
  • Contact Name
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} , {"field": "
  • netelleraccountno
     * 
  • "} ]}, { "groupheading" : "
  • Neteller Email Address
  • ", "groupfields" : [ {"field": "
  • Email Address
     * 
  • "} ]}, { "groupheading" : "
  • Click here to register directly with Neteller for your own account https://www.neteller.com/signup/index.jsflabel\">Click here to register directly with Neteller for your own account https://www.neteller.com/signup/index.jsf
    Click here to register directly with Neteller for your own account https://www.neteller.com/signup/index.jsfstatus\" style=\"min-height:1px\">
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption4": { "paymentmethodtitle" : "PayPal", "paymentmethoddescription" : "PayPal Details", "paymentmethodformat" : [ { "groupheading" : "
  • PayPal Name
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} ]}, { "groupheading" : "
  • PayPal Email Address
  • ", "groupfields" : [ {"field": "
  • Email Address
     * 
  • "} ]}, { "groupheading" : "
  • PayPal Additional Details
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption3": { "paymentmethodtitle" : "Player Account", "paymentmethoddescription" : "", "paymentmethodformat" : [ { "groupheading" : "
  • Player Account Name
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} ]}, { "groupheading" : "
  • Player Account Email
  • ", "groupfields" : [ {"field": "
  • Email Address
     * 
  • "} ]}, { "groupheading" : "
  • Player Account Number
  • ", "groupfields" : [ {"field": "
  • Account No
     * 
  • "} ]}, { "groupheading" : "
  • Extra Player Account Info
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption11": { "paymentmethodtitle" : "Visa_playeraccount", "paymentmethoddescription" : "", "paymentmethodformat" : [ { "groupheading" : "
  • Player Account Name
  • ", "groupfields" : [ {"field": "
  • First Name
     * 
  • "} , {"field": "
  • Last Name
     * 
  • "} ]}, { "groupheading" : "
  • Player Account Email
  • ", "groupfields" : [ {"field": "
  • Email Address
     * 
  • "} ]}, { "groupheading" : "
  • Player Account Number
  • ", "groupfields" : [ {"field": "
  • Account No
     * 
  • "} ]}, { "groupheading" : "
  • Extra Info
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]}, "paymentoption7": { "paymentmethodtitle" : "Webmoney", "paymentmethoddescription" : "", "paymentmethodformat" : [ { "groupheading" : "
  • Webmoney Account Number
  • ", "groupfields" : [ {"field": "
  • Account No
     * 
  • "} ]}, { "groupheading" : "
  • webmoneyinfo
  • ", "groupfields" : [ {"field": "
  •  * 
  • "} ]}]} }; var countryselectoptions = ""; var activecountry = ""; jQuery(document).ready(function() { defaultoption = ''; if (defaultoption != '') { jQuery("#paymentoptionid").val(defaultoption); } // load form fields when the page loads FNloadpaymentdetailsform(); // reload form fields whenever a payment method changes jQuery("#paymentoptionid").change(function() { FNloadpaymentdetailsform(); }); jQuery('#bankcountry').live('change',function(e){ if (jQuery("#paymentoptionid").val().substring(0,2) =='14') { fnLoadEnvoyCountryValidation();} }); }); function FNloadpaymentdetailsform() { var thisform = jQuery("#paymentoptionid").parents('form:first'); var optionidstr = jQuery("#paymentoptionid").val(); if (optionidstr != null && optionidstr != '') { var selectedoptionid = optionidstr.split('|'); var thisoption = "paymentoption" + selectedoptionid[0]; //console.log("thisoption " + thisoption); thisformtemplate = paymentformat[thisoption]; jQuery('#paymentmenu_title').html(thisformtemplate["paymentmethodtitle"]); jQuery('#paymentmenu_details').html(thisformtemplate["paymentmethoddescription"]); var newElem = ""; jQuery.each(thisformtemplate["paymentmethodformat"], function(secid,thissegroup) { newElem += thissegroup.groupheading; jQuery.each(thissegroup.groupfields, function(fldid, thisfieldvalue) { newElem +=thisfieldvalue.field; }); }); jQuery('#paymentmethodcontainer').html(newElem); if (jQuery("#bankcountry option").length <=1) { jQuery('#bankcountry').append(countryselectoptions)}; if (jQuery("#paymentoptionid").val().substring(0,2) =='14') { fnLoadEnvoyCountryValidation();} } else { jQuery('#paymentmenu_title').html(''); jQuery('#paymentmenu_details').html(''); jQuery('#paymentmethodcontainer').html(''); } } // Get the jQuery validation plugin's settings // FNloadpaymentdetailsform function fnLoadEnvoyCountryValidation() { var curcountry = jQuery('#bankcountry').val(); var emptyfieldarr =[]; var thisform = jQuery("#paymentoptionid").parents('form:first'); var settings = thisform.validate().settings; jQuery.extend(true, settings, {rules: { "accountno": {},"pmfield5": {},"pmfield1": {} ,"pmfield2": {} ,"pmfield4": {} ,"swiftbsb": {} }}); switch (curcountry) { case "UNITED KINGDOM": jQuery.extend(true, settings, { rules: { "accountno": { reqLengths: [8], digits: true, required: true } , "pmfield5": {} //IBAN , "pmfield1": { reqLengths: [6], maxlength: 6, minlength: 6, digits: true, required: true} //bANKcODE , "pmfield2": {} //branchcode , "pmfield4": {} //checkdigits , "swiftbsb": {} // isbicswift } }); jQuery("#accountno, #pmfield1").parents('fieldset').show(); // jQuery("#accountno, #pmfield1, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); jQuery("#pmfield2, #swiftbsb, #pmfield4,#pmfield5").parents('fieldset').hide(); emptyfieldarr = ["#accountno", "#pmfield1", "#pmfield2", "#swiftbsb", "#pmfield4"]; break; default: jQuery.extend(true, settings, { rules: { "accountno": {minlength:2, maxlength:50,alphaNumeric: true,required: true} ,"pmfield5": { reqLengths:[20], isiban: true, required:true} //IBAN ,"pmfield1": { minlength: 2, maxlength: 50, alphaNumeric: true, required: false} //bANKcODE ,"pmfield2": { minlength: 2, maxlength: 50, alphaNumeric: true, required: false} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {reqLengths:[8,11],alphaNumeric: true,required: true} } }); jQuery("#swiftbsb,#pmfield5").parents('fieldset').show(); jQuery("#pmfield2, #pmfield1, #accountno, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield4"]; break; } //This is the most efficient way to handle IBAN cases. switch (curcountry) { case "AUSTRIA": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [20], required: true} } }); break; case "BELGIUM": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [16], required: true} } }); break; case "BULGARIA": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [22], required: true} } }); break; case "CROATIA": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [21], required: true} } }); break; case "CYPRUS": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [28], required: true} } }); break; case "CZECH REPUBLIC": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [24], required: true} } }); break; case "DENMARK": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [18], required: true} } }); break; case "ESTONIA": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [20], required: true} } }); break; case "FINLAND": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [18], required: true} } }); break; case "FRANCE": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [27], required: true} } }); break; case "GERMANY": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [22], required: true} } }); break; case "GIBRALTAR": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [23], required: true} } }); break; case "GREECE": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [27], required: true} } }); break; case "HUNGARY": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [28], required: true} } }); break; case "ICELAND": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [26], required: true} } }); break; case "IRELAND": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [22], required: true} } }); break; case "ITALY": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [27], required: true} } }); break; case "LATVIA": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [21], required: true} } }); break; case "LITHUANIA": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [20], required: true} } }); break; case "LUXEMBOURG": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [20], required: true} } }); break; case "MACEDONIA, THE FORMER YUGOSLAV": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [19], required: true} } }); break; case "MALTA": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [31], required: true} } }); break; case "NETHERLANDS": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [18], required: true} } }); break; case "NORWAY": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [15], required: true} } }); break; case "POLAND": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [28], required: true} } }); break; case "PORTUGAL": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [25], required: true} } }); break; case "ROMANIA": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [24], required: true} } }); break; case "SERBIA": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [22], required: true} } }); break; case "SLOVAKIA": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [24], required: true} } }); break; case "SLOVENIA": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [19], required: true} } }); break; case "SPAIN": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [24], required: true} } }); break; case "SWEDEN": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [24], required: true} } }); break; case "SWITZERLAND": jQuery.extend(true, settings, { rules: { "pmfield5": { reqLengths: [21], required: true} } }); break; default: jQuery("#pmfield5").rules("remove", "reqLengths isiban"); jQuery.extend(true, settings, { rules: { "pmfield5": { maxlength: 50, required: true}} }); break; } // var fieldArr = new Array(); fieldArr[0] = "accountno"; fieldArr[1] = "pmfield5"; fieldArr[2] = "pmfield1"; fieldArr[3] = "pmfield2"; fieldArr[4] = "pmfield4"; fieldArr[5] = "swiftbsb"; for (i = 0; i < fieldArr.length; i++) { if (jQuery("#" + fieldArr[i]) != undefined) { if (jQuery("#" + fieldArr[i]).rules()["required"] == true) { jQuery("#" + fieldArr[i] + "label pre").html(" * "); } else { jQuery("#" + fieldArr[i] + "label pre").html(" "); jQuery("#" + fieldArr[i]).rules("remove", "reqLengths"); } } } //for (var x = 0; x < emptyfieldarr.length; x++) { // jQuery(emptyfieldarr[x]).val(""); //} }; /* case "BULGARIA": case "ESTONIA": case "FINLAND": case "ROMANIA": jQuery.extend(true, settings, {rules: { "accountno": {} ,"pmfield5": {isiban:true, required: true} //IBAN ,"pmfield1": {} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#pmfield5").parents('fieldset').show(); // jQuery("#accountno, #pmfield1, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); jQuery("#accountno, #pmfield1, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#accountno","#pmfield1","#pmfield2","#swiftbsb","#pmfield4"]; break; case "GERMANY": case "ITALY": case "LITHUANIA": jQuery.extend(true, settings, {rules: { "accountno": {} ,"pmfield5": {isiban:true, required: true} //IBAN ,"pmfield1": {} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {isbicswift:true, required: true} // isbicswift }}); jQuery("#pmfield5, #swiftbsb").parents('fieldset').show(); jQuery("#accountno, #pmfield1, #pmfield2, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#accountno","#pmfield1","#pmfield2","#pmfield4"]; break; case "IRELAND": case "UNITED KINGDOM": jQuery.extend(true, settings, {rules: { "accountno": {reqLengths:[8],digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {reqLengths:[6],digits: true,required: true} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} }}); jQuery("#accountno, #pmfield1").parents('fieldset').show(); jQuery("#pmfield5, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "AUSTRALIA": jQuery.extend(true, settings, {rules: { "accountno": {reqLengths:[5,8,9],digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {minlength:6, maxlength:6,digits: true,required: true} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} }}); jQuery("#accountno, #pmfield1").parents('fieldset').show(); jQuery("#pmfield5, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "AUSTRIA": jQuery.extend(true, settings, {rules: { "accountno": {minlength:4, maxlength:11,digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {minlength:5, maxlength:5,digits: true,required: true} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno, #pmfield1").parents('fieldset').show(); jQuery("#pmfield5, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "BELGIUM": jQuery.extend(true, settings, {rules: { "accountno": {minlength:12, maxlength:12,digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno").parents('fieldset').show(); jQuery("#pmfield5, #pmfield1, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield5","#pmfield1,","#pmfield2","#swiftbsb","#pmfield4"]; break; case "CZECH REPUBLIC": jQuery.extend(true, settings, {rules: { "accountno": {reqLengths:[10,12],digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {reqLengths:[4],digits: true,required: true} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno,#pmfield1").parents('fieldset').show(); jQuery("#pmfield5, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "DENMARK": case "SWITZERLAND": jQuery.extend(true, settings, {rules: { "accountno": {minlength:4, maxlength:10,digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {reqLengths:[4],digits: true,required: true} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno,#pmfield1").parents('fieldset').show(); jQuery("#pmfield5, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "FRANCE": jQuery.extend(true, settings, {rules: { "accountno": {reqLengths:[11],digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {reqLengths:[5],digits: true,required: true} //bANKcODE ,"pmfield2": {reqLengths:[5],digits: true,required: true} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno,#pmfield1, #pmfield2").parents('fieldset').show(); jQuery("#pmfield5, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield5","#swiftbsb","#pmfield4"]; break; case "HUNGARY": jQuery.extend(true, settings, {rules: { "accountno": {minlength:16, maxlength:24,digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno").parents('fieldset').show(); jQuery("#pmfield1, #pmfield5, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield1","#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "NETHERLANDS": jQuery.extend(true, settings, {rules: { "accountno": {reqLengths:[10],digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno").parents('fieldset').show(); jQuery("#pmfield1, #pmfield5, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield1","#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "NEW ZEALAND": jQuery.extend(true, settings, {rules: { "accountno": {reqLengths:[14],digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {isbicswift : true,required: true} // isbicswift }}); jQuery("#accountno, #swiftbsb").parents('fieldset').show(); jQuery("#pmfield1, #pmfield5, #pmfield2, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield1","#pmfield5","#pmfield2","#pmfield4"]; break; case "POLAND": jQuery.extend(true, settings, {rules: { "accountno": {reqLengths:[26],digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno").parents('fieldset').show(); jQuery("#pmfield1, #pmfield5, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield1","#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "SINGAPORE": jQuery.extend(true, settings, {rules: { "accountno": {reqLengths:[9,11],digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {reqLengths:[4],digits: true,required: true} //bANKcODE ,"pmfield2": {reqLengths:[3],digits: true,required: true} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno,#pmfield1, #pmfield2").parents('fieldset').show(); jQuery("#pmfield5, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "SOUTH AFRICA": jQuery.extend(true, settings, {rules: { "accountno": {minlength:4, maxlength:16,digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {reqLengths:[6],digits: true,required: true} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno,#pmfield1").parents('fieldset').show(); jQuery("#pmfield5, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "SPAIN": jQuery.extend(true, settings, {rules: { "accountno": {minlength:4, maxlength:16,digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {reqLengths:[4],digits: true,required: true} //bANKcODE ,"pmfield2": {reqLengths:[4],digits: true,required: true} //branchcode ,"pmfield4": {reqLengths:[2],digits: true,required: true} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno,#pmfield1, #pmfield2, #pmfield4").parents('fieldset').show(); jQuery("#pmfield5, #swiftbsb").parents('fieldset').hide(); emptyfieldarr = ["#pmfield5","#swiftbsb"]; break; case "SWEDEN": jQuery.extend(true, settings, {rules: { "accountno": {minlength:4, maxlength:10,digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {reqLengths:[4,5],digits: true,required: true} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno,#pmfield1").parents('fieldset').show(); jQuery("#pmfield5, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "LATVIA": jQuery.extend(true, settings, {rules: { "accountno": {reqLengths:[19],digits: true,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno").parents('fieldset').show(); jQuery("#pmfield5,#pmfield1, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield1","#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break; case "SLOVAKIA": jQuery.extend(true, settings, {rules: { "accountno": {minlength:4, maxlength:23,required: true} ,"pmfield5": {} //IBAN ,"pmfield1": {} //bANKcODE ,"pmfield2": {} //branchcode ,"pmfield4": {} //checkdigits ,"swiftbsb": {} // isbicswift }}); jQuery("#accountno").parents('fieldset').show(); jQuery("#pmfield5,#pmfield1, #pmfield2, #swiftbsb, #pmfield4").parents('fieldset').hide(); emptyfieldarr = ["#pmfield1","#pmfield5","#pmfield2","#swiftbsb","#pmfield4"]; break;*/