Launching a Centered Pop-Up Window" at masked domains?

I’d like to thank the people at Kirupa for such a great tutorial on that (launching a centered pop-up). But there is one issue about this that I am unclear on.

It appears the functions only work when the URL is addressed in the location bar of the browser.

But what if I were to use a redirection service that masks the location at all times to the name of my choice? It impacts on the functions to give errors.

Exactly which functions or variables do I need to change in order for the functions not to use the masked domain name, but a name of my choice?

To refresh memory:
http://www.kirupa.com/developer/mx/centered_popup.htm

I wouldn’t of asked for additional help if it wasn’t for the welcoming footer at the end of that tutorial :slight_smile: