Lightbox js

Hello everybody

i am trying to put some javascript codes to lightbox 2

i dont know where to put it, probably in lightbox.js
<a href=“javascript:popup()”>TTTEEEXXXTTT</a>

TTTEEEXXXTTT needs to stand near CLOSELABEL button, when i open image