function ExternalOpenInNew() {
  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";
	  if(anchor.getAttribute("class")) { // Standardkonforme Browser
	   var nc = document.createAttribute("class");
	   var oa = anchor.getAttribute("class");
	   anchor.className = "ext " + oa;
	  }
	  else if(anchor.getAttribute("className")) { // IE.....
	   var oa = anchor.getAttribute("className");
	   if(oa == "refie") {anchor.className = "refieyes " + oa;}
	   else {anchor.className = "ext " + oa;}
	  }
	  else {
		anchor.className = "ext";
	  }
	  if(anchor.getAttribute("title")) {
	   var ot = anchor.getAttribute("title");
	   anchor.title = ot + " - Link öffnet ein neues Fenster";
	  }
	  else {
	   anchor.title = "Link öffnet ein neues Fenster";
	  }
	}
  }
}
window.onload = ExternalOpenInNew;

