I have a function, which calls a second function and then does something. I need the second function to have finished before the initial function continues - how can i do this?

cheers

monkey