function GetCal()
{
	var Date31 = new Date().getDate();
	var Month11 = new Date().getMonth();
	var Day6 = new Date().getDay();
	
	var Year = new Date().getYear();
    if( navigator.appName != "Microsoft Internet Explorer" )
		Year = Year + 1900;
	if(Year % 4 == 0)
		MonthDaysCountArray[1]++;

	Month12 = Month11+1;
	SHLink = Year+'-'+Month12;
	
	var SHDay = Date31;
	while(SHDay >7)
		SHDay = SHDay-7;
		
	if(Day6+1 > SHDay)
	{
		FirstDay = Day6 - SHDay;
	}
	else
	{
		FirstDay = 7 - SHDay + Day6;
	}
	
	var Count = MonthDaysCountArray[Month11];
	Count +=FirstDay;
	var i = 1;
	while(Count >7)
	{
		Count = Count-7;
		i++;
	}
	var Count = i*7;
	
	for( i=0 ; i <42 ; i++ )
		DaysGridArray[i] = '';
	var j=0;
	var DDay;
	var GridContent = '<table border="0" cellspacing="0" cellpadding="0" style="font-size: '+DaysSize+'px; font-family: '+DaysFontFamily+'; font-weight:bold; text-decoration:none; color:#'+DaysColour+'">';
	for( i=1 ; i<=Count/7 ; i++)
	{
		DDay
		GridContent = GridContent+'<tr>';
		for(;j<7*i;j++)
		{
			if(j<FirstDay)
			{
				DDay = '';
			}
			else if(j-FirstDay+1>MonthDaysCountArray[Month11])
			{
				DDay = '';
			}
			else
			{
				DDay=j-FirstDay+1;
			}
			
			if( j%7 != 0 )
			{
				GridContent = GridContent+'<td width="1" style="background-color:#80520C"></td>';
			}
			
			if(j%2 ==0)
				BGColor = "FAE2C0";
			else
				BGColor = "FFFFFF";
			
			LinkCode = '<a href="'+Link+SHLink+'-'+DDay+'" style="font-size: '+DaysSize+'px; font-family: '+DaysFontFamily+'; font-weight:none; text-decoration:none; color:#'+DaysColour+'">'+DDay+'</a>';
			
			if(DDay == Date31)
			{
				GridContent = GridContent+'<td align="center" width="'+GridWidth+'" height="'+GridHeight+'" style="background-color:#EEAA44">'+LinkCode+'</td>';
			}
			else
			{
				GridContent = GridContent+'<td align="center" width="'+GridWidth+'" height="'+GridHeight+'" style="background-color:#'+BGColor+'">'+LinkCode+'</td>';
			}
		}
		GridContent = GridContent+'</tr>';
		if( i != Count/7 )
			GridContent = GridContent+'<tr><td colspan="13" height="1" style="background-color:#80520C"></td></tr>';
	}
	GridContent = GridContent+'</table>';
	
	
	var WeekDayContent = '<table border="0" cellspacing="0" cellpadding="0" style="font-size: ' + WeekDaySize + 'px; font-family: '+WeekDayFontFamily+'; font-weight:bold; text-decoration:none; color:#'+WeekDayColour+'"><tr>';
	for( i=0 ; i<7 ; i++)
	{
		if( i != 0 )
		{
			WeekDayContent = WeekDayContent+'<td width="1" style="background-color:#80520C"></td>';
		}
		WeekDayContent = WeekDayContent+'<td align="center" width="'+GridWidth+'">'+WeekDayArray[i]+'</td>';
	}
	WeekDayContent = WeekDayContent+'</tr></table>';
	
	

	document.write('<table border="0" align="center" style="background-color:#80530D" cellspacing="1" cellpadding="0"><tr><td style="background-color:#FFFFFF; height:24px;" align="center"><span style="font-size: '+MonthAndDaySize+'px; font-family: ' + MonthAndDayFontFamily + '; font-weight:none; text-decoration:none; color:#'+MonthAndDayColour+'">'+MonthArray[Month11]+' '+Date31+' </span></td></tr><tr><td style="background-color:#80530D; height:22px;" align="center" valign="middle">'+WeekDayContent+'</td></tr><tr><td style="background-color:#FFFFFF;">'+GridContent+'</td></tr></table>');
}