/* uncrypt mail to */
function uncryptMailto(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; }
function linkToUncryptMailto(s) { location.href=uncryptMailto(s); }
function linkToUncryptMailtoSub(h, s) { location.href=uncryptMailto(h) + "?subject=" + s; }

/* disable right click */
isNN = document.layers ? 1 : 0;
function noContext() { return false; }
function noContextKey(e) { if (isNN) { if (e.keyCode == 96) { return (false); } } else { if (event.keyCode == 96){ return (false); } } }
function noClick(E) { if (isNN) { if (e.which > 1) { return false; } } else { if (event.button > 1) { return false; } } }
if (isNN) { document.captureEvents(Event.MOUSEDOWN); }
document.oncontextmenu = noContext;
document.onkeypress = noContextKey;
document.onmousedown = noClick;
document.onmouseup = noClick;

