Pue essendo convinto che il tutto sia piu' facilmente realizzabile in PHP e se ho capito il problema :master: questo e' un esempio:
codice:
<form>
<table border="1" width="100%">
<SCRIPT LANGUAGE="JavaScript">
<!--
anno = 2004;
mese = 3;
oggi = new Date(anno,mese-1,1);
while (oggi.getMonth()==mese-1) {
	giorno = oggi.getDate();
	document.write(' <tr>')
	document.write('  <td>'+giorno+'</td>')
	document.write('  <td width="100%">')
	document.write('   <input type="text" name="T'+giorno+'" size="20">')
	document.write('   <input type="button" value="Completo" ')
	document.write('    onclick="this.form.T'+giorno+'.value=\'Completo\';">')
	document.write('   <input type="button" value="Disponibilita\'"  ')
	document.write('    onclick="this.form.T'+giorno+'.value=\'Disponibile\';">')
	document.write('  </td>')
	document.write(' </tr>')
	oggi.setDate(oggi.getDate()+1);
}
//-->
</SCRIPT>
</table>
</form>
ciao