function HideEmail(user)
// write email address on page to hide from 'spiders'
// recipient name passed as user.
// change domain name in this script before using on your site
{
domain = "candsdesign.co.uk";

document.write('<a href=\"mailto:');
document.write(user);
document.write('@');
document.write(domain);
document.write('\">');
document.write(user);
document.write('@');
document.write(domain);
document.write('</a>');

}

function EmailName(user,PromptText)
// write email address on page to hide from 'spiders'
// recipient name passed as user. Friendly name passed as PromptText
// change domain name in this script before using on your site
{
domain = "candsdesign.co.uk";

document.write('<a href=\"mailto:');
document.write(user);
document.write('@');
document.write(domain);
document.write('\">');
document.write(PromptText);
document.write('</a>');

}

function CodeEmail(user,PromptText)
{
domain = "candsdesign.co.uk"

document.write('<a href=\"mailto:')
WriteUnicode(user)
document.write('@')
WriteUnicode(domain)
document.write('\">')
WriteUnicode(PromptText)
document.write('</a>')
}

function WriteUnicode(varString)
{
for (i=0; i<varString.length; i++)
//document.write(varString.length)
//document.write(i + ",")
document.write("&#" + varString.charCodeAt(i) + ";")

}


