function fromYYMMDD()
{
  today = new Date();
  //today.setTime(today.getTime() + 24 * 60 * 60 * 1000 );
  year=today.getFullYear();
  month=today.getMonth();
  month+=1;
  if(month <10) month="0" + month;
  date=today.getDate();
  if(date<10) date="0" + date;

  startyear= year;
  startmonth= month; 
  startday= date;
  endyear= year; 
  endmonth= month;
  endday= date;

// ½ÃÀÛ ³¯Â¥
  document.writeln("<select name=fmDtYy class='black'>");		//ADD <class=black>...
  for (index=2003;index <= 2010;index++) {
  	if(index==startyear) 
	  document.writeln("<option value=" + index + " selected>" + index);
  	else document.writeln("<option value=" + index + ">" + index);
  }
  document.writeln("</select><img src='./new_images/main_txt06.gif' width='13' height='15'>&nbsp;<select name=fmDtMm class='black'>");			
  for (index=1;index <= 12;index++) {
  	if(index==startmonth){
        if(index <10)
      		document.writeln("<option value=0" + index + " selected>" + index);
    	else
      		document.writeln("<option value=" + index + " selected>" + index);

  	}else{
    	  if(index <10)
      		document.writeln("<option value=0" + index + ">" + index);
    	  else
      		document.writeln("<option value=" + index + ">" + index);
   	}
  }

  document.writeln("</select><img src='./new_images/main_txt07.gif' width='13' height='15'>&nbsp;<select name=fmDtDd class='black'>");				//ADD <class=black>...
  for (index=1;index <= 31;index++) {
  	if(index==startday){
  	    if(index <10)
    	    document.writeln("<option value=0" + index + " selected>0" + index);
    	else 
    	    document.writeln("<option value=" + index + " selected>" + index);

  	}else {
        if(index <10)
    	    document.writeln("<option value=0" + index + ">0" + index);
    	else 
    	    document.writeln("<option value=" + index + ">" + index);
   	}
  }

  document.writeln("</select><img src='./new_images/main_txt08.gif' width='13' height='15'>");
}

function toYYMMDD()
{
  today = new Date();
  //today.setTime(today.getTime() + 24 * 60 * 60 * 1000 );
  year=today.getFullYear();
  month=today.getMonth();
  month+=1;
  if(month <10) month="0" + month;
  date=today.getDate();
  if(date<10) date="0" + date;

  startyear= year;
  startmonth= month; 
  startday= date;
  endyear= year; 
  endmonth= month;
  endday= date;

// ½ÃÀÛ ³¯Â¥
  document.writeln("<select name=toDtYy class='black'>");		//ADD <class=black>...
  for (index=2003;index <= 2010;index++) {
  	if(index==startyear) 
	  document.writeln("<option value=" + index + " selected>" + index);
  	else document.writeln("<option value=" + index + ">" + index);
  }
  document.writeln("</select><img src='./new_images/main_txt06.gif' width='13' height='15'>&nbsp;<select name=toDtMm class='black'>");			
  for (index=1;index <= 12;index++) {
  	if(index==startmonth){
        if(index <10)
      		document.writeln("<option value=0" + index + " selected>" + index);
    	else
      		document.writeln("<option value=" + index + " selected>" + index);

  	}else{
    	  if(index <10)
      		document.writeln("<option value=0" + index + ">" + index);
    	  else
      		document.writeln("<option value=" + index + ">" + index);
   	}
  }

  document.writeln("</select><img src='./new_images/main_txt07.gif' width='13' height='15'>&nbsp;<select name=toDtDd class='black'>");				//ADD <class=black>...
  for (index=1;index <= 31;index++) {
  	if(index==startday){
  	    if(index <10)
    	    document.writeln("<option value=0" + index + " selected>0" + index);
    	else 
    	    document.writeln("<option value=" + index + " selected>" + index);

  	}else {
        if(index <10)
    	    document.writeln("<option value=0" + index + ">0" + index);
    	else 
    	    document.writeln("<option value=" + index + ">" + index);
   	}
  }

  document.writeln("</select><img src='./new_images/main_txt08.gif' width='13' height='15'>");
}

