<!--

function TJKpop(){ // v1.0 | http://www.tjkdesign.com/articles/popup_window_with_no_extra_markup.asp
  var e = document.getElementsByTagName('body')[0];
  if (e){
    var a=e.getElementsByTagName('a');
    for (var i=0;i<a.length;i++){
    if (a[i].getAttribute('href') != null && a[i].getAttribute('href').indexOf("://") >= 0 && a[i].getAttribute('href').toUpperCase().indexOf(document.domain.toUpperCase()) == -1){
        a[i].className+=a[i].className?' outlink':'outlink';
        a[i].title+='(öppnas i ett nytt fönster)';
        a[i].target='_blank';
//      a[i].onkeypress=function(){newWin=window.open(this.href,'TJKWin');if(window.focus){newWin.focus()} return false;}
      }
	    if (a[i].getAttribute("href") != null && (a[i].getAttribute("type") == "application/pdf" || a[i].getAttribute("href").toUpperCase().indexOf(".PDF") >= 0 || a[i].getAttribute("href").toUpperCase().indexOf("MEDIAFILER/") >= 0)){
        a[i].title+='(öppnas i ett nytt fönster)';
        a[i].target='_blank';
      }  
    }
  }
  var forms = document.getElementsByTagName("form");
	for(var i = 0; i < forms.length; i++)
	 {
	   var form = forms[i];
	   if(form.getAttribute("action").substring(0, 4) == "http")
	   {
	      form.target = "_blank";
	   }
	 }
}
//window.onload = function(){if(document.getElementById) TJKpop();}

//-->