function isUndefined(v) {
    var undef;
    return v===undef;
}

function rawPopup(url, target, features) {
    if (isUndefined(target)) {
        target = '_blank';
    }

    var newWindow = window.open(url, target, features);
    newWindow.focus();
    return newWindow;
}

function linkPopup(src, features) {
    return rawPopup(src.getAttribute('href'), src.getAttribute('target') || '_blank', features);
}

/* onmouseovereffekt auf wunsch auskommentiert

/* Script für den IE zum Auklappen der Navigation*/
/*
sfHover = function() {
  
  if(document.getElementById("navi")){

  
      var sfEls    = document.getElementById("navi").getElementsByTagName("LI");

        //Navigation
      for (var i=0; i<sfEls.length; i++) {
            sfEls[i].onmouseover=function() {
          if(this.className != 'nohover'){
                this.className+=" sfhover";
          }
            }
            sfEls[i].onmouseout=function() {
          if(this.className != 'nohover'){
                this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
          }
            }
        }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
*/