function auto_select() {

	var form01_get = document.forms.form01.form01_sel;
	var form01_put = document.forms.form01.form01_ans;
	
	form01_put.options.length = 0;
	
	if ((form01_get.options[form01_get.selectedIndex].value == "1月") ||
		(form01_get.options[form01_get.selectedIndex].value == "3月") ||
		(form01_get.options[form01_get.selectedIndex].value == "5月") ||
		(form01_get.options[form01_get.selectedIndex].value == "7月") ||
		(form01_get.options[form01_get.selectedIndex].value == "8月") ||
		(form01_get.options[form01_get.selectedIndex].value == "10月") ||
		(form01_get.options[form01_get.selectedIndex].value == "12月"))
		{
			form01_put.options[00] = new Option("1日");
			form01_put.options[01] = new Option("2日");
			form01_put.options[02] = new Option("3日");
			form01_put.options[03] = new Option("4日");
			form01_put.options[04] = new Option("5日");
			form01_put.options[05] = new Option("6日");
			form01_put.options[06] = new Option("7日");
			form01_put.options[07] = new Option("8日");
			form01_put.options[08] = new Option("9日");
			form01_put.options[09] = new Option("10日");
			form01_put.options[10] = new Option("11日");
			form01_put.options[11] = new Option("12日");
			form01_put.options[12] = new Option("13日");
			form01_put.options[13] = new Option("14日");
			form01_put.options[14] = new Option("15日");
			form01_put.options[15] = new Option("16日");
			form01_put.options[16] = new Option("17日");
			form01_put.options[17] = new Option("18日");
			form01_put.options[18] = new Option("19日");
			form01_put.options[19] = new Option("20日");
			form01_put.options[20] = new Option("21日");
			form01_put.options[21] = new Option("22日");
			form01_put.options[22] = new Option("23日");
			form01_put.options[23] = new Option("24日");
			form01_put.options[24] = new Option("25日");
			form01_put.options[25] = new Option("26日");
			form01_put.options[26] = new Option("27日");
			form01_put.options[27] = new Option("28日");
			form01_put.options[28] = new Option("29日");
			form01_put.options[29] = new Option("30日");
			form01_put.options[30] = new Option("31日");
		}
	if ((form01_get.options[form01_get.selectedIndex].value == "4月") ||
		(form01_get.options[form01_get.selectedIndex].value == "6月") ||
		(form01_get.options[form01_get.selectedIndex].value == "9月") ||
		(form01_get.options[form01_get.selectedIndex].value == "11月"))
		{
			form01_put.options[00] = new Option("1日");
			form01_put.options[01] = new Option("2日");
			form01_put.options[02] = new Option("3日");
			form01_put.options[03] = new Option("4日");
			form01_put.options[04] = new Option("5日");
			form01_put.options[05] = new Option("6日");
			form01_put.options[06] = new Option("7日");
			form01_put.options[07] = new Option("8日");
			form01_put.options[08] = new Option("9日");
			form01_put.options[09] = new Option("10日");
			form01_put.options[10] = new Option("11日");
			form01_put.options[11] = new Option("12日");
			form01_put.options[12] = new Option("13日");
			form01_put.options[13] = new Option("14日");
			form01_put.options[14] = new Option("15日");
			form01_put.options[15] = new Option("16日");
			form01_put.options[16] = new Option("17日");
			form01_put.options[17] = new Option("18日");
			form01_put.options[18] = new Option("19日");
			form01_put.options[19] = new Option("20日");
			form01_put.options[20] = new Option("21日");
			form01_put.options[21] = new Option("22日");
			form01_put.options[22] = new Option("23日");
			form01_put.options[23] = new Option("24日");
			form01_put.options[24] = new Option("25日");
			form01_put.options[25] = new Option("26日");
			form01_put.options[26] = new Option("27日");
			form01_put.options[27] = new Option("28日");
			form01_put.options[28] = new Option("29日");
			form01_put.options[29] = new Option("30日");
		}
	if (form01_get.options[form01_get.selectedIndex].value == "2月")
		{
			form01_put.options[00] = new Option("1日");
			form01_put.options[01] = new Option("2日");
			form01_put.options[02] = new Option("3日");
			form01_put.options[03] = new Option("4日");
			form01_put.options[04] = new Option("5日");
			form01_put.options[05] = new Option("6日");
			form01_put.options[06] = new Option("7日");
			form01_put.options[07] = new Option("8日");
			form01_put.options[08] = new Option("9日");
			form01_put.options[09] = new Option("10日");
			form01_put.options[10] = new Option("11日");
			form01_put.options[11] = new Option("12日");
			form01_put.options[12] = new Option("13日");
			form01_put.options[13] = new Option("14日");
			form01_put.options[14] = new Option("15日");
			form01_put.options[15] = new Option("16日");
			form01_put.options[16] = new Option("17日");
			form01_put.options[17] = new Option("18日");
			form01_put.options[18] = new Option("19日");
			form01_put.options[19] = new Option("20日");
			form01_put.options[20] = new Option("21日");
			form01_put.options[21] = new Option("22日");
			form01_put.options[22] = new Option("23日");
			form01_put.options[23] = new Option("24日");
			form01_put.options[24] = new Option("25日");
			form01_put.options[25] = new Option("26日");
			form01_put.options[26] = new Option("27日");
			form01_put.options[27] = new Option("28日");
		}
}

