I didn't exactly know if I had to use the parent window,
now it's ok for me.

Thank for your help.