I know this must be a pretty stupid question, but it's driving me crazy!

I got this script (using frontpage 2000 as editor)to change two frames with one link at the same time:

<script language="JavaScript">
function history()
{
parent.top.location="tophistory.htm";
parent.right.location="history.htm";
}

</script>

Our history

Believe me, the script is working.....but not correctly!!!
I am trying to use this script in one of the frames (name="left")
and i would like to change the pages within the top- and right-frame.
The only thing it does is opening a new browser and in the address bar it says: javascript:history()
I already tried to change parent into window, document and even in _self but still no success!

What do I do wrong?

DJ