i currently do this in one of my pages:

parent.document.getElementById('UseageBar').innerHTML = "bla";

but the UseageBar (or the parent too on occasions) will not always exist - how can i detect their presence first, so that i do not get an error when displaying my page?

thanks
Kris