function dayblock(date, lblevents, lblappts)
{
   this.lblevents = lblevents
   this.lblappts = lblappts
   this.lbldate = date
   this.events = ""
   this.appts = ""
   this.addevent=addevent
   this.addappt=addappt
   this.printday=printday
}
function addevent(string, hover, length, eventlink)
{
   if (length == 0)
   {
      this.events+="<a href='"+eventlink+"'>";
   } else {
      this.events+="<a href='"+eventlink+"' onmouseover='return overlib("+hover+");' onmouseout='return nd();'>";
   }
   this.events+=string+"</a>";
   return this;
}
function addappt(string, hover, length, eventlink)
{
   if (length == 0)
   {
      this.appts+="<a href='"+eventlink+"'>";
   } else {
      this.appts+="<a href='"+eventlink+"' onmouseover='return overlib("+hover+");'  onmouseout='return nd();'>";
   }
   this.appts+=string+"</a>";
   return this;
}
function printday()
{
   if (this.events+this.appts != "")
   {
	   document.write(this.lbldate);
   }
   if (this.events != "")
   {
      document.write(this.lblevents);
      document.write(this.events);
   }
   if (this.appts != "")
   {
      document.write(this.lblappts);
      document.write(this.appts);
   }
   return this;
}