Thank you Adam,
this solve my problems about the javascript and the closing of my popup window, but having a problem with the height of the dialog (I can change it manually)...
so for me i have no problems now and I'll start upgreading all of my sites to the new version ...
Thanks again