Sending/receiving vars across frames using Javascript

Here’s my dilemma:

I’ve got a frameset with two frames; top and bottom. In the bottom frame I have bottom1.html with a movie on it that needs to send a variable to the top.html which is in the top frame.

Then when I load bottom2.html into the bottom frame, I need the movie on it to load the variable from top.html in the top frame.

Anyone have any suggestions? I know I need to use fscommand, but I can’t find any documentation on using frames and different html pages.

Thanks in advance,
rhombusleech