function show_vereine() {
  window.open('http://www.worldofbelushi.de/cgi-bin/bindlach/vereine.pl','Vereine','width=640,height=480,scrollbars=yes')
}

function show_updates() {
  window.open('http://www.worldofbelushi.de/cgi-bin/bindlach/newsread.pl','Updates','width=640,height=480,scrollbars=yes')
}

function show_termine() {
  window.open('http://www.worldofbelushi.de/cgi-bin/bindlach/termine.pl','Termine','width=640,height=480,scrollbars=yes')
}


function PopUp(page,titel,x,y) {

var page = page+'.jpg';
var dx=screen.availWidth;
var dy=screen.availHeight;
var scroll='no';
var z=0;


if (titel=='') {
	titel='.';
   }

if (x==0) {
	x=640;
   }

if (y==0) {
	y=480;
   }

var imgw=x;
var imgh=y;

 x=x+60;
 y=y+50;
 
 if (x>=dx) {
	x=dx-20;
	scroll='yes'; 
 }
 
 if (scroll=='yes') {
   y=y+25;
 }
 
 if (y>=dy) {    
	y=dy-40;
	scroll='yes'; 
 }

xtop=dx-x;
xtop=xtop/2;
xtop=5;

ytop=dy-y;
ytop=ytop/2;
ytop=5;
   
   
PopPage = window.open('','Details',',top='+xtop+',left='+ytop+',width='+x+',height='+y+',scrollbars='+scroll+',resizable=yes');
PopPage.focus();

PopPage.document.open();
PopPage.document.writeln('<html><head>');
PopPage.document.writeln('<title>'+titel+'</title>');
PopPage.document.writeln('</head>');
PopPage.document.writeln('<body bgcolor=\"white\">');
PopPage.document.writeln('<center>');
PopPage.document.writeln('<table border=0 cellspacing=0 cellpadding=0><tr>');
PopPage.document.writeln('<td align=center>');
PopPage.document.writeln('<table cellspacing=5 bordercolorlight=\"#886622\" bordercolordark=\"Black\" cellpadding=0 border=1><tr><td>');
PopPage.document.writeln('<img src=\"'+page+'\" width='+imgw+' height='+imgh+' border=0><br>');
PopPage.document.writeln('</td></tr></table>');
PopPage.document.writeln('</td></tr></table>');
PopPage.document.writeln('</center></body></html>');
PopPage.document.close();

PopPage = "";
}

