// Åbner URL i nyt vindue
function openWindow(url, win_width, win_height, bTest)
  {
    var features =
      'width='        + win_width +
      ',height='      + win_height +
      ',directories=' + 0 +
      ',location='    + 0 +
      ',menubar='     + 0 +
      ',scrollbars='  + 1 +
      ',status='      + 0 +
      ',toolbar='     + 0 +
      ',resizable='   + 1 +
      ',left =' + ((screen.width)-(win_width)-30) +
      ',top ='+ ((screen.height/2)-(win_height/2));


// test
    if(bTest) {
      win_height = screen.height - 100;
      var features =
        'width='        + win_width +
        ',height='      + win_height +
        ',directories=' + 1 +
        ',location='    + 1 +
        ',menubar='     + 1 +
        ',scrollbars='  + 1 +
        ',status='      + 1 +
        ',toolbar='     + 1 +
        ',resizable='   + 1 +
        ',left =' + ((screen.width)-(win_width)-30) +
        ',top ='+ ((screen.height/2)-(win_height/2));
    }
  
    var wRediger = window.open (url, "win", features);
    wRediger.focus();
}

// tilføj side til foretrukne
function addToFavorites(url, navn){
    if (document.all)
        window.external.AddFavorite(url, navn);
}

