here is the script:
document.getElementById(x).src = 'selectionbeadclicked.gif';
the x var just changes a small icon on the page to another one so you can track links that have been clicked.
here is how i am calling the function
<img id="1a" src="selectionbeadunclicked.gif" width="10" height="18" border="0" ></a>
can someone please check this... i can post an example from my site if that would help