I have a site with frames. In the LOWER frame is where it shows a form. There are 5 forms. In the UPPER frame is a menu bar with 5 buttons. When a user clicks one of the buttons, it calls a function, checks what form is in the LOWER frame, then tells what action to take. The problem I have is that each page performs the same action. Is there any way to set up some sort of variable in the function of each button? Or is there something else I can do? Any help would be greatly appreciated.