﻿function GetMyEmail(anchorID)
{
 // This over complicated part simply writes the email address using javascript.
 // It's not just written plainly so I can hopefully avoid some spam!
 // An example of how the anchor tag where the email is written is shown below
 //   <a id="email" href="mailto:">[enable JavaScript to view email]</a>
 var name, surname, mail;

 name = 'tony';
 surname = 'sammut+ws';
 mail = name + surname + '@g' + 'ma' + 'il' + '.com';
 document.getElementById(anchorID).innerHTML = mail;
 document.getElementById(anchorID).href += mail;
}

function GetMyEmailInHrefOnly(anchorID) {
    // This over complicated part simply writes the email address using javascript.
    // It's not just written plainly so I can hopefully avoid some spam!
    // An example of how the anchor tag where the email is written is shown below
    //   <a id="email" href="mailto:">send me an email</a>
    var name, surname, mail;

    name = 'tony';
    surname = 'sammut+ws';
    mail = name + surname + '@g' + 'ma' + 'il' + '.com';
    document.getElementById(anchorID).href += mail;
}