﻿// This script was written by Doug Popeney (dpopeney@oboe.aix.calpoly.edu)
// (Any line that has // may be deleted, they are just comments!)

  var now = new Date();
  var month = now.getMonth() + 1;
  var date = now.getDate();
  var year = now.getYear();

  if (month == "1"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 1-6"
        msgs[2] = "Today's reading is from pages 6-10"
        msgs[3] = "Today's reading is from pages 11-16"
        msgs[4] = "Today's reading is from pages 17-22"
        msgs[5] = "Today's reading is from pages 23-28"
        msgs[6] = "Today's reading is from pages 29-34"
        msgs[7] = "Today's reading is from pages 34-39"
        msgs[8] = "Today's reading is from pages 39-44"
        msgs[9] = "Today's reading is from pages 44-47"
        msgs[10] = "Today's reading is from pages 47-50"
        msgs[11] = "Today's reading is from pages 50-55"
        msgs[12] = "Today's reading is from pages 55-59"
        msgs[13] = "Today's reading is from pages 59-63"
        msgs[14] = "Today's reading is from pages 63-68"
        msgs[15] = "Today's reading is from pages 68-71"
        msgs[16] = "Today's reading is from pages 71-74"
        msgs[17] = "Today's reading is from pages 74-78"
        msgs[18] = "Today's reading is from pages 78-82"
        msgs[19] = "Today's reading is from pages 82-87"
        msgs[20] = "Today's reading is from pages 87-91"
        msgs[21] = "Today's reading is from pages 91-96"
        msgs[22] = "Today's reading is from pages 97-102"
        msgs[23] = "Today's reading is from pages 103-107"
        msgs[24] = "Today's reading is from pages 107-110"
        msgs[25] = "Today's reading is from pages 110-113"
        msgs[26] = "Today's reading is from pages 113-117"
        msgs[27] = "Today's reading is from pages 117-121"
        msgs[28] = "Today's reading is from pages 121-126"
        msgs[29] = "Today's reading is from pages 126-131"
        msgs[30] = "Today's reading is from pages 131-135"
        msgs[31] = "Today's reading is from pages 135-139"
        var msg = msgs[date]
}
  if (month == "2"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 140-145"
        msgs[2] = "Today's reading is from pages 145-147"
        msgs[3] = "Today's reading is from pages 147-151"
        msgs[4] = "Today's reading is from pages 152-157"
        msgs[5] = "Today's reading is from pages 157-162"
        msgs[6] = "Today's reading is from pages 162-166"
        msgs[7] = "Today's reading is from pages 166-170"
        msgs[8] = "Today's reading is from pages 170-174"
        msgs[9] = "Today's reading is from pages 174-179"
        msgs[10] = "Today's reading is from pages 179-183"
        msgs[11] = "Today's reading is from pages 184-190"
        msgs[12] = "Today's reading is from pages 190-194"
        msgs[13] = "Today's reading is from pages 194-198"
        msgs[14] = "Today's reading is from pages 198-203"
        msgs[15] = "Today's reading is from pages 203-210"
        msgs[16] = "Today's reading is from pages 210-214"
        msgs[17] = "Today's reading is from pages 214-218"
        msgs[18] = "Today's reading is from pages 219-223"
        msgs[19] = "Today's reading is from pages 223-228"
        msgs[20] = "Today's reading is from pages 228-236"
        msgs[21] = "Today's reading is from pages 236-240"
        msgs[22] = "Today's reading is from pages 240-245"
        msgs[23] = "Today's reading is from pages 245-248"
        msgs[24] = "Today's reading is from pages 248-252"
        msgs[25] = "Today's reading is from pages 252-256"
        msgs[26] = "Today's reading is from pages 256-261"
        msgs[27] = "Today's reading is from pages 261-263"
        msgs[28] = "Today's reading is from pages 263-267"
        var msg = msgs[date]
}
  if (month == "3"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 267-274"
        msgs[2] = "Today's reading is from pages 274-280"
        msgs[3] = "Today's reading is from pages 280-285"
        msgs[4] = "Today's reading is from pages 285-288"
        msgs[5] = "Today's reading is from pages 288-292"
        msgs[6] = "Today's reading is from pages 292-295"
        msgs[7] = "Today's reading is from pages 296-302"
        msgs[8] = "Today's reading is from pages 303-308"
        msgs[9] = "Today's reading is from pages 308-312"
        msgs[10] = "Today's reading is from pages 312-317"
        msgs[11] = "Today's reading is from pages 317-322"
        msgs[12] = "Today's reading is from pages 322-328"
        msgs[13] = "Today's reading is from pages 328-333"
        msgs[14] = "Today's reading is from pages 333-338"
        msgs[15] = "Today's reading is from pages 338-343"
        msgs[16] = "Today's reading is from pages 343-346"
        msgs[17] = "Today's reading is from pages 346-349"
        msgs[18] = "Today's reading is from pages 349-353"
        msgs[19] = "Today's reading is from pages 353-357"
        msgs[20] = "Today's reading is from pages 357-361"
        msgs[21] = "Today's reading is from pages 361-364"
        msgs[22] = "Today's reading is from pages 365-369"
        msgs[23] = "Today's reading is from pages 369-375"
        msgs[24] = "Today's reading is from pages 375-378"
        msgs[25] = "Today's reading is from pages 378-383"
        msgs[26] = "Today's reading is from pages 384-388"
        msgs[27] = "Today's reading is from pages 388-392"
        msgs[28] = "Today's reading is from pages 392-398"
        msgs[29] = "Today's reading is from pages 398-402"
        msgs[30] = "Today's reading is from pages 402-405"
        msgs[31] = "Today's reading is from pages 405-409"
        var msg = msgs[date]
}
  if (month == "4"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 409-414"
        msgs[2] = "Today's reading is from pages 414-419"
        msgs[3] = "Today's reading is from pages 419-424"
        msgs[4] = "Today's reading is from pages 424-431"
        msgs[5] = "Today's reading is from pages 431-434"
        msgs[6] = "Today's reading is from pages 434-439"
        msgs[7] = "Today's reading is from pages 439-443"
        msgs[8] = "Today's reading is from pages 443-448"
        msgs[9] = "Today's reading is from pages 448-451"
        msgs[10] = "Today's reading is from pages 451-456"
        msgs[11] = "Today's reading is from pages 456-460"
        msgs[12] = "Today's reading is from pages 460-464"
        msgs[13] = "Today's reading is from pages 464-467"
        msgs[14] = "Today's reading is from pages 467-471"
        msgs[15] = "Today's reading is from pages 471-475"
        msgs[16] = "Today's reading is from pages 475-480"
        msgs[17] = "Today's reading is from pages 480-485"
        msgs[18] = "Today's reading is from pages 485-490"
        msgs[19] = "Today's reading is from pages 490-495"
        msgs[20] = "Today's reading is from pages 495-500"
        msgs[21] = "Today's reading is from pages 500-504"
        msgs[22] = "Today's reading is from pages 505-508"
        msgs[23] = "Today's reading is from pages 508-513"
        msgs[24] = "Today's reading is from pages 513-517"
        msgs[25] = "Today's reading is from pages 517-520"
        msgs[26] = "Today's reading is from pages 521-526"
        msgs[27] = "Today's reading is from pages 526-531"
        msgs[28] = "Today's reading is from pages 531-536"
        msgs[29] = "Today's reading is from pages 536-540"
        msgs[30] = "Today's reading is from pages 540-546"
        var msg = msgs[date]
}
  if (month == "5"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 546-550"
        msgs[2] = "Today's reading is from pages 550-554"
        msgs[3] = "Today's reading is from pages 554-562"
        msgs[4] = "Today's reading is from pages 562-566"
        msgs[5] = "Today's reading is from pages 566-569"
        msgs[6] = "Today's reading is from pages 570-574"
        msgs[7] = "Today's reading is from pages 574-578"
        msgs[8] = "Today's reading is from pages 578-580"
        msgs[9] = "Today's reading is from pages 580-584"
        msgs[10] = "Today's reading is from pages 584-587"
        msgs[11] = "Today's reading is from pages 587-591"
        msgs[12] = "Today's reading is from pages 591-595"
        msgs[13] = "Today's reading is from pages 596-602"
        msgs[14] = "Today's reading is from pages 602-606"
        msgs[15] = "Today's reading is from pages 606-613"
        msgs[16] = "Today's reading is from pages 613-619"
        msgs[17] = "Today's reading is from pages 619-624"
        msgs[18] = "Today's reading is from pages 624-630"
        msgs[19] = "Today's reading is from pages 630-634"
        msgs[20] = "Today's reading is from pages 634-639"
        msgs[21] = "Today's reading is from pages 639-642"
        msgs[22] = "Today's reading is from pages 643-646"
        msgs[23] = "Today's reading is from pages 647-652"
        msgs[24] = "Today's reading is from pages 652-657"
        msgs[25] = "Today's reading is from pages 657-661"
        msgs[26] = "Today's reading is from pages 661-672"
        msgs[27] = "Today's reading is from pages 672-674"
        msgs[28] = "Today's reading is from pages 674-678"
        msgs[29] = "Today's reading is from pages 678-684"
        msgs[30] = "Today's reading is from pages 684-687"
        msgs[31] = "Today's reading is from pages 687-689"
        var msg = msgs[date]
}
  if (month == "6"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 690-694"
        msgs[2] = "Today's reading is from pages 694-698"
        msgs[3] = "Today's reading is from pages 698-704"
        msgs[4] = "Today's reading is from pages 704-709"
        msgs[5] = "Today's reading is from pages 709-715"
        msgs[6] = "Today's reading is from pages 715-719"
        msgs[7] = "Today's reading is from pages 720-724"
        msgs[8] = "Today's reading is from pages 724-726"
        msgs[9] = "Today's reading is from pages 727-729"
        msgs[10] = "Today's reading is from pages 729-734"
        msgs[11] = "Today's reading is from pages 734-738"
        msgs[12] = "Today's reading is from pages 738-741"
        msgs[13] = "Today's reading is from pages 741-748"
        msgs[14] = "Today's reading is from pages 748-752"
        msgs[15] = "Today's reading is from pages 752-755"
        msgs[16] = "Today's reading is from pages 755-758"
        msgs[17] = "Today's reading is from pages 758-762"
        msgs[18] = "Today's reading is from pages 795-769"
        msgs[19] = "Today's reading is from pages 770-776"
        msgs[20] = "Today's reading is from pages 776-782"
        msgs[21] = "Today's reading is from pages 782-788"
        msgs[22] = "Today's reading is from pages 788-790"
        msgs[23] = "Today's reading is from pages 791-797"
        msgs[24] = "Today's reading is from pages 798-803"
        msgs[25] = "Today's reading is from pages 803-806"
        msgs[26] = "Today's reading is from pages 806-810"
        msgs[27] = "Today's reading is from pages 810-813"
        msgs[28] = "Today's reading is from pages 813-815"
        msgs[29] = "Today's reading is from pages 815-819"
        msgs[30] = "Today's reading is from pages 819-825"
        var msg = msgs[date]
}
  if (month == "7"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 825-829"
        msgs[2] = "Today's reading is from pages 829-833"
        msgs[3] = "Today's reading is from pages 834-839"
        msgs[4] = "Today's reading is from pages 839-843"
        msgs[5] = "Today's reading is from pages 844-849"
        msgs[6] = "Today's reading is from pages 850-855"
        msgs[7] = "Today's reading is from pages 855-859"
        msgs[8] = "Today's reading is from pages 859-862"
        msgs[9] = "Today's reading is from pages 863-869"
        msgs[10] = "Today's reading is from pages 870-877"
        msgs[11] = "Today's reading is from pages 877-878"
        msgs[12] = "Today's reading is from pages 878-883"
        msgs[13] = "Today's reading is from pages 883-887"
        msgs[14] = "Today's reading is from pages 887-893"
        msgs[15] = "Today's reading is from pages 893-898"
        msgs[16] = "Today's reading is from pages 898-902"
        msgs[17] = "Today's reading is from pages 902-907"
        msgs[18] = "Today's reading is from pages 908-911"
        msgs[19] = "Today's reading is from pages 911-916"
        msgs[20] = "Today's reading is from pages 916-923"
        msgs[21] = "Today's reading is from pages 923-928"
        msgs[22] = "Today's reading is from pages 929-933"
        msgs[23] = "Today's reading is from pages 934-935"
        msgs[24] = "Today's reading is from pages 935-941"
        msgs[25] = "Today's reading is from pages 941-947"
        msgs[26] = "Today's reading is from pages 947-953"
        msgs[27] = "Today's reading is from pages 953-957"
        msgs[28] = "Today's reading is from pages 957-963"
        msgs[29] = "Today's reading is from pages 963-968"
        msgs[30] = "Today's reading is from pages 968-973"
        msgs[31] = "Today's reading is from pages 973-978"
        var msg = msgs[date]
}
  if (month == "8"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 978-983"
        msgs[2] = "Today's reading is from pages 983-987"
        msgs[3] = "Today's reading is from pages 987-991"
        msgs[4] = "Today's reading is from pages 991-994"
        msgs[5] = "Today's reading is from pages 994-999"
        msgs[6] = "Today's reading is from pages 999-1003"
        msgs[7] = "Today's reading is from pages 1003-1005"
        msgs[8] = "Today's reading is from pages 1006-1010"
        msgs[9] = "Today's reading is from pages 1010-1018"
        msgs[10] = "Today's reading is from pages 1018-1020"
        msgs[11] = "Today's reading is from pages 1020-1024"
        msgs[12] = "Today's reading is from pages 1024-1026"
        msgs[13] = "Today's reading is from pages 1026-1030"
        msgs[14] = "Today's reading is from pages 1030-1038"
        msgs[15] = "Today's reading is from pages 1038-1045"
        msgs[16] = "Today's reading is from pages 1045-1049"
        msgs[17] = "Today's reading is from pages 1049-1053"
        msgs[18] = "Today's reading is from pages 1053-1060"
        msgs[19] = "Today's reading is from pages 1060-1067"
        msgs[20] = "Today's reading is from pages 1067-1070"
        msgs[21] = "Today's reading is from pages 1070-1072"
        msgs[22] = "Today's reading is from pages 1072-1077"
        msgs[23] = "Today's reading is from pages 1077-1082"
        msgs[24] = "Today's reading is from pages 1082-1085"
        msgs[25] = "Today's reading is from pages 1085-1091"
        msgs[26] = "Today's reading is from pages 1091-1096"
        msgs[27] = "Today's reading is from pages 1097-1099"
        msgs[28] = "Today's reading is from pages 1100-1103"
        msgs[29] = "Today's reading is from pages 1103-1109"
        msgs[30] = "Today's reading is from pages 1109-1115"
        msgs[31] = "Today's reading is from pages 1115-1120"
        var msg = msgs[date]
}
  if (month == "9"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 1121-1126"
        msgs[2] = "Today's reading is from pages 1126-1130"
        msgs[3] = "Today's reading is from pages 1130-1134"
        msgs[4] = "Today's reading is from pages 1134-1136"
        msgs[5] = "Today's reading is from pages 1136-1143"
        msgs[6] = "Today's reading is from pages 1143-1150"
        msgs[7] = "Today's reading is from pages 1150-1154"
        msgs[8] = "Today's reading is from pages 1155-1159"
        msgs[9] = "Today's reading is from pages 1159-1164"
        msgs[10] = "Today's reading is from pages 1164-1168"
        msgs[11] = "Today's reading is from pages 1168-1173"
        msgs[12] = "Today's reading is from pages 1173-1176"
        msgs[13] = "Today's reading is from pages 1176-1182"
        msgs[14] = "Today's reading is from pages 1182-1185"
        msgs[15] = "Today's reading is from pages 1185-1193"
        msgs[16] = "Today's reading is from pages 1193-1202"
        msgs[17] = "Today's reading is from pages 1202-1209"
        msgs[18] = "Today's reading is from pages 1209-1217"
        msgs[19] = "Today's reading is from pages 1217-1221"
        msgs[20] = "Today's reading is from pages 1221-1225"
        msgs[21] = "Today's reading is from pages 1225-1229"
        msgs[22] = "Today's reading is from pages 1230-1232"
        msgs[23] = "Today's reading is from pages 1233-1238"
        msgs[24] = "Today's reading is from pages 1238-1242"
        msgs[25] = "Today's reading is from pages 1243-1246"
        msgs[26] = "Today's reading is from pages 1247-1250"
        msgs[27] = "Today's reading is from pages 1250-1254"
        msgs[28] = "Today's reading is from pages 1255-1257"
        msgs[29] = "Today's reading is from pages 1258-1261"
        msgs[30] = "Today's reading is from pages 1261-1266"
        var msg = msgs[date]
}
  if (month == "10"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 1266-1269"
        msgs[2] = "Today's reading is from pages 1269-1276"
        msgs[3] = "Today's reading is from pages 1276-1281"
        msgs[4] = "Today's reading is from pages 1281-1285"
        msgs[5] = "Today's reading is from pages 1286-1290"
        msgs[6] = "Today's reading is from pages 1290-1293"
        msgs[7] = "Today's reading is from pages 1293-1296"
        msgs[8] = "Today's reading is from pages 1297-1300"
        msgs[9] = "Today's reading is from pages 1300-1304"
        msgs[10] = "Today's reading is from pages 1304-1309"
        msgs[11] = "Today's reading is from pages 1309-1314"
        msgs[12] = "Today's reading is from pages 1315-1318"
        msgs[13] = "Today's reading is from pages 1318-1326"
        msgs[14] = "Today's reading is from pages 1326-1336"
        msgs[15] = "Today's reading is from pages 1337-1339"
        msgs[16] = "Today's reading is from pages 1339-1343"
        msgs[17] = "Today's reading is from pages 1343-1348"
        msgs[18] = "Today's reading is from pages 1349-1352"
        msgs[19] = "Today's reading is from pages 1353-1355"
        msgs[20] = "Today's reading is from pages 1355-1361"
        msgs[21] = "Today's reading is from pages 1361-1363"
        msgs[22] = "Today's reading is from pages 1364-1367"
        msgs[23] = "Today's reading is from pages 1367-1373"
        msgs[24] = "Today's reading is from pages 1373-1376"
        msgs[25] = "Today's reading is from pages 1376-1380"
        msgs[26] = "Today's reading is from pages 1381-1386"
        msgs[27] = "Today's reading is from pages 1386-1390"
        msgs[28] = "Today's reading is from pages 1390-1394"
        msgs[29] = "Today's reading is from pages 1394-1397"
        msgs[30] = "Today's reading is from pages 1397-1400"
        msgs[31] = "Today's reading is from pages 1400-1403"
        var msg = msgs[date]
}
  if (month == "11"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 1403-1408"
        msgs[2] = "Today's reading is from pages 1408-1410"
        msgs[3] = "Today's reading is from pages 1410-1415"
        msgs[4] = "Today's reading is from pages 1415-1418"
        msgs[5] = "Today's reading is from pages 1418-1422"
        msgs[6] = "Today's reading is from pages 1422-1426"
        msgs[7] = "Today's reading is from pages 1427-1433"
        msgs[8] = "Today's reading is from pages 1433-1435"
        msgs[9] = "Today's reading is from pages 1435-1440"
        msgs[10] = "Today's reading is from pages 1440-1443"
        msgs[11] = "Today's reading is from pages 1443-1449"
        msgs[12] = "Today's reading is from pages 1449-1453"
        msgs[13] = "Today's reading is from pages 1453-1457"
        msgs[14] = "Today's reading is from pages 1457-1461"
        msgs[15] = "Today's reading is from pages 1462-1465"
        msgs[16] = "Today's reading is from pages 1465-1469"
        msgs[17] = "Today's reading is from pages 1470-1473"
        msgs[18] = "Today's reading is from pages 1473-1477"
        msgs[19] = "Today's reading is from pages 1477-1484"
        msgs[20] = "Today's reading is from pages 1485-1488"
        msgs[21] = "Today's reading is from pages 1488-1493"
        msgs[22] = "Today's reading is from pages 1493-1496"
        msgs[23] = "Today's reading is from pages 1496-1500"
        msgs[24] = "Today's reading is from pages 1500-1506"
        msgs[25] = "Today's reading is from pages 1506-1512"
        msgs[26] = "Today's reading is from pages 1513-1519"
        msgs[27] = "Today's reading is from pages 1519-1523"
        msgs[28] = "Today's reading is from pages 1524-1527"
        msgs[29] = "Today's reading is from pages 1527-1531"
        msgs[30] = "Today's reading is from pages 1531-1535"
        var msg = msgs[date]
}
  if (month == "12"){
        msgs = new Array
        msgs[1] = "Today's reading is from pages 1535-1542"
        msgs[2] = "Today's reading is from pages 1542-1546"
        msgs[3] = "Today's reading is from pages 1546-1550"
        msgs[4] = "Today's reading is from pages 1550-1557"
        msgs[5] = "Today's reading is from pages 1557-1561"
        msgs[6] = "Today's reading is from pages 1561-1565"
        msgs[7] = "Today's reading is from pages 1565-1571"
        msgs[8] = "Today's reading is from pages 1571-1575"
        msgs[9] = "Today's reading is from pages 1576-1581"
        msgs[10] = "Today's reading is from pages 1581-1583"
        msgs[11] = "Today's reading is from pages 1583-1587"
        msgs[12] = "Today's reading is from pages 1587-1592"
        msgs[13] = "Today's reading is from pages 1592-1596"
        msgs[14] = "Today's reading is from pages 1596-1601"
        msgs[15] = "Today's reading is from pages 1601-1607"
        msgs[16] = "Today's reading is from pages 1608-1612"
        msgs[17] = "Today's reading is from pages 1613-1618"
        msgs[18] = "Today's reading is from pages 1618-1620"
        msgs[19] = "Today's reading is from pages 1620-1624"
        msgs[20] = "Today's reading is from pages 1624-1630"
        msgs[21] = "Today's reading is from pages 1631-1636"
        msgs[22] = "Today's reading is from pages 1636-1640"
        msgs[23] = "Today's reading is from pages 1640-1646"
        msgs[24] = "Today's reading is from pages 1646-1650"
        msgs[25] = "Today's reading is from pages 1650-1656"
        msgs[26] = "Today's reading is from pages 1656-1663"
        msgs[27] = "Today's reading is from pages 1663-1667"
        msgs[28] = "Today's reading is from pages 1667-1672"
        msgs[29] = "Today's reading is from pages 1672-1677"
        msgs[30] = "Today's reading is from pages 1677-1683"
        msgs[31] = "Today's reading is from pages 1683-1688"
        var msg = msgs[date]
}

