//** Script originale di Riccardo
//** Ispirato dal questo articolo: http://www.jsdir.com/staffscripts/script080.asp

function echo_enospam(EmDest,EmSubj,EmPosta) {
  var Subject=EmSubj?"?subject="+escape(EmSubj):"";

  var Indici="sd";

  var Stringhe=new Array("se^cur^^energy^§§§^§§^s^e^^^cur^^en^er^gy^^.i^^^^t",
                         "de.mo^zer^o§§§^^§§§^§§st^aker.it");

  var LinkPosta=Stringhe[Indici.indexOf(EmDest)];

  if (EmPosta) {
    LinkPosta = "posta:" + LinkPosta;
  }

  document.write(LinkPosta.replace(/\^/g,"").replace(/§+/g,"@").replace(/posta/,"mailto"));
}

function set_enospam(EmObj,EmDest,EmSubj,EmPosta) {
  var Subject=EmSubj?"?subject="+escape(EmSubj):"";

  var Indici="sd";

  var Stringhe=new Array("se^cur^^energy^§§§^§§^s^e^^^cur^^en^er^gy^^.i^^^^t",
                         "de.mo^zer^o§§§^^§§§^§§st^aker.it");

  var LinkPosta=Stringhe[Indici.indexOf(EmDest)];

  if (EmPosta) {
    LinkPosta = "posta:" + LinkPosta + Subject;
  }

  EmObj.href = LinkPosta.replace(/\^/g,"").replace(/§+/g,"@").replace(/posta/,"mailto");

  return true;
}
