
// JS SafeMailAddress by
  //   Infometa SA
  //   http://www.infometa.ch 
  //
  // Author
  //   Ivan Bacchi
  //
  // License: Free
  // Please to use this script everywhere to protect your e-mail address about SPAM-sniffers!
  //

usr = "info";		// Username
dom = "sutromilano";	// Domain
tld = "com";			// TLD
css = "";			// CSS class

var sma=usr+'_at_'+dom+'_dot_'+tld;

function get_sma(){
  var re=/_at_/gi;
  sma=sma.replace(re,'@');
  var re=/_dot_/gi;
  sma=sma.replace(re,'.');
  var the_link='mai'+'lto'+':'+sma;
  window.location=the_link;
}

function SafeMailAddress() {
document.write("<a class='"+css+"' href='javascript:void(0)' onClick='get_sma();return false;'>");
document.write(usr+'@'+dom+'.'+tld);
document.write("</a>");
}

function SafeMailContactMe() {
document.write("<a class='"+css+"' href='javascript:void(0)' onClick='get_sma();return false;'>");
document.write('Contattatemi');
document.write("</a>");
}

function SafeMailContactme() {
document.write("<a class='"+css+"' href='javascript:void(0)' onClick='get_sma();return false;'>");
document.write('contattateci');
document.write("</a>");
}

function SafeMailRequestFreeSample() {
document.write("<a class='"+css+"' href='javascript:void(0)' onClick='get_sma();return false;'>");
document.write('Richiedete un campione gratuito…');
document.write("</a>");
}

