/*
 * Polymorph CMS
 * Copyright (c) 2008 Mario Smeritschnig, Ingo Smeritschnig, Polymorph OG
 *
 * * * BEGIN LICENCE * * *
 *
 * This file is part of Polymorph CMS. Polymorph CMS is a proprietary Software.
 * 
 * The software publisher (Polymorph OG) grants a license to use one copy of the
 * software to each customer who purchased a Website based on Polymorph CMS, but 
 * the ownership of this copy remains with the software publisher.
 * It is strongly prohibited to copy, modify, publish, redistribute or reverse
 * engineer any parts of the source code. It is also prohibited to use any 
 * portions (functions, classes, methods, includes) of the source code for any
 * purpose.
 * 
 * Polymorph CMS 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. 
 *
 * * * END LICENCE * * *
 *
 */

  function mail(encodedAdress) {
    var i;
    var decodedAdress = "";
    for(i=0; i<encodedAdress.length;i++) {
      decodedAdress = decodedAdress + String.fromCharCode(encodedAdress.charCodeAt(i) - 1);
    }
    location.href = "mailto:"+decodedAdress;
  }
