Hi, SirDorius.
Instead of using
document.getElementById(id).innerHTML;
You could use
document.getElementsByTagName(tag)[0].innerHTML;
This method will give you an array of all the elements on the page with that tag name. Just access each tag like you would access an array.
For example, if you wanted to get the inner HTML of the third division on the page you could use:
document.getElementsByTagName("div")[2].innerHTML;
Hope that helps,
Adam