VB Webbrowser and MS HTML Library. Frames? Please help



I have been working on a project the duplicates a lot of IE features.
I use VB 5 Pro. Please take the time to read my post, I really need
some help.

Now I use elementFromPoint(x,y) a lot.
What I need to do is be able to access the documents in a site using
frames. Currently I do this,

Private mhtmDoc3 As IHTMLDocument3
Private WithEvents WebDoc As HTMLDocument

In the DocumentComplete I do

Set mhtmDoc3 = Browser.Document
Set WebDoc = mhtmDoc3



And I made an array like this

Private mhtmDoc As IHTMLDocument3
Private WebDoc2(10) As HTMLDocument

and in the DocumentComplete I loop through this to load eacg frame's
document.

Set mhtmDoc = Browser.Document
Set WebDoc2(0) = mhtmDoc


Now I believe I am able to change what document I am working with
simply by setting the WebDoc to the WebDoc2(ARRAY_INDEX) and this
allows all the events of WebDoc to be used.

Here is my main problems.

1) How can I know what frame the user is in (or has the cursor over)
...... has focus? (This is my most important question). Please any
samples on how to work it?

2) This is a side question... Silent=true will prevent those
javascript error popups but also locks out any other windows (like
when you log into a secure folder). Is there a way to turn off the
error popups without effecting the other?


Thank you for any help,
Michael
.