var strText = new Array

function addMonth(strMonth)
{
	strText[strText.length] = "H|" + strMonth;
}

function addEvent(strEvent)
{
	strText[strText.length] = "D|" + strEvent;
}

function writeCalendar()
{
	var myType;
	var myText;
	var arrText;
	
	var strLink = "<a class=GoldLink target=_new href="
	
	for (var i = 0 ; i < strText.length ; i++)
	{
		arrText = strText[i].split("|");
		
		if (arrText.length == 2)
		{
			if (arrText[0].toUpperCase() == "H")
			{
				document.writeln("<p>&nbsp;</p>");
				document.write ("<p align=center><b><span style='font-weight:bold;font-size:26pt;font-family:\"Times New Roman\";color:#F8B84C'>");
				document.write(arrText[1]);
				document.writeln("</p>");
				document.writeln("<p>&nbsp;</p><p>&nbsp;</p>");
			}
			if (arrText[0].toUpperCase() == "D")
			{
				arrText[1] = arrText[1].replace("<link ",strLink);
				arrText[1] = arrText[1].replace("<Link ",strLink);
				arrText[1] = arrText[1].replace("<LINK ",strLink);

				arrText[1] = arrText[1].replace("</link>","</a>");
				arrText[1] = arrText[1].replace("</Link>","</a>");
				arrText[1] = arrText[1].replace("</LINK>","</a>");
				
				document.write ("<p align=center><b><span style='font-weight:bold;font-size:24pt;font-family:\"Times New Roman\";color:#F8B84C'>");
				document.write(arrText[1]);
				document.writeln("</p>");
				document.writeln("<p>&nbsp;</p><p>&nbsp;</p>");
			}
		}
	}
}
