function bild(xsize,ysize,picture)
{
   xp = (screen.width-xsize) / 2;
   yp = (screen.availHeight-ysize) / 2 - 30;

   site = "bild.htm?bild="+picture;
   winstr = "directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,width="+xsize+",height="+ysize+",left="+xp+",top="+yp;
   WinBild = window.open(site, "", winstr);    
}

function win(site)
{
   winstr = "directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,width="+700+",height="+300+",left=30,top=30";
   WinPopup = window.open(site, "", winstr);    
}

function openCalMonth(site)
{
    // 3 Monate
    winstr = "menubar=0,toolbar=0,location=0,directorys=0,status=1,scrollbars=0,resizable=0,width=620,height=160,left=200,top=200";
    calMonthHandle = window.open(site,"calMonthHandle",winstr);
    calMonthHandle.focus();
} 

function openWindow2(url, w, h)
{
   var padding;
   (navigator.appName == "Microsoft Internet Explorer") ? (padding = 10) : (padding = 0);

   var screenw = screen.availWidth;
   var screenh = screen.availHeight;
   var winw = (w + 15 + padding);
   var winh = (h + 15 + padding);
   var posx = (screenw / 2) - (winw / 2);
   var posy = (screenh / 2) - (winh / 2);

   var mywin = window.open(url,"mywin","top="+posy+",left="+posx+",width="+winw+",height="+winh+",menubar=no,locationbar=no,statusbar=no,resizable=no,toolbar=no,dependent=yes,scrollbars=no");
   mywin.focus();
}


function ViewInfo(url)
{
    var winstr = "menubar=0,toolbar=0,location=0,directorys=0,status=0,scrollbars=1,resizable=1,width=780,height=550,left=50,top=50";
    infoHandle = window.open(url, "infoHandle",winstr);
    infoHandle.focus();
}


function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
  window.open(theURL,winName,features);
}



function neuesFenster(meineSeite,meinName,w,h,scroll){
var Fenster = null;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
Fenster = window.open(meineSeite,meinName,settings)
}

// <![CDATA[
function PopUp(w,h,ziel) {
  h = h - 20; var x=0, y=0, parameter="";
  if (w < screen.availWidth || h < screen.availHeight) {
    x = (screen.availWidth - w - 12) / 2;
    y = (screen.availHeight - h - 104) / 2;
    if (window.opera) y = 0; // Opera positioniert unter den Symbolleisten
    if (x<0 || y<0) { x=0; y=0; }
    else parameter = "width=" + w + ",height=" + h + ",";
  }
  parameter += "left=" + x + ",top=" + y;
  parameter += ",menubar=yes,location=yes,toolbar=no,status=no";
  parameter += ",resizable=no,scrollbars=no";
  var Fenster = window.open(ziel,"PopUp",parameter);
  if (Fenster) Fenster.focus();
  return !Fenster;
}
// ]]>


