var days = new Array();
var msgs = new Array();

days[0] = "January 1, 2012";
msgs[0] = "Solemnity of Mary, Mother of God";

days[1] = "January 3, 2012";
msgs[1] = "Feast of the Most Holy Name of Jesus - Optional Memorial";

days[2] = "January 28, 2012";
msgs[2] = "Feast of St. Thomas Aquinas - Doctor of the Church";

days[3] = "February 2, 2012";
msgs[3] = "Presentation of the Lord";

days[4] = "March 5, 2012";
msgs[4] = "St. John Joseph of the Cross";

days[5] = "March 8, 2012";
msgs[5] = "St. John of God (1495-1550)";

days[6] = "March 24, 2012"; 
msgs[6] = "Vigil of the Annunciation of the Lord";

days[7] = "March 25, 2012";
msgs[7] = "Feast of the Annunciation of the Lord";

days[8] = "April 29, 2012";
msgs[8] = "Feast of St. Catherine of Siena - Doctor of the Church"; 

days[9] = "May 1, 2012";
msgs[9] = "Feast of Saint Joseph the Worker";

days[10] = "May 20, 2012";
msgs[10] = "Feast of St. Bernardine of Siena - Promoter of Devotion to Holy Name of Jesus";

days[11] = "August 8, 2012";
msgs[11] = "Feast of St. Dominic - Founder of the Order of Preachers - Domincan Order";

days[12] = "August 15, 2012";
msgs[12] = "Feast of the Assumption of Mary";

days[13] = "September 8, 2012";
msgs[13] = "Feast of the Birth of Mary";

days[14] = "October 4, 2012";
msgs[14] = "Feast of St. Francis of Assisi";

days[15] = "October 7, 2012";
msgs[15] = "Our Lady of the Rosary";

days[16] = "November 15, 2012";
msgs[16] = "St. Albert the Great - Doctor of the Church";

days[17] = "November 1, 2012";
msgs[17] = "Solemnity of All Saints";

days[18] = "November 2, 2012";
msgs[18] = "All Souls Day";

days[19] = "November 4, 2012";
msgs[19] = "Feast of Saint Charles Borromeo";

days[20] = "November 21, 2012";
msgs[20] = "Presentation of Mary";

days[21] = "December 1, 2012";
msgs[21] = "Feast of Blessed John of Vercelli - Patron of the Confraternity of the Holy Name";

days[22] = "December 8, 2012";
msgs[22] = "Solemnity of the Immaculate Conception";

days[23] = "December 24, 2012";
msgs[23] = "Christmas Eve - Blessed be the Holy Name of Jesus!";

days[24] = "December 25, 2012";
msgs[24] = "Christmas Day – Birth of Jesus Christ";

days[25] = "December 28, 2012";
msgs[25] = "Feast of the Holy Innocents, Martyrs";

days[26] = "December 30, 2012";
msgs[26] = "Feast of the Holy Family";


var months = new Array("",
"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
);
var today = new Date(); // today 
var mon = months[today.getMonth() + 1]; // month 
var day = today.getDate(); // day 
var year = y2k(today.getYear()); // year 

function DateMsg() { 
for (i = 0; i < days.length; i++) { 
tempdate = new Date(days[i]); 
tempmonth = months[tempdate.getMonth() + 1]; 
tempday = tempdate.getDate(); 
tempyear = y2k(tempdate.getYear()); 
if (year == tempyear && mon == tempmonth && day == tempday) 

return(" " + msgs[i] + "<br>  " + days[i]); // returns day message 
} 
return("Blessed be the Most Holy Name of Jesus Christ.<br>Today is " + mon + " " + day + ", " + year + " "); // returns default 
} 

// Y2K Fix Function 
function y2k(year) { 
if (year < 2000) 
year = year + 1900; 
return year; 
} 

