function ReplaceEmail()
{
	/*
	
	contentDiv = document.getElementById('content');
	contentDiv.innerHTML = contentDiv.innerHTML.replaceAll('[at]', '@');
	contentDiv.innerHTML = contentDiv.innerHTML.replaceAll('[dot]', '.');
	
	*/
	
	footerDiv = document.getElementById('footer');
	footerDiv.innerHTML = footerDiv.innerHTML.replaceAll('[at]', '@');
	footerDiv.innerHTML = footerDiv.innerHTML.replaceAll('[dot]', '.');
}

String.prototype.replaceAll = function(strTarget, strSubString)
{
	var strText = this;
	
	var intIndexOfMatch = strText.indexOf(strTarget);
	
	while (intIndexOfMatch != -1)
	{
		strText = strText.replace(strTarget, strSubString)
		intIndexOfMatch = strText.indexOf(strTarget);
	}
	
	return(strText);
}

window.onload = ReplaceEmail;
