jQuery(function(){
	//詳細地域連動プルダウン
	$('#area_1')
		.change(
			function() {
				//都道府県のキーを取得
				var area_1 = $(this).val();
				
				//次のプルダウンの要素を再構築
//				$(this)
//					.nextAll("select")
//						.replaceWith("<select name=\""+ area2name +"\""+add_attr+"></select>")
					;
				//optionを一旦空にする
				$(this)
					.nextAll("select")
						.empty()
					;
			//表示開始
				for(keys in area_2[area_1]) {
					$(this)
						.nextAll("select")
							.append($('<option>').attr({ value: keys }).text(area_2[area_1][keys]))
						;
				}
			}
		)
	;
});
