
function setCountry(dc){	
	var dest = dc;
	var cnt =0;
	document.sForm.p_country.options.length = 1;
	if(dest != ""){
		for(i=0;i<countryList.length;i++){
			if (countryList[i].dest == dest){
				cnt = cnt +1;
				this.document.sForm.p_country.options[cnt] = new Option(countryList[i].name, countryList[i].code);
			}
		}
   	}
	document.sForm.p_country.options.length = cnt+1;
	document.sForm.p_country.selectedIndex = 0;
	document.sForm.p_city.options.length = 1;
	document.sForm.p_city.selectedIndex = 0;
}


function setCity(cc){
	var country = cc;
	var cnt =0;
	
	this.document.sForm.p_city.options.length = 1;
	if(country != ""){
		for(i=0; i< cityList.length; i++){
			if (cityList[i].country == country ){
				cnt = cnt +1;
				this.document.sForm.p_city.options[cnt]=new Option(cityList[i].name, cityList[i].code);
			}
		}
	}
	this.document.sForm.p_city.options.length = cnt+1;
	this.document.sForm.p_city.selectedIndex = 0;
}

function setCityV(){
	var num = document.sForm.p_city.selectedIndex;
	var city = document.sForm.p_city.options[num].value;
}

//function setGroup(gc){	
//	var group = gc;
//	var cnt =0;
//	
//	this.document.sForm.p_country.options.length = 1;
//	if(group != ""){
//		for( i=0; i <= countryList.length; i++){
//			if (countryList[i].group == group){
//				cnt = cnt +1;
//				this.document.sForm.p_country.options[cnt] = new Option(countryList[i].name, countryList[i].code);
//			}
//		}
 //  	}
//	   	
//	this.document.sForm.p_country.options.length = cnt+1;
//	this.document.sForm.p_country.selectedIndex = 0;
//	this.document.sForm.p_city.options.length = 1;
//	this.document.sForm.p_city.selectedIndex = 0;
//
//}


//list
function destRec(naigai, code, name){
	this.naigai = naigai;
	this.code = code;
	this.name = name;
}

function makeArray(n){
	this.length=n;
	for(var i=1; i<=n; i++)
	this[i]=null;
	return this;
}

function countryRec(dest, code, name, group){
	this.dest = dest;
	this.code = code;
	this.name = name;
	this.group = group;
}

function cityRec(country, code, name){
	this.country = country;
	this.code = code;
	this.name = name;
}

var i ;
var destList=new makeArray();
i = 0;
destList[i++] =new destRec('W','HWI','ハワイ');
//destList[i++] =new destRec('W','MNA','ミクロネシア');
destList[i++] =new destRec('W','AAS','アジア');
destList[i++] =new destRec('W','BEU','ヨーロッパ');
destList[i++] =new destRec('W','DNU','北アメリカ');
destList[i++] =new destRec('W','ESU','南アメリカ');
destList[i++] =new destRec('W','FOC','オセアニア');
//destList[i++] =new destRec('W','CAF','アフリカ');
destList[i++] =new destRec('W','CHT','中近東');
destList.length = i;

