If u want to change two frames with one click u can do it this way:
<a href="your_page.htm" target="name_of_your_first_frame" onClick="top.name_of_your_second_frame.location = 'your_second_page.html'">
There are several way to reference the frames , this is only one.
Greetings
Bjoern