// Füge target="_blank" zu externen Links hinzu
function add_targets()
{
 links = document.getElementsByTagName("A");
 for (i=0;i<links.length;i++) {
         var anchor = links[i];
         var att = anchor.attributes;
         var link = "";
         for (j=0;j<att.length;j++) {
                  if (att[j].nodeName == "href") {
                         link = att[j].nodeValue;
                        break;
                 }
         }
         if (link.length > 0 && anchor.target == "" && link.substr(0,7) == "http://" && link.indexOf(document.domain) == -1 ) {
                 anchor.target = "_blank";
                 anchor.title = (anchor.title != "") ? anchor.title+" (in neuem Fenster)" : "(in neuem Fenster)";
                 anchor.className = (anchor.className != '') ? anchor.className+' external' : 'external';
         }
 }
}
try
{
    window.addEventListener("load", add_targets, true);
}
catch(ex)
{
    window.attachEvent("onload", add_targets);
}