So I did misunderstand!
Matching the spans that have an id beginning "yr", could be done with:
HTML Code:
var allSpans = document.getElementsByTagName("span");
for(i=0; i < allSpans.length; i++)
{
if (allSpans[i].id.substr(0, 2) == "yr")
// do what ever style changes are needed...
}