Here's one way, oil:
Assume you've named the frames to be changed frame4 and frame5.
Assume the HTML files to be loaded into those frames are newpage1.html and newpage2.html
(goes in the HEAD section or .js file for the HTML of the nav frame)
(code for the HTML page)