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


var onsenList =new Array();
i = 0;
onsenList[i++] =new onsenRec('01','定山渓温泉','p_city','01102');
onsenList[i++] =new onsenRec('01','層雲峡温泉','p_city','01207');
onsenList[i++] =new onsenRec('01','支笏温泉','p_city','01110');
onsenList[i++] =new onsenRec('01','川湯温泉','p_city','01307');
onsenList[i++] =new onsenRec('01','登別温泉','p_city','01109');
onsenList[i++] =new onsenRec('01','洞爺湖温泉','p_city','01108');
onsenList[i++] =new onsenRec('01','ニセコ温泉','p_city','01104');
onsenList[i++] =new onsenRec('01','湯の川温泉','p_city','01002');
onsenList[i++] =new onsenRec('01','大沼温泉','p_city','01004');
onsenList[i++] =new onsenRec('01','十勝川温泉','p_key','十勝川温泉');
onsenList[i++] =new onsenRec('02','浅虫温泉','p_city','02002');
onsenList[i++] =new onsenRec('02','鰺ヶ沢温泉','p_key','鰺ヶ沢');
onsenList[i++] =new onsenRec('02','不老不死温泉','p_key','不老不死');
onsenList[i++] =new onsenRec('02','十和田湖畔温泉','p_city','02008');
onsenList[i++] =new onsenRec('02','大鰐温泉','p_key','大鰐');
onsenList[i++] =new onsenRec('02','酸ヶ湯温泉','p_key','酸ヶ湯');
onsenList[i++] =new onsenRec('02','古牧温泉','p_city','02009');
onsenList[i++] =new onsenRec('02','青荷温泉','p_city','02003');
onsenList[i++] =new onsenRec('03','花巻温泉','p_city','03005');
onsenList[i++] =new onsenRec('03','雫石温泉','p_city','03006');
onsenList[i++] =new onsenRec('03','つなぎ・鶯宿温泉','p_city','03002');
onsenList[i++] =new onsenRec('03','安比温泉','p_city','03003');
onsenList[i++] =new onsenRec('03','八幡平温泉','p_city','03004');
onsenList[i++] =new onsenRec('05','男鹿温泉','p_city','05009');
onsenList[i++] =new onsenRec('05','田沢湖温泉','p_city','05005');
onsenList[i++] =new onsenRec('05','玉川温泉','p_key','玉川温泉');
onsenList[i++] =new onsenRec('05','新玉川温泉','p_key','新玉川温泉');
onsenList[i++] =new onsenRec('05','乳頭温泉','p_city','054013');
onsenList[i++] =new onsenRec('05','後生掛温泉','p_key','後生掛');
onsenList[i++] =new onsenRec('05','水沢温泉','p_key','水沢温泉');
onsenList[i++] =new onsenRec('05','湯瀬温泉','p_city','05006');
onsenList[i++] =new onsenRec('06','蔵王温泉','p_city','06002');
onsenList[i++] =new onsenRec('06','湯野浜温泉','p_key','湯野浜温泉');
onsenList[i++] =new onsenRec('06','天童温泉','p_key','天童温泉');
onsenList[i++] =new onsenRec('06','赤湯温泉','p_key','赤湯温泉');
onsenList[i++] =new onsenRec('06','五色温泉','p_key','五色温泉');
onsenList[i++] =new onsenRec('06','かみのやま温泉','p_city','06004');
onsenList[i++] =new onsenRec('06','あつみ温泉','p_key','あつみ温泉');
onsenList[i++] =new onsenRec('06','小野川温泉','p_key','小野川温泉');
onsenList[i++] =new onsenRec('06','銀山温泉','p_city','06008');
onsenList[i++] =new onsenRec('04','秋保温泉','p_city','04002');
onsenList[i++] =new onsenRec('04','鬼首温泉','p_key','鬼首');
onsenList[i++] =new onsenRec('04','作並温泉','p_city','04003');
onsenList[i++] =new onsenRec('04','遠刈田温泉','p_key','遠刈田温泉');
onsenList[i++] =new onsenRec('04','中山平温泉','p_key','中山平温泉');
onsenList[i++] =new onsenRec('04','鳴子温泉','p_city','04006');
onsenList[i++] =new onsenRec('07','飯坂温泉','p_city','07002');
onsenList[i++] =new onsenRec('07','土湯温泉','p_key','土湯温泉');
onsenList[i++] =new onsenRec('07','東山温泉','p_key','東山温泉');
onsenList[i++] =new onsenRec('07','芦ノ牧温泉','p_key','芦ノ牧温泉');
onsenList[i++] =new onsenRec('07','横向温泉','p_key','横向温泉');
onsenList[i++] =new onsenRec('07','磐梯熱海温泉','p_key','磐梯熱海温泉');
onsenList[i++] =new onsenRec('07','湯野上温泉','p_key','湯野上温泉');
onsenList[i++] =new onsenRec('07','岳温泉','p_key','岳温泉');
onsenList[i++] =new onsenRec('07','猪苗代温泉','p_city','07004');
onsenList[i++] =new onsenRec('07','裏磐梯の温泉','p_key','裏磐梯の温泉');
onsenList[i++] =new onsenRec('14','箱根温泉','p_city','14005');
onsenList[i++] =new onsenRec('12','白浜温泉','p_city','12007');
onsenList[i++] =new onsenRec('09','那須温泉','p_key','那須温泉');
onsenList[i++] =new onsenRec('09','塩原温泉','p_key','塩原温泉');
onsenList[i++] =new onsenRec('09','川治温泉','p_city','09004');
onsenList[i++] =new onsenRec('09','鬼怒川温泉','p_city','09003');
onsenList[i++] =new onsenRec('10','猿ケ京温泉','p_city','10015');
onsenList[i++] =new onsenRec('10','水上温泉','p_city','10008');
onsenList[i++] =new onsenRec('10','草津温泉','p_city','10003');
onsenList[i++] =new onsenRec('10','万座温泉','p_key','万座温泉');
onsenList[i++] =new onsenRec('10','白根温泉','p_key','白根温泉');
onsenList[i++] =new onsenRec('10','伊香保温泉','p_city','10009');
onsenList[i++] =new onsenRec('10','四万温泉・沢渡温泉','p_city','10010');
onsenList[i++] =new onsenRec('22','熱海温泉','p_key','熱海温泉');
onsenList[i++] =new onsenRec('22','稲取温泉','p_key','稲取温泉');
onsenList[i++] =new onsenRec('22','熱川温泉','p_key','熱川温泉');
onsenList[i++] =new onsenRec('22','今井浜温泉','p_key','今井浜温泉');
onsenList[i++] =new onsenRec('22','蓮台寺温泉','p_key','蓮台寺');
onsenList[i++] =new onsenRec('22','土肥温泉','p_key','土肥温泉');
onsenList[i++] =new onsenRec('22','堂ヶ島温泉','p_key','堂ヶ島温泉');
onsenList[i++] =new onsenRec('22','修善寺温泉','p_key','修善寺温泉');
onsenList[i++] =new onsenRec('22','伊豆長岡温泉','p_key','長岡温泉');
onsenList[i++] =new onsenRec('22','舘山寺温泉','p_key','舘山寺温泉');
onsenList[i++] =new onsenRec('22','赤沢温泉','p_key','赤沢温泉');
onsenList[i++] =new onsenRec('22','伊東温泉','p_key','伊東温泉');
onsenList[i++] =new onsenRec('22','下田温泉','p_key','下田温泉');
onsenList[i++] =new onsenRec('22','寸又峡温泉','p_key','寸又峡温泉');
onsenList[i++] =new onsenRec('22','西浦温泉','p_key','西浦温泉');
onsenList[i++] =new onsenRec('22','蛸川温泉','p_key','蛸川温泉');
onsenList[i++] =new onsenRec('21','奥飛騨温泉郷','p_key','奥飛騨温泉');
onsenList[i++] =new onsenRec('21','平湯温泉','p_key','平湯');
onsenList[i++] =new onsenRec('21','新平湯温泉','p_key','新平湯');
onsenList[i++] =new onsenRec('21','下呂温泉','p_city','21004');
onsenList[i++] =new onsenRec('21','恵那峡温泉','p_key','恵那峡温泉');
onsenList[i++] =new onsenRec('21','長良川温泉','p_city','21009');
onsenList[i++] =new onsenRec('21','飛騨高山温泉','p_city','21002');
onsenList[i++] =new onsenRec('24','奥志摩温泉','p_key','奥志摩温泉');
onsenList[i++] =new onsenRec('24','鳥羽温泉','p_key','鳥羽温泉');
onsenList[i++] =new onsenRec('24','火の谷温泉','p_key','火の谷温泉');
onsenList[i++] =new onsenRec('24','湯の山温泉','p_key','湯の山温泉');
onsenList[i++] =new onsenRec('19','ほったらかし温泉','p_key','ほったらかし');
onsenList[i++] =new onsenRec('19','石和温泉','p_city','19003');
onsenList[i++] =new onsenRec('19','河口湖温泉','p_key','河口湖温泉');
onsenList[i++] =new onsenRec('20','昼神温泉','p_key','昼神温泉');
onsenList[i++] =new onsenRec('20','浅間温泉','p_key','浅間温泉');
onsenList[i++] =new onsenRec('20','美ヶ原温泉','p_key','美ヶ原温泉');
onsenList[i++] =new onsenRec('20','野沢温泉','p_key','野沢温泉');
onsenList[i++] =new onsenRec('20','湯田中渋温泉','p_city','20021');
onsenList[i++] =new onsenRec('20','白骨温泉','p_key','白骨温泉');
onsenList[i++] =new onsenRec('20','別所温泉','p_key','別所温泉');
onsenList[i++] =new onsenRec('20','大町温泉','p_key','大町温泉');
onsenList[i++] =new onsenRec('20','白馬八方温泉','p_key','白馬温泉');
onsenList[i++] =new onsenRec('20','志賀高原温泉','p_key','志賀高原温泉');
onsenList[i++] =new onsenRec('15','相川温泉','p_key','相川温泉');
onsenList[i++] =new onsenRec('15','赤倉温泉','p_key','赤倉温泉');
onsenList[i++] =new onsenRec('15','越後湯沢温泉','p_city','15006');
onsenList[i++] =new onsenRec('15','月岡温泉','p_city','15014');
onsenList[i++] =new onsenRec('15','瀬波温泉','p_city','15016');
onsenList[i++] =new onsenRec('15','弥彦温泉','p_key','弥彦温泉');
onsenList[i++] =new onsenRec('18','芦原温泉','p_city','18002');
onsenList[i++] =new onsenRec('18','敦賀トンネル温泉','p_key','敦賀トンネル温泉');
onsenList[i++] =new onsenRec('17','和倉温泉','p_city','17008');
onsenList[i++] =new onsenRec('17','加賀温泉','p_key','加賀温泉');
onsenList[i++] =new onsenRec('17','粟津温泉','p_key','粟津温泉');
onsenList[i++] =new onsenRec('17','片山津温泉','p_key','片山津温泉');
onsenList[i++] =new onsenRec('17','山代温泉','p_key','山代温泉');
onsenList[i++] =new onsenRec('17','山中温泉','p_key','山中温泉');
onsenList[i++] =new onsenRec('17','辰口温泉','p_key','辰口温泉');
onsenList[i++] =new onsenRec('17','輪島温泉','p_key','輪島温泉');
onsenList[i++] =new onsenRec('16','宇奈月温泉','p_key','宇奈月温泉');
onsenList[i++] =new onsenRec('16','大牧温泉','p_key','大牧温泉');
onsenList[i++] =new onsenRec('25','雄琴温泉','p_city','25002');
onsenList[i++] =new onsenRec('25','琵琶湖温泉','p_key','琵琶湖温泉');
onsenList[i++] =new onsenRec('25','長浜太閤温泉','p_key','長浜太閤温泉');
onsenList[i++] =new onsenRec('30','串本温泉','p_key','串本温泉');
onsenList[i++] =new onsenRec('30','川湯温泉','p_key','川湯温泉');
onsenList[i++] =new onsenRec('30','白浜温泉','p_key','白浜温泉');
onsenList[i++] =new onsenRec('30','南紀勝浦温泉','p_key','南紀勝浦温泉');
onsenList[i++] =new onsenRec('30','紀州みなべ千里浜温泉','p_key','紀州みなべ千里浜温泉');
onsenList[i++] =new onsenRec('30','太地温泉','p_key','太地温泉');
onsenList[i++] =new onsenRec('30','龍神温泉','p_key','龍神温泉');
onsenList[i++] =new onsenRec('30','渡瀬温泉','p_key','渡瀬温泉');
onsenList[i++] =new onsenRec('27','箕面温泉','p_key','箕面温泉');
onsenList[i++] =new onsenRec('28','有馬温泉','p_city','28002');
onsenList[i++] =new onsenRec('28','城崎温泉','p_key','城崎温泉');
onsenList[i++] =new onsenRec('28','神鍋温泉','p_key','神鍋温泉');
onsenList[i++] =new onsenRec('28','湯村温泉','p_key','湯村温泉');
onsenList[i++] =new onsenRec('33','奥津温泉','p_key','奥津温泉');
onsenList[i++] =new onsenRec('33','湯郷温泉','p_city','33003');
onsenList[i++] =new onsenRec('33','湯原温泉','p_key','湯原温泉');
onsenList[i++] =new onsenRec('34','瀬戸温泉','p_key','瀬戸温泉');
onsenList[i++] =new onsenRec('35','俵山温泉','p_key','俵山温泉');
onsenList[i++] =new onsenRec('35','長門湯本温泉','p_key','長門湯本温泉');
onsenList[i++] =new onsenRec('35','萩温泉郷','p_key','萩温泉');
onsenList[i++] =new onsenRec('35','湯田温泉','p_key','湯田温泉');
onsenList[i++] =new onsenRec('31','皆生温泉','p_city','31004');
onsenList[i++] =new onsenRec('31','大山温泉','p_key','大山温泉');
onsenList[i++] =new onsenRec('31','三朝温泉','p_city','31005');
onsenList[i++] =new onsenRec('32','亀嵩温泉','p_key','亀嵩温泉');
onsenList[i++] =new onsenRec('32','玉造温泉','p_city','32003');
onsenList[i++] =new onsenRec('38','道後温泉','p_key','道後温泉');
onsenList[i++] =new onsenRec('38','今治温泉','p_key','今治温泉');
onsenList[i++] =new onsenRec('38','奥道後温泉','p_key','奥道後温泉');
onsenList[i++] =new onsenRec('37','こんぴら温泉郷','p_key','こんぴら温泉');
onsenList[i++] =new onsenRec('37','塩江温泉郷','p_key','塩江温泉郷');
onsenList[i++] =new onsenRec('37','小豆島温泉','p_key','小豆島温泉');
onsenList[i++] =new onsenRec('39','あしずり温泉郷','p_key','あしずり温泉郷');
onsenList[i++] =new onsenRec('36','鳴門温泉','p_key','鳴門温泉');
onsenList[i++] =new onsenRec('40','原鶴温泉','p_key','原鶴温泉');
onsenList[i++] =new onsenRec('40','玄海さつき温泉','p_key','玄海さつき温泉');
onsenList[i++] =new onsenRec('42','島原温泉','p_key','島原温泉');
onsenList[i++] =new onsenRec('42','雲仙温泉','p_key','雲仙温泉');
onsenList[i++] =new onsenRec('42','平戸温泉','p_key','平戸温泉');
onsenList[i++] =new onsenRec('42','小浜温泉','p_key','小浜温泉');
onsenList[i++] =new onsenRec('41','武雄温泉','p_key','武雄温泉');
onsenList[i++] =new onsenRec('41','嬉野温泉','p_key','嬉野温泉');
onsenList[i++] =new onsenRec('44','別府温泉','p_key','別府温泉');
onsenList[i++] =new onsenRec('44','鉄輪温泉','p_key','鉄輪温泉');
onsenList[i++] =new onsenRec('44','湯布院温泉','p_key','湯布院温泉');
onsenList[i++] =new onsenRec('45','青島温泉','p_key','青島温泉');
onsenList[i++] =new onsenRec('46','霧島温泉','p_key','霧島温泉');
onsenList[i++] =new onsenRec('46','指宿温泉','p_city','46004');
onsenList[i++] =new onsenRec('43','阿蘇温泉','p_key','阿蘇温泉');
onsenList[i++] =new onsenRec('43','菊池温泉','p_city','43002');
onsenList[i++] =new onsenRec('43','黒川温泉','p_key','黒川温泉');

