function SatsangCalendar() {
	//var satsangDates_July = new Array("1","2","3","4","5","6","7","8","9","10","11","14");
	//var satsangDates_August = new Array("1","2","3","4","5","6","7","8","9","10","23","24","25","26","27","28","29","30","31");
	//var satsangDates_September = new Array("4","5","6","7","8","9","10","13","14","15","23","24","25","26","27","28","29","30");
	//var satsangDates_October = new Array("1","2","3","4","5","6","7","8","19","20","21");
	//var satsangDates_November = new Array("9");
	//var satsangDates_December = new Array("1","2","3","4","5","6","7","8","9","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31");
	
	var satsangDates_January = new Array("6","7","8","9","10");
	var satsangDates_February = new Array("17","18","20","21","25","26","27","28");
	var satsangDates_March = new Array("1","2","3","4","5","6","7","8","16","17","18","19","20","21","22","23","24");
	var satsangDates_April = new Array("2","3","4","10","11","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30");
	var satsangDates_May = new Array("1","2","3","4","5","6","7","8","9","10","11","12","13","14");
	var satsangDates_June = new Array("1","2","3","4","5","6","9","10","11","12","13");
	var satsangDates_July = new Array("4","5","6","7","8","9","10","19","20","21","26","27","28","29","30","31");
	var satsangDates_August = new Array("1","2","3","4","5","6","7","8","9","10");
	var satsangDates_September = new Array();
	var satsangDates_October = new Array();
	var satsangDates_November = new Array();
	var satsangDates_December = new Array();
	//var satsangDates_March = new Array("2","3","4","5","6","7","8","9","10","11");
	//var satsangDates_April = new Array("3","9","10","11","12","26","27","28");
	//var satsangDates_May = new Array("1","2","3","4","5","6","7","8","9","10","14","15","16","17","23","24","25","26","27","28","29","30");
	//var satsangDates_June = new Array("1","2","3","4","5","6","7","8");
	//var satsangDates_July = new Array("3","5","6","7","8","9","10","11","12","13","14","15");
	//var satsangDates_August = new Array("1","2","3","4","5","6","7","8","9","10","11","13","14","15","16","17","18","19","20","21","22","23");
	//var satsangDates_September = new Array("4","5","6","14","15","16","17","18","19","20","21","22","23","24","25","26","27");
	//var satsangDates_October = new Array("3","4","5","6","7","8","9","10","11","12","29");
	//var satsangDates_November = new Array("2","3","4","5","7","8","9");
	//var satsangDates_December = new Array("1","2","3","4","5","6","7","8","9","10","13","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31");

	// Set varible to the current date
	var right_now=new Date();

	// set variable to current month number (0-11)
	var month_num = right_now.getMonth()

	// set varible to the current day value (1-31)
	var thedate=right_now.getDate()

	// create an array for the month name
	var month_name = new Array (
	"January ",
	"February ",
	"March ",
	"April ",
	"May ",
	"June ",
	"July ",
	"August ",
	"September ",
	"October ",
	"November ",
	"December ");

	// Create a varible right_year with the current year
	var right_year=right_now.getYear();
	if (right_year < 2000)
	right_year = right_year + 1900;

	// create a varible to specify what the
	// last day for the current month is
	var theday = 0;
	if (
	month_num == 0 ||
	month_num == 2 ||
	month_num == 4 ||
	month_num == 6 ||
	month_num == 7 ||
	month_num == 9 ||
	month_num == 11)
	{
	endofmonth=31;
	}
	if (
	month_num == 3 ||
	month_num == 5 ||
	month_num == 8 ||
	month_num == 10)
	{
	endofmonth=30;
	}

	if (month_num == 1)
	{
	// This will check for a leap year
	// If the year is evenly divisible by four
	// or in the case of a new century evenly divisible
	// by 400 then the end of the February month should be the 29th

	right_year_divided=right_year/4;
	right_year_divided_string= new String(right_year_divided);
	var is_decimal = right_year_divided_string.indexOf('.');
	if (is_decimal != -1)
	{ endofmonth=28; }
	else
	{ endofmonth=29; }

	right_year_string= new String(right_year);
	var the_century=new String(right_year_string.charAt(2))
	the_century= the_century + new String(right_year_string.charAt(3));
	if (the_century == "00")
	{
	right_year_divided=right_year/400;
	right_year_divided_string= new String(right_year_divided);
	var is_decimal = right_year_divided_string.indexOf('.');
	if (is_decimal != -1)
	{endofmonth=28;}
	else
	{endofmonth=29;}
	}
	}

	var satsangDates = "satsangDates_" + month_name[month_num];
	var tdbgcolor = "#666600";
	var calendarString = "";
	calendarString += "<p class=satcaltext align=center>";
	//calendarString += "<a href='javascript:alert(Coming Soon)'><img src=Images/icons/facebook.gif alt='Follow us on Facebook' border=0></a>&nbsp;&nbsp;<a href='https://twitter.com/vittalrukmini' target='_blank'><img src=Images/icons/twitter.gif alt='Follow us on Twitter' border=0></a>&nbsp;&nbsp;<a href='http://srivittalrukminisamasthan.blogspot.com/' target='_blank'><img src=Images/icons/blogspot.gif alt='Blogspot' border=0></a>&nbsp;&nbsp;<a href='http://www.youtube.com/user/raadhekrishna' target='_blank'><img src=Images/icons/youtube.gif alt='YouTube' border=0></a><br><br>";
	// Place a caption with the month name and year
	calendarString += "SATSANG CALENDAR<br>";
	calendarString += month_name[month_num];
	calendarString += right_year;

	calendarString += "<table cellspacing=0 cellpadding=0 align=center background=/Images/spiral.gif>";
	calendarString += "<tr><td>&nbsp;</td></tr>";
	calendarString += "<tr><td>";

	// Start building the table
	calendarString += "<table border=0 align=center width=15% bgcolor=#cccc66 cellspacing=0 cellpadding=3 border=0 class=satsangcalendarText>";

	// Write the table header row
	calendarString += "<tr bgcolor=#EBF3FB><th class=BottomRightBorder3 align=center><font color=red><b>S</b></font></th><th class=BottomRightBorder3 align=center>M</th><th class=BottomRightBorder3 align=center>T</th><th class=BottomRightBorder3 align=center>W</th>";
	calendarString += "<th class=BottomRightBorder3 align=center>T</th><th class=BottomRightBorder3 align=center>F</th><th class=BottomRightBorder3 align=center>S</th></tr><tr>";

	// Figure out which day of the week the 1st of the
	// current month belongs to
	first_day = new Date(right_year,month_num,1)


	// Write the first row in the calendar with dates
	// Check which date of the month is the first to
	// fill it into the appropriate day of the week
	for (counter = 0; counter < 7; counter++)
	{

	// Check the counter aganst the first day of the month value (0 - 6)

		if (counter >= first_day.getDay() )
		{

			// Start counter for the calendar days
			theday=theday+1;

			for(var z=0;z<eval(satsangDates).length;z++){
				if(theday == eval(satsangDates)[z]){
					calendarString += "<td bgcolor="+ tdbgcolor +" class=BottomRightBorder3 align=center><a href='/satsang.html#"+month_name[month_num]+"' class=satsangcalendar>" + theday + "</a></td>";
					break;
				} else {
					if(z == eval(satsangDates).length-1){
						calendarString += "<td class=BottomRightBorder3 align=center>" + theday + "</td>";
					}
				}
			}
		}
		else
		// if there is no day yet output an empty cell
		{
			calendarString += "<td class=BottomRightBorder3 align=center>&nbsp;</td>";
		}
	}

	// End row for the first week of the month
	calendarString += "</tr>";

	// Loop for the rest fo the weeks in the month
	for (weeks = 0; weeks < 5; weeks++)
	{
		calendarString += "<tr>";
		// loop for the days with the remaining weeks
		for (week = 0; week < 7; week++)
		{

		// counter for the day of the month
		theday=theday+1

			// if the couter = the current date display in bold
			//if (theday == thedate)
			//{
			//	document.write("<td class=BottomRightBorder3 align=center><b>" + theday + "</b></td>");
			//}
			//else
			//{

				// if the counter is higher then than the number of days
				// in the month then display a blank cell
				if (theday > endofmonth)
				{
					 calendarString += "<td class=BottomRightBorder3 align=center>&nbsp;</td>";
				}
				else
				// If it's not the cureent day display the date wioth bold type
				{
					//document.write("<td class=BottomRightBorder3 align=center>" + theday + "</td>");
					for(var z=0;z<eval(satsangDates).length;z++){
						if(theday == eval(satsangDates)[z]){
							calendarString += "<td bgcolor="+ tdbgcolor +" class=BottomRightBorder3 align=center><a href='/satsang.html#"+month_name[month_num]+"' class=satsangcalendar>" + theday + "</a></td>";
							break;
						} else {
							if(z == eval(satsangDates).length-1){
								calendarString += "<td class=BottomRightBorder3 align=center>" + theday + "</td>";
							}
						}
					}
				}
			//}
		}
		calendarString += "</tr>";
	}
	calendarString += "</table></td></tr></table>";
	calendarString += "<p align=center class=satcaltext><a href='/Images/calendar_download.jpg' class=BlueLink target=_blank>Download "+month_name[month_num]+" "+right_year+" Calendar</a><br><br><table class=ThinBorder3 bgcolor=#fffcc align=center cellpadding=0 cellspacing=0><tr><td align=center><font class=BodyText><a href='/docs/OnlineContributionHelp.pdf' class=BlueLink target=_blank><b>4 Simple Clicks to Contribute Online<br>KNOW HOW !!!</b></a>&nbsp;<!--font color=red><b>NEW !</b></font--></font></td></tr></table>";
	var object=document.getElementById('calendar');
	object.innerHTML=calendarString;
}