var text = '
Christian Quote of the Day
'; var dateSuffix='th'; todaysDate = new Date(); if (todaysDate.getDate() == 1 || todaysDate.getDate() == 21 || todaysDate.getDate() == 31) { dateSuffix = 'st'; }; if (todaysDate.getDate() == 2 || todaysDate.getDate() == 22) { dateSuffix = 'nd'; } if (todaysDate.getDate() == 3 || todaysDate.getDate() == 23) { dateSuffix = 'rd'; } dayarray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); montharray = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); text += dayarray[todaysDate.getDay()] + ", " + montharray[todaysDate.getMonth()] + " " + todaysDate.getDate() + dateSuffix + ", "; if (todaysDate.getYear() <1000){ text += todaysDate.getYear() + 1900; } else { text += todaysDate.getYear(); }; text += '

We ought to give thanks for all fortune: if it is good, because it is good, if bad, because it works in us patience, humility and the contempt of this world and the hope of our eternal country.

- Lewis, C. S.
';text += '

This daily, Christian quote provided by Christian Quote of the Day
';