/*Year 2006*/

/*January*/
var Jan = new Array();
Jan[0] = "<br>";
Jan[1] = "<br>";
Jan[2] = "<br>";
Jan[3] = "<br>";
Jan[4] = "<br>";
Jan[5] = "<br>";
Jan[6] = "<br>";
Jan[7] = "<br>";
Jan[8] = "<br>";
Jan[9] = "<br>";
Jan[10] = "<br>";
Jan[11] = "<br>";
Jan[12] = "<br>";
Jan[13] = "<br>";
Jan[14] = "<br>";
Jan[15] = "<br>";
Jan[16] = "<br>";
Jan[17] = "<br>";
Jan[18] = "<br>";
Jan[19] = "<br>";
Jan[20] = "<br>";
Jan[21] = "<br>";
Jan[22] = "<br>";
Jan[23] = "<br>";
Jan[24] = "<br>";
Jan[25] = "<br>";
Jan[26] = "<br>";
Jan[27] = "<br>";
Jan[28] = "<br>";
Jan[29] = "<br>";
Jan[30] = "<br>";
Jan[31] = "<br>";
/*End January*/

/*February*/
var Feb = new Array();
Feb[0] = "<br>";
Feb[1] = "<br>";
Feb[2] = "<br>";
Feb[3] = "<br>";
Feb[4] = "<br>";
Feb[5] = "<br>";
Feb[6] = "<br>";
Feb[7] = "<br>";
Feb[8] = "<br>";
Feb[9] = "<br>";
Feb[10] = "<br>";
Feb[11] = "<br>";
Feb[12] = "<br>";
Feb[13] = "<br>";
Feb[14] = "<br>";
Feb[15] = "<br>";
Feb[16] = "<br>";
Feb[17] = "<br>";
Feb[18] = "<br>";
Feb[19] = "<br>";
Feb[20] = "<br>";
Feb[21] = "<br>";
Feb[22] = "<br>";
Feb[23] = "<br>";
Feb[24] = "<br>";
Feb[25] = "<br>";
Feb[26] = "<br>";
Feb[27] = "<br>";
Feb[28] = "<br>";
Feb[29] = "<br>";
/*End February*/

/*March*/
var Mar = new Array();
Mar[0] = "<br>";
Mar[1] = "<br>";
Mar[2] = "<br>";
Mar[3] = "<br>";
Mar[4] = "<br>";
Mar[5] = "<br>";
Mar[6] = "<br>";
Mar[7] = "<br>";
Mar[8] = "<br>";
Mar[9] = "<br>";
Mar[10] = "<br>";
Mar[11] = "<br>";
Mar[12] = "<br>";
Mar[13] = "<br>";
Mar[14] = "<br>";
Mar[15] = "<br>";
Mar[16] = "<br>";
Mar[17] = "<br>";
Mar[18] = "<br>";
Mar[19] = "<br>";
Mar[20] = "<br>";
Mar[21] = "<br>";
Mar[22] = "<br>";
Mar[23] = "<br>";
Mar[24] = "<br>";
Mar[25] = "<br>";
Mar[26] = "<br>";
Mar[27] = "<br>";
Mar[28] = "<br>";
Mar[29] = "<br>";
Mar[30] = "<br>";
Mar[31] = "<br>";
/*End March*/

/*April*/
var Apr = new Array();
Apr[0] = "<br>";
Apr[1] = "<br>";
Apr[2] = "<br>";
Apr[3] = "<br>";
Apr[4] = "<br>";
Apr[5] = "<br>";
Apr[6] = "<br>";
Apr[7] = "<br>";
Apr[8] = "<br>";
Apr[9] = "<br>";
Apr[10] = "<br>";
Apr[11] = "<br>";
Apr[12] = "<br>";
Apr[13] = "<br>";
Apr[14] = "<br>";
Apr[15] = "<br>";
Apr[16] = "<br>";
Apr[17] = "<br>";
Apr[18] = "<br>";
Apr[19] = "<br>";
Apr[20] = "<br>";
Apr[21] = "<br>";
Apr[22] = "<br>";
Apr[23] = "<br>";
Apr[24] = "<br>";
Apr[25] = "<br>";
Apr[26] = "<br>";
Apr[27] = "<br>";
Apr[28] = "<br>";
Apr[29] = "<br>";
Apr[30] = "<br>";
Apr[31] = "<br>";
/*End April*/

