var fenstergrossbild = '';
// Fenster Gesuche
function gesuche(url)
{
	fenstergesuche = window.open(url,'Gesuche','screenx=56,screeny=32,location=0,scrollbars=1,width=440,height=260,menubar=0,toolbar=0,statusbar=0');
	fenstergesuche.moveTo(56,32);
	fenstergesuche.focus();
}

// Fenster, z.B. Anfrage
function grossfenster(url)
{
	fenstergesuche = window.open(url,'Gesuche','screenx=56,screeny=32,location=0,scrollbars=1,width=400,height=400,menubar=0,toolbar=0,statusbar=0');
	fenstergesuche.moveTo(56,32);
	fenstergesuche.focus();
}

// Fenster Losung
function losung2()
{
	fenstername = window.open('losung.php','Losung','screenx=56,screeny=32,location=0,scrollbars=1,width=440,height=360,menubar=0,toolbar=0,statusbar=0,resizable=1');
	fenstername.moveTo(56,32);
	fenstername.focus();
}
// Fenster Karte
function karte(url)
{
        if(karte.closed == false) karte.close();
	fenstergrossbild = window.open(url,'Karte','screenx=56,screeny=32,location=0,scrollbars=0,width=641,height=425,menubar=0,toolbar=0,statusbar=0');
	fenstergrossbild.moveTo(56,32);
	fenstergrossbild.focus();
}
// Artikel Bild gross
function grossbild(id,x,y)
{
        if(fenstergrossbild.closed == false) fenstergrossbild.close();
	fenstergrossbild = window.open('grossbild.php?id='+id,'Bild','screenx=56,screeny=32,location=0,scrollbars=0,width=' + x + ',height=' + y + ',menubar=0,toolbar=0,statusbar=0');
	fenstergrossbild.moveTo(56,32);
	fenstergrossbild.focus();
}

// Artikel Bild mittel
function grossbildm(id,x,y)
{
	fenstergesuche = window.open('grossbildm.php?id='+id,'Bild','screenx=56,screeny=32,location=0,scrollbars=0,width=' + x + ',height=' + y + ',menubar=0,toolbar=0,statusbar=0');
	fenstergesuche.moveTo(56,32);
	fenstergesuche.focus();
}

// Mail Adresse maskieren
function getmailaddress(user,domain)
{
	if (!domain) 
	{
		domain="kirchenladen-sinthern.de";
	}
	url="mail";
	url=url+"to:";
	url=url+user+"@"+domain;
	window.location.href=url;
}
// Losung
function losung()
{
	fenstername = window.open('http://www.ev-gemeindehaus.de/losung.php','Losung','screenx=40,screeny=20,location=0,scrollbars=0,width=440,height=360,menubar=0,toolbar=0,statusbar=0');
}
