// Mail of electronic type, address obfuscation.
// This script is (c) copyright 2005 Graham Hill
// Call parameters are: 
// <a href="javascript:e_m(p1,p2M,p2L,p2F,p3,p4,p5,p6,p7)" return false ;>
// Parameter 1 = name before the at symbol
// Parameter 2 = domain or maybe subdomain (L=last part F=first part, M=middle part)
//		     (split however you wish - splitting stops domain regognition from domain name declared elsewhere) 
// Parameter 3 = domain if 2 = subdomain OR the code (see below)
// Parameter 4 = code (see below) OR value OR null ''
// Parameter 5 = code (see below) OR value OR null ''
// Parameter 6 = subject OR null ''
// Parameter 7 = body text OR null ''
// Codes: 1 = com 
//        2 = org
//        3 = co
//        4 = uk
// Note: 	text parameters within single quotes, codes either in quotes or not 
//	   	subject and body ' ' space for null	
// 		Do not code <base target="contents"> etc parameter

var c1='m'
var c2='%72%67'
var c3='c'
var c4='%75%6B'
var c5='o'

d='%2e'
a='%40'
sb='?subject='
bd='&body='
m1=(c1 + 'a')
m2=('il')
m3=('t' + c5 + ':')

function m_e(n, d1l, d1m, d1f, d2, d3, d4, sd, md)
{
if (d2==1) {var d2 = c3 + c5 + c1;}
if (d2==2) {var d2 = c5 + c2;}
if (d2==3) {var d2 = c3 + c5;}
if (d3==2) {var d3 = c5 + c2;}
if (d3==3) {var d3 = c3 + c5;}
if (d3==4) {var d3 = c4;}
if (d4==4) {var d4 = c4;}

var s0 = m1 + m2 + m3 + n + a + d1f + d1m + d1l + d + d2;
if (d3==''){parent.location = s0 + sb + sd + bd + md;}
else{var s1 = s0 + d + d3;
     if (d4==''){parent.location = s1 + sb + sd + bd + md;}
     else{parent.location = s1 + d + d4 + sb + sd + bd + md;}
}}

