hmm...
i think i lost you now...
if you write the script part into your output file with php youll have the function in the page you call it...
the way i thought at least...
as to calling functions in other frames:
since functions are bound into the dom via the "function" object they do behave the same way all other things do, therefor you call it the same way you do it with other objects in dom:
<a href="javascript:parent.frames[n].func_on_buttonclick();">...
stupid question:
have you made a functional model for your scripts, meaning do you have a clear idea of what should happen in which script?
if not i'd take a sheet of paper and do that before you work further....
if you dont now youll do it when you make the first functional changes, and then its thrice the effort... (hinthint)
as i had to learn the hard way. sighs
if you try it youll see that you wont have half the trouble with programming the stuff that you have without...
well. never mind.
hope this helps you.
if not, ask. 🙂
greetings, jakob