
/* ****************************
 * -----------------------------
 * Reconstructs the email address
 * that has been converted into an array
 * containing the ascii codes of each character
 * offset by a randomly generated large number.
 * The array is constructed as follows:
 * [ charA+a, a, charB+b, b, etc... ]
 * I.e. Even-numbered array items contain the char code+ offset
 * and the odd-numbered items contain the offset value
 ******************************/

function decrypt(arr) {
    decrypted_str = "";
    Slength = arr.length-1;
    for (i=0; i<Slength; i=i+2) {
        decrypted_ascii = arr[i] - arr[i+1];
        decrypted_str += String.fromCharCode(decrypted_ascii);
    }
    return decrypted_str;
}

