function mailto_nospam(infos) {

  /*
   * ecrire un tableau avec comme indice to,cc,id,class,corps,lien
   * to et lien sont + qu'obligatoire
   * ecrire les mails sous la forme tom[at]domain[dot]com
   */

	var to = infos['to'];
  var cc = infos['cc'];
  var id = infos['id'];
  var lien = infos['lien'];
  var sujet = infos['sujet'];
  var corps = infos['corps'];
  var classe = infos['class'];

  if(to != undefined) {
  	to = to.replace(/\[at]/gi, "@");
  	to = to.replace(/\[dot]/gi, ".");
  }
	if(cc != undefined) {
		cc = cc.replace(/\[at]/gi, "@");
  	cc = cc.replace(/\[dot]/gi, ".");
  }

	document.write('<a id="' + id + '" class="' + classe + '" href="mailto:' + to );
	unarg = '';

	if(cc != undefined) {
    unarg = '&';
  	document.write(unarg + "cc=" + cc);

  }
  if(sujet != undefined) {
  	unarg = '&';
    document.write(unarg + "subject=" + sujet);

	}
  if(corps != undefined) {
    unarg = '&';
    document.write(unarg + "body=" + corps);
	}
  document.write('">' + lien + '</a>');

}