/*
This script provides an alternative to mailto hyperlinks which prevents SPAMbots from gathering email addresses.

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 = "org";
var suffix2 = ".uk";
var domain = "seberks"; 
domain += "camra";


// 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='Send message'>"+ 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 + suffix2;
  document.location=thsads;
}


