--- uc_vat_number.js 2008-11-18 17:57:18.000000000 +0100 +++ uc_vat_number.js 2009-01-21 13:52:33.000000000 +0100 @@ -28,12 +28,15 @@ $(document).ready( function() { var european_countries = [276, 040, 056, 208, 724, 246, 250, 300, 372, 380, 442, 528, 620, 826, 752, 196, 233, 348, 428, 440, 470, 616, 203, 703, 705]; + var european_iso = ["DE", "AT", "BE", "DK", "ES", "FI", "FR", "EL", "IE", "IT", "LU", "NL", "PT", "GB", "SE", "CY", "EE", "HU", "LV", "LT", "MT", "PL", "CZ", "SK", "SL"]; var vat_label =$('#billing-pane tr:last td.field-label').html(); $('#edit-panes-billing-billing-country').change(function () { var in_europe = false; for(var country_id in european_countries) { if(european_countries[country_id] == $('#edit-panes-billing-billing-country').val()) { in_europe = true; + $('#edit-panes-billing-billing-vat-number').empty().val(european_iso[country_id]); + } } if(in_europe == true) {