function decodeLinks() {
	var i;
	for (i=0; i<document.links.length; i++) {
		var href = document.links[i].href;
			
		if (href.match(/^mailto:/)) {
			href = href.replace(new RegExp('\%20', 'g'), ' ');
			href = href.replace(new RegExp(' apenstaartje ', 'g'), ' @ ');
			href = href.replace(new RegExp(' punt ', 'g'), ' . ');
			href = href.replace(new RegExp(' ', 'g'), '');
			document.links[i].href = href;
			
			if (document.links[i].hasChildNodes() && document.links[i].firstChild.nodeType == 3) { // link has a child that is a textNode
				var text = document.links[i].firstChild.nodeValue;
				text = text.replace(new RegExp('\%20', 'g'), ' ');
				text = text.replace(new RegExp(' apenstaartje ', 'g'), ' @ ');
				text = text.replace(new RegExp(' punt ', 'g'), ' . ');
				text = text.replace(new RegExp(' ', 'g'), '');
				document.links[i].firstChild.nodeValue = text;
			}
		}
	}
}
