function ShowFoto(fotodatei,b,h,scb)
	{
	var breite = "width=" + b;
	var hoehe = ",height=" + h;
	var scbars = ",scrollbars=" + scb;
	var ansicht = breite + hoehe + ",toolbar=no,menubar=no,location=no,resizable=yes,status=no," + scbars;
	FotoFenster=window.open(fotodatei,"Termine",ansicht);
	FotoFenster.focus();
	}

function nachVorne() 
	{
	setTimeout("self.focus()",150);
	}

function Fensterzu() 
	{
	setTimeout("self.close()",100);
	}

function CheckLoc() 
	{// alert (window.name);
	if (window.name != 'mainFrame')
	   {document.location.href = 'http://www.bv-zazenhausen.de'}
	   else { document.location.href = '#oben'}
	}
function CheckLocWin() 
	{// alert (window.name);
	if (window.name != 'Termine')
	   {document.location.href = 'http://www.bv-zazenhausen.de'}
	   else { document.location.href = '#oben'}
	}

function CheckNeu()
	{
	location.reload()
	}

function MonatBestimmen()
	{
	mon = new Array("01","02","03","04","05","06","07","08","09","10","11","12");

	var heute = new Date(); // Aktuelles Datum auslesen
	var monat = heute.getMonth();
	var ZeigeMonat = "zztermin/termin" + mon[monat]+".htm"; // Zu ladende HTM-Datei bestimmen

	ShowFoto(ZeigeMonat,'400','500','no')
	}

function Anim(bildnr) {
	// alert(bildnr);
	document.images[0].src = imgs[bildnr];
	}
	
function vor(max) {
	nr++
	if (nr > max)		// ImageAnzahl[max] !
		nr = 0
		Anim(nr);
	}
	
function zurueck(max) {
	nr--
	if (nr < 0)
		nr = max	// ImageAnzahl[max] !
		Anim(nr);
	}
