/*
Note: Modify the two suffix variables so that when joined together they make-up the TLD of your site.
Then modify the two 'domain' lines to make-up the rest of your domain-name.
*/

var suffix1 = "";
var suffix2 = "";
var domain = "cp"; 
domain += "mailing";


// This function is called from within the page text, to write the clickable link into place:
function myeml(emlname,caption) {
  if (caption==undefined) {
   caption = emlname; 
  }
  mailstring= "<a href='javascript:emlaunch(\"" + emlname + "\");' title='Contact Address'>"+ caption +"</a>";
  document.write(mailstring);
}

// This function is called by the clickable link, and launches the mailprogram directly:
function emlaunch(emlname) {
  var thsads = "mai" + "lto:" + emlname + "@" + domain + suffix1 + "?Subject=Enquiry from the CPM Website&Body= Dear CPM,"
  document.location=thsads;
}
