<!--
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_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=yes,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('@');
        if (p<1 || p==(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 == '');
}
var currentTimer;
		var currentMenu;

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function openNewsletter() {
	if (Newsletter.radNewsletter[0].checked) { document.URL = 'newsletter.php?Action=Eintragen&Site=1&Color=993400&Email='+Newsletter.Email.value; }
	if (Newsletter.radNewsletter[1].checked) { document.URL = 'newsletter.php?Action=Austragen&Site=1&Color=993400&Email='+Newsletter.Email.value; }
}
function PW_imgHide(imgName) { //v1.00
	document.getElementById(imgName).style.visibility = 'hidden';
}
function PW_imgShow(imgName) { //v1.00
	document.getElementById(imgName).style.visibility = 'visible';
}
function hasDOM() {
	return ( document.implementation && document.implementation.hasFeature('HTML','') );
}
function getObject(id) {
	if ( hasDOM() )          { return document.getElementById(id); }
	else if ( document.all )    { return document.all[id]; }
	else if ( document.layers )	{ return document.layers[id]; }
	return null;
}
function hideObject(obj)	{
	if ( obj.style ) { obj = obj.style; }
	obj.visibility = 'hidden';
}
function showObject(obj)	{
	if ( obj.style ) { obj = obj.style; }
	obj.visibility = 'visible';
}
function isObjectVisible(obj) {
	if ( obj.style ) { obj = obj.style; }
	return (obj.visibility == 'visible');
}
function pointInObject(x, y, obj) {
	if ( obj.style ) { obj = obj.style; }
	return x >= obj.left && x <= obj.left + obj.width && y >= obj.top && y <= obj.top + obj.height;
}
function registerMenu(menu, parent) {
	if ( document.layers ) {
		objPopup  = getObject(menu);
		objParent = getObject(parent);
		objPopup.parent = objParent;
		objPopup.onMouseOver = popupMouseOver;
		objPopup.onMouseOut = popupMouseOut;
	}
}
function hideMenu(menu) {
	hideObject(getObject(menu));
	window.currentMenu = null;
}
function ClickValue(value) {
	strValue  = getObject(value);
	showObject(strValue);
	}
function parentMouseOver(evt, menu, parent) {
	objPopup  = getObject(menu);
	objParent = getObject(parent);
	if ( window.currentMenu && window.currentMenu != objPopup ) {
		hideObject(window.currentMenu);
	}
	window.clearTimeout(currentTimer);
	window.currentMenu = objPopup;
	if ( ! isObjectVisible(objPopup) ) {
		showObject(objPopup);
	}
	return true;
}
function parentMouseOut(evt, menu, parent) {
	objPopup  = getObject(menu);
	objParent = getObject(parent);
	window.currentTimer = window.setTimeout("hideMenu('" + menu + "')", 60000);
	return true;
}
function parentMouseOverNetscape(evt, menu, parent) {
	if ( document.layers) {
		registerMenu(menu, parent);
		return parentMouseOver(evt, menu, parent);
	}
	return false;
}
function parentMouseOutNetscape(evt, menu, parent) {
	if ( document.layers) {
		return parentMouseOut(evt, menu, parent);
	}
	return false;
}
function popupMouseOver(evt, menu, parent) {
	if ( ! evt ) evt = window.event;
	if ( document.layers ) {
		objPopup = evt.target;
		objParent = objPopup.parent;
	}
	else {
		objPopup  = getObject(menu);
		objParent = getObject(parent);
	}
	window.clearTimeout(window.currentTimer);
	window.currentMenu = objPopup;
	return true;
}
function popupMouseOut(evt, menu, parent) {
	if ( ! evt ) evt = window.event;
	if ( document.layers ) {
		objPopup = evt.target;
		objParent = objPopup.parent;
	}
	else {
		objPopup  = getObject(menu);
		objParent = getObject(parent);
	}
	window.currentTimer = window.setTimeout("hideMenu('" + objPopup.id + "')", 5000);
	return true;
}


// Define vars
var strCurrent = '';
// Define functions
function HN_deleteBack(Point1,Point2) {
	strCurrent1 = Point1;
	strCurrent2 = Point2;
	document.getElementById(strCurrent1).style.background = 'none';
	document.getElementById(strCurrent2).style.background = 'none';
}
function HN_changeBack(Point) {
	strCurrent = Point;
	document.getElementById(strCurrent).style.background = 'url(../images/aufbau/imgHeadNaviArrow.jpg) center top no-repeat';
}
function PW_showFlyout(Flyout,Top) {
	var strBodyWidth;
	if (strCurrent!=Flyout) { PW_hideFlyout(); }
	strCurrent = Flyout;
	strBodyWidth = ((document.body.clientWidth - 535) / 2);
	document.getElementById(strCurrent).style.display = 'block';
	document.getElementById(strCurrent).style.left = strBodyWidth;
	document.getElementById(strCurrent).style.top = Top;
	document.getElementById('divSubsKill').style.left = strBodyWidth;
	document.getElementById('divSubsKill').style.top = 167;
	document.getElementById('divSubsKill').style.display = 'block';
}
function PW_showFlyout2(Flyout,Top) {
	if (strCurrent!=Flyout) { PW_hideFlyout(); }
}
function PW_hideFlyout() {
	if (strCurrent!='') {
		document.getElementById(strCurrent).style.display = 'none';
		document.getElementById('divSubsKill').style.display = 'none';
	}
}
//-->
