/* 予約日の設定 */
function reserve_1() {
	var s = "";
	var tday  = new Date();
	var time = tday.getTime(); /* 時間を取得 */
	var maxdate = 90;/* 予約可能な先の日数 */
	
	s = "<select name=reserve_year_1 id=reserve_year_1>";
	s += "<option selected=selected>選択してください</option>";
	for(i = 1; i <= maxdate; i++){
	dt = new Date(i * 86400000 + time);
	ny = dt.getFullYear();
	nm = dt.getMonth() + 1;
	nd = dt.getDate();
	youbi = dt.getDay();
	yasumi = 0;
	
	if( nm+"."+nd == "1.1" || 
	nm+"."+nd == "1.2" || 
	nm+"."+nd == "1.3"){
	}else{
		if(youbi ==3 || youbi ==6){
			if(youbi ==3){
			dyoubi="(水)";
			yoyakubi = ny + "年" + nm + "月" + nd +"日" + dyoubi;
			s += "<option>" + yoyakubi + "</option>\n";
			}
			else{
			 dyoubi="(土)";
			 yoyakubi = ny + "年" + nm + "月" + nd +"日" + dyoubi;
			s += "<option>" + yoyakubi + "</option>\n";
			 
			 }
	
		}
	}
	}
	s += "</select>";
	document.write(s);
}


/* 予約日の設定 */
function reserve_2() {
	var s = "";
	var tday  = new Date();
	var time = tday.getTime(); /* 時間を取得 */
	var maxdate = 90;/* 予約可能な先の日数 */
	
	s = "<select name=reserve_year_2 id=reserve_year_2>";
	s += "<option selected=selected>選択してください</option>";
	for(i = 1; i <= maxdate; i++){
	dt = new Date(i * 86400000 + time);
	ny = dt.getFullYear();
	nm = dt.getMonth() + 1;
	nd = dt.getDate();
	youbi = dt.getDay();
	yasumi = 0;
	
	if( nm+"."+nd == "1.1" || 
	nm+"."+nd == "1.2" || 
	nm+"."+nd == "1.3"){
	}else{
		if(youbi ==3 || youbi ==6){
			if(youbi ==3){
			dyoubi="(水)";
			yoyakubi = ny + "年" + nm + "月" + nd +"日" + dyoubi;
			s += "<option>" + yoyakubi + "</option>\n";
			}
			else{
			 dyoubi="(土)";
			 yoyakubi = ny + "年" + nm + "月" + nd +"日" + dyoubi;
			s += "<option>" + yoyakubi + "</option>\n";
			 
			 }
	
		}
	}
	}
	s += "</select>";
	document.write(s);
}


/* 予約日の設定 */
function reserve_3() {
	var s = "";
	var tday  = new Date();
	var time = tday.getTime(); /* 時間を取得 */
	var maxdate = 90;/* 予約可能な先の日数 */
	
	s = "<select name=reserve_year_3 id=reserve_year_3>";
	s += "<option selected=selected>選択してください</option>";
	for(i = 1; i <= maxdate; i++){
	dt = new Date(i * 86400000 + time);
	ny = dt.getFullYear();
	nm = dt.getMonth() + 1;
	nd = dt.getDate();
	youbi = dt.getDay();
	yasumi = 0;
	
	if( nm+"."+nd == "1.1" || 
	nm+"."+nd == "1.2" || 
	nm+"."+nd == "1.3"){
	}else{
		if(youbi ==3 || youbi ==6){
			if(youbi ==3){
			dyoubi="(水)";
			yoyakubi = ny + "年" + nm + "月" + nd +"日" + dyoubi;
			s += "<option>" + yoyakubi + "</option>\n";
			}
			else{
			 dyoubi="(土)";
			 yoyakubi = ny + "年" + nm + "月" + nd +"日" + dyoubi;
			s += "<option>" + yoyakubi + "</option>\n";
			 
			 }
	
		}
	}
	}
	s += "</select>";
	document.write(s);
}

/*
// この関数を使用する場合は、当該箇所に以下のコードを書いてください。
■ヘッダに以下
<script type="text/javascript" language="javascript" src="http://www.solo-world.com/phase1/js/reserve.js"></script>

■使用した居場所に以下
<script type="text/javascript">
reserve():
</script>
*/