 /* Links to Prayter for Today and Apostle for the Month
 Written by: John Robert Shea
 Pirpose: For www.the12powers.org (TAM)
 Created: 12 June 2006
 Creates Links called "PrayerLink" and "ApostleLink" for  document.write()
 */
 //Get Date info
 now = new Date();
 Year = now.getFullYear();
 MM = now.getMonth() + 1;
 DT = now.getDate();
 
 // Get the Prayer fpr Today PrayerLink
 YY = Year;
 if (YY > 2000) YY = YY - 2000;
 if (YY < 10) YY = '0' + YY;
 MO = MM; // preserve single digit
 if (MM < 10) MM = '0' + MM;
 DY = DT; // preserve single digit
 if (DT < 10) DT = '0' + DT; 
 URL = 'http://www.tsmj.org/dailyprayer/20' + YY + '/' + YY + MM + DT + '.htm?';

 // Get Month Names
 if (MO == '1') Month = 'January';
 if (MO == '2') Month = 'February';
 if (MO == '3') Month = 'March';
 if (MO == '4') Month = 'April';
 if (MO == '5') Month = 'May';
 if (MO == '6') Month = 'June';
 if (MO == '7') Month = 'July';
 if (MO == '8') Month = 'August';
 if (MO == '9') Month = 'September';
 if (MO == '10') Month = 'October';
 if (MO == '11') Month = 'November';
 if (MO == '12') Month = 'December';

 PrayerLink = '<b><a title="Prayer for Today: ' + DY + ' ' + Month + ' ' + Year + '" onclick="open(\'' + URL + '\',\'dailyprayer\',\'left=100,top=40,toolbar=0,location=0,resizable=0,width=580,scrollbars=1,height=400\')" href="javascript:void(0)">Prayer for ' + DY + ' ' + Month + ' ' + Year + '</a></b>';

 // Assign Apostle info
 if (MM == 1) {Disciple = 'peter'; Month = 'January'; Apostle = 'Peter'; Power = 'Faith'; Colour = 'Dark Blue';}
 if (MM == 2) {Disciple = 'john'; Month = 'February'; Apostle = 'John'; Power = 'Love'; Colour = 'Pink';}
 if (MM == 3) {Disciple = 'andrew'; Month = 'March'; Apostle = 'Andrew'; Power = 'Strength'; Colour = 'Light Green';}
 if (MM == 4) {Disciple = 'james_gr'; Month = 'April'; Apostle = 'James the Great'; Power = 'Wisdom'; Colour = 'Yellow';}
 if (MM == 5) {Disciple = 'philip'; Month = 'May'; Apostle = 'Philip'; Power = 'Power'; Colour = 'Purple';}
 if (MM == 6) {Disciple = 'bartholomew'; Month = 'June'; Apostle = 'Bartholomew'; Power = 'Imagination'; Colour = 'Light Blue';}
 if (MM == 7) {Disciple = 'thomas'; Month = 'July'; Apostle = 'Thomas'; Power = 'Understanding'; Colour = 'Gold';}
 if (MM == 8) {Disciple = 'matthew'; Month = 'August'; Apostle = 'Matthew'; Power = 'Will'; Colour = 'Silver';}
 if (MM == 9) {Disciple = 'james_ls'; Month = 'September'; Apostle = 'James the Less'; Power = 'Order'; Colour = 'Olive Green';}
 if (MM == 10) {Disciple = 'simon'; Month = 'October'; Apostle = 'Simon'; Power = 'Zeal'; Colour = 'Orange';}
 if (MM == 11) {Disciple = 'thaddeus'; Month = 'November'; Apostle = 'Thaddeus'; Power = 'Purity/Elimination'; Colour = 'Russet';}
 if (MM == 12) {Disciple = 'judas_iscariot'; Month = 'December'; Apostle = 'Judas'; Power = 'Life'; Colour = 'Red';}
 ApostleLink = '<b><a title="Apostle for ' + Month + ': ' + Apostle + ', Power: ' + Power + ',  Color: ' + Colour + '" href="' + Disciple + '.htm">Apostle for ' + Month + '</a></b>'

