I have 2 files. In file#1, I have a link. When some one clicks on this link, file#2 is opened in new window.

My problem is that:

1- How file#2 will be opened through javascript in file#1.
File#2 contains two frames{top,bottom}.

2- How a value will be assigned to a variable [in TOP FRAME FILE] of file#2, through javascript ?

Thanks in advance