you can access the iframe element of a parent page using
var fra = parent.document.getElementById("f2");
(assuming f2 is the id of the frame you want in this case)
You can then get the document object of that frame using:
var doc = fra.contentDocument || fra.contentWindow.document;
You can then get elements (objects) within that as usual:
var el = doc.getElementById("whatever");