function fensterAuf(url,nr,zahl){
	var win = null;
	var w = "720";
	var h = "700";
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	Posi = (LeftPosition-100);
	Lefpo = (Posi+zahl);
	if(screen.height<=700){
		h = "550";
	}
	settings ='height='+h+',width='+w+',top=0,left='+Lefpo+',scrollbars=yes,menubar=no,location=no,toolbar=no'
	win = window.open(url,nr,settings);
	if(win.window.focus){
		win.window.focus();
	}
}
function fensterAuf2(url,nr,zahl){
	var win = null;
	var w2 = "330";
	var h2 = "330";
	LeftPosition = (screen.width) ? (screen.width-w2)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h2)/2 : 0;
	Posi = (LeftPosition-100);
	Lefpo = (Posi+zahl);
	settings ='height='+h2+',width='+w2+',top='+TopPosition+',left='+Lefpo+',scrollbars=yes,menubar=no,location=no,toolbar=no'
	win = window.open(url,nr,settings);
	if(win.window.focus){
		win.window.focus();
	}
}
// Custom Fenster
function fensterAufC(url,nr,zahl,width,height){
	var win = null;
	var w2 = width;
	var h2 = height;
	LeftPosition = (screen.width) ? (screen.width-w2)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h2)/2 : 0;
	Posi = (LeftPosition-100);
	Lefpo = (Posi+zahl);
	settings ='height='+h2+',width='+w2+',top='+TopPosition+',left='+Lefpo+',scrollbars=yes,menubar=no,location=no,toolbar=no'
	win = window.open(url,nr,settings);
	if(win.window.focus){
		win.window.focus();
	}
}
function karte() {
	window.open('karte.html','karte','width=664,height=410,menubar=no,scrollbars=no');
}

function weg() {
	window.open('weg.html','weg','width=580,height=350,menubar=no,scrollbars=no');
}
function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}