var fc_countries = {};
var fc_locations = new Array();
            fc_locations[0] = {};
            fc_locations[0]['value'] = '170';
            fc_locations[0]['label'] = '';
            fc_locations[1] = {};
            fc_locations[1]['value'] = '114';
            fc_locations[1]['label'] = 'コート・デュ・ローヌ';
            fc_locations[2] = {};
            fc_locations[2]['value'] = '115';
            fc_locations[2]['label'] = 'コート・ド・ルーション';
            fc_locations[3] = {};
            fc_locations[3]['value'] = '116';
            fc_locations[3]['label'] = 'シャンパーニュ';
            fc_locations[4] = {};
            fc_locations[4]['value'] = '117';
            fc_locations[4]['label'] = 'ジュラ・サヴォワ';
            fc_locations[5] = {};
            fc_locations[5]['value'] = '118';
            fc_locations[5]['label'] = 'スッド・ウエスト';
            fc_locations[6] = {};
            fc_locations[6]['value'] = '119';
            fc_locations[6]['label'] = 'ブルゴーニュ';
            fc_locations[7] = {};
            fc_locations[7]['value'] = '120';
            fc_locations[7]['label'] = 'プロヴァンス・コルス';
            fc_locations[8] = {};
            fc_locations[8]['value'] = '121';
            fc_locations[8]['label'] = 'ボルドー';
            fc_locations[9] = {};
            fc_locations[9]['value'] = '122';
            fc_locations[9]['label'] = 'モンラベル';
            fc_locations[10] = {};
            fc_locations[10]['value'] = '123';
            fc_locations[10]['label'] = 'ラングドック・ルーション';
            fc_locations[11] = {};
            fc_locations[11]['value'] = '124';
            fc_locations[11]['label'] = 'ヴァル・ド・ロワール';
fc_countries[89] = fc_locations;
var fc_locations = new Array();
            fc_locations[0] = {};
            fc_locations[0]['value'] = '171';
            fc_locations[0]['label'] = '';
            fc_locations[1] = {};
            fc_locations[1]['value'] = '125';
            fc_locations[1]['label'] = 'アブルッツォ';
            fc_locations[2] = {};
            fc_locations[2]['value'] = '126';
            fc_locations[2]['label'] = 'ウンブリア';
            fc_locations[3] = {};
            fc_locations[3]['value'] = '127';
            fc_locations[3]['label'] = 'エミーリア・ロマーニャ';
            fc_locations[4] = {};
            fc_locations[4]['value'] = '128';
            fc_locations[4]['label'] = 'カラーブリア';
            fc_locations[5] = {};
            fc_locations[5]['value'] = '129';
            fc_locations[5]['label'] = 'カンパーニャ';
            fc_locations[6] = {};
            fc_locations[6]['value'] = '130';
            fc_locations[6]['label'] = 'サルデーニャ';
            fc_locations[7] = {};
            fc_locations[7]['value'] = '131';
            fc_locations[7]['label'] = 'シチーリア';
            fc_locations[8] = {};
            fc_locations[8]['value'] = '132';
            fc_locations[8]['label'] = 'トスカーナ';
            fc_locations[9] = {};
            fc_locations[9]['value'] = '133';
            fc_locations[9]['label'] = 'トレンティーノ・アルト・アディジェ';
            fc_locations[10] = {};
            fc_locations[10]['value'] = '134';
            fc_locations[10]['label'] = 'バジリカータ';
            fc_locations[11] = {};
            fc_locations[11]['value'] = '135';
            fc_locations[11]['label'] = 'ピエモンテ';
            fc_locations[12] = {};
            fc_locations[12]['value'] = '136';
            fc_locations[12]['label'] = 'フリウーリ・ヴェネツィア・ジューリア';
            fc_locations[13] = {};
            fc_locations[13]['value'] = '137';
            fc_locations[13]['label'] = 'プーリア';
            fc_locations[14] = {};
            fc_locations[14]['value'] = '138';
            fc_locations[14]['label'] = 'マルケ';
            fc_locations[15] = {};
            fc_locations[15]['value'] = '139';
            fc_locations[15]['label'] = 'モリーゼ';
            fc_locations[16] = {};
            fc_locations[16]['value'] = '140';
            fc_locations[16]['label'] = 'ラツィオ';
            fc_locations[17] = {};
            fc_locations[17]['value'] = '141';
            fc_locations[17]['label'] = 'ロンバルディーア';
            fc_locations[18] = {};
            fc_locations[18]['value'] = '142';
            fc_locations[18]['label'] = 'ヴェネト';
