/* js_mail2crypt.js - v1.5 (c) 2002, 2003 by Henning Poerschke
+----------------------------------------------------------------------+
| phpCMS Content Management System - Version 1.2.0
+----------------------------------------------------------------------+
| phpCMS is Copyright (c) 2001-2003 by Michael Brauchl 
| and Contributing phpCMS Team Members
| Mail2Crypt Copyright (c) 2002-2003 Henning Poerschke
+----------------------------------------------------------------------+
| This program is free software; you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation; either version 2 of the License, or
| (at your option) any later version. 
|
| This program is distributed in the hope that it will be useful, but
| WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
| General Public License for more details.
|
| You should have received a copy of the GNU General Public License
| along with this program; if not, write to the Free Software
| Foundation, Inc., 59 Temple Place - Suite 330, Boston,
| MA  02111-1307, USA.
+----------------------------------------------------------------------+
*/
function showmail(nospamplease, idontlikespam, nothanks, no, way){
var str_out = ''; 
var num_out = '';
var num_in;
num_out = nospamplease;  
for(i = 0; i < num_out.length; i += 2) {
num_in = parseInt(num_out.substr(i,2)) + 23;
num_in = unescape('%' + num_in.toString(16));
str_out += num_in;
str_out = unescape(str_out);}
nospamplease = str_out;
speakfriendandenter = '&#109;&#97;&#105;&#108;&#116;&#111;:' + nospamplease;
voila = '<a href="' + speakfriendandenter + '" title="'+ nospamplease + '">';
if((idontlikespam != "") && (nothanks != "")) voila = idontlikespam  + " " + voila;
else if((idontlikespam != "") && (nothanks == "")) voila += idontlikespam;
if(nothanks != "") voila += '<img src="' + nothanks + '" width="' + no + '" height="' + way + '" border="0" alt="' + nospamplease + '" />' ;
else if((idontlikespam == "") && (nothanks == "")) voila += nospamplease;
voila += '</a>';
document.write(voila);}

