Sorry, one more thing...

Say I have an array of 5 objects in javascript. I have a button that says "prev" and another, saying "next." how can i make it so that "prev" makes InnerHTML show the previous item in the array, while "next" uses InnerHTML to show the next in the array, while stopping at the last item and going no further?

Thanks again