var calMonthName = new Array( "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" );
var calCellWide = 32;
var calCellTall = 24;

function Calendar( )
{
	var HTMLstr = "";
	HTMLstr += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" class=\"borderfull\">\n";
	HTMLstr += "<tr><td bgcolor=\"#0270AA\">\n";
	HTMLstr += "<table cellspacing=\"0\" cellpadding=\"5\" border=\"0\" width=\"100%\">\n";
	HTMLstr += "<tr>\n";
	HTMLstr += "<td width=\"32%\" style=\"color: #FFFFFF; font-weight: bold;\">Year:</td>\n";
	HTMLstr += "<td width=\"15%\"><a href=\"javascript:calSetPY( );\" style=\"color: #FFFFFF; text-decoration: none;\" onMouseOver=\"calPrevTooltip( this, event );\">Prev</a></td>\n";
	HTMLstr += "<td width=\"38%\" style=\"color: #F8CF51; font-weight: bold;\"><div id=\"main1\" style=\"position: relative;\">0000</div></td>\n";
	HTMLstr += "<td width=\"15%\"><a href=\"javascript:calSetNY( );\" style=\"color: #FFFFFF; text-decoration: none;\">Next</a></td>\n";
	HTMLstr += "</tr>\n";
	HTMLstr += "<tr>\n";
	HTMLstr += "<td style=\"color: #FFFFFF; font-weight: bold;\">Month:</td>\n";
	HTMLstr += "<td><a href=\"javascript:calSetPM( );\" style=\"color: #FFFFFF; text-decoration: none;\" onMouseOver=\"calPrevTooltip( this, event );\">Prev</a></td>\n";
	HTMLstr += "<td style=\"color: #F8CF51; font-weight: bold;\"><div id=\"main2\" style=\"position: relative;\">0000</div></td>\n";
	HTMLstr += "<td><a href=\"javascript:calSetNM( );\" style=\"color: #FFFFFF; text-decoration: none;\">Next</a></td>\n";
	HTMLstr += "</tr>\n";
	HTMLstr += "</table>\n";
	HTMLstr += "</td></tr>\n";
	HTMLstr += "<tr><td>\n";
	HTMLstr += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"" + ( calCellWide * 7 ) + "\">\n";
	HTMLstr += "<tr>\n";
	HTMLstr += "<td height=\"" + calCellTall + "\"><b>Su</b></td>\n";
	HTMLstr += "<td height=\"" + calCellTall + "\"><b>Mo</b></td>\n";
	HTMLstr += "<td height=\"" + calCellTall + "\"><b>Tu</b></td>\n";
	HTMLstr += "<td height=\"" + calCellTall + "\"><b>We</b></td>\n";
	HTMLstr += "<td height=\"" + calCellTall + "\"><b>Th</b></td>\n";
	HTMLstr += "<td height=\"" + calCellTall + "\"><b>Fr</b></td>\n";
	HTMLstr += "<td height=\"" + calCellTall + "\"><b>Sa</b></td>\n";
	HTMLstr += "</tr>\n";
	HTMLstr += "<tr><td colspan=\"7\" valign=\"top\" height=\"" + ( calCellTall * 6 ) + "\">\n";
	HTMLstr += "<div style=\"position: relative;\">\n";
	for ( var dd = 1; dd <= 31; dd++ )
	{
	HTMLstr += "<div id=\"idDate" + dd + "\" style=\"position: absolute; visibility: hidden; width: " + calCellWide + "; height: " + calCellTall + ";\"><a style=\"text-decoration: none;\" href=\"javascript:calSelect(" + dd + ");\">&nbsp;" + dd + "&nbsp;</a></div>\n";
	}
	HTMLstr += "</div>\n";
	HTMLstr += "</td></tr>\n";
	HTMLstr += "</table>\n";
	HTMLstr += "</td></tr>\n";
	HTMLstr += "</table>\n";
	HTMLstr += "<br>\n";
	document.writeln( HTMLstr );
}