/*May*/
var May = new Array();
May[0] = "<br>";
May[1] = "<br>";
May[2] = "<br>";
May[3] = "<br>";
May[4] = "<br>";
May[5] = "<br>";
May[6] = "<br>";
May[7] = "<br>";
May[8] = "<br>";
May[9] = "<br>";
May[10] = "<br>";
May[11] = "<br>";
May[12] = "<br>";
May[13] = "<br>";
May[14] = "<br>";
May[15] = "<br>";
May[16] = "<br>";
May[17] = "<br>";
May[18] = "<br>";
May[19] = "<br>";
May[20] = "<br>";
May[21] = "<br>";
May[22] = "<br>";
May[23] = "<br>";
May[24] = "<br>";
May[25] = "<br>";
May[26] = "<br>";
May[27] = "<br>";
May[28] = "<br>";
May[29] = "<br>";
May[30] = "<br>";
May[31] = "<br>";
/*End May*/

/*June*/
var Jun = new Array();
Jun[0] = "<br>";
Jun[1] = "<br>";
Jun[2] = "<br>";
Jun[3] = "<br>";
Jun[4] = "<br>";
Jun[5] = "<br>";
Jun[6] = "<br>";
Jun[7] = "<br>";
Jun[8] = "<br>";
Jun[9] = "<br>";
Jun[10] = "<br>";
Jun[11] = "<br>";
Jun[12] = "<br>";
Jun[13] = "<br>";
Jun[14] = "<br>";
Jun[15] = "<br>";
Jun[16] = "<br>";
Jun[17] = "<br>";
Jun[18] = "<br>";
Jun[19] = "<br>";
Jun[20] = "<br>";
Jun[21] = "<br>";
Jun[22] = "<br>";
Jun[23] = "<br>";
Jun[24] = "<br>";
Jun[25] = "<br>";
Jun[26] = "<br>";
Jun[27] = "<br>";
Jun[28] = "<br>";
Jun[29] = "<br>";
Jun[30] = "<br>";
Jun[31] = "<br>";
/*End June*/

/*July*/
var Jul = new Array();
Jul[0] = "<br>";
Jul[1] = "<br>";
Jul[2] = "<br>";
Jul[3] = "<br>";
Jul[4] = "<br>";
Jul[5] = "<br>";
Jul[6] = "<br>";
Jul[7] = "<br>";
Jul[8] = "<br>";
Jul[9] = "<br>";
Jul[10] = "<br>";
Jul[11] = "<br>";
Jul[12] = "<br>";
Jul[13] = "<br>";
Jul[14] = "<br>";
Jul[15] = "<br>";
Jul[16] = "<br>";
Jul[17] = "<br>";
Jul[18] = "<br>";
Jul[19] = "<br>";
Jul[20] = "<br>";
Jul[21] = "<br>";
Jul[22] = "<br>";
Jul[23] = "<br>";
Jul[24] = "<br>";
Jul[25] = "<br>";
Jul[26] = "<br>";
Jul[27] = "<br>";
Jul[28] = "<br>";
Jul[29] = "<br>";
Jul[30] = "<br>";
Jul[31] = "<br>";
/*End July*/

