This is related to this question.
The answer was given with the script below to reset the font size back to the default:
function resetToDefaultFontSize() {
var p = document.getElementsByTagName('div');
for(i=0;i<p.length;i++) {
p[i].style.fontSize = "12px";
}
}
This works fine for a page that only has one font size of 12 px. How can the script be modified to allow up to three different font sizes on the same page?