﻿function JsDecrypt(value) {
    var key = value.key;
    value = unescape(value.value);

    var output = '';

    for (i = 0; i < value.length; i++) {
        output = output + String.fromCharCode(((value.charCodeAt(i) + 256) - key) % 256);
        key = (key + value.charCodeAt(i)) % 256;
    }
    return output;
}

function CreateMail(theText) 
{        
    document.write("<a href='mailto:" + theText + "'>" + theText+ "</a>");
}