<!--
function showFlyer(url) {
	var intWidth = 668;
	var intLeft = ((screen.availWidth-intWidth)/2);
	var fenster = window.open(url, "fentster1", "width="+intWidth+",height="+screen.availheight+",left="+intLeft+",location=no,resizeable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,top=0");
	if(fenster) fenster.focus();
	return false;
}
function showTab(Ident) {
	document.getElementById('tabAnfrage'+Ident).style.display = 'block';
	document.getElementById('trAnfrage'+Ident).style.display  = 'block';
}
function showSub(Ident,Left,Width) {
	if(Ident=="1672"){
		document.getElementById('aktuelles').src='images/construct/button_aktuelles_active.gif';	
	}
	if(Ident=="1673"){
		document.getElementById('information').src='images/construct/button_information_active.gif';
	}
	
	document.getElementById('divSub'+Ident).style.display = 'block';
	if(Left!=null) {
		document.getElementById('divSub'+Ident).style.left = Left+'px';
	}
	if(Width!=null) {
		document.getElementById('divSub'+Ident).style.width = Width+'px';
	}
}
function hideSub(Ident) {
	document.getElementById('divSub'+Ident).style.display = 'none';
	if(Ident=="1672"){
		document.getElementById('aktuelles').src='images/construct/button_aktuelles_inactive.gif';
	}
	if(Ident=="1673"){
		document.getElementById('information').src='images/construct/button_information_inactive.gif';
	}
}

function showAktuelles() {
document.getElementById('aktuelles').src='images/construct/button_aktuelles_active.gif';
showSub('1672','75','94');	
}
function hideAktuelles() {
document.getElementById('aktuelles').src='images/construct/button_aktuelles_inactive.gif';
hideSub('1672');	
}

function showInformation() {
document.getElementById('information').src='images/construct/button_information_active.gif';
showSub('1673','169','155');	
}
function hideInformation() {
document.getElementById('information').src='images/construct/button_information_inactive.gif';
hideSub('1673');	
}
function showBody(DIV) {
	document.getElementById(DIV).style.display = 'block';
}
function hideBody(DIV) {
	document.getElementById(DIV).style.display = 'block';
}
function hideBody2() {
	document.getElementById('divBodyHide').src = 'http://10.0.0.170/record/current.jpg?rand='+Math.floor(Math.random()*1000000);
}
function showFoto(DIV,IMG,ID,WIDTH,URL) {
	var intTop =  (document.body.parentNode.scrollTop)+200;
	var intLeft = ((screen.availWidth-WIDTH)/2);
	//var intLeft = ((980-WIDTH)/2)+140;
	document.getElementById(DIV).style.display = 'block';
	document.getElementById(DIV).style.top     = intTop+'px';
	document.getElementById(DIV).style.left    = intLeft+'px';
	document.getElementById(IMG).src = URL+ID;
}
function hideFoto(DIV,IMG) {
	document.getElementById(DIV).style.display = 'none';
	document.getElementById(IMG).src = 'images/active/iEmpty.gif';
}
function showImage(DIV,IMG,ID,WIDTH) {
	var intTop =  document.body.parentNode.scrollTop+120;
	var intLeft = ((screen.availWidth-WIDTH)/2);
	document.getElementById(DIV).style.display = 'block';
	document.getElementById(DIV).style.top     = intTop+'px';
	document.getElementById(DIV).style.left    = intLeft+'px';
	document.getElementById(IMG).src = 'images/active/structurecontentbig.php?Ident='+ID;
}
function PW_btnOver(Button) { //v1.00
	document.getElementById(Button+'N').style.display = 'none';
	document.getElementById(Button+'O').style.display = 'block';
}
function PW_btnOut(Button) { //v1.00
	document.getElementById(Button+'O').style.display = 'none';
	document.getElementById(Button+'N').style.display = 'block';
}
function PW_divBlock(Ident,Show) {
	if (Show) {
		document.getElementById('divBlock'+Ident+'S').style.display = 'none';
		document.getElementById('divBlock'+Ident+'H').style.display = 'block';
	} else {
		document.getElementById('divBlock'+Ident+'S').style.display = 'block';
		document.getElementById('divBlock'+Ident+'H').style.display = 'none';
	}
}
function PW_popWindow(URL,Width,Height) { //v1.00
	var intWidth,intHeight,intLeft,intTop;
	intWidth  = Width;
	intHeight = Height;
	intLeft   = (screen.width / 2) - (intWidth / 2);
	intTop    = (screen.height / 2) - (intHeight / 2);
	window.open(URL,'newWindow','scrollbars=no,width='+intWidth+',height='+intHeight+',left='+intLeft+',top='+intTop);
}
function PW_fldClear(Field,Standard) {
	if (document.getElementById(Field).value==Standard) {
		document.getElementById(Field).value = '';
	}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v5.00
  var i,p,q,nt,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) {
				nt = (args[i+1]=='' ? val.name : args[i+1]);
		if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@'); p1=val.indexOf('.');
        if ((p<1 || p==(val.length-1)) || (p1<1 || p1==(val.length-1))) errors+='- '+nt+' muss eine gültige Adresse beinhalten!\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nt+' muss eine Zahl beinhalten!\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nt+' muss eine Zahl zwischen '+min+' und '+max+' beinhalten!\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nt+' muss angegeben werden!\n'; }
  } if (errors) alert('Folgende Fehler sind aufgetreten:\n\n'+errors);
  document.MM_returnValue = (errors == '');
}
//Example: preloadImages('file.gif', 'http://www.x.com/y.gif');
function preloadImages()
{
  if(document.images)
  {
    if(!document.imageArray) document.imageArray = new Array();
    var i,j = document.imageArray.length, args = preloadImages.arguments;
    for(i=0; i<args.length; i++)
    {
      if (args[i].indexOf("#")!=0)
      {
        document.imageArray[j] = new Image;
        document.imageArray[j++].src = args[i];
      }
    }
  }
}
//-->