var d = new Date();
var dy = d.getYear();

var areaLink1;
var areaName1;
function monthmenu(){
	dy = d.getYear();
	var dm = d.getMonth();
	var mm ="";
	var mv = "";
	if ( dy < 2000 ) {
		dy = dy - 100 + 2000;
	}
	for( i=1; i<13 ; i++ ) {
		dm = dm +1;
		if ( dm >12 ) {
			dm = 1;
			dy = dy + 1;
		}
		if ( dm <10 ) {
			mm = "0" + dm;
			mv = dm + "  ";
		} else {
			mm = dm;
			mv = dm;
		}
		this.document.sForm.p_month.options[i] = new Option( mv, dy+"/"+ mm +"/01" );
	}
}

function datemenu() {
	document.sForm.p_dd.length = 1;
	document.sForm.p_dd.options[0].text = "　";
	selMonth = eval( document.sForm.p_month.options[document.sForm.p_month.selectedIndex].text );
	if ( selMonth != "" ) { 
		mld = new Date(dy, selMonth, 1);
		mld.setDate(0);
		brk = mld.getDate();
		for ( i = 1 ; i <= brk ; i++) {
			document.sForm.p_dd.length = i +1;
			document.sForm.p_dd.options[i].text = i ;
		}
	}
}


function setSub(){
	for(i=0;i<onsenList.length;i++){
		if(onsenList[i].text == document.sForm.keyAndCountry.options[document.sForm.keyAndCountry.options.selectedIndex].text){
			document.sForm.keyAndCountry.name = onsenList[i].name;
		}
	}
	for(i=0;i<document.sForm.elements.length;i++){
		if(document.sForm.elements[i].name=='p_hatsu' && document.sForm.elements[i].type=='select-one'){
			document.sForm.elements[i].value = '';
		}
	}
	document.sForm.submit();
}

