/*-------------------------------------------------------------------------------------------*
 *
 ***** email.js – Javascript to generate email address without showing
 *
 * Purpose:
 * --------
 *
 * Hide the email address in a web page by building it up in a javascript function
 * to be called in the <a href=...> instead of showing the plain email address,
 * where spam seekers can easily find it.
 * The idea was borrowed from www.knmi.nl (Bert van Dijk).
 *
 *
 * Interface:
 * ----------
 *
 *
 *
 * Author:
 * -------
 *
 * Hans de Vries	*Copyright © private*		June 13, 2008
 *
 *
 * Modifications:
 * --------------
 *
 * $Log:$
 *===========================================================================================*/

function PopEmail(subj)
{
q1 = String.fromCharCode(62+2);
q2 = String.fromCharCode(54+4);

var p01 = 'ool';
var p02 = 'o';
// var p02 = 'rec';
var p03 = 'k';
// var p03 = 'aBo';
var p04 = 'ars';
var p05 = 'We';
// var p05 = 'Bar';
var p06 = 'rad';
var p07 = 'ela';
var p08 = 'm';
// var p08 = 'ka';
var p09 = 'lto';
var p10 = 'l';
// var p10 = 'bar';
var p11 = 'voo';
var p12 = '.nl';
var p13 = 'mai';
var p14 = 'sch';

var todo = p13 + p09 + q2 + p05 + p10 + p03 + p02 + p08 + q1 + p14 + p01 + p11 +
           p06 + p07 + p04 + p12;
if (subj)
  todo = todo + '?Subject=' + subj;
parent.location = todo;

}

