function period_disp()
{
  today = new Date();
  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 style='font-size=12;font-family=µ¸¿ò' >");		//ADD <class=black>...
  for (index=2002;index <= year+1;index++) {
  	if(index==startyear) 
	  document.writeln("<option value=" + index + " selected>" + index);
  	else document.writeln("<option value=" + index + ">" + index);
  }
  document.writeln("</select>³â");

  document.writeln("<select name=fmDtMm style='font-size=12;font-family=µ¸¿ò' >");			//ADD <class=black>...
  for (index=1;index <= 12;index++) {
  	if(index==startmonth){
        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>¿ù");

  document.writeln("<select name=fmDtDd style='font-size=12;font-family=µ¸¿ò' >");				//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>ÀÏ ¡­ ");

// ¸¶Áö¸· ³¯Â¥
  document.writeln("<select name=toDtYy style='font-size=12;font-family=µ¸¿ò' >");		//ADD <class=black>...
  for (index=2002;index <= year+1;index++) {
  	if(index==endyear) 
	  document.writeln("<option value=" + index + " selected>" + index);
  	else document.writeln("<option value=" + index + ">" + index);
  }
  document.writeln("</select>³â");

  document.writeln("<select name=toDtMm style='font-size=12;font-family=µ¸¿ò' >");		//ADD <class=black>...
  for (index=1;index <= 12;index++) {
  	if(index==endmonth){
  	    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>¿ù");

  document.writeln("<select name=toDtDd style='font-size=12;font-family=µ¸¿ò' >");		//ADD <class=black>...
  for (index=1;index <= 31;index++) {
  	if(index==endday){
  	    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>ÀÏ");
}

function period_disp2(startdate, enddate)
{
  today = new Date();
  year=today.getFullYear();
  month=today.getMonth();
  month+=1;
  if(month <10) month="0" + month;
  date=today.getDate();
  if(date<10) date="0" + date;

  if(startdate == '') {
    startyear= year;
    startmonth= month; 
    startday= date;
  }
  else {
    startyear= startdate.substring(0,4);
    startmonth= startdate.substring(4,6); 
    startday= startdate.substring(6,8);
  }
  
  if(enddate == '') {
    endyear= year; 
    endmonth= month;
    endday= date;
  }
  else {
    endyear= enddate.substring(0,4); 
    endmonth= enddate.substring(4,6);
    endday= enddate.substring(6,8);
  }

// ½ÃÀÛ ³¯Â¥
  document.writeln("<select name=fmDtYy style='font-size=12;font-family=µ¸¿ò' >");		//ADD <class=black>...
  for (index=2002;index <= year+1;index++) {
  	if(index==startyear) 
	  document.writeln("<option value=" + index + " selected>" + index);
  	else document.writeln("<option value=" + index + ">" + index);
  }
  document.writeln("</select>³â");

  document.writeln("<select name=fmDtMm style='font-size=12;font-family=µ¸¿ò' >");			//ADD <class=black>...
  for (index=1;index <= 12;index++) {
  	if(index==startmonth){
        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>¿ù");

  document.writeln("<select name=fmDtDd style='font-size=12;font-family=µ¸¿ò' >");				//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>ÀÏ ¡­ ");

// ¸¶Áö¸· ³¯Â¥
  document.writeln("<select name=toDtYy style='font-size=12;font-family=µ¸¿ò' >");		//ADD <class=black>...
  for (index=2002;index <= year+1;index++) {
  	if(index==endyear) 
	  document.writeln("<option value=" + index + " selected>" + index);
  	else document.writeln("<option value=" + index + ">" + index);
  }
  document.writeln("</select>³â");

  document.writeln("<select name=toDtMm style='font-size=12;font-family=µ¸¿ò' >");		//ADD <class=black>...
  for (index=1;index <= 12;index++) {
  	if(index==endmonth){
  	    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>¿ù");

  document.writeln("<select name=toDtDd style='font-size=12;font-family=µ¸¿ò' >");		//ADD <class=black>...
  for (index=1;index <= 31;index++) {
  	if(index==endday){
  	    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>ÀÏ");
}

