Project

General

Profile

1 1634 Luisehahne
/**
2
 *
3 1907 Luisehahne
 * @copyright       2009-2013, WebsiteBaker Org. e.V.
4 1634 Luisehahne
 * @link            http://www.websitebaker.org/
5
 * @license         http://www.gnu.org/licenses/gpl.html
6 1778 Luisehahne
 * @platform        WebsiteBaker 2.8.4
7 1634 Luisehahne
 * @requirements    PHP 5.2.2 and higher
8
 * @version         $Id$
9
 * @filesource      $HeadURL$
10
 * @lastmodified    $Date$
11
 * @description
12
 *
13
 */
14 1629 Luisehahne
15 1634 Luisehahne
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};