// JavaScript Document

function emailPage() {
  var messageText = 'I thought you\'d be interested in this article on the Medication Management in Residential Aged Care website. ' + window.location;
  var subjectText = 'Med. Mx. in RACF website: '+ document.title;
  var email = prompt("Enter your friend's email address:", '');
    window.location = 'mailto:' + email +
      '?subject=' + encodeURIComponent(subjectText) +
      '&body=' + encodeURIComponent(messageText);
  }

