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 = "http://www.bv-zazenhausen.de/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);
	}

function formgo(box) {
	if ((-1 < box.selectedIndex) && (box.options[box.selectedIndex].value != 'nil')) {
	   val = box.options[box.selectedIndex].value;
	
	if (val != 0) { 
		self.location.href=val;
	}

	}
	return true;
	}

function AktDatum()
	{

	var wt = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
	var mon = new Array("01","02","03","04","05","06","07","08","09","10","11","12");

	heutigesDatum = new Date();
	wochentag = heutigesDatum.getDay();
	tag = heutigesDatum.getDate();
	if (tag < 10) tag = '0' + tag;
	monat = heutigesDatum.getMonth();
	jahr = heutigesDatum.getYear();

	document.write(wt[wochentag] + ', ' + tag + '.' + mon[monat] + '.' + jahr);
	}

function Aktualisieren()
	{
	window.setTimeout("reload()",120000);
	}

function reload()
	{
	window.location.href = "journal.htm";
	}

