window.name="hauptfenster";
function edittext(Zeichen) {
    document.eintragen.inhalt2.value=document.eintragen.inhalt2.value + Zeichen;
}
function toggleadmenu (id)
{
	if (document.getElementById("admenudiv_" + id).style.display == 'none')
	{
		document.getElementById("admenudiv_" + id).style.display = "block";
	}
	else
	{
		document.getElementById("admenudiv_" + id).style.display = "none";
	}
}
function togglenews(id)
{
	if (document.getElementById("newscdiv_" + id).style.display == 'none')
	{
		document.getElementById("newscdiv_" + id).style.display = "block";
	}
	else
	{
		document.getElementById("newscdiv_" + id).style.display = "none";
	}
}

function showpic(Picture,breite,hoehe)
{
x=breite;
y=hoehe;
if (navigator.appName == 'Microsoft Internet Explorer') {
  window.resizeTo(x+10,y+29);
  } else {
	if(navigator.appVersion.substring(0,1) < "5")
		{window.resizeTo(x,y);}
	else
		{window.resizeTo(x+8,y+28);}
}
shckx=(screen.availWidth/2)-(x/2);
shcky=(screen.availHeight/2)-(y/2);
NewWindow=window.open("","Picture","height="+hoehe+",width="+breite+",scrollbars=yes,resizable=yes,top="+shcky+",left="+shckx+"");
NewWindow.document.write ("<html><head><title>ratsschlag.de Fotoanzeige");
NewWindow.document.write ("</title></head>");
NewWindow.document.write ("<body bgcolor='#053757'>");
NewWindow.document.write ("<table align='center'><tr>");
NewWindow.document.write ("<td align='center' valign='top'>");
NewWindow.document.write ("<table border='1' bgcolor='#000000' cellpadding='0' cellspacing='1'><tr><td align='center'>");
NewWindow.document.write ("<a href='#' onClick='self.close()'><img src=");
NewWindow.document.write (Picture);
NewWindow.document.write (" alt='Ins Bild klicken um zu schließen!'></a>");
NewWindow.document.write ("</tr></table>");
NewWindow.document.write ("</td></tr><tr>");
NewWindow.document.write ("<td align='center' valign='bottom'>");
NewWindow.document.write ("<br><center><font face='Arial' size='2' color=white>Ins Bild klicken um Fenster zu schließen!</font>");
NewWindow.document.write ("</td></tr></table>");
NewWindow.document.write ("</body></html>");
NewWindow.document.close();
}


