function calendarSakusei() { var zOut = "" var theVTime = new Date() theVTime.setDate(1) var nextMonth = new Date(theVTime.getFullYear(), theVTime.getMonth()+1,1) var theYY = theVTime.getFullYear() var theMM = theVTime.getMonth() + 1 var theDofW = theVTime.getDay() zOut = '' zOut += '' zOut += ''; zOut += '' zOut += ''; zOut += '' for (i=1; i' else if(theVTime.setDate(i+1)' } else { zOut += '' } theVTime.setDate(i+1) } for(j=theVTime.getDay();j<=6;j++) { zOut += ''; } zOut += '
' + theYY + '年' + theMM + '月
' + i + '

' return zOut }