function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function navi(URL) {
	window.location.href = URL;
}

function chkForm() {
	if (document.frm.Name.value=="")  {
		alert("Bitte teilen Sie uns Ihren Namen mit.");
		document.frm.Name.focus();
	   	return false;
	}
} 

function zoom(filename,text,w,h) {
	var version=parseFloat(navigator.appVersion), agent=navigator.userAgent.toLowerCase();
	var opera=(agent.indexOf('opera')!=-1)?true:false;
	var l=10, t=10;
	if (!w) w=640;
	if (!h) h=550;
	if ((version>=4.0)&&(!opera)) {
		l=(screen.width)?(screen.width-w)/2:0;
		t=(screen.height)?(screen.height-h)/2:0;
	}
	var p=window.open("http://www.netperform.net/php/zoom_t.php?filename="+escape(filename)+"&text="+escape(text), "zoom", "toolbar=no,scrollbars=auto,location=no,directories=no,status=no,menubar=no,resizable=no,width="+w+",height="+h+",left="+l+",top="+t);
	if (p) {p.opener=self;p.focus();}
}

function anfahrt(filename,text,w,h) {
	var version=parseFloat(navigator.appVersion), agent=navigator.userAgent.toLowerCase();
	var opera=(agent.indexOf('opera')!=-1)?true:false;
	var l=10, t=10;
	if (!w) w=420;
	if (!h) h=450;
	if ((version>=4.0)&&(!opera)) {
		l=(screen.width)?(screen.width-w)/2:0;
		t=(screen.height)?(screen.height-h)/2:0;
	}
	var p=window.open("http://www.sign-interactive.de/demos/floratio/seiten/anfahrt.php?filename="+escape(filename)+"&text="+escape(text), "anfahrt", "toolbar=no,scrollbars=auto,location=no,directories=no,status=no,menubar=no,resizable=no,width="+w+",height="+h+",left="+l+",top="+t);
	if (p) {p.opener=self;p.focus();}
}
