

function closeWindow() {
  window.close();
}


/*function openNewspaper(os) {
  var oWindow = openNewWindow("", "winzeitung", os) ;
  document.frmzeitung.submit() ;
  
}
*/
/*function openNewWindow(sURL, sName, os)
{
  var sOptions = "";
  if(os=="Macintosh") {
    sOptions = "toolbar=no, scrollbars=no,left=0,top=0,width="+screen.width+",height="+screen.height;
  } else {
    sOptions = "fullscreen, scrollbars, toolbar=no" ;
  }
	var oWindow = window.open(sURL, sName, sOptions);
	
	
	return oWindow ;
}
*/

function oeffne(mode, url){


  if(screen && screen.width){
    if (screen.width < 801){
    abmess = "width=790,height=580,scrollbars=yes";
     }
   }
  var w, h, x, y = null;
  var args = "status=no,toolbar=no,menubar=no,location=no,resizable=yes,";
  var abmess = "";
  switch(mode){
    case 0:
      if((document &&
          document.all) &&
          (!window.opera)){
        args += ",fullscreen=1"
      }
      else{
        mode = 1;
      }
      break;
    case 1:
      w = 870;
      h = 673;
      x = (screen.width - w) / 2;
      y = (screen.height - h) / 2;
      abmess = 'width='+w+',height='+h;
      break;
    case 2:
      args = "";
      break;
    case 3:
      w = screen.width - 40;
      h = screen.height - 40;
      x = 10;
      y = 10;
      abmess = 'width='+w+',height='+h;
      break;
    case 4:
      args = "";
      break;

  }
  args += abmess;
  var url2 = url+"&mode=" + mode;
  fenster=window.open(url2,'x',args);
  if(w != null){
    fenster.resizeTo(w,h);
    fenster.moveTo(x,y);
  }
}

