<!-- 
var term = 6; //　選択表示する月数(リザーブゲートの公開月数に設定すると良いかと思います。)
var today = new Date();
var cYear = today.getFullYear();
var cMonth = today.getMonth();
var cDate = today.getDate();
var i;
var std;
var optC;
var optN;
for (i=0; i<term; i++) {
  cMonth++;
  if (cMonth > 12) {
    cMonth = 1;
    cYear++;
  }
  fcMonth = cMonth;
  if (cMonth < 10) { fcMonth = "0" + cMonth; }
  vcMonth = cMonth * 1;
  if (i == 0) { std = "selectedi=\"selected\""; }
  else { std = ""; }
  optC = optC + "<option value='"+cYear+fcMonth+"' "+std+">"+cYear+"年"+vcMonth+"月</option>\n";
}
for(i=1; i<=31; i++){
  if(i == cDate) { std = "selected=\"selected\""; }else{ std = ""; }
  optN = optN + "<option value='"+i+"' "+std+">"+i+"</option>\n";
}
// -->

