baseURL = "http://www.hankyu-travel.com/tour/search_d.php?p_from=EVERY&p_naigai=J&p_bunrui=003";
country_array = [

//指定しない
[["指定しない",""]],

//北海道
[["函館","&p_hatsu_sub=101013"],
["千歳","&p_hatsu_sub=101319"],
["札幌","&p_hatsu_sub=101011"],
["旭川","&p_hatsu_sub=101012"],
["釧路","&p_hatsu_sub=101014"],
["帯広","&p_hatsu_sub=101015"],
["女満別","&p_hatsu_sub=101016"],
["北見","&p_hatsu_sub=101017"],
["稚内","&p_hatsu_sub=101018"],
["苫小牧","&p_hatsu_sub=101320"],
["根室","&p_hatsu_sub=101321"],
["紋別","&p_hatsu_sub=101322"]],

//東北
[["青森","&p_hatsu_sub=102022"],
["秋田","&p_hatsu_sub=102023"],
["山形","&p_hatsu_sub=102024"],
["宮城","&p_hatsu_sub=102021"],
["岩手","&p_hatsu_sub=102025"],
["福島","&p_hatsu_sub=102026"]],

//北陸
[["富山","&p_hatsu_sub=103032"],
["福井","&p_hatsu_sub=103033"],
["石川","&p_hatsu_sub=103031"]],

//関東
[["茨城","&p_hatsu_sub=104046"],
["栃木","&p_hatsu_sub=104047"],
["群馬","&p_hatsu_sub=104048"],
["千葉","&p_hatsu_sub=104049"],
["埼玉","&p_hatsu_sub=104045"],
["東京23区","&p_hatsu_sub=104041"],
["東京23区外","&p_hatsu_sub=104042"],
["横浜・川崎市","&p_hatsu_sub=104043"],
["神奈川","&p_hatsu_sub=104044"]],

//中部
[["新潟","&p_hatsu_sub=105051"],
["山梨","&p_hatsu_sub=105052"],
["長野","&p_hatsu_sub=105053"]],

//東海
[["静岡","&p_hatsu_sub=111112"],
["岐阜","&p_hatsu_sub=111113"],
["愛知","&p_hatsu_sub=111111"],
["三重","&p_hatsu_sub=111114"]],

//関西
[["滋賀","&p_hatsu_sub=106064"],
["大阪","&p_hatsu_sub=106061"],
["奈良","&p_hatsu_sub=106065"],
["京都","&p_hatsu_sub=106062"],
["兵庫","&p_hatsu_sub=106063"],
["和歌山","&p_hatsu_sub=106066"]],

//中国
[["鳥取","&p_hatsu_sub=107074"],
["岡山","&p_hatsu_sub=107071"],
["山口","&p_hatsu_sub=107073"],
["島根","&p_hatsu_sub=107075"],
["広島","&p_hatsu_sub=107072"]],

//四国
[["愛媛","&p_hatsu_sub=108081"],
["高知","&p_hatsu_sub=108082"],
["香川","&p_hatsu_sub=108083"],
["徳島","&p_hatsu_sub=108084"]],

//九州
[["北九州","&p_hatsu_sub=109091"],
["福岡","&p_hatsu_sub=109090"],
["長崎","&p_hatsu_sub=109092"],
["大分","&p_hatsu_sub=109093"],
["佐賀","&p_hatsu_sub=109094"],
["熊本","&p_hatsu_sub=109095"],
["宮崎","&p_hatsu_sub=109096"],
["鹿児島","&p_hatsu_sub=109097"]],

//沖縄
[["沖縄","&p_hatsu_sub=110000"]],

];

function set_country(n) {
	while(document.search_form.p_hatsu_count.options.length > 0){
		menuLength = document.search_form.p_hatsu_count.options.length;
		for(creaCnt=0; creaCnt<menuLength; creaCnt++){
			document.search_form.p_hatsu_count.options[creaCnt] = null;
		}
	}
	for(i=0;i< country_array[n].length;i++){
		document.search_form.p_hatsu_count.options[i] = new Option(country_array[n][i][0], country_array[n][i][1]);
		document.search_form.p_hatsu_count.options[i].disabled=false;
	}
}

function getShuppatubi() {
	month = document.search_form.p_month[document.search_form.p_month.selectedIndex].value;
	day = document.search_form.p_dd.selectedIndex;
	if(day=='0') day="";
	return "&p_month="+month+"&p_dd="+day;
}

function setkikan(selOBJ) {
	n = selOBJ.selectedIndex;
switch (n) {
		case 1:
			document.search_form.p_kikan_fr.value = "1";
			document.search_form.p_kikan_to.value = "1";
			break;
		case 2:
			document.search_form.p_kikan_fr.value = "2";
			document.search_form.p_kikan_to.value = "2";
			break;
		case 3:
			document.search_form.p_kikan_fr.value = "3";
			document.search_form.p_kikan_to.value = "3";
			break;
		case 4:
			document.search_form.p_kikan_fr.value = "4";
			document.search_form.p_kikan_to.value = "4";
			break;
		case 5:
			document.search_form.p_kikan_fr.value = "5";
			document.search_form.p_kikan_to.value = "5";
			break;
		case 6:
			document.search_form.p_kikan_fr.value = "6";
			document.search_form.p_kikan_to.value = "";
			break;
		default:
			document.search_form.p_kikan_fr.value = "";
			document.search_form.p_kikan_to.value = "";
			break;
    }
}



function junp(){
hatsu = document.search_form.p_hatsu_count.value;
p_dest = "&p_dest=" + document.search_form.houmen.value;
p_kikan_fr = "&p_kikan_fr=" + document.search_form.p_kikan_fr.value;
p_kikan_to = "&p_kikan_to=" + document.search_form.p_kikan_to.value;
p_bunrui = "&p_bunrui=" + document.search_form.mokuteki.value;
location.href = baseURL + hatsu + p_dest + p_bunrui + getShuppatubi() + p_kikan_fr + p_kikan_to ;
}