/*August*/
var Aug = new Array();
Aug[0] = "<br>";
Aug[1] = "<br>";
Aug[2] = "<br>";
Aug[3] = "<br>";
Aug[4] = "<br>";
Aug[5] = "<br>";
Aug[6] = "<br>";
Aug[7] = "<br>";
Aug[8] = "<br>";
Aug[9] = "<br>";
Aug[10] = "<br>";
Aug[11] = "<br>";
Aug[12] = "<br>";
Aug[13] = "<br>";
Aug[14] = "<br>";
Aug[15] = "<br>";
Aug[16] = "<br>";
Aug[17] = "<br>";
Aug[18] = "<br>";
Aug[19] = "<br>";
Aug[20] = "<br>";
Aug[21] = "<br>";
Aug[22] = "<br>";
Aug[23] = "<br>";
Aug[24] = "<br>";
Aug[25] = "<br>";
Aug[26] = "<br>";
Aug[27] = "<br>";
Aug[28] = "<br>";
Aug[29] = "<br>";
Aug[30] = "<br>";
Aug[31] = "<br>";
/*End August*/

/*September*/
var Sep = new Array();
Sep[0] = "<br>";
Sep[1] = "<br>";
Sep[2] = "<br>";
Sep[3] = "<br>";
Sep[4] = "<br>";
Sep[5] = "<br>";
Sep[6] = "<br>";
Sep[7] = "<br>";
Sep[8] = "<br>";
Sep[9] = "<br>";
Sep[10] = "<br>";
Sep[11] = "<br>";
Sep[12] = "<br>";
Sep[13] = "<br>";
Sep[14] = "<br>";
Sep[15] = "<br>";
Sep[16] = "<br>";
Sep[17] = "<br>";
Sep[18] = "<br>";
Sep[19] = "<br>";
Sep[20] = "<br>";
Sep[21] = "<br>";
Sep[22] = "<br>";
Sep[23] = "<br>";
Sep[24] = "<br>";
Sep[25] = "<br>";
Sep[26] = "<br>";
Sep[27] = "<br>";
Sep[28] = "<br>";
Sep[29] = "<br>";
Sep[30] = "<br>";
Sep[31] = "<br>";
/*End September*/

////  /\
///2007
///2006
////  \/

/*October*/
var Oct = new Array();
Oct[0] = "<br>";
Oct[1] = "<br>-Fall Workbee";
Oct[2] = "<br>";
Oct[3] = "<br>-Maple Apartment Bible Study<br>-Food Pantry";
Oct[4] = "<br>-Prayer Rm. 15";
Oct[5] = "<br>-WIC<br>-Food Pantry<br>-Sanctuary Choir";
Oct[6] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Oct[7] = "<br>-Chime Choir<br>-Sabbath School<br>-Sabbath Worship<br>-Lords' Supper";
Oct[8] = "<br>-Quarterly Business Meeting";
Oct[9] = "<br>";
Oct[10] = "<br>-Maple Apartment Bible Study<br>-Food Pantry";
Oct[11] = "<br>-Prayer Rm. 15";
Oct[12] = "<br>-Food Pantry<br>-Sanctuary Choir";
Oct[13] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Oct[14] = "<br>-Fall Association at Alfred Station<br>-Chime Choir Practice<br>-Sabbath School<br>-Sabbath Worship";
Oct[15] = "<br>-Fall Association at Alfred Station";
Oct[16] = "<br>";
Oct[17] = "<br>-Maple Apartment Bible Study<br>-Food Pantry";
Oct[18] = "<br>-Prayer Rm. 15";
Oct[19] = "<br>-Food Pantry<br>-Sanctuary Choir";
Oct[20] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Oct[21] = "<br>-Interfaith Sabbath<br>-Sanctuary Choir<br>-Sabbath School<br>-Sabbath Worship<br>-Chimes Practice";
Oct[22] = "<br>-Chili Cook-Off";
Oct[23] = "<br>";
Oct[24] = "<br>-Maple Apartment Bible Study<br>-Food Pantry";
Oct[25] = "<br>-Prayer Rm. 15";
Oct[26] = "<br>-Food Pantry<br>-Sanctuary Choir";
Oct[27] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Oct[28] = "<br>-Instrumentalist<br>-Sabbath School<br>-Sabbath Worship<br>-Chime Choir";
Oct[29] = "<br>-Daylight Saving Time Ends";
Oct[30] = "<br>";
Oct[31] = "<br>-Maple Apartment Bible Study<br>-Food Pantry";
/*End October*/

