

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
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+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

function holehoehe ()
	{
	var myWidth = 0, myHeight = 0;
	if( typeof(window.innerWidth) == 'number' ) 
		{
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
		} 
	  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
		{
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
		} 
	  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
		{
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
		}


	if (myHeight>0) 
		{
		$sizer=myHeight-105;
		document.write('<br><img border=0 src="/images/pt.gif" width="1" height="'+$sizer+'">');
		//document.getElementById("hoehenspacer").style.height = $sizer+"px";
		}
	}



function delcheck($link,$frage)
	{
	if ($frage=='') $frage='Sind Sie sicher?';
	if (confirm ($frage))	
		{
		top.location.href=$link;		
		}
	}


function makebild(bild,width,height)
	{
	var leftpos = (screen.width) ? (screen.width-width)/2 : 0;
	var toppos = (screen.height) ? (screen.height-height)/2 : 0;
        picwin = window.open("/images/pics/popup.php3?image="+bild,"bild","resizable=no,width="+width+",height="+height+",status=0,menubar=0,scrollbars=0,left="+leftpos+",top="+toppos+"");
        }