var countryList=new makeArray();
i = 0;
countryList[i++] =new countryRec('HWI','HA','ハワイ');
countryList[i++] =new countryRec('AAS','CN','中国');
countryList[i++] =new countryRec('AAS','HK','香港');
countryList[i++] =new countryRec('AAS','IN','インド');
countryList[i++] =new countryRec('AAS','KH','カンボジア');
countryList[i++] =new countryRec('AAS','KR','韓国');
countryList[i++] =new countryRec('AAS','PH','フィリピン');
countryList[i++] =new countryRec('AAS','MO','マカオ');
countryList[i++] =new countryRec('AAS','MV','モルディブ');
countryList[i++] =new countryRec('AAS','TH','タイ');
countryList[i++] =new countryRec('AAS','TW','台湾');
countryList[i++] =new countryRec('AAS','VN','ベトナム');
countryList[i++] =new countryRec('BEU','FR','フランス','b2');
countryList[i++] =new countryRec('BEU','GB','イギリス','b2');
countryList[i++] =new countryRec('BEU','IE','アイルランド','b2');
countryList[i++] =new countryRec('BEU','IT','イタリア','b2');
countryList[i++] =new countryRec('BEU','DE','ドイツ','b2');
countryList[i++] =new countryRec('BEU','NL','オランダ','b3');
countryList[i++] =new countryRec('BEU','BE','ベルギー','b1');
countryList[i++] =new countryRec('BEU','ES','スペイン','b3');
countryList[i++] =new countryRec('BEU','PT','ポルトガル','b1');
countryList[i++] =new countryRec('BEU','AT','オーストリア','b1');
countryList[i++] =new countryRec('BEU','HU','ハンガリー','b1');
countryList[i++] =new countryRec('BEU','CZ','チェコ','b1');
countryList[i++] =new countryRec('BEU','SE','スウェーデン','b3');
countryList[i++] =new countryRec('BEU','UZ','ウズベキスタン','b1');
countryList[i++] =new countryRec('CHT','TR','トルコ');
countryList[i++] =new countryRec('CHT','AE','アラブ首長国連邦');
countryList[i++] =new countryRec('DNU','US','アメリカ合衆国');
countryList[i++] =new countryRec('DNU','CA','カナダ');
countryList[i++] =new countryRec('ESU','PE','ペルー');
countryList[i++] =new countryRec('ESU','CU','キューバ');
countryList[i++] =new countryRec('FOC','AU','オーストラリア');
countryList[i++] =new countryRec('FOC','NZ','ニュージーランド');
countryList[i++] =new countryRec('FOC','PF','タヒチ');
countryList[i++] =new countryRec('FOC','NC','ニューカレドニア');
//countryList[i++] =new countryRec('AAS','SG','シンガポール');
//countryList[i++] =new countryRec('BEU','GR','ギリシャ','b3');
//countryList[i++] =new countryRec('BEU','MC','モナコ','b3');
//countryList[i++] =new countryRec('BEU','CH','スイス','b2');
//countryList[i++] =new countryRec('BEU','SK','スロバキア','b1');
//countryList[i++] =new countryRec('BEU','RU','ロシア連邦','b1');
//countryList[i++] =new countryRec('BEU','PL','ポーランド','b1');
//countryList[i++] =new countryRec('BEU','DK','デンマーク','b3');
//countryList[i++] =new countryRec('BEU','NO','ノルウェー','b3');
//countryList[i++] =new countryRec('BEU','FI','フィンランド','b3');
//countryList[i++] =new countryRec('BEU','IS','アイスランド','b3');
//countryList[i++] =new countryRec('CAF','EG','エジプト');
//countryList[i++] =new countryRec('CAF','ZA','南アフリカ');
//countryList[i++] =new countryRec('CAF','MU','モーリシャス');
//countryList[i++] =new countryRec('DNU','AK','アラスカ');
//countryList[i++] =new countryRec('ESU','MX','メキシコ');
//countryList[i++] =new countryRec('ESU','CL','チリ');
//countryList[i++] =new countryRec('ESU','AR','アルゼンチン');
//countryList[i++] =new countryRec('ESU','BR','ブラジル');
//countryList[i++] =new countryRec('FOC','PG','パプアニューギニア');
//countryList[i++] =new countryRec('MNA','GU','グアム');
//countryList[i++] =new countryRec('MNA','SP','サイパン');
//countryList[i++] =new countryRec('MNA','MP','北マリアナ連邦');
countryList.length =i;

