var comicName = "PrayerToons";
var comicDir = "http://churchresources.info/prayertoons/toons";
var noImage = "http://churchresources.info/prayertoons/toons/20070308.jpg"; // Displays if no updates for 2 days
var comicUrl = "http://churchresources.info/prayertoons/toons";
var comicWidth = "652";
var comicHeight = "253";
var comicFormat = "jpg";
// The following code should only be modified where specified
function lastComic() {
var prevDate = new Date(date - 24*60*60*1000);
var d = prevDate.getDate();
var day = (d < 10) ? '0' + d : d;
var m = prevDate.getMonth() + 1;
var month = (m < 10) ? '0' + m : m;
var yy = prevDate.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;
// If you change IMG NAME below, you will need to change OnlineComic in the next line
document.images.OnlineComic.src = comicDir + year + month + day + '.' + comicFormat;
}
var date = new Date();
var d = date.getDate();
var day = (d < 10) ? '0' + d : d;
var m = date.getMonth() + 1;
var month = (yy < 1000) ? yy + 1900 : yy;
document.write('');
// You should change the IMG NAME below if you want to allow multiple syndicated comics on a single webpage
document.write('');
// You might need to make sure the code after the comment above is all on a single line
document.write('');