function zoom (picture,title,width,height) 
{  
        if (picture != "")
        {
        	
        }
        
    //    popheight = height + 70;
    //    popwidth  = width;
        
        if (picture != "")
        {
        	features="top=10,left=10,scrollbars=0,width="+ width+",height="+height+"";
        	zoomwindow = window.open("","ZoomWindow",features);
       		// changeTitel(zoomwindow,title);
        	zoomwindow.document.open();
        	zoomwindow.document.write("<html><head><title>"+title+"</title></head>");
        	// zoomwindow.document.write("<link rel=stylesheet type='text/css' href='../../format_popup.css'></head>");  
		zoomwindow.document.write("<body style='margin:0px; padding:0px; background-color:black' onblur='javascript:window.close();'>");
        	zoomwindow.document.write("<a href='javascript:window.close();'><img src="+picture+" border=0 hspace=0 vspace=0 width='"+width+"' height='"+height+"' title='Click to close window.'></a>");
      //  	zoomwindow.document.write("<br><br><div style='text-align:center; color:white; font-size:10pt; font-family:Arial>"+title+"</div>");
        	zoomwindow.document.write("</body></html>");
        	
        	zoomwindow.document.close();
        }
}

//v1
function changeTitel(fenster,titel) {
   fenster.document.title=titel;
   //ohne dem nächsten gehts nicht, wer weiß warum
   setTimeout("changeTitel(titel);",2000);
}


function displayStatusMsg(msgStr)
 { //v1.0
  status=msgStr;
  document.returnValue = true;
}

function ZweiFrames(ladeURL1,frame1,ladeURL2,frame2)
{ 
   parent.frames[frame1].location.href=ladeURL1;
   parent.frames[frame2].location.href=ladeURL2;
}

function imagepop(url)
  {
       if (url != ""){
           window.open(url,'popwindow','width=200,height=80,top=10,left=10');
       }
  }
  
function gbookpop(url)
  {
       if (url != ""){
           window.open(url,'popwindow','width=600,height=600,top=10,left=10,scrollbars=yes');
       }
  }

function videopop(url)
{
	if (url != ""){
           window.open(url,'popwindow','width=280,height=300,top=10,left=10');
       }
}


function Anim(Bildname, Bildnr) 
{
    if (document.images) 
    {
       document.images[Bildname].src = Bild[Bildnr].src;
    }
}