function setRe(){
	document.sForm.reset();
}

function setkikan(selOBJ) {
	n = selOBJ.options[selOBJ.options.selectedIndex].value;
switch (n) {
		case "1":
			document.sForm.p_kikan_fr.value = "1";
			document.sForm.p_kikan_to.value = "1";
			break;
		case "2":
			document.sForm.p_kikan_fr.value = "2";
			document.sForm.p_kikan_to.value = "2";
			break;
		case "3":
			document.sForm.p_kikan_fr.value = "3";
			document.sForm.p_kikan_to.value = "3";
			break;
		case "4":
			document.sForm.p_kikan_fr.value = "4";
			document.sForm.p_kikan_to.value = "4";
			break;
		case "5":
			document.sForm.p_kikan_fr.value = "5";
			document.sForm.p_kikan_to.value = "5";
			break;
		case "6":
			document.sForm.p_kikan_fr.value = "6";
			document.sForm.p_kikan_to.value = "";
			break;

		default:
			document.sForm.p_kikan_fr.value = "";
			document.sForm.p_kikan_to.value = "";
			break;
    }
}

function setkeyAndCountry(selOBJ,defContry){	
if(!defContry){valCantry = selOBJ.options[selOBJ.options.selectedIndex].value;}
else{valCantry=defContry}
var cnt = 0;
	if(valCantry == null){return;}
	while(document.sForm.keyAndCountry.options.length > 1){
		menuLength = document.sForm.keyAndCountry.options.length;
		for(creaCnt=1; creaCnt<menuLength; creaCnt++){
			document.sForm.keyAndCountry.options[creaCnt] = null;
		}
	}

	for(i=0;i<onsenList.length;i++){
		if (onsenList[i].country == valCantry){
			cnt = cnt +1;
			document.sForm.keyAndCountry.options[cnt] = new Option(onsenList[i].text,onsenList[i].code);
		}
	}
}

