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)
}


