Thanks Danny, that is what I am doing.
I've developed a bit further, but am still stuck.
I'm using the mousedown event and pass through the X and Y coordinates to my routine:
fn_open_popup(me, "hello","you",X,Y)
the function just opens a form and does a few checks.. Here is the onload part...