<!--

function icon_info_close() {
var focusWin;
window.close();
}

//-->



//ポップアップウインドウのJavaScript
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


<!-- ************************************ 一般予約 JavaScript ************************************ -->
//-- 一般予約URLを作成し、自動的にジャンプさせる。
function generalSearch() {
	var url;	//URLの変数
	url = "";	//初期化
	url = "http://web.travel.rakuten.co.jp/portal/my/mt_map.tizu";


	//ラジオボタンでどれを選択しているかをチェックし値を取得する
	//	for (i=0;i<document.f_quick.f_teikei.length;i++) {
	//		if (document.f_quick.f_teikei[i].checked) {
	//			value=document.f_quick.f_teikei[i].value;
	//		}
	//	}


	//& -> ? に変更 fujiwara 2006.08.30
	// 大人数の取得
	url = url + "?f_otona_su=" + document.f_quick.f_otona_su.options[document.f_quick.f_otona_su.selectedIndex].value;
	// 小学生高学年
	url = url + "&f_s1=" + document.f_quick.f_s1.value;
	// 小学生低学年
	url = url + "&f_s2=" + document.f_quick.f_s2.value;
	// 幼児(食事・布団付)
	url = url + "&f_y1=" + document.f_quick.f_y1.value;
	// 幼児(食事のみ)
	url = url + "&f_y2=" + document.f_quick.f_y2.value;
	// 幼児(布団のみ)
	url = url + "&f_y3=" + document.f_quick.f_y3.value;
	// 幼児(食事・布団不要)
	url = url + "&f_y4=" + document.f_quick.f_y4.value;
	// ご利用部屋数
	url = url + "&f_heya_su=" + document.f_quick.f_heya_su.options[document.f_quick.f_heya_su.selectedIndex].value;
	// 宿泊料金MAX
	url = url + "&f_kin=" + document.f_quick.f_kin.options[document.f_quick.f_kin.selectedIndex].value;
	// 宿泊料金MINI
	url = url + "&f_kin2=" + document.f_quick.f_kin2.options[document.f_quick.f_kin2.selectedIndex].value;

	//日付取得追加 fujiwara 2006.08.30
	//年月日1
	url = url + "&f_nen1=" + document.f_quick.f_nen1.options[document.f_quick.f_nen1.selectedIndex].value;
	url = url + "&f_tuki1=" + document.f_quick.f_tuki1.options[document.f_quick.f_tuki1.selectedIndex].value;
	url = url + "&f_hi1=" + document.f_quick.f_hi1.options[document.f_quick.f_hi1.selectedIndex].value;
	//年月日2
	url = url + "&f_nen2=" + document.f_quick.f_nen2.options[document.f_quick.f_nen2.selectedIndex].value;
	url = url + "&f_tuki2=" + document.f_quick.f_tuki2.options[document.f_quick.f_tuki2.selectedIndex].value;
	url = url + "&f_hi2=" + document.f_quick.f_hi2.options[document.f_quick.f_hi2.selectedIndex].value;

	//f_no=02
	url = url + "&f_no=" + document.f_quick.f_no.value;
	//japan
	url = url + "&f_dai=" + document.f_quick.f_dai.value;
	//地区の選択
	url = url + "&f_chu=" + document.f_quick.f_chu.value;
	//エリアの選択
	<!--url = url + "&f_shou=" + document.f_quick.f_shou.value;-->
	//提携コード
	//url = url + "&f_teikei=" + document.f_quick.f_teikei.value;
	//url = url + "&f_teikei=" + value;
	//並び替え
	url = url + "&f_sort=" + document.f_quick.f_sort.value;
	// 作成したURL先にジャンプする
	if (document.f_quick.f_chu.options[document.f_quick.f_chu.selectedIndex].value == "tiku"){
		alert("地域を選択してください。");
	}else{
		location=url;
	}
}


<!--	location=url;}-->


<!-- ************************************ 一般予約 JavaScript ************************************ -->

<!-- ************************************ 共通 JavaScript ************************************ -->
///begin date script

function yearIndex(yearIdx)
{
	var ry;
    if (yearIdx == 2009) { ry = 0;}
    else if (yearIdx == 2010) { ry = 1;}
    else if (yearIdx == 2011) { ry = 2;}
   return(ry);
}
function addDate(year, month, date, n)
{
    var leisure_number = n * 1000 * 60 * 60 * 24;
	var targetDate = new Date(year, month, date);
	var DateInMS = targetDate.getTime();
	DateInMS += leisure_number;
	targetDate.setTime(DateInMS);
	var theYear = targetDate.getFullYear();
	var theMonth = targetDate.getMonth();
	var theDate = targetDate.getDate();
    rdt  = new Date(theYear, theMonth, theDate);
    return(rdt);
}
function setDate()
{
    leisure_nd = new Date();
    y = leisure_nd.getYear();
    m = leisure_nd.getMonth();
    d = leisure_nd.getDate();
    dt = addDate(y, m ,d, 1);
	document.f_quick.f_nen1.selectedIndex = yearIndex(dt.getYear());
	document.f_quick.f_tuki1.selectedIndex = dt.getMonth();
	document.f_quick.f_hi1.selectedIndex = dt.getDate() -1;
    dt2 = addDate(y, m ,d, 2);
	document.f_quick.f_nen2.selectedIndex = yearIndex(dt2.getYear());
	document.f_quick.f_tuki2.selectedIndex = dt2.getMonth();
	document.f_quick.f_hi2.selectedIndex = dt2.getDate()-1;
}
window.onload = setDate;
<!-- ************************************ 共通 JavaScript ************************************ -->

