// JavaScript Documentfunction reserveDate() {	//■■年月セレクトボックス作成gy=new Date().getFullYear();gm0 = new Date().getMonth()+1;//現在月gm = new Date().getMonth()+1;//初期値月gd0 = new Date().getDate();//現在日付gd = new Date().getDate();//初期値日付//月末日計算if (gm0==1){	i_end=31}if (gm0==2){	if (gy%4==0){		i_end=29	}	else	{		i_end=28	}}if (gm0==3){	i_end=31}if (gm0==4){	i_end=30}if (gm0==5){	i_end=31}if (gm0==6){	i_end=30}if (gm0==7){	i_end=31}if (gm0==8){	i_end=31}if (gm0==9){	i_end=30}if (gm0==10){	i_end=31}if (gm0==11){	i_end=30}if (gm0==12){	i_end=31}str = ""sgm = ""str = "<select name='ir_rsv_yyyymm' style='font-size:10px;'>"for (i=1; i <= 6; i++ ){	if(gm > 12){		gm = 1;		gy = gy + 1;	}	if(gm < 10){		sgm="0" + gm;	}	else {		sgm="" + gm;	}	if (i_end==gd0 && gm==gm0+1){		str=str + "<option value=" + gy + "/" + sgm + "/" + "01 selected>" + gy + "年 " + gm + "月" + "</option>"	}	else	{		str=str + "<option value=" + gy + "/" + sgm + "/" + "01 >" + gy + "年 " + gm + "月" + "</option>"	}	gm=gm+1;}str = str + "</select>　"document.write(str);//■日付セレクトボックス作成str = ""str = "<select name='ir_rsv_dd' style='font-size:10px;'>"for (i=1; i <= 31; i++ ){	sgm=""+ i	if(i_end==gd0){		gd2=1;	}	else	{		gd2=gd0+1;	}	if (i==gd2){		str=str + "<option value=" + sgm + " selected >" + i + "日" + "</option>"	}	else	{		str=str + "<option value=" + sgm + " >" + i + "日" + "</option>"	}}str = str + "</select>"document.write(str);}function reserveStay() {	//■泊数セレクトボックス作成	str = ""	str = "<select name='ir_rsv_cnt' style='font-size:10px;'>"	for (i=1; i <= 31; i++ ){		sgm=""+ i		if (i==1){			str=str + "<option value=" + sgm + " selected >" + i + "泊" + "</option>"		}		else		{			str=str + "<option value=" + sgm + " >" + i + "泊" + "</option>"		}	}	str = str + "</select>"	document.write(str);}function reserveRoom() {	//■人数セレクトボックス作成	str = ""	str = "<select name='ir_room_cnt' style='font-size:10px;'>"	for (i=1; i <= 5; i++ ){		sgm=""+ i		if (i==1){			str=str + "<option value=" + sgm + " selected >" + i + "人" + "</option>"		}		else		{			str=str + "<option value=" + sgm + " >" + i + "人" + "</option>"		}	}	str = str + "</select>"	document.write(str);}function suite(){	newwindow = window.open('url','suit_anahotels');}function send(){	document.anahotels_link.submit();}