
// 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 = "musicnights";	// Domain
dom2 = "tenero-tourism";	// Domain 2
tld = "ch";			// TLD
css = "";			// CSS class

var sma=usr+'_at_'+dom+'_dot_'+tld;
var sma2=usr+'_at_'+dom2+'_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 get_sma2(){
  var re=/_at_/gi;
  sma2=sma2.replace(re,'@');
  var re=/_dot_/gi;
  sma2=sma2.replace(re,'.');
  var the_link='mai'+'lto'+':'+sma2;
  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 SafeMailAddress2() {
document.write("<a class='"+css+"' href='javascript:void(0)' onClick='get_sma2();return false;'>");
document.write(usr+'@'+dom2+'.'+tld);
document.write("</a>");
}


