What I already have:

A main window with all the content, on this page a link that will open a smaller menu window. This menu is generated by a php script and displays several links.

What I want :

When someone clicks on of those links in the menu , the content on the main window should change...

But how do I do this ? how do I tell the link it should open in the content window ?