// JavaScript Document
function syuppatsu(display){
		switch(display){

			case 'informBox':
			document.getElementById('informBox').style.display = 'block';
			document.getElementById('doformBox').style.display = 'none';
			break;

			case 'doformBox':
			document.getElementById('informBox').style.display = 'none';
			document.getElementById('doformBox').style.display = 'block';
			break;
		}

	}

function oyadoDDSet(){

	//システム日?システム日＋15ヶ月のセレクトボックスを作成
	presentDate = new Date();

	//翌日を表示するためにpresentDateを翌日にする
	tmpDate = presentDate.getDate();
	presentDate.setDate(tmpDate+1);

	var yyyy = presentDate.getYear();
	var mm = presentDate.getMonth() + 1;
	var year = yyyy;
	var month = mm;
	if(year < 100) {
	// 下二桁 06年⇒2006年
	year += 2000;
	}
	if (year < 2000) {
	// Perl式 106年⇒2006年
	year += 1900;
	}
	
	if(month > 12) {
		month = 1;
		year = year + 1;
	}
	if(month <10) {
		month1 = "0" + month.toString();
	}
	else {
		month1 = month.toString();
	}

	yyyymm = year+month;
	dd = presentDate.getDate();
	if(dd <= 9){ dd = '0' + dd}
		
	for(i=0; i < document.ht30304Form.stayYM.length; i++){
		if(document.ht30304Form.stayYM.options[i].value == year + month1){
		document.ht30304Form.stayYM.options[i].selected  = 'true';
		}
	}
	for(i=0; i < document.ht30304Form.stayD.length; i++){
		if(document.ht30304Form.stayD.options[i].value == dd){
		document.ht30304Form.stayD.options[i].selected  = 'true';
		}
	}

}

function oReset(){
document.ht30304Form.reset();
oyadoDDSet();
document.ht30304Form.Barea.selectedIndex=0;
document.ht30304Form.areaCode.selectedIndex=0;
}


window.onload = function ini(){
monthmenuDome();
monthmenuInter();
monthmenuAir();
setDest();
}

