/* decryptString
 * Function for span protection.
 * The function awaits a encrypted email and returns the plaintext email. 
 * If decAt is set to 1 (at) is replaced with @.
 */
function decryptString(encMail, decAt) {
   var encMailArr = new Array();
   if (decAt) {
       encMail = encMail.replace(/\)ta\(/,"@");
    }
    encMailArr = encMail.split('');
    var res = '';
    for (var i in encMailArr){
        res = encMailArr[i]+res;    		
    }
    return res
};



/*
 * decryptStringLink
 * Function for span protection.
 * The function awaits a encrypted email and returns a link.
 */
function decryptStringLink(encMail) {
    location.href = 'm'+'a'+'i'+'l'+'t'+'o'+':'+decryptString(encMail,1);
    return 
};
