Hey syn3rgyz,
Just wanted to say THANK YOU SOOO MUCH for posting this. This + w3schools were the only places I could find some kind of example of how to do this.
If you are still trying to figure out what is returned by getElementsByTagName(), per the w3schools page for that function it...