Project

General

Profile

1
/**
2
 *
3
 * @copyright       WebsiteBaker Org. e.V.
4
 * @link            http://www.websitebaker.org/
5
 * @license         http://www.gnu.org/licenses/gpl.html
6
 * @platform        WebsiteBaker 2.8.4
7
 * @requirements    PHP 5.2.2 and higher
8
 * @version         $Id: mdcr.js 2019 2013-12-05 22:45:41Z Luisehahne $
9
 * @filesource      $HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/modules/output_filter/js/mdcr.js $
10
 * @lastmodified    $Date: 2013-12-05 23:45:41 +0100 (Thu, 05 Dec 2013) $
11
 * @description
12
 *
13
 */
14

    
15
function mdcr(d,c){location.href=sdcr(d,c)}function sdcr(i,k){var h=i.charCodeAt(i.length-1)-97;var n="";var l;var j;for(var m=i.length-2;m>-1;m--){if(i.charCodeAt(m)<97){switch(i.charCodeAt(m)){case 70:j=64;break;case 90:j=46;break;case 88:j=95;break;case 75:j=45;break;default:j=i.charCodeAt(m);break}n+=String.fromCharCode(j)}else{l=(i.charCodeAt(m)-97-h)%26;l+=(l<0||l>25)?+26:0;n+=String.fromCharCode(l+97)}}return"mailto:"+n+k};
(2-2/2)