function ToggleNewsText (id)
{
        if (document.all.item ("NewsText_" + id).style.display == 'none')
        {
                document.all["NewsText_" + id].style.display = "inline";
                document.all["NewsTextLink_" + id].innerHTML = "Hide more";
        }
        else
        {
                document.all["NewsText_" + id].style.display = "none";
                document.all["NewsTextLink_" + id].innerHTML = "Show more";
        }
}



function NewWindow(mypage)
{
	var win = null;
	win = window.open(mypage)

    if(win.window.focus)
    {
    	win.window.focus();
    }
}

function NewImage(mypage,myname,mytitle,w,h,scroll)
{
	var win = null;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',';
	win = window.open('',myname,settings);
    win.document.write('<html><head><title>'+mytitle+'</title></head><body style="margin:5px"><a href="javascript:this.window.close();"><center><img src="'+mypage+'" border="0"></center></a><br><br><center><strong style="font-family: Arial;font-size:14px">Auf das Bild klicken, um das Fenster zu schließen!</strong></center></body></html>');
	if(win.window.focus){win.window.focus();}
}

function NewTextWindow(text,myname,mytitle,w,h,scroll)
{
	var win = null;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',';
	win = window.open('',myname,settings);
    win.document.write('<html><head><title>'+mytitle+'</title></head><body style="margin:5px">' + text + '</body></html>');
	if(win.window.focus){win.window.focus();}
}