/*November*/
var Nov = new Array();
Nov[0] = "<br>";
Nov[1] = "<br>-Prayer Rm. 15<br>-Soup and Pie";
Nov[2] = "<br>-Food Pantry<br>-Sanctuary Choir";
Nov[3] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Nov[4] = "<br>-Baptist Heritage Sabbath<br>-Chimes Practice<br>-Sabbath School<br>-Sabbath Worship<br>-Rob Appel Executive Director<br>-Seventh Day Baptist General Conference";
Nov[5] = "<br>";
Nov[6] = "<br>";
Nov[7] = "<br>-Maple Apartments Bible Study<br>-Food Pantry";
Nov[8] = "<br>-Prayer Rm. 15";
Nov[9] = "<br>-Food Pantry<br>-Sanctuary Choir";
Nov[10] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Nov[11] = "<br>-Veteran's Day Sabbath<br>-Chime Choir Practice<br>-Sabbath School<br>-Sabbath Worship<br>-Nick Kirsten Executive Seventh Day Baptist Historical Society<br>-Fellowship Meal<br>-Blockheads Hosting<br>-Church Watershed Time Line with Nick Kirsten<br>-Youth Fellowship";
Nov[12] = "<br>";
Nov[13] = "<br>";
Nov[14] = "<br>-Maple Apartments Bible Study<br>-Food Pantry";
Nov[15] = "<br>-Prayer Rm. 15";
Nov[16] = "<br>-Food Pantry<br>-Sanctuary Choir";
Nov[17] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Nov[18] = "<br>-Friend's Day Sabbath<br>-Sanctuary Choir<br>-Sabbath School<br>-Sabbath Worship<br>-Chimes Practice<br>-Church Thanksgiving Dinner";
Nov[19] = "<br>-Hunter's Breakfast<br>-Diaconate<br>-Trustees<br>-Music Worship";
Nov[20] = "<br>";
Nov[21] = "<br>-Maple Apartments Bible Study<br>-Food Pantry";
Nov[22] = "<br>-Prayer Rm. 15";
Nov[23] = "<br>-Food Pantry<br>-Sanctuary Choir";
Nov[24] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Nov[25] = "<br>-Thanksgiving Sabbath<br>-Instrumentalist<br>-Sabbath School<br>-Sabbath Worship<br>-Chimes Practice";
Nov[26] = "<br>-Central Committee";
Nov[27] = "<br>";
Nov[28] = "<br>-Maple Apartments Bible Study<br>-Food Pantry";
Nov[29] = "<br>-Prayer Rm. 15";
Nov[30] = "<br>-Food Pantry<br>-Sanctuary Choir";
Nov[31] = "<br>";
/*End November*/

