XHTML strict mode doesn't support the target attribute on links. This piece of Javascript hooks into links with class "external", and adds an onclick handler to open the link in a new window. Mix-in CSS classes are supported - i.e. if you need to specify a class for the link to change its appearance, you can still do that and have it open in a new window: class="yourclass external"

Javascript code here...