var cityList=new makeArray();
i = 0
cityList[i++] =new cityRec('HA','HNL','ホノルル（オアフ島）');
cityList[i++] =new cityRec('HA','KOA','ハワイ島');
cityList[i++] =new cityRec('HA','OGG','マウイ島');
cityList[i++] =new cityRec('HA','LIF','カウアイ島');
cityList[i++] =new cityRec('KR','SEL','ソウル');
cityList[i++] =new cityRec('KR','PUS','釜山（プサン）');
cityList[i++] =new cityRec('KR','CJU','済州島（チェジュド）');
cityList[i++] =new cityRec('KR','04K','慶州（ケイシュウ）');
cityList[i++] =new cityRec('TW','TPE','台北');
cityList[i++] =new cityRec('TW','133','九フン');
cityList[i++] =new cityRec('TW','KHH','高雄');
cityList[i++] =new cityRec('TW','HUN','花蓮');
cityList[i++] =new cityRec('HK','HKG','香港');
cityList[i++] =new cityRec('MO','MFM','マカオ');
cityList[i++] =new cityRec('CN','PEK','北京（ペキン）');
cityList[i++] =new cityRec('CN','SHA','上海（シャンハイ）');
cityList[i++] =new cityRec('CN','DLC','大連（ダイレン）');
cityList[i++] =new cityRec('CN','TAO','青島（チンタオ）');
cityList[i++] =new cityRec('CN','XMN','厦門（アモイ）');
cityList[i++] =new cityRec('CN','SHE','瀋陽（シンヨウ）');
cityList[i++] =new cityRec('CN','KAI','開平（カイヘイ）');
cityList[i++] =new cityRec('CN','ZZG','九寨溝（キュウサイコウ）');
cityList[i++] =new cityRec('CN','CAN','広州（コウシュウ）');
cityList[i++] =new cityRec('CN','SHE','瀋陽（シンヨウ）');
cityList[i++] =new cityRec('CN','SZX','深セン（シンセン）');
cityList[i++] =new cityRec('CN','SZV','蘇州（ソシュウ）');
cityList[i++] =new cityRec('CN','CTU','成都（セイト）');
cityList[i++] =new cityRec('PH','CEB','セブ');
cityList[i++] =new cityRec('VN','SGN','ホーチミン');
cityList[i++] =new cityRec('VN','HAN','ハノイ');
cityList[i++] =new cityRec('VN','V04','ホイアン');
cityList[i++] =new cityRec('KH','REP','シェムリアップ');
cityList[i++] =new cityRec('IN','DEL','デリー');
cityList[i++] =new cityRec('MV','MLE','マーレ');
cityList[i++] =new cityRec('FR','PAR','パリ');
cityList[i++] =new cityRec('FR','ZMS','モンサンミッシェル');
cityList[i++] =new cityRec('FR','SXB','ストラスブール');
cityList[i++] =new cityRec('FR','NCE','ニース');
cityList[i++] =new cityRec('FR','MRS','マルセイユ');
cityList[i++] =new cityRec('FR','QXB','エクスアンプロヴァンス');
cityList[i++] =new cityRec('GB','LON','ロンドン');
cityList[i++] =new cityRec('GB','COT','コッツウォルズ');
cityList[i++] =new cityRec('IE','DUB','ダブリン');
cityList[i++] =new cityRec('IE','GWY','ゴールウェイ');
cityList[i++] =new cityRec('IT','ROM','ローマ');
cityList[i++] =new cityRec('IT','FLR','フィレンツェ');
cityList[i++] =new cityRec('IT','MIL','ミラノ');
cityList[i++] =new cityRec('IT','VCE','ベネチア');
cityList[i++] =new cityRec('IT','NAP','ナポリ');
cityList[i++] =new cityRec('DE','BER','ベルリン');
cityList[i++] =new cityRec('DE','FRA','フランクフルト');
cityList[i++] =new cityRec('DE','MUC','ミュンヘン');
cityList[i++] =new cityRec('NL','AMS','アムステルダム');
cityList[i++] =new cityRec('BE','BRU','ブリュッセル');
cityList[i++] =new cityRec('BE','ZGJ','ブルージュ');
cityList[i++] =new cityRec('BE','ANR','アントワープ');
cityList[i++] =new cityRec('SE','STO','ストックホルム');
cityList[i++] =new cityRec('AT','VIE','ウィーン');
cityList[i++] =new cityRec('CZ','PRG','プラハ');
cityList[i++] =new cityRec('HU','BUD','ブダペスト');
cityList[i++] =new cityRec('HR','ZAG','ザグレブ');
cityList[i++] =new cityRec('HR','DBV','ドブロクニク');
cityList[i++] =new cityRec('ES','BCN','バルセロナ');
cityList[i++] =new cityRec('ES','MAD','マドリッド');
cityList[i++] =new cityRec('ES','GRX','グラナダ');
cityList[i++] =new cityRec('ES','ODB','コルドバ');
cityList[i++] =new cityRec('ES','SEQ','セビリア');
cityList[i++] =new cityRec('ES','VLC','バレンシア');
cityList[i++] =new cityRec('ES','AGP','マラガ');
cityList[i++] =new cityRec('PT','LIS','リスボン');
cityList[i++] =new cityRec('PT','OPO','ポルト');
cityList[i++] =new cityRec('PT','CBP','コインブラ');
cityList[i++] =new cityRec('US','NYC','ニューヨーク');
cityList[i++] =new cityRec('US','LAX','ロサンゼルス');
cityList[i++] =new cityRec('US','LAS','ラスベガス');
cityList[i++] =new cityRec('US','ANA','アナハイム');
cityList[i++] =new cityRec('US','SEA','シアトル');
cityList[i++] =new cityRec('CA','YVR','バンクーバー');
cityList[i++] =new cityRec('CA','YBA','バンフ');
cityList[i++] =new cityRec('CA','YTO','トロント');
cityList[i++] =new cityRec('CA','XLV','ナイアガラ');
cityList[i++] =new cityRec('CA','YZF','イエローナイフ');
cityList[i++] =new cityRec('CA','YXY','ホワイトホース<');
cityList[i++] =new cityRec('CA','WHI','ウィスラー');
cityList[i++] =new cityRec('CA','YYJ','ビクトリア');
cityList[i++] =new cityRec('CA','YMQ','モントリオール');
cityList[i++] =new cityRec('CA','YQB','ケベック');
cityList[i++] =new cityRec('CA','YJA','ジャスパー');
cityList[i++] =new cityRec('CU','HAV','ハバナ');
cityList[i++] =new cityRec('PE','MFT','マチュピチュ');
cityList[i++] =new cityRec('PE','CUZ','クスコ');
cityList[i++] =new cityRec('PE','LIM','リマ');
cityList[i++] =new cityRec('AU','SYD','シドニー');
cityList[i++] =new cityRec('AU','CNS','ケアンズ');
cityList[i++] =new cityRec('AU','OOL','ゴールドコースト');
cityList[i++] =new cityRec('AU','AYQ','エアーズロック');
cityList[i++] =new cityRec('NZ','AKL','オークランド');
cityList[i++] =new cityRec('NZ','ROT','ロトルア');
cityList[i++] =new cityRec('NZ','ZQN','クイーンズタウン');
cityList[i++] =new cityRec('NZ','GTN','マウントクック');
cityList[i++] =new cityRec('PF','PPT','パペーテ');
cityList[i++] =new cityRec('PF','BOB','ボラボラ');
cityList[i++] =new cityRec('PF','MOZ','ムーレア');
cityList[i++] =new cityRec('NC','NOU','ヌーメア');
cityList[i++] =new cityRec('FJ','NAN','ナンディ');
cityList[i++] =new cityRec('MU','MRU','モーリシャス');
cityList[i++] =new cityRec('AE','DXB','ドバイ');
cityList[i++] =new cityRec('UZ','TAS','タシケント');
cityList[i++] =new cityRec('TR','IST','イスタンブール');
cityList[i++] =new cityRec('TR','KYA','コンヤ');
//cityList[i++] =new cityRec('GU','GUM','グアム');
//cityList[i++] =new cityRec('SP','SPN','サイパン');
//cityList[i++] =new cityRec('TH','BKK','バンコク');
//cityList[i++] =new cityRec('SG','SIN','シンガポール');
//cityList[i++] =new cityRec('ID','DPS','デンパサール');
//cityList[i++] =new cityRec('MY','BKI','コタキナバル');
//cityList[i++] =new cityRec('MY','KUL','クアラルンプール');
//cityList[i++] =new cityRec('MY','MKZ','マラッカ');
//cityList[i++] =new cityRec('FR','VRS','ヴェルサイユ');
//cityList[i++] =new cityRec('FR','RNS','レンヌ');
//cityList[i++] =new cityRec('FR','AVN','アヴィニヨン');
//cityList[i++] =new cityRec('FR','TUF','トゥール');
//cityList[i++] =new cityRec('FR','BOD','ボルドー');
//cityList[i++] =new cityRec('FR','TLS','トゥールーズ');
//cityList[i++] =new cityRec('FR','LYS','リヨン');
//cityList[i++] =new cityRec('FR','DIJ','ディジョン');
//cityList[i++] =new cityRec('GB','MAN','エジンバラ');
//cityList[i++] =new cityRec('IT','PRJ','カプリ');
//cityList[i++] =new cityRec('IT','PMO','パレルモ');
//cityList[i++] =new cityRec('IT','PMO','アマルフィ');
//cityList[i++] =new cityRec('IT','TNW','タオルミーナ');
//cityList[i++] =new cityRec('GR','ATH','アテネ');
//cityList[i++] =new cityRec('GR','LMK','ミコノス島');
//cityList[i++] =new cityRec('GR','e651','サントリーニ島');
//cityList[i++] =new cityRec('GR','RHO','ロードス島');
//cityList[i++] =new cityRec('GR','E55','クレタ島');
//cityList[i++] =new cityRec('GR','KLM','カランバカ');
//cityList[i++] =new cityRec('DE','DSU','デュッセルドルフ');
//cityList[i++] =new cityRec('DE','HAM','ハンブルグ');
//cityList[i++] =new cityRec('DE','QTK','ローテンブルク');
//cityList[i++] =new cityRec('NL','HAG','ハーグ');
//cityList[i++] =new cityRec('CH','ZRH','チューリッヒ');
//cityList[i++] =new cityRec('CH','GVA','ジュネーブ');
//cityList[i++] =new cityRec('CH','ZHJ','グリンデルワルト');
//cityList[i++] =new cityRec('CH','QZB','ツェルマット');
//cityList[i++] =new cityRec('CH','ZIN','インターラーケン');
//cityList[i++] =new cityRec('CH','ZJK','ルツェルン');
//cityList[i++] =new cityRec('CH','ZJP','モントルー');
//cityList[i++] =new cityRec('CH','ZKH','サンモリッツ');
//cityList[i++] =new cityRec('DK','CPH','コペンハーゲン');
//cityList[i++] =new cityRec('NO','OSL','オスロ');
//cityList[i++] =new cityRec('NO','BGO','ベルゲン');
//cityList[i++] =new cityRec('FI','HEL','ヘルシンキ');
//cityList[i++] =new cityRec('AT','SZG','ザルツブルグ');
//cityList[i++] =new cityRec('SK','BTS','ブラチスラバ');
//cityList[i++] =new cityRec('PL','KRK','クラクフ');
//cityList[i++] =new cityRec('PL','WAW','ワルシャワ');
//cityList[i++] =new cityRec('RU','MOW','モスクワ');
//cityList[i++] =new cityRec('US','WAS','ワシントン');
//cityList[i++] =new cityRec('AU','PER','パース');
//cityList[i++] =new cityRec('NZ','CHC','クライストチャーチ');
//cityList[i++] =new cityRec('EG','CAI','カイロ');
//cityList[i++] =new cityRec('EG','LXR','ルクソール');
//cityList[i++] =new cityRec('EG','ASW','アスワン');
//cityList[i++] =new cityRec('EG','ABS','アブシンベル');
//cityList[i++] =new cityRec('TZ','ARK','アリューシャ');
//cityList[i++] =new cityRec('TZ','DAR','ダルエスサラーム');
//cityList[i++] =new cityRec('TZ','M01','マニャーラ');
//cityList[i++] =new cityRec('TZ','N02','ンゴロンゴロ');
//cityList[i++] =new cityRec('TR','ANK','アンカラ');
cityList.length =i;
