reasonably sure you don't need javascript to do this.. You may want to explore the target directive in <a> tags.. Though, i might be wrong, as it's been 2 years since i last used frames..
Try search on google about the proper use of frames..
__________________
lisp hacker

running: FreeBSD 5.4 - still learning

develop with: SBCL + emacs for lisp, Anjuta IDE +gcc for c, SPE for python..
browse with: opera