// Javascript code anti spam robots

var tld = new Array()
tld[0] = "com";
tld[1] = "org";
tld[2] = "net";
tld[3] = "es";

var m = "mailto:";
var a = "@";
var d = ".";

// name: The text to the left of the @
// dom: The text to the right of the @ without the top level domain
// tl: Top level domain number according to the array above
// params: something like "?subject=Hello"
// Example: nobody at nowhere . com
//   mail("nobody","nowhere",0,"");
function mail(name,dom,tl,params){
  var e = name+a+dom+d+tld[tl];
  document.write('<a href="'+m+e+params+'">'+e+'</a>');
}

