function getTitle() {
var finalString="";
if (document.getElementById && document.getElementById("ahead").firstChild && document.getElementById("ahead").firstChild.data) {
finalString = document.getElementById("ahead").firstChild.data;
} else {
if (document.all && document.all("ahead") && document.all("ahead").innerText) {
finalString = document.all("ahead").innerText;
} else {
if (document.getNodeById && document.getNodeById("ahead").children  && document.getNodeById("ahead").children.data) {
finalString = document.getNodeById("ahead").children.data;
}
}
}
return finalString;
}

function send2friend() {
var newString;
if (document.s2f && document.s2f!="") {
newString = document.s2f;
} else {
newString = getTitle();
newString = newString.replace("&","and");
newString = newString.replace("?","");
}
document.write('<a href="mailto:?subject=Interesting article from 4Health&body=I found this article about '+newString+' on the Channel 4 Health website and thought you might be interested to read it.  Follow this link:%0D%0A'+document.location.href+'">Send to a Friend</a>');
}

function mailto(domain,user) { 
document.location.href = "mailto:" + user + "@" + domain; 
}
