Yes, I could use 'this', and I might have to in the end, but why doesn't the method work as it is?
if (!e) var e = window.event;
According to everything I've read, this should give a reference to the event.
And there are a lot of links, all with different arguments to pass to the function, so I was trying to avoid adding the onclick via script, though I agree it is usually neater.
Just for my own learning, rather than solving the problem with a different approach (using 'this'), I'd like to figure out detecting the source element of the click.