function PictureZoom(url,title,width,height,alt,bgc)
{
init = "width=10, height=10, scrollbars=no,menubar=no,status=no,dependent=yes";

fenster=window.open("about:blank",title,init);

if(!bgc){
  bgc="000000";
}
fenster.document.writeln('<html>\n<head>\n<title>'+ alt +'</title>\n');
fenster.document.writeln('<body bgcolor="#'+bgc+'">\n');
if(!width){
fenster.document.writeln('<div id="pic" style="position:absolute; left:0px; top:0px; width:800px; height:600px;">\n');
}
else{
fenster.document.writeln('<div id="pic" style="position:absolute; left:0px; top:0px; width:'+width+'px; height:'+height+'px;">\n');

}

fenster.document.writeln('<img border="0" width="'+width+'" alt="'+alt+'" name="picture" src="'+url+'">\n');
fenster.document.writeln('</div>\n');



if(!width){
breite=fenster.document.picture.width+12;
}
else {breite=width};

if(!height){
hoehe=fenster.document.picture.height+31;
}
else {hoehe=height};
fenster.resizeTo(breite,hoehe);

fenster.document.write('</body>\n</html>\n');
}




function Zoom(url,title,width,height)
{
//  if(!bgc){
    bgc="000000";
//  }
  if(height > screen.availHeight ){
    width = width + 20;

    height = screen.availHeight-40 ;
    init = "width= " + width + ",height= " + height + ",scrollbars=yes,menubar=no,status=no,resizeable=yes,dependent=yes"
  }
  else{
    init = "width= " + width + ",height= " + height + ",scrollbars=auto,menubar=no,status=no,resizeable=no,dependent=yes"
  }

  fenster=window.open(url,title,init);
  fenster.focus();
  

}




function ZoomScroll(url,title,width,height,alt)
{
  init = "width= " + width + ",height= " + height + ",scrollbars=yes,menubar=no,status=no,resizeable=yes,dependent=yes"
  fenster=window.open(url,title,init);
  fenster.focus();
  if(alt){
    fenster.document.title=alt;
  }

}

