function getDay() {

  //Get today as day of week

  var today = new Date();

  var day = today.getDay();

  return day; 

}

function getText() {

  //Returns different Biblical text for 

  //each day of week

  var text="";

  var day=getDay();

  if (day==0){text="\"The Lord is my Shepherd, I shall not want\" - Psalm 23"}

  else if (day==1){text="\"Know that I am with you always to the end of time\" - Matthew 28.20"}

  else if (day==2){text="\"How lovely on the mountains are the feet of him who brings good news\" - Isaiah 52.7"}

  else if (day==3){text="\"Love your enemies, do good to those who hate you\" - Luke 6.27"}

  else if (day==4){text="\"He has sent me to bring good news to the poor\" - Isaiah 61.1"}

  else if (day==5){text="\"Come to me, all you who labour and are overburdened, and I will give you rest\" - Matthew 12.28"}

  else {text="\"Blessed are the peacemakers, they shall be called the sons of God\" - Matthew 5.9"}

  return text;

}

function getMailtoLink(addr1,addr2) {

  //Returns HTML for mailto Link taking first and 

  //second parts of email address as parameters

  var text="";

  var fullAddress = addr1 + '@' + addr2;

  text='<A href="mailto:' + fullAddress + '">' + fullAddress + '</A>'

  return text;

}

function getYear() {

  //Get current year

  var today = new Date();

  var year = today.getFullYear();

  return year; 

}

//-->

