Centre popup on cd

I’m desperate! I can’t get help for this in any online tutorial or forum- I’ve been searching and reading for hours :frowning:
Please can someone help ?
Kirupa tutorial on centered java popup - that is what I’m using and it’s great for my online site but I can’t get it to work for cd(offline) site. Because the script for getURL follows only an absolute path but doesn’t want to work with relative. Is it the _global.openWinCentre part of the script? Changing it to local doesn’t work.

But how to size pop up?