"); document.write("
" + month + " "+ year+ "
"); document.write("
") for (i = 1; i < iday +1; i++) { day = i; theday = thenx.getDay() + i; if (theday >7 ){ theday = theday % 7} if (0 == theday){ theday = 7} if (day<10) {var sp=" "} else {var sp=" "} document.write("
" + sp + day + " " + weekday[theday] + "
"); } document.write("
"); document.write(