function replacePLChars(str) {
	str = str.replace(String.fromCharCode(261), 'a');
	str = str.replace(String.fromCharCode(281), 'e');	
	str = str.replace(String.fromCharCode(347), 's');	
	str = str.replace(String.fromCharCode(263), 'c');
	str = str.replace(String.fromCharCode(380), 'z');
	str = str.replace(String.fromCharCode(378), 'z');
	str = str.replace(String.fromCharCode(243), 'o');
	str = str.replace(String.fromCharCode(322), 'l');
	str = str.replace(String.fromCharCode(324), 'n');
	return str;
}

function replacePLCharsInField(fieldName) {
	tmpField = document.getElementById(fieldName);
	tmpField.value = replacePLChars(tmpField.value);
}

function replacePLCharsInBlock(fieldName) {
	tmpField = document.getElementById(fieldName);
	tmpField.innerHTML = replacePLChars(tmpField.innerHTML);
}