Client popup made more compatible with different browsers.

 Thanks to Miquim for this patch