/*
 * File Name: mto.js
 * 	Secure email addresses
 */
function mto (eml,text)
{       var Me,To,eml;
		eml = mto_decrypt(eml);
        Me = 'm'+'a'+'i';
        To = 'l'+'to:';
        if ( typeof text == 'undefined' || text == '' )
        {       text = eml;
        }
        document.write('<a href="' + Me + To + eml + '">' + text + '</a>');
}
function mto_decrypt(s)
{       var n=0;
        var r="";
        for(var i=0; i < s.length; i++) {
                n=s.charCodeAt(i);
                if (n>=8364) {n = 128;}
                r += String.fromCharCode(n-(3));
        }
        return r;
}