fc_countries[90] = fc_locations;
var fc_locations = new Array();
            fc_locations[0] = {};
            fc_locations[0]['value'] = '172';
            fc_locations[0]['label'] = '';
            fc_locations[1] = {};
            fc_locations[1]['value'] = '143';
            fc_locations[1]['label'] = 'アンダルシア';
            fc_locations[2] = {};
            fc_locations[2]['value'] = '144';
            fc_locations[2]['label'] = 'エブロ河流域と北部海岸';
            fc_locations[3] = {};
            fc_locations[3]['value'] = '145';
            fc_locations[3]['label'] = 'カスティーリャ・レオン';
            fc_locations[4] = {};
            fc_locations[4]['value'] = '146';
            fc_locations[4]['label'] = 'カタルーニャ(北東部海岸)';
            fc_locations[5] = {};
            fc_locations[5]['value'] = '147';
            fc_locations[5]['label'] = 'ガリシア';
            fc_locations[6] = {};
            fc_locations[6]['value'] = '148';
            fc_locations[6]['label'] = 'リオハ';
            fc_locations[7] = {};
            fc_locations[7]['value'] = '149';
            fc_locations[7]['label'] = 'レバンテ';
fc_countries[91] = fc_locations;
var fc_locations = new Array();
            fc_locations[0] = {};
            fc_locations[0]['value'] = '173';
            fc_locations[0]['label'] = '';
            fc_locations[1] = {};
            fc_locations[1]['value'] = '150';
            fc_locations[1]['label'] = 'アール';
            fc_locations[2] = {};
            fc_locations[2]['value'] = '151';
            fc_locations[2]['label'] = 'ナーエ';
            fc_locations[3] = {};
            fc_locations[3]['value'] = '152';
            fc_locations[3]['label'] = 'ニュールンベルク';
            fc_locations[4] = {};
            fc_locations[4]['value'] = '153';
            fc_locations[4]['label'] = 'バーデン';
            fc_locations[5] = {};
            fc_locations[5]['value'] = '154';
            fc_locations[5]['label'] = 'ファルツ';
            fc_locations[6] = {};
            fc_locations[6]['value'] = '155';
            fc_locations[6]['label'] = 'フランケン';
            fc_locations[7] = {};
            fc_locations[7]['value'] = '156';
            fc_locations[7]['label'] = 'ヘシッシェ・ベルクシュトラーセ';
            fc_locations[8] = {};
            fc_locations[8]['value'] = '157';
            fc_locations[8]['label'] = 'ミッテルライン';
            fc_locations[9] = {};
            fc_locations[9]['value'] = '158';
            fc_locations[9]['label'] = 'モーゼル・ザール・ルーヴァー';
            fc_locations[10] = {};
            fc_locations[10]['value'] = '159';
            fc_locations[10]['label'] = 'ラインガウ';
            fc_locations[11] = {};
            fc_locations[11]['value'] = '160';
            fc_locations[11]['label'] = 'ラインヘッセン';
            fc_locations[12] = {};
            fc_locations[12]['value'] = '161';
            fc_locations[12]['label'] = 'ヴュルテンベルク';
fc_countries[92] = fc_locations;
var fc_locations = new Array();
fc_countries[93] = fc_locations;
var fc_locations = new Array();
fc_countries[94] = fc_locations;
var fc_locations = new Array();
fc_countries[95] = fc_locations;
var fc_locations = new Array();
fc_countries[96] = fc_locations;
var fc_locations = new Array();
fc_countries[97] = fc_locations;
var fc_locations = new Array();
fc_countries[98] = fc_locations;
var fc_locations = new Array();
fc_countries[99] = fc_locations;
var fc_locations = new Array();
fc_countries[100] = fc_locations;
var fc_locations = new Array();
fc_countries[101] = fc_locations;
var fc_locations = new Array();
fc_countries[102] = fc_locations;
var fc_locations = new Array();
fc_countries[103] = fc_locations;
var fc_locations = new Array();
fc_countries[104] = fc_locations;

      function fc_onchange_country_form(form_select_id) {
        var select_element = document.getElementById(form_select_id);
        var country_id = select_element.options[select_element.selectedIndex].value;
        fc_change_location_options('attr_53_value', country_id);
      }
      
      function fc_onchange_country_form2(country_form_id, location_form_id) {
        var select_element = document.getElementById(country_form_id);
        var country_id = select_element.options[select_element.selectedIndex].value;
        fc_change_location_options(location_form_id, country_id);
      }

      function fc_change_location_options(location_form_id, country_id) {
        var locationSelector = document.getElementById(location_form_id);
        var selectedLocations = fc_countries[country_id];

        if (locationSelector == null) {
          return false;
        }
          
        var oldLocationOptions = locationSelector.options;
        for (var i = oldLocationOptions.length;i >= 0;i--){
          locationSelector.remove(i);
        }

        if (selectedLocations == null) {
          return false;
        }
        
        locationSelector.length = selectedLocations.length;
        for (var i = 0;i < selectedLocations.length;i++) {
          var newOption=new Option(selectedLocations[i]['label'], selectedLocations[i]['value']);
          locationSelector[i] = newOption;
        }
      }