/*December*/
var Dec = new Array();
Dec[0] = "<br>";
Dec[1] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Dec[2] = "<br>-1st Sabbath in Advent<br>-Chime Practice<br>-Sabbath School<br>-Sabbath Worship<br>-Erecting of the Nature Tree";
Dec[3] = "<br>";
Dec[4] = "<br>";
Dec[5] = "<br>-Maple Apartments Bible Study<br>-Food Pantry";
Dec[6] = "<br>-Prayer Rm. 15";
Dec[7] = "<br>-Food Pantry<br>-Sanctuary Choir";
Dec[8] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Dec[9] = "<br>-2nd Sabbath of Advent<br>-Chime Choir<br>-Sabbath School<br>-Sabbath Worship<br>-Christian Education and Music Worship Hosting<br>-Christmas Chime Concert";
Dec[10] = "<br>";
Dec[11] = "<br>";
Dec[12] = "<br>-Maple Apartments Bible Study<br>-Food Pantry";
Dec[13] = "<br>-Prayer Rm. 15";
Dec[14] = "<br>-Food Pantry<br>-Sanctuary Choir";
Dec[15] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Dec[16] = "<br>-3rd Sabbath in Advent<br>-Sanctuary Choir<br>-Sabbath School<br>-Sabbath Worship<br>-Chimes Practice<br>-Parsonage Open House<br>-Quest News Due<br>-Christmas Fellowship Meal<br>-Christmas Program";
Dec[17] = "<br>-Fund Raiser";
Dec[18] = "<br>";
Dec[19] = "<br>-Maple Apartments Bible Study<br>-Food Pantry";
Dec[20] = "<br>-Prayer Rm. 15";
Dec[21] = "<br>-Food Pantry<br>-Sanctuary Choir";
Dec[22] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Dec[23] = "<br>-Come Home for Christmas<br>-4th Sabbath in Advent<br>-Instrumentalist<br>-Sabbath School<br>-Sabbath Worship<br>-Chimes<br>-Carol Sing";
Dec[24] = "<br>-Chirstmas Eve<br>-Community Christmas Eve Service";
Dec[25] = "<br>-Christmas<br>-Christmas Day Service";
Dec[26] = "<br>-Food Pantry";
Dec[27] = "<br>-Prayer Rm. 15";
Dec[28] = "<br>-Food Pantry";
Dec[29] = "<br>-Healthy Intentions<br>-Welcome the Sabbath where you are";
Dec[30] = "<br>-Sabbath School<br>-ll:00am Sabbath Worship<br>-Reception A Year to Remember";
Dec[31] = "<br>-New Year's Eve<br>-\"Ring in the New Year\"";
/*End December*/









function buildCal2006(m, y, cM, cH, cDW, cD, brdr){
/*Style Sheet //for Month with switch statements//Need to Add Different Colors for each Calendar*/

var t='<html><input value="BACK" type=button onClick="history.back();"></input><style type="text/css">';

switch(m)
{
	//January
	case 1:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:black; font:bold 16pt verdana; color:white;}';
		t+='.daysofweek {background-color:gray; font:bold 12pt verdana; color:white;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightyellow; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
	//Feburary
	case 2:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:black; font:bold 16pt verdana; color:white;}';
		t+='.daysofweek {background-color:gray; font:bold 12pt verdana; color:white;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightyellow; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
	//March
	case 3:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:black; font:bold 16pt verdana; color:white;}';
		t+='.daysofweek {background-color:gray; font:bold 12pt verdana; color:white;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightyellow; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
	//April
	case 4:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:black; font:bold 16pt verdana; color:white;}';
		t+='.daysofweek {background-color:gray; font:bold 12pt verdana; color:white;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightyellow; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
	//May
	case 5:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:black; font:bold 16pt verdana; color:white;}';
		t+='.daysofweek {background-color:gray; font:bold 12pt verdana; color:white;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightyellow; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
	//June
	case 6:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:black; font:bold 16pt verdana; color:white;}';
		t+='.daysofweek {background-color:gray; font:bold 12pt verdana; color:white;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightyellow; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
	//July
	case 7:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:black; font:bold 16pt verdana; color:white;}';
		t+='.daysofweek {background-color:gray; font:bold 12pt verdana; color:white;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightyellow; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
	//August
	case 8:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:black; font:bold 16pt verdana; color:white;}';
		t+='.daysofweek {background-color:gray; font:bold 12pt verdana; color:white;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightyellow; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
	//September
	case 9:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:black; font:bold 16pt verdana; color:white;}';
		t+='.daysofweek {background-color:gray; font:bold 12pt verdana; color:white;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightyellow; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
	//October
	case 10:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:black; font:bold 16pt verdana; color:white;}';
		t+='.daysofweek {background-color:gray; font:bold 12pt verdana; color:white;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightyellow; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
	//November
	case 11:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:#784001; font:bold 16pt verdana; color:#FFFFAA;}';
		t+='.daysofweek {background-color:#CC0000; font:bold 12pt verdana; color:#FF9900;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightyellow; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
	//December
	case 12:
	{
		t+='.main {width:100%; border:1px solid black;}';
		t+='.month {background-color:black; font:bold 16pt verdana; color:#DFFBFF;}';
		t+='.daysofweek {background-color:gray; font:bold 12pt verdana; color:white;}';
		t+='.days {font-size: 12px; font-weight:600; font-family:verdana; color:black; background-color: lightblue; padding: 2px;}';
		t+='.days #today{font-weight: bold; color: red;}';
		t+='</style>';
		break;
	}
}


