// Subnavigation
function openWindow(pfad,name,breite,hoehe,prop){
  var  diffx = 100;
  xpos=130;
  xpos1=xpos;
  if(document.all)
  xposend=147+((583-breite)/2)
  else
  xposend=150+((620-breite)/2);
  ypos=(screen.height-hoehe)/2;
  prop+=(prop!='')?',':'';
  prop+=',left='+xpos+',top='+ypos;
  F1=window.open(pfad,name,prop+((prop!='')?',':'')+'width='+breite+',height='+hoehe);

  while (xpos1<(xposend-1)){
    xpos2=xpos1+((xposend-xpos1)/10);
    F1.moveTo(xpos2,ypos);
    F1.focus();
    xpos1=xpos2;
  }
    F1.focus();
}

function MM_jumpMenu(target,selObj,restore){ 
	location.href=target+'?region='+selObj.options[selObj.selectedIndex].value;
}


function show_impressum(item) {
items=new Array('impressum','umsetzung','datenschutz','copyright','disclaimer');

for(i=0;i<items.length;i++) {
	if(item==items[i]) { 
		document.getElementById(item).style.visibility='visible';
	} else {
		document.getElementById(items[i]).style.visibility='hidden';
	}
}
}


function chkPLZ(item) {
var Ergebnis = item.match(/\d\d\d\d\d/)
if(Ergebnis==null) {
	alert('Die Postleitzahl ' + item + ' ist ungültig. ');
		return false;
	} else {
		return true;
	}
}