Changing img src does not display image
<p>Edit: Okay, the code is fine. There was some other code that was supposed to set other attributes somewhere else and I fell prey to the "copy/paste forgot to change the ID name" disease. Thanks for everyone's input. Sorry for being a bonehead.</p>

<p>I have a situation where I am using jquery to dynamically change the img src attribute when the user click an image. Basically switching back and forth between a Register and an UnRegister button. When I click on the register button it correctly switches to the UnRegister image. However, it will never switch back to the Register image if I click on it again. My code:</p>

<pre><code>function unRegister() { 
        $('#reg').attr("src","/images/btnRegister.png");             
        $('#reg').attr("onClick","register()");
}
function register() {
        $('#reg').attr("src","/images/btnUnregister.png");              
        $('#reg').attr("onClick","unRegister()");          
} 
</code></pre>

<p>Seems easy enough. I've verified that both images are spelled correctly and are in the /images directory. I need the two routines because once this little problem is solved I will be doing many different things based on what operation is happening. I've verified (via the handy alert() call that the routines are being called, just no image switch.</p>