function onsenSetting(){
	initialSetting();
	var flag = 1;
	set_Darea(nAreaCode,flag);
	document.ht30304Form.areaLink1.value = areaLink1;
	document.ht30304Form.areaName1.value = areaName1;
	for(i=0;i<document.ht30304Form.Barea.options.length;i++){
		if(document.ht30304Form.Barea.options[i].value == nAreaCode){
			document.ht30304Form.Barea.selectedIndex = i;
		}
	}
	for(i=0;i<document.ht30304Form.areaCode.options.length;i++){
		if(document.ht30304Form.areaCode.options[i].value == defAreaCode){
			document.ht30304Form.areaCode.selectedIndex = i;
		}
	}
	setDefDate();
	document.getElementById('p_hatsuBox').selectedIndex = 0;
	document.getElementById('keyAndCont').name = "keyAndCountry";
setHatsu('01');
	defContry = pageDefContry;
	defCity = pageDefCity;
	setkeyAndCountry('',defContry);
	document.getElementById('kikan').options[0].selected = true;
	for(i=0;i<document.getElementById('p_countryBox').options.length;i++){
		if(document.getElementById('p_countryBox').options[i].value == defContry){
			document.getElementById('p_countryBox').selectedIndex = i;
			document.getElementById('p_countryBox').options[i].selected = true;
		}
	}
	for(i=0;i<document.getElementById('keyAndCont').options.length;i++){
		if(document.getElementById('keyAndCont').options[i].text == defCity){
			document.getElementById('keyAndCont').selectedIndex = i;
			document.getElementById('keyAndCont').options[i].selected = true;
		}
	}
}
document.write('<iframe id="sclphotos" name="sclphotos" width=1 height=1 frameborder=0 scrolling="no"></iframe>\n');





function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

