function UnderConstruction() {alert("Dieser Portal-Bereich ist noch nicht freigegeben!\n\nBitte nutzen Sie bei Fragen unsere Kontaktseite."); return;}

function DisplayWindow(cURL,nWidth,nHeight,cName,lHistory) {WindowHandle = window.open(cURL,cName,'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+nWidth+',height='+nHeight+',top=10,left=10',lHistory); WindowHandle.focus(); return;}

function TestOfDigit(cValue) {
  for(i = 0; i < cValue.length;++i) {
    if(cValue.charAt(i) < "0" || cValue.charAt(i) > "9") {
      if(cValue.charAt(i) != " ") {
        return false;
      }
    }
  }
  return true
}

function TestFormLogIn(oForm){
  var oFocus = oForm.ActID;
  var cMessage = "";
  if (oForm.ActID.value == "") {
    oFocus = oForm.ActID;
    cMessage = "- Ihre ActID\n";
  }
  //if (oForm.ActKey.value == "") {
    //  if (cMessage == "") {oFocus = oForm.ActKey;}
    //  cMessage = cMessage + "- Ihren ActKey\n";
  //}
  if (cMessage != "") {
    alert("Bitte kontrollieren Sie folgende Eingaben:\n\n" + cMessage);
    oFocus.focus();
    return false;
  }
  return true;
}

function TestFormKontakt(oForm){
  var oFocus = oForm.Mitteilung;
  var cMessage = "";
  if (oForm.Name.value == "") {
    oFocus = oForm.Name;
    cMessage = "- Ihren Namen\n";
  }
  if (oForm.Telefon.value == "" || TestOfDigit(oForm.Telefon.value) == false) {
    if (cMessage == "") {oFocus = oForm.Telefon;}
    cMessage = cMessage + "- Ihre komplette Telefonnummer (Bitte nur Ziffern)\n";
  }
  if (cMessage != "") {
    alert("Zur Bearbeitung Ihrer Anfrage sind mindestens die folgenden Daten anzugeben:\n\n" + cMessage);
    oFocus.focus();
    return false;
  }
  return true;
}