// SPAM prevention
// (c) 2002 Joachim Löhr
// Feel free to copy this code! 
// With this code you can't see my mailadress in any part of my website.
// But with JavaScript enabled you can (and click to mail me)!
// This is to make it harder for SAMMER's to collect mailadresses from
// my site.

// main
var Base64mail = "Sm9hY2hpbS5Mb2VockBTdGFkdC1NSC5kZT9TdWJqZWN0PXJyci1jb3VudGVy"
var decoded = Base64Decode(Base64mail)
document.write("<A HREF=\"mailto:" + decoded + "\">Joachim L&ouml;hr (rrr#30)</A>")
// end main

function Base64Decode(str) {
   var result = "";
   var i = 0;
   var x;
   var shiftreg = 0;
   var count = -1;

   for (i=0; i < str.length; i++) {
      c = str.charAt(i);
      if ('A' <= c && c <= 'Z')
         x = str.charCodeAt(i) - 65;
      else if ('a' <= c && c <= 'z')
         x = str.charCodeAt(i) - 97 + 26;
      else if ('0' <= c && c <= '9')
         x = str.charCodeAt(i) - 48 + 52;
      else if (c == '+')
         x = 62;
      else if (c == '/')
         x = 63;
      else
         continue;

      count++;

      switch (count % 4)
      {
         case 0:
                shiftreg = x;
                continue;
         case 1:
                v = (shiftreg<<2) | (x >> 4);
                shiftreg = x & 0x0F;
                break;
         case 2:
                v = (shiftreg<<4) | (x >> 2);
                shiftreg = x & 0x03;
                break;
         case 3:
                v = (shiftreg<<6) | (x >> 0);
                shiftreg = x & 0x00;
                break;
       }
       result = result + String.fromCharCode(v);
    }
    return result.toString();
}
