Load happens a second time

Load happens a second time

I'm using the .load() method with a PHP program to load some extra data and it works fine EXCEPT that after I've invoked it on a page and then try to log in to the main app, it tries to reload the data after the main page but without the necessary parameters. I'm using an onclick to activate the following javascript function:

        function togglelink(person,tree) {
            $('#stage').load('relate.php', {from:person, tree:tree});                
            $('#nrow').toggle();
        };

The same happens if the onclick is in a button or an html link to "#" and it's generated by the user not the page load. So how do I stop it trying to re-load this page?