WordPress Hack: Opening Links in New Windows

Having read the tutorial by 21st Century Paladin on Opening Links in New Windows, I dug up an old post of mine in which I had editted the quicktags.js file so that I can insert links via the Quicktags buttons.
I have just modified the hack a little so as to reduce the amount of code being used.