// EMAIL A FRIEND
initialsubj="Here is an interesting site I found"
initialmsg="Hi!\n I thought you would like to take a look at this Web page: "+window.location
var good;

function checkEmailAddress(field) {
 goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);

 if (goodEmail) {
  good = true;
  }
 else {
  alert('Please enter a valid email address.');
  field.focus();
  field.select();
  good = false;
  }
 }

u = window.location;
function mailThisUrl() {
 good = false
 checkEmailAddress(document.eMailer.email);
 if (good) {
  window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg
  }
 }

EmailFriend = '<table border="0" width="266" align="center" cellspacing="0" cellpadding="0"><tr><td width="100%" align="center"><form name="eMailer"><table border="2" width="40%" bordercolorlight="#0000FF" cellspacing="0" cellpadding="0" bordercolordark="#000080" bgcolor="#85AADC"><tr><td width="100%"><div align="center"><center><table border="0" width="100%"><tr><td width="100%" align="center" nowrap><a name="tell"><b>Tell a friend:</b><input type="text" name="email" size="25" value=" Enter a friend\'s email" onFocus="this.value=\'\'" onMouseOver="window.status=\'Enter email address here and tell a friend about this site...\'; return true" onMouseOut="window.status=\'\';return true" style="font-weight: bold; font-size: 10px"></a></td></tr><tr><td width="100%" align="center"><input type="button" value="Send this URL" onMouseOver="window.status=\'Click to send an email (with this page address) to a friend! Enter email address above...\'; return true" onMouseOut="window.status=\'\';return true" onClick="mailThisUrl();" style="font-size: 10px; font-weight: bold"></td></tr></table></center></div></td></tr></table></form></td></tr></table>';

Donate = '<table border="0" align="center" width="370" cellspacing="0" cellpadding="0"><tr><td width="100%" align="center"><form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHNwYJKoZIhvcNAQcEoIIHKDCCByQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBleBSC8wT8tArp4A4IJRtwPsLTiRsBozm3K0mYjG7mZmKvm95lML5+Na3nJZcxukWKvMh0jNcvCo+HJyrl8zJGBKbiaPzSwj2SnG1Y+0zKqjuDHVvr5iZ+kF1tZmk4wS3wOho3AZYT+90+9Jn2I08sgdOYxyPkRgNbkAhIlNrBMTELMAkGBSsOAwIaBQAwgbQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQINIj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oTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbYIBADAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBAIFfOlaagFrl71+jq6OKidbWFSE+Q4FqROvdgIONth+8kSK//Y/4ihuE4Ymvzn5ceE3S/iBSQQMjyvb+s2TWbQYDwcp129OPIbD9epdr4tJOUNiSojw7BHwYRiPh58S1xGlFgHFXwrEBb3dgNbMUa+u4qectsMAXpVHnD9wIyfmHMYIBmjCCAZYCAQEwgZQwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNTAxMjQwMzU4NTNaMCMGCSqGSIb3DQEJBDEWBBRvBzUVYEe4PCtnMr4yN2r/GdygcDANBgkqhkiG9w0BAQEFAASBgDoyxsbPKSswQrzICyknnvEhx7VfGG+ZxPY1F9JqaQo9JN2Bbj6jXCaK6dVAPXhx8NbrKH+nv1QMPSsDs5vEYXv6NG6yhoASOaemOecnFToZD5SLQVYqY3BKPwyFgeNW/E6LIUB4oAdhbzZcOZcXVc0Du0xszFXeNsqakPuU0MPk-----END PKCS7-----"><input type="hidden" name="cmd" value="_s-xclick"><div align="center"><center><table border="2" width="95%" bordercolordark="#000080" cellspacing="0" cellpadding="5" bordercolorlight="#0000FF" bgcolor="#FFFFFF" height="64"><tr><td width="100%" style="font-size: 8pt; font-family: Verdana, Arial; font-weight: bold; text-align: justify"><p><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="I1" alt="Make your donation with PayPal - it\'s fast, free and secure!" align="left" width="110" height="23"><b>If you would like to make a contribution to this ministry, we recommend PayPal.... it\'s EASY, FREE, and SECURE!</b></td></tr></table></center></div></form></td></tr></table>';