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 = '<html><body style="background:#e0ffe0;text-align:center;">'zOut += '<table style="width:200px;margin-left:auto;margin-right:auto;text-align:center;">\n'zOut += '<caption style="background:#55d;color:#fff;">' + theYY + '年' + theMM + '月</caption>\n';zOut += '<tr><th style="color:#f00;">日</th><th>月</th><th>火</th><th>水</th><th>木</th><th>金</th>'zOut += '<th style="color:#00f;">土</th></tr>\n<tr>';zOut += '<tr>'for (i=1; i<theDofW+1; i++) {   zOut += '<td></td>'}for (i=1; theVTime<nextMonth; i++) {   if (theVTime.getDay()<6)      zOut += '<td>' + i + '</td>'   else if(theVTime.setDate(i+1)<nextMonth) {      zOut += '<td>' + i + '</td></tr>\n<tr>'   } else {      zOut += '<td>' + i + '</td>'   }   theVTime.setDate(i+1)}for(j=theVTime.getDay();j<=6;j++) { zOut += '<td></td>'; }zOut += '</tr></table><p style="text-align:center;"><a href="javascript:window.close()">close</a></p></body></html>'return zOut}function calendarHyoji() {   var calendarWindow = window.open("","kowazaCalendar","width=270,height=200,resizable,Top=50")   calendarWindow.document.write(calendarSakusei())}
