I'm sure I've done this before, but I can't find where it is... I have a photo album with images whose names end with _Thumb. I then have those same images in the full size without the _Thumb. What I want to do is to have a link on the _Thumb images to call a Javascript. That function would then take the source of the image that was clicked and strip out the _Thumb to get the full size image name. How do I code the javascript to get the src of the selected image?

I've tried using this.src in the function, but I get the value "undefined". I also tried using an onclick event instead of a normal a href, and it still doesn't work.