This code snippet demonstrates the use of two functions on the provided website:
function TextEscape(os)
{
var ns = '', chr = '', cc = '', tn = '';
var t;
for(i=0; i<256; i++)
{
tn = i.toString(16);
if(tn.length < 2)tn = "0" + tn;
cc+=tn;
chr+=unescape('%'+tn);
}
cc=cc.toUpperCase();
os.replace(String.fromCharCode(13)+'',"%13");
for(q=0; q<os.length; q++)
{
t = os.substr(q,1);
for(i=0; i<chr.length; i++)
{
if(t == chr.substr(i,1))
{
t = t.replace(chr.substr(i,1),"%"+cc.substr(i*2,2));
i = chr.length;
}
}
ns+=t;
}
return ns;
}
function TextEncode(txt)
{
var txtEscape = TextEscape(document.cipher.decode.value);
txtEscape = txtEscape.replace(/%/g,'@');
document.cipher.encode.value = "<script type='text/javascript'> str='" + txtEscape + "'; document.write(unescape(str.replace(/@/g,'%'))); <\/script>";
}