I've been working at this for a couple of days now, and can't figure it out. I have defined my own menu object, and have made a global instance of it (m). I am using the document.write method to write out a link which should execute one of my functions (using the global instance as a parameter). For some reason when I click on it, I get the error "'m' is undefined". However, if I type the link into the body manually, it works just fine. Any help would be greatly appreciated. Thanks!!
BTW - I've attached my code. Please note that this has been simplified from the original version which used frames, so the LoadMain function is incorrect. I just wanted to get the function calls going first, and then I'll worry about the display.