// Funzione caricamento calendario con opzione di scelta mese e riscrittura calendario


function updatecalendar(theselection)
{
var todaydate=new Date()
var curmonth=todaydate.getMonth()+1 //get current month (1-12)
var curyear=todaydate.getFullYear() //get current year
var themonth=parseInt(theselection[theselection.selectedIndex].value)+1
var brdr=0  // bordatura celle calendario (border option)  0=nessun bordo
var calendarstr=buildCal(themonth, curyear, "cssmain", "cssmonth", "cssdaysofweek", "cssdays", brdr)
if (document.getElementById)
document.getElementById("calendarspace").innerHTML=calendarstr
}

