/*
 * spamProtector.js
 * This file is part of the project 'SpamProtector'
 *
 * Author: Gerhard Stark
 * Date: 07.08.2009
 */


function decodeEmail(encodedEmail,shift) {
	var decodedEmail = "";

	for( var i=0; i < encodedEmail.length; i++ ) {
		decodedEmail += String.fromCharCode(encodedEmail.charCodeAt(i)-shift);
	}

	location.href = "mailto:" + decodedEmail;
}

