<!--
var optwin;
function optWindow(url)
{
	if (!optwin || optwin.closed) 
	{
		optwin = window.open(url,"benutzeronline","HEIGHT=520,WIDTH=730,scrollbars=no");
	}
	else 
	{
		optwin.focus();
	}
}function PW_btnOver(Button) { //v1.00
	document.getElementById(Button+'N').style.display = 'none';
	document.getElementById(Button+'O').style.display = 'inline';
}
function PW_btnOut(Button) { //v1.00
	document.getElementById(Button+'O').style.display = 'none';
	document.getElementById(Button+'N').style.display = 'inline';
}
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 PW_tglDisplay(strArea) {
	if (document.getElementById(strArea+'H').style.display=='block') {
		document.getElementById(strArea+'H').style.display = 'none';
		document.getElementById(strArea+'S').style.display = 'block';
	} else {
		document.getElementById(strArea+'H').style.display = 'block';
		document.getElementById(strArea+'S').style.display = 'none';
	}
}
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 == '');
}
//-->
