I just saw an....oooooooops.!! :eek: in the code I posted.
function getElementsByClassName(document, strTagName, strClassName) {
should be
function getElementsByClassName(oElm, strTagName, strClassName) {
To use the function you use something like:
var myDivs = getElementsByClassName(document, 'div', 'some_class_name') ;
I've spanked my proof reader
and if it happens again I said I will get a new one 