t+='<script>var s=0; var t; function timedCount(){ s=s+1; if (s > 1){clearTimeout(t); window.stop();} t=setTimeout("timedCount()",1000)} timedCount();</script>';

/*End Style Sheet*/
var mn=['January','February','March','April','May','June','July','August','September','October','November','December'];
var dim=[31,0,31,30,31,30,31,31,30,31,30,31];

var oD = new Date(y, m-1, 1); //DD replaced line to fix date bug when current day is 31st
oD.od=oD.getDay()+1; //DD replaced line to fix date bug when current day is 31st

var todaydate=new Date() //DD added
var scanfortoday=(y==todaydate.getFullYear() && m==todaydate.getMonth()+1)? todaydate.getDate() : 0 //DD added

dim[1]=(((oD.getFullYear()%100!=0)&&(oD.getFullYear()%4==0))||(oD.getFullYear()%400==0))?29:28;
t+='<div class="'+cM+'"><table class="'+cM+'" cols="7" cellpadding="0" border="'+brdr+'" cellspacing="0"><tr align="center">';
t+='<td colspan="7" align="center" class="'+cH+'">'+mn[m-1]+' - '+y+'</td></tr><tr align="center">';
for(s=0;s<7;s++)t+='<td class="'+cDW+'">'+"SMTWTFS".substr(s,1)+'</td>';
t+='</tr><tr align="left" valign="top">';
var xx;
for(i=1;i<=42;i++){
var x=((i-oD.od>=0)&&(i-oD.od<dim[m-1]))? i-oD.od+1 : '&nbsp;';
if (x == '&nbsp;'){xx = 0;}
else{xx = x;}

switch(m)
{
	case 1:
	{
		t+='<td class="'+cD+'">'+x+Jan[xx]+'</td>';
		break;
	}
	
	case 2:
	{
		t+='<td class="'+cD+'">'+x+Feb[xx]+'</td>';
		break;
	}
	
	case 3:
	{
		t+='<td class="'+cD+'">'+x+Mar[xx]+'</td>';
		break;
	}
	
	case 4:
	{
		t+='<td class="'+cD+'">'+x+Apr[xx]+'</td>';
		break;
	}
	
	case 5:
	{
		t+='<td class="'+cD+'">'+x+May[xx]+'</td>';
		break;
	}
	
	case 6:
	{
		t+='<td class="'+cD+'">'+x+Jun[xx]+'</td>';
		break;
	}
	
	case 7:
	{
		t+='<td class="'+cD+'">'+x+Jul[xx]+'</td>';
		break;
	}
	
	case 8:
	{
		t+='<td class="'+cD+'">'+x+Aug[xx]+'</td>';
		break;
	}
	
	case 9:
	{
		t+='<td class="'+cD+'">'+x+Sep[xx]+'</td>';
		break;
	}
	
	case 10:
	{
		t+='<td class="'+cD+'">'+x+Oct[xx]+'</td>';
		break;
	}
	
	case 11:
	{
		t+='<td class="'+cD+'">'+x+Nov[xx]+'</td>';
		break;
	}
	
	case 12:
	{
		t+='<td class="'+cD+'">'+x+Dec[xx]+'</td>';
		break;
	}
	
}

if(((i)%7==0)&&(i<36))t+='</tr><tr align="left" valign="top">';
}
return t+='</tr></table></div></html>';
}





/*
<script type="text/javascript">
var s=0; var t; function timedCount(){ s=s+1; if (s > 5){clearTimeout(t);} t=setTimeout("timedCount()",1000)}
</script>
*/






