var win= null;
function FensterNeu(mypage,w,h,n)
{
  var scroll = "no";
  
  var winl = (screen.width-w)/2 - 4;
  var wint = (screen.height-h)/2 + 6;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  win=window.open(mypage,n,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function FensterNeuer(mypage,w,h,n)
{
  var scroll = "yes";
  
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  win=window.open(mypage,n,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function FensterN(mypage,w,h,n)
{
  var scroll = "yes";
  
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=yes';
  win=window.open(mypage,n,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function FensterFrei(mypage,n)
{
  var scroll = "yes";
  
  var settings  ='height='+screen.Height+',';
      settings +='width='+screen.Width+',';
      settings +='top=0,';
      settings +='left=0,';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=yes';
  win=window.open(mypage,n,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function FensterAuf(id)
{
	var newsletter = window.open('htmlnewsletter.php?id=' + id,"newsletter","height=600,width=600,resizable=yes,scrollbars=yes,toolbar=yes");
	newsletter.focus();
}

