var myTbl0 = new Array(
 "2009",
 "2010",
 "2011"
);

var myTbl1 = new Array(
 "01",
 "02",
 "03",
 "04",
 "05",
 "06",
 "07",
 "08",
 "09",
 "10",
 "11",
 "12"
);

var myTbl2 = new Array(
 "01",
 "02",
 "03",
 "04",
 "05",
 "06",
 "07",
 "08",
 "09",
 "10",
 "11",
 "12",
 "13",
 "14",
 "15",
 "16",
 "17",
 "18",
 "19",
 "20",
 "21",
 "22",
 "23",
 "24",
 "25",
 "26",
 "27",
 "28",
 "29",
 "30",
 "31");

  myD     = new Date();
  myDate  = myD.getDate();
  myN     = new Date();
  myNate  = myN.getDate();
  myN.setDate(myNate+1);
  myyear = myD.getYear();
  myMonth = myD.getMonth()+1;
  myDate  = myD.getDate();
  myyear2 = myN.getYear();
  myMonth2 = myN.getMonth()+1;
  myDate2  = myN.getDate();

function ffw(){
	document.write("<select size=1 name=fyy1 style='font-size:8pt;'>");
  for(i=0; i < 3; i++){       // テーブルの数だけループ
		if(Number(myTbl0[i]) == Number(myyear)){
			document.write("<option value="+myTbl0[i]+" selected>"+myTbl0[i]+"</option>");
		}else{
			document.write("<option value="+myTbl0[i]+" >"+myTbl0[i]+"</option>");
		}
  }
	document.write("</select>");

	document.write("/<select size=1 name=fmm1 style='font-size:8pt;'>");
  for(i=0; i < 12; i++){       // テーブルの数だけループ
		if(i+1 == myMonth){
			document.write("<option value="+myTbl1[i]+" selected>"+myTbl1[i]+"</option>");
		}else{
			document.write("<option value="+myTbl1[i]+" >"+myTbl1[i]+"</option>");
		}
  }
	document.write("</select>");

	document.write("/<select size=1 name=fdd1 style='font-size:8pt;'>");
  for(i=0; i < 31; i++){       // テーブルの数だけループ
		if(i+1 == myDate){
			document.write("<option value="+myTbl2[i]+" selected>"+myTbl2[i]+"</option>");
		}else{
			document.write("<option value="+myTbl2[i]+" >"+myTbl2[i]+"</option>");
		}
  }
	document.write("</select>");
}

function ttw(){
	document.write("<select size=1 name=fyy2 style='font-size:8pt;'>");
  for(i=0; i < 3; i++){       // テーブルの数だけループ
		if(Number(myTbl0[i]) == Number(myyear2)){
			document.write("<option value="+myTbl0[i]+" selected>"+myTbl0[i]+"</option>");
		}else{
			document.write("<option value="+myTbl0[i]+" >"+myTbl0[i]+"</option>");
		}
  }
	document.write("</select>");

	document.write("/<select size=1 name=fmm2 style='font-size:8pt;'>");
  for(i=0; i < 12; i++){       // テーブルの数だけループ
		if(i+1 == myMonth2){
			document.write("<option value="+myTbl1[i]+" selected>"+myTbl1[i]+"</option>");
		}else{
			document.write("<option value="+myTbl1[i]+" >"+myTbl1[i]+"</option>");
		}
  }
	document.write("</select>");

	document.write("/<select size=1 name=fdd2 style='font-size:8pt;'>");
  for(i=0; i < 31; i++){       // テーブルの数だけループ
		if(i+1 == myDate2){
			document.write("<option value="+myTbl2[i]+" selected>"+myTbl2[i]+"</option>");
		}else{
			document.write("<option value="+myTbl2[i]+" >"+myTbl2[i]+"</option>");
		}
  }
	document.write("</select>");

}
