function monthblock(date, numevents)
{
   this.events = ""
   this.date=date
   this.topic=""
   this.topicname=""
   this.numevents=numevents
   this.settopic=settopic
   this.addevent=addevent
   this.printdate=printdate
}
function settopic(topic, topicname)
{
   this.topic="<div>"+topic+"</div";
   this.topicname=topicname
}
function addevent(subject)
{
   if (this.topic != "")
   {
	   this.events+="<div>"+this.topic+"</div>";
	   this.topic="";
   }
   this.events+="<div class=\""+this.topicname+"\" >"+subject+"</div>";
}
function printdate(date, link, list)
{
	if (this.events=="")
	{
	   document.write("<a href='"+link+"' class='pn-normal'>");
	} else {
	   document.write("<a href='"+link+"' class='pn-normal' onmouseover='return overlib("+list+",CAPTION,\""+date+"\");'  onmouseout='return nd();'>");

	}
	if (this.numevents > 0)
	{
       document.write("<span style='color:#002944;font-weight:bold;'>"+this.date+"</span>");
	} else {
	   document.write("<span style='color:#002944;'>"+this.date+"</span></a>");
	}
}