I need to refer to a layer in another frame in my frameset in order to write to that layer.

For instance- if the layer was in my current document, I would simply say:

Code:
document.layers["myLayer"].document.open()
document.layers["myLayer"].document.write("some text")
document.layers["myLayer"].document.close()
I can refer to the frame that I want with:

Code:
top.frames.FrameName
But I cannot seem to access the properties of the frame to put these two segments together.

ANY help very gratefully received!