I think the key words here are "show some code".
Specifically, what is the code that is triggered by the click on the link to open the popup? It's either going to be in the onclick of the <a> tag or (in case of ancientness) in the href.
second thoughts, just show us the link. That's as good a place to start as any.