1//Prevents robots to detect emails
2
3function anchorMailto($email) {
4 $output='<script type="text/javascript">';
5 $output.="var asdfkjl1=[";
6
7 for($i=0;$i<strlen($email);$i++){
8 $output.= ord(substr($email,$i,1)).",";
9 }
10
11 $output = substr($output, 0, -1);
12 $output.= "]";
13
14 $output.="
15 var newName='';
16 for (var i=0; i<asdfkjl1.length; i++)
17 newName+=String.fromCharCode(asdfkjl1[i])
18 document.write('<a href=\"mailto:'+newName+'\">'+newName+'</a>')
19 </script>";
20
21 return $output;
22}