The best way to modify for opening links in a new browser window, if you are interested in keeping it XHTML/CSS compliant, is to use the rel attribute to describe links to be opened in a new window in a standard way. A common approach is using rel="external" to describe links like this, and then use a script like this to do the work:
function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") &&
anchor.getAttribute("rel") == "external")
anchor.target = "_blank";
}
}
window.onload = externalLinks;
Make sure the script is loaded in the HEAD of your document (either from an external file registered as a startup script or putting the script in the HEAD of your template), and in browsers that support JS and the DOM methods above, you’ll get appropriate navigation, and will be ready to support browsers that might not be able to follow the old target="_blank" links (think mobile devices and other specialized browser platforms) with full compliancy.