I tried parent.document.getElementById("someId"); inside the iFrame's document, but got 'null', until I set both ID and Title on the iFrame to something in the parent Document.
parent.document.getElementById("someId");