/* -------------------------------------------------------------------
   Formularcheck von Holger Eybe - v.1.0
   (c) 2010 www.holger-eybe.de
   contact: info@holger-eybe.de
  -------------------------------------------------------------------- */
        var Pfad_mmGrafiken = "mmfunktionen/";
        var Pfad_formGrafiken = "formfunktionen/";
        var mindestArtikelanzahl = 5;
        var stichwanzahl = 10;
        var aktuellerDatensatz = 1;
        var ersteraDFehler = 0;
        var aDBasis = 0;
        var aDRaster = 0;
        var aDfehlerArray = new Array(40);
        for (var i = 0; i < aDfehlerArray.length; ++i)
        {
          aDfehlerArray[i] = new Array(25);
          for (var j = 0; j < 25; ++j)
          {
            aDfehlerArray[i] [j] = 0;
          }
        }

        var maxBeschr = 36;
        var maxStLaenge = 31;
        var maxNewsText = 1000;
        var fehlergefunden = false;
        var AGBakzeptiert = false;
        var p_checkoff=new Image(); 
        var p_checkon=new Image();
        var p_fehler=new Image(); 
        var p_okay=new Image();
        var li_text="";
        var strvorschau="a";
        var w2;
//        var AudioVideoArt = 1;
        p_checkoff.src = Pfad_formGrafiken + "checkoff.gif"; 
        p_checkon.src = Pfad_formGrafiken + "checkon.gif";
        p_fehler.src = Pfad_formGrafiken + "pfeil.gif"; 
        p_okay.src = Pfad_formGrafiken + "keinpfeil.gif";

//        function SetzeCookie(pOrganisation,pInternet,pVorname,pName,pStrasse,pNr,pPLZ,pOrt,pTelefon,pEmail)
//        {
//          var zeit = new Date();
//          zeit.setTime(zeit.getTime() + (12*30*24*60*60*1000));
//          document.cookie = (pOrganisation + "|" + pInternet + "|" + pVorname + "|" + pName + "|" + pStrasse + "|" + pNr + "|" + pPLZ + "|" + pOrt + "|" + pTelefon + "|" + pEmail + "|; expires=" + zeit.toGMTString());
//        }

        function ListeSemtyp()
        { 
          for(i=1; i<=semtyp_eintraganzahl; ++i)
          {
            li_text = "<option value=" + i + ">" + semtyp_eintr[i-1] + "</option>";
            document.write(li_text);
          }
        }

        function SemtypAuswahl(pfnr,s,lnr) 
        { 
          slnr = "semtyp"+lnr;
          slnrzst = "semtyp"+lnr+"zst";
                   
          if (s.options[s.selectedIndex].value > 1)
          {
            for (i=0; i<document.azf.length; i++)
            { 
              if (document.azf[i].name == slnr)
              {
                document.azf[i].value = deformatUml(semtyp_eintr[s.options[s.selectedIndex].value - 1]); 
              } 
              if (document.azf[i].name == slnrzst)
              {
                document.azf[i].value = deformatUml(semtyp_zeitst[s.options[s.selectedIndex].value - 1]); 
              } 
            }
          }
          else
          {
            for (i=0; i<document.azf.length; i++)
            { 
              if (document.azf[i].name == slnr)
              {
                document.azf[i].value = ""; 
              } 
            }
          }
          okay(pfnr);
        }

        function ListeSemart()
        { 
          for(i=1; i<=semart_eintraganzahl; ++i)
          {
            li_text = "<option value=" + i + ">" + semart_eintr[i-1] + "</option>";
            document.write(li_text);
          }
        }

        function SemartAuswahl(pfnr,s,lnr) 
        { 
          slnr = "semart"+lnr;
          slnrzst = "semart"+lnr+"zst";
          
          if (s.options[s.selectedIndex].value > 1)
          {
            for (i=0; i<document.azf.length; i++)
            { 
              if (document.azf[i].name == slnr)
              {
                document.azf[i].value = deformatUml(semart_eintr[s.options[s.selectedIndex].value - 1]); 
              } 
              if (document.azf[i].name == slnrzst)
              {
                document.azf[i].value = deformatUml(semart_zeitst[s.options[s.selectedIndex].value - 1]); 
              } 
            }
          }
          else
          {
            for (i=0; i<document.azf.length; i++)
            { 
              if (document.azf[i].name ==slnr)
              {
                document.azf[i].value = ""; 
              } 
            }
          }
          okay(pfnr);
        }

        function ListeSemort()
        { 
          for(i=1; i<=semort_eintraganzahl; ++i)
          {
            li_text = "<option value=" + i + ">" + semort_eintr[i-1] + "</option>";
            document.write(li_text);
          }
        }

        function SemortAuswahl(pfnr,s) 
        { 
          if (s.options[s.selectedIndex].value > 1)
          {
            for (i=0; i<document.azf.length; i++)
            { 
              if (document.azf[i].name == ("semort"))
              {
                document.azf[i].value = deformatUml(semort_eintr[s.options[s.selectedIndex].value - 1]); 
              } 
              if (document.azf[i].name == ("semortzst"))
              {
                document.azf[i].value = deformatUml(semort_zeitst[s.options[s.selectedIndex].value - 1]); 
              } 
            }
          }
          else
          {
            for (i=0; i<document.azf.length; i++)
            { 
              if (document.azf[i].name == ("semort"))
              {
                document.azf[i].value = ""; 
              } 
            }
          }
          okay(pfnr);
        }

        function ListeSemlei()
        { 
          for(i=1; i<=semlei_eintraganzahl; ++i)
          {
            li_text = "<option value=" + i + ">" + semlei_eintr[i-1] + "</option>";
            document.write(li_text);
          }
        }

        function SemleiAuswahl(pfnr,s) 
        { 
          if (s.options[s.selectedIndex].value > 1)
          {
            for (i=0; i<document.azf.length; i++)
            { 
              if (document.azf[i].name == ("semlei"))
              {
                document.azf[i].value = deformatUml(semlei_eintr[s.options[s.selectedIndex].value - 1]); 
              } 
              if (document.azf[i].name == ("semleizst"))
              {
                document.azf[i].value = deformatUml(semlei_zeitst[s.options[s.selectedIndex].value - 1]); 
              } 
            }
          }
          else
          {
            for (i=0; i<document.azf.length; i++)
            { 
              if (document.azf[i].name == ("semlei"))
              {
                document.azf[i].value = ""; 
              } 
            }
          }
          okay(pfnr);
        }

        function ListeJobRubrik()
        { 
          for(i=1; i<=jrl_eintraganzahl; ++i)
          {
            li_text = "<option value=" + i + ">" + jrl_eintr[i-1] + "</option>";
            document.write(li_text);
          }
        }
        function ListeJobArt()
        { 
          for(i=1; i<=jal_eintraganzahl; ++i)
          {
            li_text = "<option value=" + i + ">" + jal_eintr[i-1] + "</option>";
            document.write(li_text);
          }
        }
        function ListeStichw()
        { 
          for(i=1; i<=stl_eintraganzahl; ++i)
          {
            li_text = "<option value=" + i + ">" + stl_eintr[i-1] + "</option>";
            document.write(li_text);
          }
        }
        function WaehleStichw(sindex1,sindex2,sindex3,sindex4,sindex5,sindex6,sindex7,sindex8,sindex9,sindex10)
        { 
          document.azf.stwauswahl_1.selectedIndex = sindex1;
          document.azf.stwauswahl_2.selectedIndex = sindex2;
          document.azf.stwauswahl_3.selectedIndex = sindex3;
          document.azf.stwauswahl_4.selectedIndex = sindex4;
          document.azf.stwauswahl_5.selectedIndex = sindex5;
          document.azf.stwauswahl_6.selectedIndex = sindex6;
          document.azf.stwauswahl_7.selectedIndex = sindex7;
          document.azf.stwauswahl_8.selectedIndex = sindex8;
          document.azf.stwauswahl_9.selectedIndex = sindex9;
          document.azf.stwauswahl_10.selectedIndex = sindex10;
        }
        function ListeVeranstArt()
        { 
          for(i=1; i<=val_eintraganzahl; ++i)
          {
            li_text = "<option value=" + i + ">" + val_eintr[i-1] + "</option>";
            document.write(li_text);
          }
        }
        function WaehleVeranstArt(sindex)
        { 
          document.azf.Veranstart.selectedIndex = sindex;
        }
        function ListeOrt()
        { 
          for(i=1; i<=ortl_eintraganzahl; ++i)
          {
            li_text = "<option value=" + i + ">" + ortl_eintr[i-1] + "</option>";
            document.write(li_text);
          }
        }
        function WaehleVeranstOrt(sindex)
        { 
          document.azf.Veranstort.selectedIndex = sindex;
        }
        function WaehleNachrOrt(sindex)
        { 
          document.azf.Nachrort.selectedIndex = sindex;
        }
        function WaehleJobrubr(sindex)
        { 
          document.azf.Jobrubr.selectedIndex = sindex;
        }
        function WaehleArbeitsOrt(sindex)
        { 
          document.azf.Arbort.selectedIndex = sindex;
        }
        function WaehleJobArt(sindex)
        { 
          document.azf.Jobart.selectedIndex = sindex;
        }
        function ListeStandardbild()
        { 
          for(i=1; i<=stbl_eintraganzahl; ++i)
          {
            li_text = "<option value=" + i + ">" + stbl_eintr[i-1] + "</option>";
            document.write(li_text);
          }
        }
        function WaehleStandardbild(sindex)
        { 
          document.azf.Standardbild.selectedIndex = sindex;
        }
        function JobRubrikAuswahl(s) 
        { 
          if (s.options[s.selectedIndex].value > 1)
          {
            document.azf.Rubrik.value = deformatUml(jrl_eintr[s.options[s.selectedIndex].value - 1]);
          }
          else
          {
            document.azf.Rubrik.value = "";
          }
          okay(12);
        }
        function StichwAuswahl(pfnr,nr,s) 
        { 
          if (s.options[s.selectedIndex].value > 1)
          {
            for (i=0; i<document.azf.length; i++)
            { 
              if (document.azf[i].name == ("stichwort_" + nr))
              {
                document.azf[i].value = deformatUml(stl_eintr[s.options[s.selectedIndex].value - 1]); 
              } 
            }
          }
          else
          {
            for (i=0; i<document.azf.length; i++)
            { 
              if (document.azf[i].name == ("stichwort_" + nr))
              {
                document.azf[i].value = ""; 
              } 
            }
          }
          okay(pfnr);
        }
        function StichwArtAuswahl(pfnr,nr,s) 
        { 
          if (s.options[s.selectedIndex].value > 1)
          {
            for (i=0; i<document.anzeigef.length; i++)
            { 
              if (document.anzeigef[i].name == ("stichwort1_" + nr))
              {
                document.anzeigef[i].value = deformatUml(stl_eintr[s.options[s.selectedIndex].value - 1]); 
              } 
            }
          }
          else
          {
            for (i=0; i<document.anzeigef.length; i++)
            { 
              if (document.anzeigef[i].name == ("stichwort1_" + nr))
              {
                document.anzeigef[i].value = ""; 
              } 
            }
          }
          aDokay(pfnr);
        }
        function VeranstArtAuswahl(s,sz) 
        { 
          if (s.options[s.selectedIndex].value > 1)
          {
            sz.value = deformatUml(val_eintr[s.options[s.selectedIndex].value - 1]);
          }
          else
          {
            sz.value = "";
          }
          okay(16)
        }

        function OrtAuswahl(s,sz) 
        { 
          if (s.options[s.selectedIndex].value > 1)
          {
            sz.value = deformatUml(ortl_eintr[s.options[s.selectedIndex].value - 1]);
          }
          else
          {
            sz.value = "";
          }
          okay(15)
        }

//    ------------------------------------------------------
//    Deformatiere für Umlaute 
//    ------------------------------------------------------
      function deformatUml(str)
      {
        var z = 0;
        var strneu = "";
        var zeichen = "";
        var zeich = "";
        for(z = 0; z < str.length;z++)
        {
          zeichen = str.substr(z,1);
          zeich = str.substr(z,6);
          if(zeich == "&Auml;")
          {
            strneu = strneu + String.fromCharCode(196);
            z = z + 5;
          }
          else
          {
            if(zeich == "&auml;")
            {
              strneu = strneu + String.fromCharCode(228);
              z = z + 5;
            }
            else
            {
              if(zeich == "&Ouml;")
              {
                strneu = strneu + String.fromCharCode(214);
                z = z + 5;
              }
              else
              {
                if(zeich == "&ouml;")
                {
                  strneu = strneu + String.fromCharCode(246);
                  z = z + 5;
                }
                else
                {
                  if(zeich == "&Uuml;")
                  {
                    strneu = strneu + String.fromCharCode(220);
                    z = z + 5;
                  }
                  else
                  {
                    if(zeich == "&uuml;")
                    {
                      strneu = strneu + String.fromCharCode(252);
                      z = z + 5;
                    }
                    else
                    {
                      zeich = str.substr(z,7);
                      if(zeich == "&szlig;")
                      {
                        strneu = strneu + String.fromCharCode(223);
                        z = z + 6;
                      }
                      else
                      {
                        strneu = strneu + zeichen;
                      }
                    }
                  }
                }
              }
            }
          }
        }
        return(strneu);
      }



        function PlusHttp(fobj) 
        { 
          if (fobj.value.substr(0,httpwwwstr.length) != httpwwwstr)
          {
            if (fobj.value.substr(0,wwwstr.length) == wwwstr)
            {
               fobj.value = httpstr + fobj.value; 
            }
            else
            {
              fobj.value = httpwwwstr + fobj.value;
            } 
          }
        }

        function PlusHomepage(fobj) 
        { 
          if (fobj.value.substr(0,document.azf.Internet.value.length) != document.azf.Internet.value)
          {
            fobj.value = document.azf.Internet.value + "/" + fobj.value;
          }
        }

        function berechneADraster()
        {
          for(i=1;i < document.forms[1].length; ++i)
          {
            if(document.forms[1].elements[i].name == "titel1")
            {
              aDBasis = i;
            }
            if(document.forms[1].elements[i].name == "titel2")
            {
              aDRaster = i - aDBasis;
            }
          }
        }

        function schreibeArtikeldaten(d)
        {
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster)].value = document.anzeigef.titel1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 1].value = document.anzeigef.preis1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 2].value = document.anzeigef.beschra1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 3].value = document.anzeigef.beschrb1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 4].value = document.anzeigef.arttext1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 5].checked = document.anzeigef.EigBildJa1.checked; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 6].value = document.anzeigef.Standardbild1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 7].checked = document.anzeigef.BildArt1.checked; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 8].value = document.anzeigef.BildName1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 9].value = document.anzeigef.BildUrl1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 10].checked = document.anzeigef.AnimJa1.checked; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 11].checked = document.anzeigef.AnimArt1.checked; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 12].value = document.anzeigef.AnimName1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 13].value = document.anzeigef.AnimUrl1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 14].checked = document.anzeigef.AnimEinz1.checked; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 15].checked = document.anzeigef.AnimWied1.checked; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 16].value = document.anzeigef.AnimAnz1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 17].value = document.anzeigef.AnimFreq1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 18].checked = document.anzeigef.SoundJa1.checked; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 19].checked = document.anzeigef.VideoJa1.checked; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 20].checked = document.anzeigef.SoundArt1.checked; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 21].value = document.anzeigef.SoundName1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 22].value = document.anzeigef.SoundUrl1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 23].value = document.anzeigef.SoundZeit1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 24].value = document.anzeigef.stichwort1_1.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 25].value = document.anzeigef.stichwort1_2.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 26].value = document.anzeigef.stichwort1_3.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 27].value = document.anzeigef.stichwort1_4.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 28].value = document.anzeigef.stichwort1_5.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 29].value = document.anzeigef.stichwort1_6.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 30].value = document.anzeigef.stichwort1_7.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 31].value = document.anzeigef.stichwort1_8.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 32].value = document.anzeigef.stichwort1_9.value; 
          document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 33].value = document.anzeigef.stichwort1_10.value; 
        }

        function leseArtikeldaten(d)
        {
          document.anzeigef.titel1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster)].value; 
          document.anzeigef.preis1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 1].value; 
          document.anzeigef.beschra1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 2].value; 
          document.anzeigef.beschrb1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 3].value; 
          document.anzeigef.arttext1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 4].value; 
          document.anzeigef.EigBildJa1.checked = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 5].checked; 
          document.anzeigef.Standardbild1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 6].value; 
          document.anzeigef.BildArt1.checked = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 7].checked; 
          document.anzeigef.BildName1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 8].value; 
          document.anzeigef.BildUrl1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 9].value; 
          document.anzeigef.AnimJa1.checked = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 10].checked; 
          document.anzeigef.AnimArt1.checked = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 11].checked; 
          document.anzeigef.AnimName1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 12].value; 
          document.anzeigef.AnimUrl1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 13].value; 
          document.anzeigef.AnimEinz1.checked = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 14].checked; 
          document.anzeigef.AnimWied1.checked = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 15].checked; 
          document.anzeigef.AnimAnz1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 16].value; 
          document.anzeigef.AnimFreq1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 17].value; 
          document.anzeigef.SoundJa1.checked = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 18].checked; 
          document.anzeigef.VideoJa1.checked = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 19].checked; 
          document.anzeigef.SoundArt1.checked = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 20].checked; 
          document.anzeigef.SoundName1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 21].value; 
          document.anzeigef.SoundUrl1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 22].value; 
          document.anzeigef.SoundZeit1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 23].value; 
          document.anzeigef.stichwort1_1.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 24].value; 
          document.anzeigef.stichwort1_2.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 25].value; 
          document.anzeigef.stichwort1_3.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 26].value; 
          document.anzeigef.stichwort1_4.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 27].value; 
          document.anzeigef.stichwort1_5.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 28].value; 
          document.anzeigef.stichwort1_6.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 29].value; 
          document.anzeigef.stichwort1_7.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 30].value; 
          document.anzeigef.stichwort1_8.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 31].value; 
          document.anzeigef.stichwort1_9.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 32].value; 
          document.anzeigef.stichwort1_10.value = document.forms[1].elements[aDBasis + ((d - 1) * aDRaster) + 33].value; 
          var pfBasis = 0;
          for (i=0; i<document.images.length; i++)
          { 
            if (document.images[i].name == "pf40")
            {
              pfBasis = i;
            } 
          }
          if (pfBasis > 0)
          {
            for (i=0; i < 25; i++)
            {
              if (aDfehlerArray[(d - 1)] [i] == 1)
              {
                document.images[(pfBasis + i)].src = p_fehler.src; 
              }
              else
              {
                document.images[(pfBasis + i)].src = p_okay.src; 
              }
            }
          }
        }

        function vorgArtikel(n)
        {
          schreibeArtikeldaten(aktuellerDatensatz);
          if(aktuellerDatensatz >= (1 + n))
          {
            aktuellerDatensatz = aktuellerDatensatz - n;
            document.anzeigef.artnr.value = "  " + aktuellerDatensatz + "  ";
            leseArtikeldaten(aktuellerDatensatz);
          }
        }

        function nachfArtikel(n)
        { 
          schreibeArtikeldaten(aktuellerDatensatz);
          if(aktuellerDatensatz <= (40 - n))
          {
            aktuellerDatensatz = aktuellerDatensatz + n;
            document.anzeigef.artnr.value = "  " + aktuellerDatensatz + "  ";
            leseArtikeldaten(aktuellerDatensatz);
          }
        }

        function setzeArtikel(n)
        { 
          if((n >= 1) && (n <= 40))
          {
            aktuellerDatensatz = n;
            document.anzeigef.artnr.value = "  " + aktuellerDatensatz + "  ";
            leseArtikeldaten(aktuellerDatensatz);
          }
        }

        function AnmeldungvSwitch(f1obj,f2obj,f3obj,rs1)
        { 
          okay(rs1);
          if(f1obj.checked == true)
          {
            f1obj.checked = true;
            f2obj.checked = false;
            f3obj.checked = false;
          }
          else
          {
            f1obj.checked = false;
            f2obj.checked = false;
            f3obj.checked = false;
          } 
        }
        
        function OAnmeldungSwitch(cb,oa)
        { 
          if(cb.checked == true)
          {
           oa.value = "true";
          }
          else
          {
           oa.value = "false";
          } 
        }

        function BildSwitch(f1obj,f2obj,f3obj,rs1,rs2,rs3)
        { 
          var ihtext = "&nbsp;";
          okay(rs1);
          okay(rs2);
          okay(rs3);
          if(f1obj.checked == true)
          {
            f1obj.checked = true;
            f2obj.checked = false;
            f3obj.checked = false;
            if(f1obj.name == "StandardBildJa") 
            {
              ihtext = "<table class='formtab'><tr>" +
                       "<td class='formbez'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" +
                       "Standardbild:</td><td class='formular1'>" +
                       "<select size='1' name='Standardbild' onFocus='okay(23)'>";
              for(i=1; i<=stbl_eintraganzahl; ++i)
              {
                ihtext = ihtext + "<option value=" + i + ">" + stbl_eintr[i-1] + "</option>";
              }
              ihtext = ihtext + "</select></td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf23' alt=''></td>" +
                                "<td class='formbez'>&nbsp;</td><td class='formular1'>&nbsp;</td><td class='formfehler'>&nbsp;</td></tr></table>" +
                                "<input type='hidden' value='' name='StandardbildUrl'>" +
                                "<input type='hidden' value='' name='BildName'>" +
                                "<input type='hidden' value='' name='BildUrl'>";
              document.getElementById("formfotologo").innerHTML = ihtext;
            }
            if(f1obj.name == "UploadBildJa") 
            {
              ihtext = "<table class='formtab'><tr>" +
                       "<td class='formbez'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" +
                       "Dateiname:</td><td class='formular1Upload'>" +
                       "<input type='file' value='' name='BildName' size='44' accept='*' onFocus='okay(23)'>";
              ihtext = ihtext + "</td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf23' alt=''></td></tr></table>" +
                                "<input type='hidden' value='' name='StandardbildUrl'>" +
                                "<input type='hidden' value='' name='BildUrl'>" +
                                "maximale Dateigr&ouml;&szlig;e 90KB<br/>";
              document.getElementById("formfotologo").innerHTML = ihtext;
            }
            if(f1obj.name == "UrlBildJa") 
            {
              ihtext = "<table class='formtab'><tr>" +
                       "<td class='formbez'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" +
                       "URL:</td><td class='formular1Url'>" +
                       "<input type='text' value='' name='BildUrl' size='44' onFocus='okay(23)'>";
              ihtext = ihtext + "</td><td class='formular1'><input type='button' value='+ Homepage' name='BildUrlpi' onClick='PlusHomepage(BildUrl)'></td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf23' alt=''></td></tr></table>" +
                                "<input type='hidden' value='' name='StandardbildUrl'>" +
                                "<input type='hidden' value='' name='BildName'>" +
                                "Bitte kompletten Pfad angeben (z.B. 'http://www.meinedomain.de/bilder/logo.gif')<br/>";
              document.getElementById("formfotologo").innerHTML = ihtext;
            }
          }
          else
          {
            f1obj.checked = false;
            f2obj.checked = false;
            f3obj.checked = false;
            ihtext = "<input type='hidden' value='' name='StandardbildUrl'>" +
                     "<input type='hidden' value='' name='BildName'>" +
                     "<input type='hidden' value='' name='BildUrl'>";
            document.getElementById("formfotologo").innerHTML = ihtext;
          } 
        }
        

        function AnimSwitch(f1obj,f2obj,f3obj) 
//        function AnimSwitch(fcheckobj,fanzobj,ffreqobj,fwiedobj,rs1,rs2,t)
        { 
          var ihtext = "&nbsp;";
          if(f1obj.checked == true)
          {
            f1obj.checked = true;
            f2obj.checked = false;
            f3obj.checked = false;
            if(f1obj.name == "UploadAnimJa") 
            {
              ihtext = "<table class='formtab'><tr>" +
                       "<td class='formbez'>Dateiname:</td><td class='formular1Upload'>" +
                       "<input type='file' value='' name='AnimName' size='44' accept='*' onFocus='okay(24)'>";
              ihtext = ihtext + "</td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf24' alt=''></td></tr></table>" +
                                "<input type='hidden' value='' name='AnimUrl'>" +
                                "<input type='hidden' value='' name='AnimAnz'>" +
                                "<input type='hidden' value='' name='AnimFreq'>" +
                                "maximale Dateigr&ouml;&szlig;e 90KB<br/>";
              document.getElementById("formanimation").innerHTML = ihtext;
            }
            if(f1obj.name == "UrlAnimJa") 
            {
              ihtext = "<table class='formtab'><tr>" +
                       "<td class='formbez'>URL:</td><td class='formular1Url'>" +
                       "<input type='text' value='' name='AnimUrl' size='44' onFocus='okay(24)'>";
              ihtext = ihtext + "</td><td class='formular1'><input type='button' value='+ Homepage' name='AnimUrlpi' onClick='PlusHomepage(AnimUrl)'></td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf24' alt=''></td></tr></table>" +
                                "<input type='hidden' value='' name='AnimName'>" +
                                "<input type='hidden' value='' name='AnimAnz'>" +
                                "<input type='hidden' value='' name='AnimFreq'>" +
                                "Bitte kompletten Pfad angeben (z.B. 'http://www.meinedomain.de/bilder/animation.gif')<br/>";
              document.getElementById("formanimation").innerHTML = ihtext;
            }
            if(f1obj.name == "EinzAnimJa") 
            {
              ihtext = "<table class='formtab'><tr>" +
                       "<td class='formbez'>URL:</td><td class='formular1Url'>" +
                       "<input type='text' value='' name='AnimUrl' size='44' onFocus='okay(24)'>";
              ihtext = ihtext + "</td><td class='formular1'><input type='button' value='+ Homepage' name='AnimUrlpi' onClick='PlusHomepage(AnimUrl)'></td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf24' alt=''></td></tr>" +
                                "</table><table class='formtab'><tr><td class='formbez'>Anzahl Bilder:</td><td class='formular1'>" +
                                "<input type='text' value='' name='AnimAnz' size='5' onFocus='okay(25)'> 2 - 300</td>" + 
                                "<td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' name='pf25' alt=''></td>" + 
                                "<td class='formbez'>Umschaltzeit:</td><td class='formular1'>" +
                                "<input type='text' value='' name='AnimFreq' size='5' onFocus='okay(26)'> 100-5000 ms</td>" + 
                                "<td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf26' alt=''></td></tr>" +
                                "<tr><td class='formbez'>Wiederholung</td><td class='formular1'><input type='checkbox' value='' name='AnimWied' size='22'>" +
                                "</td><td class='formfehler'>&nbsp;</td><td class='formbez'>&nbsp;</td><td class='formular1'>&nbsp;</td><td class='formfehler'>&nbsp;</td></tr>" +
                                "</table><input type='hidden' value='' name='AnimName'>" +
                                "Bitte kompletten Pfad des ersten Bildes (z.B. 'http://www.meinedomain.de/bilder/<br/>" +
                                "sonne0.jpg'), Anzahl und Umschaltzeit angeben. Der angebebene Dateiname muss<br/> mit dem index 0 enden (z.B. 'sonne0,jpg'). Die weiteren Bilder m&uuml;ssen sich im selben<br/>Verzeichnis befinden und fortlaufend numeriert sein (z.B. 'sonne1.jpg', 'sonne2.jpg',...).<br/>";
              document.getElementById("formanimation").innerHTML = ihtext;
            }
          }
          else
          {
            f1obj.checked = false;
            f2obj.checked = false;
            f3obj.checked = false;
            ihtext = "<input type='hidden' value='' name='AnimUrl'>" +
                     "<input type='hidden' value='' name='AnimName'>" +
                     "<input type='hidden' value='' name='AnimAnz'>" +
                     "<input type='hidden' value='' name='AnimFreq'>";
            document.getElementById("formanimation").innerHTML = ihtext;
          } 
        }

        function SoundSwitch(f1obj,f2obj,f3obj,f4obj) 
        { 
          var ihtext = "&nbsp;";
          if(f1obj.checked == true)
          {
            f1obj.checked = true;
            f2obj.checked = false;
            f3obj.checked = false;
            f4obj.checked = false;
            if(f1obj.name == "UploadSoundJa") 
            {
              ihtext = "<table class='formtab'><tr>" +
                       "<td class='formbez'>Dateiname:</td><td class='formular1Upload'>" +
                       "<input type='file' value='' name='SoundName' size='44' accept='*' onFocus='okay(27)'>";
              ihtext = ihtext + "</td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf27' alt=''></td></tr></table>" +
                                "<table class='formtab'><tr><td class='formbez'>L&auml;nge in Sek.:</td><td class='formular1'><input type='text' value='' name='SoundZeit' size='22' onFocus='okay(28)'>" +			
                                "</td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf28' alt=''></td><td class='formbez'>&nbsp;" +
                                "</td><td class='formular1'>&nbsp;</td><td class='formfehler'>&nbsp;</td></tr></table>" +
                                "<input type='hidden' value='' name='SoundUrl'>" +
                                "maximale Dateigr&ouml;&szlig;e 900KB<br/>";
              document.getElementById("formsoundvideo").innerHTML = ihtext;
            }
            if(f1obj.name == "UrlSoundJa") 
            {
              ihtext = "<table class='formtab'><tr>" +
                       "<td class='formbez'>URL:</td><td class='formular1Url'>" +
                       "<input type='text' value='' name='SoundUrl' size='44' onFocus='okay(27)'>";
              ihtext = ihtext + "</td><td class='formular1'><input type='button' value='+ Homepage' name='SoundUrlpi' onClick='PlusHomepage(SoundUrl)'></td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf27' alt=''></td></tr></table>" +
                                "<table class='formtab'><tr><td class='formbez'>L&auml;nge in Sek.:</td><td class='formular1'><input type='text' value='' name='SoundZeit' size='22' onFocus='okay(28)'>" +			
                                "</td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf28' alt=''></td><td class='formbez'>&nbsp;" +
                                "</td><td class='formular1'>&nbsp;</td><td class='formfehler'>&nbsp;</td></tr></table>" +
                                "<input type='hidden' value='' name='SoundName'>" +
                                "Bitte kompletten Pfad angeben (z.B. 'http://www.meinedomain.de/sound/jingle.mp3')<br/>";
              document.getElementById("formsoundvideo").innerHTML = ihtext;
            }
            if(f1obj.name == "UploadVideoJa") 
            {
              ihtext = "<table class='formtab'><tr>" +
                       "<td class='formbez'>Dateiname:</td><td class='formular1Upload'>" +
                       "<input type='file' value='' name='SoundName' size='44' accept='*' onFocus='okay(27)'>";
              ihtext = ihtext + "</td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf27' alt=''></td></tr></table>" +
                                "<table class='formtab'><tr><td class='formbez'>L&auml;nge in Sek.:</td><td class='formular1'><input type='text' value='' name='SoundZeit' size='22' onFocus='okay(28)'>" +			
                                "</td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf28' alt=''></td><td class='formbez'>&nbsp;" +
                                "</td><td class='formular1'>&nbsp;</td><td class='formfehler'>&nbsp;</td></tr></table>" +
                                "<input type='hidden' value='' name='SoundUrl'>" +
                                "maximale Dateigr&ouml;&szlig;e 900KB<br/>";
              document.getElementById("formsoundvideo").innerHTML = ihtext;
            }
            if(f1obj.name == "UrlVideoJa") 
            {
              ihtext = "<table class='formtab'><tr>" +
                       "<td class='formbez'>URL:</td><td class='formular1Url'>" +
                       "<input type='text' value='' name='SoundUrl' size='44' onFocus='okay(27)'>";
              ihtext = ihtext + "</td><td class='formular1'><input type='button' value='+ Homepage' name='SoundUrlpi' onClick='PlusHomepage(SoundUrl)'></td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf27' alt=''></td></tr></table>" +
                                "<table class='formtab'><tr><td class='formbez'>L&auml;nge in Sek.:</td><td class='formular1'><input type='text' value='' name='SoundZeit' size='22' onFocus='okay(28)'>" +			
                                "</td><td class='formfehler'><img src='formfunktionen/keinpfeil.gif' border='0' title='' name='pf28' alt=''></td><td class='formbez'>&nbsp;" +
                                "</td><td class='formular1'>&nbsp;</td><td class='formfehler'>&nbsp;</td></tr></table>" +
                                "<input type='hidden' value='' name='SoundName'>" +
                                "Bitte kompletten Pfad angeben (z.B. 'http://www.meinedomain.de/filme/video.avi')<br/>";
              document.getElementById("formsoundvideo").innerHTML = ihtext;
            }
          }
          else
          {
            f1obj.checked = false;
            f2obj.checked = false;
            f3obj.checked = false;
            f4obj.checked = false;
            ihtext = "<input type='hidden' value='' name='SoundUrl'>" +
                     "<input type='hidden' value='' name='SoundName'>" +
                     "<input type='hidden' value='' name='Soundzeit'>";
            document.getElementById("formsoundvideo").innerHTML = ihtext;
          } 
        }

        function KopiereDaten(s,fo_typ) 
        { 
          if(fo_typ == t_veranstu)
          {
            if(s == 10)
            {
              if(document.azf.IchV.checked)
              {
                okay(10);
                if(document.azf.Organisation.value == "")
                {
                  document.azf.Veranstalter.value = document.azf.Vorname.value + " " + document.azf.Name.value;
                }
                else
                {
                  document.azf.Veranstalter.value = document.azf.Organisation.value;
                }
                document.azf.InternetV.value = document.azf.Internet.value;
                document.azf.Veranstalter.disabled = true;
                document.azf.InternetV.disabled = true;
              }
              else
              {
                document.azf.Veranstalter.disabled = false;
                document.azf.InternetV.disabled = false;
              }
            }
          }
        }

        function artikelNichtVerwendet(arti)
        {
          NichtVerwendet = true;
          if((document.forms[1].elements[aDBasis + (arti * aDRaster)].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 1].value != "") || 
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 2].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 3].value != "") || 
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 4].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 5].checked == true) ||
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 6].options[document.forms[1].elements[aDBasis + (arti * aDRaster) + 6].selectedIndex].value > 1) ||
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 8].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 8].value != "") || 
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 10].checked == true) ||
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 12].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 13].value != "") || 
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 14].checked == true) ||
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 15].checked == true) ||
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 16].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 17].value != "") || 
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 18].checked == true) ||
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 19].checked == true) ||
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 21].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 22].value != "") || 
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 23].value != "") ||
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value != "") || 
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value != "") || 
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value != "") || 
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value != "") || 
             (document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value != "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value != ""))
          {
            NichtVerwendet = false;
          }
          return(NichtVerwendet);
        }

        function InseratlisteButton(fkt,obj)
        {
          if(fkt == 0)
          {
            obj.Formart.value = "eintrdel";
          }
          if(fkt == 1)
          {
            obj.Formart.value = "eintrbearb";
          }
          if(fkt == 2)
          {
            obj.Formart.value = "eintrvorl";
          }
          if(fkt == 3)
          {
            obj.Formart.value = "everdel";
          }
          obj.submit();
        }

        function pruefeAnmFehler()
        {
          var t = "";
          t = document.azf.Organisation.value;
          if(t.length > 24)
          {
            fehler(0);
          }
          t = document.azf.Internet.value;
          if((t != "") && (gueltigeDomain(document.azf.Internet.value,"html") == false))
          {
            fehler(1);
          }
          t = document.azf.Vorname.value;
          if((t == "") || (t.length > 28))
          {
            fehler(2);
          }
          t = document.azf.Name.value;
          if((t == "") || (t.length > 28))
          {
            fehler(3);
          }
          t = document.azf.Strasse.value;
          if((t == "") || (t.length > 30))
          {
            fehler(4);
          }
          t = document.azf.Nr.value;
          if(t.length > 12)
          {
            fehler(5);
          }
          t = document.azf.PLZ.value;
          if((t == "") || (t == "00000") || (t.length != 5))
          {
            fehler(6);
          }
          else
          {
            a = t.length - 1;
            for(i=0; i<=a; ++i)
            {
              if((t.charAt(i)<"0") || (t.charAt(i)>"9"))
              {
                fehler(6);
              }
            }
          }
          t = document.azf.Ort.value;
          if((t == "") || (t.length > 30))
          {
            fehler(7);
          }
          t = document.azf.Telefon.value;
          if((t == "") || (t.length < 8) || (t.charAt(0)!="0") || (t.length > 25))
          {
            fehler(8);
          }
          else
          {
            a = t.length - 1;
            for(i=1; i<=a; ++i)
            {
              if(((t.charAt(i)<"0") || (t.charAt(i)>"9")) && (t.charAt(i)!="/") && (t.charAt(i)!=" "))
              {
                fehler(8);
              }
            }
          }
          t = document.azf.Email.value;
          if((t == "") || (gueltigeEmailadr(document.azf.Email.value) == false))
          {
            fehler(9);
          }
          t = document.azf.Benutzername.value;
          if((t.length > 24) || (t.length < 6))
          {
            fehler(10);
          }
          if((document.azf.Passwort.value.length > 24) || (document.azf.Passwied.value.length > 24) ||
             (document.azf.Passwort.value.length < 6) || (document.azf.Passwied.value.length < 6) ||
             (document.azf.Passwort.value != document.azf.Passwied.value))
          {
            fehler(11);
            fehler(12);
          }
          t = document.azf.Gebdatum.value;
          if((t == "") || (gueltigesGebDatum(t) == false))
          {
            fehler(13);
          }
          else
          {
            document.azf.Gebdatum.value = formatiereGeburtsDatum(document.azf.Gebdatum.value);
          }
        }

        function pruefeAnmForm()
        {
          fehlergefunden = false;
          var t = "";
          if(AGBakzeptiert == false)
          {
            fehler(31);
          }
          pruefeAnmFehler();
          if(! fehlergefunden)
          {
            document.azf.submit();
          }
          else
          {
            fehlerFenster(2);	
          }
        }

        function pruefeBenDatFehler()
        {
          var t = "";
          t = document.azf.Organisation.value;
          if(t.length > 24)
          {
            fehler(0);
          }
          t = document.azf.Internet.value;
          if((t != "") && (gueltigeDomain(document.azf.Internet.value,"html") == false))
          {
            fehler(1);
          }
          t = document.azf.Vorname.value;
          if((t == "") || (t.length > 28))
          {
            fehler(2);
          }
          t = document.azf.Name.value;
          if((t == "") || (t.length > 28))
          {
            fehler(3);
          }
          t = document.azf.Strasse.value;
          if((t == "") || (t.length > 30))
          {
            fehler(4);
          }
          t = document.azf.Nr.value;
          if(t.length > 12)
          {
            fehler(5);
          }
          t = document.azf.PLZ.value;
          if((t == "") || (t == "00000") || (t.length != 5))
          {
            fehler(6);
          }
          else
          {
            a = t.length - 1;
            for(i=0; i<=a; ++i)
            {
              if((t.charAt(i)<"0") || (t.charAt(i)>"9"))
              {
                fehler(6);
              }
            }
          }
          t = document.azf.Ort.value;
          if((t == "") || (t.length > 30))
          {
            fehler(7);
          }
          t = document.azf.Telefon.value;
          if((t == "") || (t.length < 8) || (t.charAt(0)!="0") || (t.length > 25))
          {
            fehler(8);
          }
          else
          {
            a = t.length - 1;
            for(i=1; i<=a; ++i)
            {
              if(((t.charAt(i)<"0") || (t.charAt(i)>"9")) && (t.charAt(i)!="/") && (t.charAt(i)!=" "))
              {
                fehler(8);
              }
            }
          }
          t = document.azf.Email.value;
          if((t == "") || (gueltigeEmailadr(document.azf.Email.value) == false))
          {
            fehler(9);
          }
          t = document.azf.Gebdatum.value;
          if((t == "") || (gueltigesGebDatum(t) == false))
          {
            fehler(13);
          }
          else
          {
            document.azf.Gebdatum.value = formatiereGeburtsDatum(document.azf.Gebdatum.value);
          }
        }

        function pruefeBenDatForm()
        {
          fehlergefunden = false;
          pruefeBenDatFehler();
          if(! fehlergefunden)
          {
            document.azf.submit();
          }
          else
          {
            fehlerFenster(2);	
          }
        }

        function pruefePWchFehler()
        {
          var t = "";
          t = document.azf.Passwalt.value;
          if((t.length > 24) || (t.length < 6) ||
             (document.azf.Passwort.value == document.azf.Passwalt.value) ||
             (document.azf.Passwied.value == document.azf.Passwalt.value))
          {
            fehler(10);
          }
          if((document.azf.Passwort.value.length > 24) || (document.azf.Passwied.value.length > 24) ||
             (document.azf.Passwort.value.length < 6) || (document.azf.Passwied.value.length < 6) ||
             (document.azf.Passwort.value != document.azf.Passwied.value) ||
             (document.azf.Passwort.value == document.azf.Passwalt.value))
          {
            fehler(11);
            fehler(12);
          }
        }

        function pruefePWchForm()
        {
          fehlergefunden = false;
          pruefePWchFehler();
          if(! fehlergefunden)
          {
            document.azf.submit();
          }
          else
          {
            fehlerFenster(4);	
          }
        }

        function bereinigeStichwort(stw)
        {
          var z = "";
          var vz = "";
          var stwzwi = stw;
          if(stwzwi != "")
          {
            stwzwi = stwzwi.toLowerCase();
          }
          var stwneu = "";
          for(i=0;i<stwzwi.length;i++)
          {
            vz = z;
            z = stwzwi.charAt(i); 
            if((z != " ") || ((stwneu != "") && (i < (stwzwi.length-1) && (stwzwi.charAt(i+1) != " "))))
            {
              if((stwneu == "") || (vz == " ") || (vz == "-"))
              { 
                stwneu = stwneu + z.toUpperCase();
              }
              else
              { 
                stwneu = stwneu + z;
              }
            }
          }
          return(stwneu);
        }

        function StichwortGueltig(stw)
        {
          var zeich = "";
          var stwg = true;
          ccstr = "A";
          var ccA = ccstr.charCodeAt(0);
          ccstr = "Z";
          var ccZ = ccstr.charCodeAt(0);
          ccstr = "a";
          var cca = ccstr.charCodeAt(0);
          ccstr = "z";
          var ccz = ccstr.charCodeAt(0);

          ccstr = "Ä ";
          var ccAE = 196;
          ccstr = "Ö ";
          var ccOE = 214;
          ccstr = "Ü ";
          var ccUE = 220;
          ccstr = "ä ";
          var ccae = 228;
          ccstr = "ö ";
          var ccoe = 246;
          ccstr = "ü ";
          var ccue = 252;
          ccstr = "ß ";
          var ccsz = 223;

          for(i=0;i< stw.length;i++)
          {
            zeich = stw.charAt(i); 
            cczeich = zeich.charCodeAt(0);
            if( (!(((cczeich >= ccA) && (cczeich <= ccZ)) || ((cczeich >= cca) && (cczeich <= ccz)))) && (cczeich != ccAE) && (cczeich != ccOE) && (cczeich != ccUE) && (cczeich != ccae) && (cczeich != ccoe) && (cczeich != ccue) && ((cczeich != ccsz) || ((cczeich == ccsz) && (i == 0))) && ((zeich != " ") || ((zeich == " ") && ((i == 0) || (i == (stw.length - 1))))) && ((zeich != "-") || ((zeich == "-") && ((i == 0) || (i == (stw.length - 1))))))
            {
              stwg = false;
              i = stw.length;
            }
          }
          return(stwg);
        }

        function pruefeAufFehler(fo_typ)
        {
          ersteraDFehler = 0;
          var i = 0;
          var a = 0;
          var astr = "";
          var anzStichw = 0;
          var summe = 0; 
          var t = "";

          if (fo_typ != t_sem)
          {
            
            if (fo_typ != t_anmeldungv)
            {
              t = document.azf.Organisation.value;
              if(t.length > 32)
              {
                fehler(0);
              }
              t = document.azf.Internet.value;
              if((t != "") && (gueltigeDomain(document.azf.Internet.value,"html") == false))
              {
                fehler(1);
              }
            }
            t = document.azf.Vorname.value;
            if((t == "") || (t.length > 28))
            {
              fehler(2);
            }
            t = document.azf.Name.value;
            if((t == "") || (t.length > 28))
            {
              fehler(3);
            }
            t = document.azf.Strasse.value;
            if((t == "") || (t.length > 30))
            {
              fehler(4);
            }
            t = document.azf.Nr.value;
            if(t.length > 12)
            {
              fehler(5);
            }
            t = document.azf.PLZ.value;
            if((t == "") || (t == "00000") || (t.length != 5))
            {
              fehler(6);
            }
            else
            {
              a = t.length - 1;
              for(i=0; i<=a; ++i)
              {
                if((t.charAt(i)<"0") || (t.charAt(i)>"9"))
                {
                  fehler(6);
                }
              }
            }
            t = document.azf.Ort.value;
            if((t == "") || (t.length > 30))
            {
              fehler(7);
            }
            t = document.azf.Telefon.value;
            if((t == "") || (t.length < 8) || (t.charAt(0)!="0") || (t.length > 25))
            {
              fehler(8);
            }
            else
            {
              a = t.length - 1;
              for(i=1; i<=a; ++i)
              {
                if(((t.charAt(i)<"0") || (t.charAt(i)>"9")) && (t.charAt(i)!="/") && (t.charAt(i)!=" "))
                {
                  fehler(8);
                }
              }
            }
            
            t = document.azf.Email.value;
            if ((fo_typ == t_kontakt) || (fo_typ == t_anmeldungv) || (fo_typ == t_wuensche))
            {
              if((t == "") || !((gueltigeEmailadr(document.azf.Email.value) == true)) || (gueltigeDomain(document.azf.Email.value,"html") == true))
              {
                fehler(9);
              }
            }
            else
            {
              if((t != "") && !((gueltigeEmailadr(document.azf.Email.value) == true)) || (gueltigeDomain(document.azf.Email.value,"html") == true))
              {
                fehler(9);
              }
            }

            if (fo_typ == t_anmeldungv)
            {
              if((document.azf.InfoabendJa.checked == false) && (document.azf.SeminarJa.checked == false) &&
                 (document.azf.InfoUndSeminarJa.checked == false))
              {
                fehler(100);
              }
            }

          }

          if (fo_typ == t_stand)
          {
// Standdaten
            t = document.azf.knr.value;
            if((t != "") && (gueltigeNr(t,6) == false))
            {
              fehler(10);
            }
            else
            {
              if(gueltigeNr(t,6) == true)
              {
                document.azf.knr.value = nullfuellen(t,6);
              }
            }
            t = document.azf.snr.value;
            if((t != "") && (gueltigeNr(t,4) == false))
            {
              fehler(11);
            }
            else
            {
              if(gueltigeNr(t,4) == true)
              {
                document.azf.snr.value = nullfuellen(t,4);
              }
            }
            t = document.azf.thema.value;
            if((t.length < 3) || (t.length > 24))
            {
              fehler(12);
            }
            if(document.azf.standort.options[document.azf.standort.selectedIndex].value < 2)
            {
              fehler(13);
            }
            schreibeArtikeldaten(aktuellerDatensatz);
            for (var arti = 0; arti < 40; ++arti)
            {
              if((artikelNichtVerwendet(arti) == false) || (arti < mindestArtikelanzahl))
              {
// Artartikeldaten
                if((document.forms[1].elements[aDBasis + (arti * aDRaster)].value.length < 3) || (document.forms[1].elements[aDBasis + (arti * aDRaster)].value.length > 24))
                {
                  aDfehler(0,arti)
                }
                if(gueltigerPreis(document.forms[1].elements[aDBasis + (arti * aDRaster) + 1].value,fo_typ) == false)
                {
                  aDfehler(1,arti)
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 2].value == "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 2].value.length > maxBeschr))
                {
                  aDfehler(2,arti)
                }
                if(document.forms[1].elements[aDBasis + (arti * aDRaster) + 3].value.length > maxBeschr)
                {
                  aDfehler(3,arti)
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 4].value == "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 4].value.length > maxNewsText))
                {
                  aDfehler(4,arti)
                }
// bilder und Sound
                if(document.forms[1].elements[aDBasis + (arti * aDRaster) + 5].checked == true)
                {
                  if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 8].value == "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 7].checked == false))
                  {
                    aDfehler(6,arti)
                  }
                  else
                  {
                    if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 8].value != "") && (gueltigeDatei(document.forms[1].elements[aDBasis + (arti * aDRaster) + 8].value,"bild") == false))
                    {
                      aDfehler(6,arti)
                    }
                  }
                  if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 9].value == "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 7].checked == true))
                  {
                    aDfehler(7,arti)
                  }
                  else
                  {
                    if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 9].value != "") && (gueltigeURL(document.forms[1].elements[aDBasis + (arti * aDRaster) + 9].value,"bild") == false))
                    {
                      aDfehler(7,arti)
                    }
                  }
                }
                else
                {
                  if (document.forms[1].elements[aDBasis + (arti * aDRaster) + 6].options[document.forms[1].elements[aDBasis + (arti * aDRaster) + 6].selectedIndex].value < 2)
                  {
                      aDfehler(5,arti)
                  }
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 10].checked == true) && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 11].value == "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 12].checked == false))
                {
                  aDfehler(8,arti)
                }
                else
                {
                  if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 12].value != "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 14].checked == false) && (gueltigeDatei(document.forms[1].elements[aDBasis + (arti * aDRaster) + 12].value,"anim") == false))
                  {
                    aDfehler(8,arti)
                  }
                  if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 12].value != "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 14].checked == true) && (gueltigeDatei(document.forms[1].elements[aDBasis + (arti * aDRaster) + 12].value,"bild") == false))
                  {
                    aDfehler(8,arti)
                  }
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 10].checked == true) && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 13].value == "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 11].checked == true))
                {
                  aDfehler(9,arti)
                }
                else
                {
                  if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 13].value != "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 14].checked == false) && (gueltigeURL(document.forms[1].elements[aDBasis + (arti * aDRaster) + 13].value,"anim") == false))
                  {
                    aDfehler(9,arti)
                  }
                  if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 13].value != "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 14].checked == true) && (gueltigeURL(document.forms[1].elements[aDBasis + (arti * aDRaster) + 13].value,"bild") == false))
                  {
                    aDfehler(9,arti)
                  }
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 10].checked == true) && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 11].checked == true) && 
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 14].checked == true) && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 16].value == ""))
                {
                  aDfehler(10,arti)
                }
                else
                {
                  if(document.forms[1].elements[aDBasis + (arti * aDRaster) + 16].value != "")
                  {
                    wert = parseartint(document.forms[1].elements[aDBasis + (arti * aDRaster) + 16].value);
                    if(!((wert >= 2) && (wert <= EartinzelbildMax)))
                    {
                      aDfehler(10,arti)
                    }
                  }
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 10].checked == true) && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 11].checked == true) && 
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 14].checked == true) && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 17].value == ""))
                {
                  aDfehler(11,arti)
                }
                else
                {
                  if(document.forms[1].elements[aDBasis + (arti * aDRaster) + 17].value != "")
                  {
                    wert = parseartint(document.forms[1].elements[aDBasis + (arti * aDRaster) + 17].value);
                    if(!((wert >= 100) && (wert <= 5000)))
                    {
                      aDfehler(11,arti)
                    }
                  }
                }
                if(((document.forms[1].elements[aDBasis + (arti * aDRaster) + 18].checked == true) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 19].checked == true)) && 
                    (document.forms[1].elements[aDBasis + (arti * aDRaster) + 21].value == "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 20].checked == false))
                {
                  aDfehler(12,arti)
                }
                else
                {
                  if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 21].value != "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 18].checked == true) && (gueltigeDatei(document.forms[1].elements[aDBasis + (arti * aDRaster) + 21].value,"sound") == false))
                  {
                    aDfehler(12,arti)
                  }
                  if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 21].value != "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 19].checked == true) && (gueltigeDatei(document.forms[1].elements[aDBasis + (arti * aDRaster) + 21].value,"vartideo") == false))
                  {
                    aDfehler(12,arti)
                  }
                }
                if(((document.forms[1].elements[aDBasis + (arti * aDRaster) + 18].checked == true) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 19].checked == true)) && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 22].value == "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 20].checked == true))
                {
                  aDfehler(13,arti)
                }
                else
                {
                  if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 22].value != "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 18].checked == true) && (gueltigeURL(document.forms[1].elements[aDBasis + (arti * aDRaster) + 22].value,"sound") == false))
                  {
                    aDfehler(13,arti)
                  }
                  if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 22].value != "") && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 19].checked == true) && (gueltigeURL(document.forms[1].elements[aDBasis + (arti * aDRaster) + 22].value,"vartideo") == false))
                  {
                    aDfehler(13,arti)
                  }
                }
                if(((document.forms[1].elements[aDBasis + (arti * aDRaster) + 18].checked == true) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 19].checked == true)) && (document.forms[1].elements[aDBasis + (arti * aDRaster) + 23].value == ""))
                {
                  aDfehler(14,arti)
                }
                else
                {
                  if(document.forms[1].elements[aDBasis + (arti * aDRaster) + 23].value != "")
                  {
                    wert = parseartint(document.forms[1].elements[aDBasis + (arti * aDRaster) + 23].value);
                    if(!((wert >= 3) && (wert <= 30)))
                    {
                      aDfehler(14,arti)
                    }
                  }
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value == "") || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value.length > maxStLaenge))
                {
                  aDfehler(15,arti)
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value != "") && 
                   ((document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value.length > maxStLaenge) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value)))
                {
                  aDfehler(16,arti)
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value != "") && 
                   ((document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value.length > maxStLaenge) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value) || 
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value)))
                {
                  aDfehler(17,arti)
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value != "") && 
                   ((document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value.length > maxStLaenge) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value) || 
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value)))
                {
                  aDfehler(18,arti)
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value != "") && 
                   ((document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value.length > maxStLaenge) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value) || 
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value)))
                {
                  aDfehler(19,arti)
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value != "") && 
                   ((document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value.length > maxStLaenge) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value) || 
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value)))
                {
                  aDfehler(20,arti)
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value != "") && 
                   ((document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value.length > maxStLaenge) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value) || 
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value)))
                {
                  aDfehler(21,arti)
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value != "") && 
                   ((document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value.length > maxStLaenge) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value) || 
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value)))
                {
                  aDfehler(22,arti)
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value != "") && 
                   ((document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value.length > maxStLaenge) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value) || 
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value)))
                {
                  aDfehler(23,arti)
                }
                if((document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value != "") && 
                   ((document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value.length > maxStLaenge) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 24].value) || 
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 25].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 26].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 27].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 28].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 29].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 30].value) ||
                   (document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 31].value) || (document.forms[1].elements[aDBasis + (arti * aDRaster) + 33].value == document.forms[1].elements[aDBasis + (arti * aDRaster) + 32].value)))
                {
                  aDfehler(24,arti)
                }
	      }
            }
          }

          if (fo_typ == t_sem)
          {
            t = document.azf.sembeginndatum1.value;
            if((t == "") || (gueltigesDatum(document.azf.sembeginndatum1.value) == false))
            {
              fehler(21);
            }
            else
            {
              document.azf.sembeginndatum1.value = formatiereDatum(document.azf.sembeginndatum1.value);
            }
            t = document.azf.semendedatum1.value;
            if((t != "") && (gueltigesDatum(document.azf.semendedatum1.value) == false))
            {
              fehler(31);
            }
            else
            {
              if (t != "")
              {
                document.azf.semendedatum1.value = formatiereDatum(document.azf.semendedatum1.value);
              }
            }

            t = document.azf.sembeginndatum2.value;
            if((t != "") && (gueltigesDatum(document.azf.sembeginndatum2.value) == false))
            {
              fehler(22);
            }
            else
            {
              if (t != "")
              {
                document.azf.sembeginndatum2.value = formatiereDatum(document.azf.sembeginndatum2.value);
              }
            }
            t = document.azf.semendedatum2.value;
            if((t != "") && (gueltigesDatum(document.azf.semendedatum2.value) == false))
            {
              fehler(32);
            }
            else
            {
              if (t != "")
              {
                document.azf.semendedatum2.value = formatiereDatum(document.azf.semendedatum2.value);
              }
            }

            t = document.azf.sembeginndatum3.value;
            if((t != "") && (gueltigesDatum(document.azf.sembeginndatum3.value) == false))
            {
              fehler(23);
            }
            else
            {
              if (t != "")
              {
                document.azf.sembeginndatum3.value = formatiereDatum(document.azf.sembeginndatum3.value);
              }
            }
            t = document.azf.semendedatum3.value;
            if((t != "") && (gueltigesDatum(document.azf.semendedatum3.value) == false))
            {
              fehler(33);
            }
            else
            {
              if (t != "")
              {
                document.azf.semendedatum3.value = formatiereDatum(document.azf.semendedatum3.value);
              }
            }

            t = document.azf.sembeginndatum4.value;
            if((t != "") && (gueltigesDatum(document.azf.sembeginndatum4.value) == false))
            {
              fehler(24);
            }
            else
            {
              if (t != "")
              {
                document.azf.sembeginndatum4.value = formatiereDatum(document.azf.sembeginndatum4.value);
              }
            }
            t = document.azf.semendedatum4.value;
            if((t != "") && (gueltigesDatum(document.azf.semendedatum4.value) == false))
            {
              fehler(34);
            }
            else
            {
              if (t != "")
              {
                document.azf.semendedatum4.value = formatiereDatum(document.azf.semendedatum4.value);
              }
            }

            t = document.azf.sembeginndatum5.value;
            if((t != "") && (gueltigesDatum(document.azf.sembeginndatum5.value) == false))
            {
              fehler(25);
            }
            else
            {
              if (t != "")
              {
                document.azf.sembeginndatum5.value = formatiereDatum(document.azf.sembeginndatum5.value);
              }
            }
            t = document.azf.semendedatum5.value;
            if((t != "") && (gueltigesDatum(document.azf.semendedatum5.value) == false))
            {
              fehler(35);
            }
            else
            {
              if (t != "")
              {
                document.azf.semendedatum5.value = formatiereDatum(document.azf.semendedatum5.value);
              }
            }

            t = document.azf.sembeginndatum6.value;
            if((t != "") && (gueltigesDatum(document.azf.sembeginndatum6.value) == false))
            {
              fehler(26);
            }
            else
            {
              if (t != "")
              {
                document.azf.sembeginndatum6.value = formatiereDatum(document.azf.sembeginndatum6.value);
              }
            }
            t = document.azf.semendedatum6.value;
            if((t != "") && (gueltigesDatum(document.azf.semendedatum6.value) == false))
            {
              fehler(36);
            }
            else
            {
              if (t != "")
              {
                document.azf.semendedatum6.value = formatiereDatum(document.azf.semendedatum6.value);
              }
            }

            t = document.azf.sembeginndatum7.value;
            if((t != "") && (gueltigesDatum(document.azf.sembeginndatum7.value) == false))
            {
              fehler(27);
            }
            else
            {
              if (t != "")
              {
                document.azf.sembeginndatum7.value = formatiereDatum(document.azf.sembeginndatum7.value);
              }
            }
            t = document.azf.semendedatum7.value;
            if((t != "") && (gueltigesDatum(document.azf.semendedatum7.value) == false))
            {
              fehler(37);
            }
            else
            {
              if (t != "")
              {
                document.azf.semendedatum7.value = formatiereDatum(document.azf.semendedatum7.value);
              }
            }

            t = document.azf.sembeginndatum8.value;
            if((t != "") && (gueltigesDatum(document.azf.sembeginndatum8.value) == false))
            {
              fehler(28);
            }
            else
            {
              if (t != "")
              {
                document.azf.sembeginndatum8.value = formatiereDatum(document.azf.sembeginndatum8.value);
              }
            }
            t = document.azf.semendedatum8.value;
            if((t != "") && (gueltigesDatum(document.azf.semendedatum8.value) == false))
            {
              fehler(38);
            }
            else
            {
              if (t != "")
              {
                document.azf.semendedatum8.value = formatiereDatum(document.azf.semendedatum8.value);
              }
            }

            t = document.azf.sembeginndatum9.value;
            if((t != "") && (gueltigesDatum(document.azf.sembeginndatum9.value) == false))
            {
              fehler(29);
            }
            else
            {
              if (t != "")
              {
                document.azf.sembeginndatum9.value = formatiereDatum(document.azf.sembeginndatum9.value);
              }
            }
            t = document.azf.semendedatum9.value;
            if((t != "") && (gueltigesDatum(document.azf.semendedatum9.value) == false))
            {
              fehler(39);
            }
            else
            {
              if (t != "")
              {
                document.azf.semendedatum9.value = formatiereDatum(document.azf.semendedatum9.value);
              }
            }

            t = document.azf.sembeginndatum10.value;
            if((t != "") && (gueltigesDatum(document.azf.sembeginndatum10.value) == false))
            {
              fehler(30);
            }
            else
            {
              if (t != "")
              {
                document.azf.sembeginndatum10.value = formatiereDatum(document.azf.sembeginndatum10.value);
              }
            }
            t = document.azf.semendedatum10.value;
            if((t != "") && (gueltigesDatum(document.azf.semendedatum10.value) == false))
            {
              fehler(40);
            }
            else
            {
              if (t != "")
              {
                document.azf.semendedatum10.value = formatiereDatum(document.azf.semendedatum10.value);
              }
            }

            t = document.azf.semtyp1.value;
            if((t == "") || (t.length > 30))
            {
              fehler(13);
            }
            t = document.azf.semtyp1zst.value;
            if(t == "")
            {
              fehler(13);
            }
            t = document.azf.semart1.value;
            if((t == "") || (t.length > 30))
            {
              fehler(14);
            }
            t = document.azf.semart1zst.value;
            if(t == "")
            {
              fehler(14);
            }
            t = document.azf.semtyp2.value;
            if((t != "") && (t.length > 30))
            {
              fehler(15);
            }
//            t = document.azf.semtyp2zst.value;
//            if(t == "")
//            {
//              fehler(15);
//            }
            t = document.azf.semart2.value;
            if((t != "") && (t.length > 30))
            {
              fehler(16);
            }
//            t = document.azf.semart2zst.value;
//            if(t == "")
//            {
//              fehler(16);
//            }

            t = document.azf.semort.value;
            if((t == "") || (t.length > 30))
            {
              fehler(17);
            }
            t = document.azf.semortzst.value;
            if(t == "")
            {
              fehler(17);
            }
            t = document.azf.semlei.value;
            if((t == "") || (t.length > 30))
            {
              fehler(18);
            }
            t = document.azf.semleizst.value;
            if(t == "")
            {
              fehler(18);
            }
          }

          if (fo_typ == t_semlei)
          {
            t = document.azf.Sleivorname.value;
            if((t == "") || (t.length > 30))
            {
              fehler(10);
            }
            t = document.azf.Sleiname.value;
            if((t != "") && (t.length > 30))
            {
              fehler(11);
            }
            t = document.azf.Sleistrasse.value;
            if((t == "") || (t.length > 30))
            {
              fehler(12);
            }
            t = document.azf.Sleinr.value;
            if(t.length > 12)
            {
              fehler(13);
            }
            t = document.azf.Sleiplz.value;
            if(t == "")
            {
              fehler(14);
            }
            else
            {
              a = t.length - 1;
              for(i=0; i<=a; ++i)
              {
                if((t.charAt(i)<"0") || (t.charAt(i)>"9"))
                {
                  fehler(14);
                }
              }
            }
            t = document.azf.Sleiort.value;
            if((t == "") || (t.length > 30))
            {
              fehler(15);
            }
            t = document.azf.Sleilkz.value;
            if((t == "") || (t.length > 3))
            {
              fehler(16);
            }
            else
            {
              a = t.length - 1;
              for(i=0; i<=a; ++i)
              {
                if((t.charAt(i)<"A") || (t.charAt(i)>"Z"))
                {
                  fehler(16);
                }
              }
            }
            t = document.azf.Sleiland.value;
            if((t == "") || (t.length > 30))
            {
              fehler(17);
            }
            t = document.azf.Sleitelefon.value;
            if((t != "") && ((t.length < 8) || (t.charAt(0)!="0") || (t.length > 25)))
            {
              fehler(18);
            }
            else
            {
              a = t.length - 1;
              for(i=1; i<=a; ++i)
              {
                if(((t.charAt(i)<"0") || (t.charAt(i)>"9")) && (t.charAt(i)!="/") && (t.charAt(i)!=" "))
                {
                  fehler(18);
                }
              }
            }
            t = document.azf.Sleimobil.value;
            if((t != "") && ((t.length < 8) || (t.charAt(0)!="0") || (t.length > 25)))
            {
              fehler(19);
            }
            else
            {
              a = t.length - 1;
              for(i=1; i<=a; ++i)
              {
                if(((t.charAt(i)<"0") || (t.charAt(i)>"9")) && (t.charAt(i)!="/") && (t.charAt(i)!=" "))
                {
                  fehler(19);
                }
              }
            }
            t = document.azf.Sleiinternet.value;
            if((t != "") && (gueltigeDomain(document.azf.Sleiinternet.value,"html") == false))
            {
              fehler(20);
            }
            t = document.azf.Sleiemail.value;
            if((t == "") || (gueltigeEmailadr(document.azf.Sleiemail.value) == false))
            {
              fehler(21);
            }
            t = document.azf.Sleigebdatum.value;
            if((t == "") || (gueltigesGebDatum(t) == false))
            {
              fehler(24);
            }
            else
            {
              document.azf.Sleigebdatum.value = formatiereGeburtsDatum(document.azf.Sleigebdatum.value);
            }
            t = document.azf.Sleianzseminare.value;
            if(t == "")
            {
              fehler(25);
            }
            else
            {
              a = t.length - 1;
              for(i=0; i<=a; ++i)
              {
                if((t.charAt(i)<"0") || (t.charAt(i)>"9"))
                {
                  fehler(25);
                }
              }
            }
            t = document.azf.Sleianfdatum.value;
            if((t == "") || (gueltigesGebDatum(t) == false))
            {
              fehler(26);
            }
            else
            {
              document.azf.Sleianfdatum.value = formatiereGeburtsDatum(document.azf.Sleianfdatum.value);
            }
          }

          if (fo_typ == t_semort)
          {
            t = document.azf.Sortbezeich.value;
            if((t == "") || (t.length > 28))
            {
              fehler(10);
            }
            t = document.azf.Sortbeschr.value;
            if((t != "") && (t.length > 38))
            {
              fehler(11);
            }
            t = document.azf.Sortstrasse.value;
            if((t == "") || (t.length > 30))
            {
              fehler(12);
            }
            t = document.azf.Sortnr.value;
            if(t.length > 12)
            {
              fehler(13);
            }
            t = document.azf.Sortplz.value;
            if(t == "")
            {
              fehler(14);
            }
            else
            {
              a = t.length - 1;
              for(i=0; i<=a; ++i)
              {
                if((t.charAt(i)<"0") || (t.charAt(i)>"9"))
                {
                  fehler(14);
                }
              }
            }
            t = document.azf.Sortort.value;
            if((t == "") || (t.length > 30))
            {
              fehler(15);
            }
            t = document.azf.Sortlkz.value;
            if((t == "") || (t.length > 3))
            {
              fehler(16);
            }
            else
            {
              a = t.length - 1;
              for(i=0; i<=a; ++i)
              {
                if((t.charAt(i)<"A") || (t.charAt(i)>"Z"))
                {
                  fehler(16);
                }
              }
            }
            t = document.azf.Sortland.value;
            if((t == "") || (t.length > 30))
            {
              fehler(17);
            }
            t = document.azf.Sortvermietertelefon.value;
            if((t != "") && ((t.length < 8) || (t.charAt(0)!="0") || (t.length > 25)))
            {
              fehler(18);
            }
            else
            {
              a = t.length - 1;
              for(i=1; i<=a; ++i)
              {
                if(((t.charAt(i)<"0") || (t.charAt(i)>"9")) && (t.charAt(i)!="/") && (t.charAt(i)!=" "))
                {
                  fehler(18);
                }
              }
            }
            t = document.azf.Sortanzahlplaetze.value;
            if((t == "") || (t.length > 3))
            {
              fehler(19);
            }
            else
            {
              a = t.length - 1;
              for(i=0; i<=a; ++i)
              {
                if((t.charAt(i)<"0") || (t.charAt(i)>"9"))
                {
                  fehler(19);
                }
              }
            }
            t = document.azf.Sortvermieterlink.value;
            if((t != "") && (gueltigeDomain(document.azf.Sortvermieterlink.value,"html") == false))
            {
              fehler(20);
            }
//            t = document.azf.Sortanfahrtlink.value;
//            if((t != "") && (gueltigeDomain(document.azf.Sortanfahrtlink.value,"html") == false))
//            {
//              fehler(21);
//            }
          }
          if (fo_typ == t_semtyp)
          {
            if((document.azf.Styptext.value == "") || (document.azf.Styptext.value.length > maxNewsText))
            {
              fehler(10);
            }
            t = document.azf.Stypbezeich.value;
            if((t.length < 3) || (t.length > 25))
            {
              fehler(13);
            }
            t = document.azf.Styptitel.value;
            if((t.length < 3) || (t.length > 75))
            {
              fehler(14);
            }
            t = document.azf.Stypueberschr1.value;
            if((t == "") || (t.length > 75))
            {
              fehler(15);
            }
            t = document.azf.Stypueberschr2.value;
            if((t == "") || (t.length > 75))
            {
              fehler(16);
            }
          }
          if (fo_typ == t_news)
          {
            if((document.azf.newstext.value == "") || (document.azf.newstext.value.length > maxNewsText))
            {
              fehler(10);
            }
            t = document.azf.Ueberschr.value;
            if((t.length < 3) || (t.length > 65))
            {
              fehler(14);
            }
            t = document.azf.NOrt.value;
            if((t == "") || (t.length > 16))
            {
              fehler(15);
            }
          }
          if ((fo_typ == t_kontakt) || (fo_typ == t_wuensche))
          {
            t = document.azf.Kontakttext.value;
            if((t == "") || (t.length > 2000))
            {
              fehler(10);
            }
          }
          if (fo_typ == t_nameaz)
          {
//            t = document.azf.Organisation.value;
//            if((t.length <= 3) || (t.length > 24))
//            {
//              fehler(0);
//            }
            t = document.azf.Beschr1.value;
            if((t == "") || (t.length > maxBeschr))
            {
              fehler(10);
            }
            t = document.azf.Beschr2.value;
            if(t.length > maxBeschr)
            {
              fehler(11);
            }
            if((document.azf.stichwort_1.value == "") || (StichwortGueltig(document.azf.stichwort_1.value) == false) || (document.azf.stichwort_1.value.length > maxStLaenge))
            {
              fehler(12);
            }
            if((document.azf.stichwort_2.value != "") && 
               ((document.azf.stichwort_2.value.length > maxStLaenge) || (StichwortGueltig(document.azf.stichwort_2.value) == false) || (bereinigeStichwort(document.azf.stichwort_2.value) == bereinigeStichwort(document.azf.stichwort_1.value))))
            {
              fehler(13);
            }
            if((document.azf.stichwort_3.value != "") && 
               ((document.azf.stichwort_3.value.length > maxStLaenge) || (StichwortGueltig(document.azf.stichwort_3.value) == false) || (bereinigeStichwort(document.azf.stichwort_3.value) == bereinigeStichwort(document.azf.stichwort_1.value)) || 
               (bereinigeStichwort(document.azf.stichwort_3.value) == bereinigeStichwort(document.azf.stichwort_2.value))))
            {
              fehler(14);
            }
            if((document.azf.stichwort_4.value != "") && 
               ((document.azf.stichwort_4.value.length > maxStLaenge) || (StichwortGueltig(document.azf.stichwort_4.value) == false) || (bereinigeStichwort(document.azf.stichwort_4.value) == bereinigeStichwort(document.azf.stichwort_1.value)) || 
               (bereinigeStichwort(document.azf.stichwort_4.value) == bereinigeStichwort(document.azf.stichwort_2.value)) || (bereinigeStichwort(document.azf.stichwort_4.value) == bereinigeStichwort(document.azf.stichwort_3.value))))
            {
              fehler(15);
            }
            if((document.azf.stichwort_5.value != "") && 
               ((document.azf.stichwort_5.value.length > maxStLaenge) || (StichwortGueltig(document.azf.stichwort_5.value) == false) || (bereinigeStichwort(document.azf.stichwort_5.value == document.azf.stichwort_1.value)) || 
               (bereinigeStichwort(document.azf.stichwort_5.value) == bereinigeStichwort(document.azf.stichwort_2.value)) || (bereinigeStichwort(document.azf.stichwort_5.value == document.azf.stichwort_3.value)) ||
               (bereinigeStichwort(document.azf.stichwort_5.value) == bereinigeStichwort(document.azf.stichwort_4.value))))
            {
              fehler(16);
            }
            if((document.azf.stichwort_6.value != "") && 
               ((document.azf.stichwort_6.value.length > maxStLaenge) || (StichwortGueltig(document.azf.stichwort_6.value) == false) || (bereinigeStichwort(document.azf.stichwort_6.value) == bereinigeStichwort(document.azf.stichwort_1.value)) || 
               (bereinigeStichwort(document.azf.stichwort_6.value) == bereinigeStichwort(document.azf.stichwort_2.value)) || (bereinigeStichwort(document.azf.stichwort_6.value) == bereinigeStichwort(document.azf.stichwort_3.value)) ||
               (bereinigeStichwort(document.azf.stichwort_6.value) == bereinigeStichwort(document.azf.stichwort_4.value)) || (bereinigeStichwort(document.azf.stichwort_6.value) == bereinigeStichwort(document.azf.stichwort_5.value))))
            {
              fehler(17);
            }
            if((document.azf.stichwort_7.value != "") && 
               ((document.azf.stichwort_7.value.length > maxStLaenge) || (StichwortGueltig(document.azf.stichwort_7.value) == false) || (bereinigeStichwort(document.azf.stichwort_7.value) == bereinigeStichwort(document.azf.stichwort_1.value)) || 
               (bereinigeStichwort(document.azf.stichwort_7.value) == bereinigeStichwort(document.azf.stichwort_2.value)) || (bereinigeStichwort(document.azf.stichwort_7.value) == bereinigeStichwort(document.azf.stichwort_3.value)) ||
               (bereinigeStichwort(document.azf.stichwort_7.value) == bereinigeStichwort(document.azf.stichwort_4.value)) || (bereinigeStichwort(document.azf.stichwort_7.value) == bereinigeStichwort(document.azf.stichwort_5.value)) ||
               (bereinigeStichwort(document.azf.stichwort_7.value) == bereinigeStichwort(document.azf.stichwort_6.value))))
            {
              fehler(18);
            }
            if((document.azf.stichwort_8.value != "") && 
               ((document.azf.stichwort_8.value.length > maxStLaenge) || (StichwortGueltig(document.azf.stichwort_8.value) == false) || (bereinigeStichwort(document.azf.stichwort_8.value) == bereinigeStichwort(document.azf.stichwort_1.value)) || 
               (bereinigeStichwort(document.azf.stichwort_8.value) == bereinigeStichwort(document.azf.stichwort_2.value)) || (bereinigeStichwort(document.azf.stichwort_8.value) == bereinigeStichwort(document.azf.stichwort_3.value)) ||
               (bereinigeStichwort(document.azf.stichwort_8.value) == bereinigeStichwort(document.azf.stichwort_4.value)) || (bereinigeStichwort(document.azf.stichwort_8.value) == bereinigeStichwort(document.azf.stichwort_5.value)) ||
               (bereinigeStichwort(document.azf.stichwort_8.value) == bereinigeStichwort(document.azf.stichwort_6.value)) || (bereinigeStichwort(document.azf.stichwort_8.value) == bereinigeStichwort(document.azf.stichwort_7.value))))
            {
              fehler(19);
            }
            if((document.azf.stichwort_9.value != "") && 
               ((document.azf.stichwort_9.value.length > maxStLaenge) || (StichwortGueltig(document.azf.stichwort_9.value) == false) || (bereinigeStichwort(document.azf.stichwort_9.value) == bereinigeStichwort(document.azf.stichwort_1.value)) || 
               (bereinigeStichwort(document.azf.stichwort_9.value) == bereinigeStichwort(document.azf.stichwort_2.value)) || (bereinigeStichwort(document.azf.stichwort_9.value) == bereinigeStichwort(document.azf.stichwort_3.value)) ||
               (bereinigeStichwort(document.azf.stichwort_9.value) == bereinigeStichwort(document.azf.stichwort_4.value)) || (bereinigeStichwort(document.azf.stichwort_9.value) == bereinigeStichwort(document.azf.stichwort_5.value)) ||
               (bereinigeStichwort(document.azf.stichwort_9.value) == bereinigeStichwort(document.azf.stichwort_6.value)) || (bereinigeStichwort(document.azf.stichwort_9.value) == bereinigeStichwort(document.azf.stichwort_7.value)) ||
               (bereinigeStichwort(document.azf.stichwort_9.value) == bereinigeStichwort(document.azf.stichwort_8.value))))
            {
              fehler(20);
            }
            if((document.azf.stichwort_10.value != "") && 
               ((document.azf.stichwort_10.value.length > maxStLaenge) || (StichwortGueltig(document.azf.stichwort_10.value) == false) || (bereinigeStichwort(document.azf.stichwort_10.value) == bereinigeStichwort(document.azf.stichwort_1.value)) || 
               (bereinigeStichwort(document.azf.stichwort_10.value) == bereinigeStichwort(document.azf.stichwort_2.value)) || (bereinigeStichwort(document.azf.stichwort_10.value) == bereinigeStichwort(document.azf.stichwort_3.value)) ||
               (bereinigeStichwort(document.azf.stichwort_10.value) == bereinigeStichwort(document.azf.stichwort_4.value)) || (bereinigeStichwort(document.azf.stichwort_10.value) == bereinigeStichwort(document.azf.stichwort_5.value)) ||
               (bereinigeStichwort(document.azf.stichwort_10.value) == bereinigeStichwort(document.azf.stichwort_6.value)) || (bereinigeStichwort(document.azf.stichwort_10.value) == bereinigeStichwort(document.azf.stichwort_7.value)) ||
               (bereinigeStichwort(document.azf.stichwort_10.value) == bereinigeStichwort(document.azf.stichwort_8.value)) || (bereinigeStichwort(document.azf.stichwort_10.value) == bereinigeStichwort(document.azf.stichwort_9.value))))
            {
              fehler(21);
            }
          }
          if (fo_typ == t_jobs)
          {
            t = document.azf.Beruf.value;
            if((t.length <= 3) || (t.length > 30))
            {
              fehler(10);
            }
            t = document.azf.Beschr1.value;
            if((t == "") || (t.length > 45))
            {
              fehler(11);
            }
            t = document.azf.Rubrik.value;
            if((t == "") || (t.length > 15))
            {
              fehler(12);
            }
            t = document.azf.Jobart.value;
            if(t == "1")
            {
              fehler(14);
            }
            else
            {
              document.azf.JArt.value = jal_eintr[document.azf.Jobart.selectedIndex];
            }
            t = document.azf.Arbeitsort.value;
            if((t == "") || (t.length > 16))
            {
              fehler(15);
            }
          }
          if (fo_typ == t_veranstu)
          {
            t = document.azf.Veranstalter.value;
            if((t == "") || (t.length > 24))
            {
              fehler(10);
            }
            t = document.azf.InternetV.value;
            if((t != "") && (gueltigeDomain(document.azf.InternetV.value,"html") == false))
            {
              fehler(11);
            }
            t = document.azf.Datum.value;
            if((t == "") || (gueltigesDatum(document.azf.Datum.value) == false))
            {
              fehler(12);
            }
            else
            {
              document.azf.Datum.value = formatiereDatum(document.azf.Datum.value);
            }
            t = document.azf.Art.value;
            if((t == "") || (t.length > 24))
            {
              fehler(13);
            }
            t = document.azf.VOrt.value;
            if((t == "") || (t.length > 17))
            {
              fehler(14);
            }
            t = document.azf.Beschr3.value;
            if((t == "") || (t.length > 45))
            {
              fehler(15);
            }
            t = document.azf.Beschr4.value;
            if((t == "") || (t.length > 45))
            {
              fehler(16);
            }
            t = document.azf.VeranstOrt.value;
            if((t == "") || (t.length > 33))
            {
              fehler(17);
            }
           t = document.azf.VStrasse.value;
            if((t == "") || (t.length > 33))
            {
              fehler(18);
            }
            t = document.azf.Von.value;
            if((t == "") || (gueltigeUhrzeit(document.azf.Von.value) == false))
            {
              fehler(19);
            }
            else
            {
              document.azf.Von.value = formatiereUhrzeit(document.azf.Von.value);
            }
            t = document.azf.Bis.value;
            if((t == "") || (gueltigeUhrzeit(document.azf.Bis.value) == false))
            {
              fehler(20);
            }
            else
            {
              document.azf.Bis.value = formatiereUhrzeit(document.azf.Bis.value);
            }
          }
// Bilder und Sound
          if ((fo_typ == t_nameaz) || (fo_typ == t_veranstu) || (fo_typ == t_jobs) || (fo_typ == t_news) || (fo_typ == t_stand) || (fo_typ == t_semort) || (fo_typ == t_semlei) || (fo_typ == t_semtyp))
          {
            if((document.azf.StandardBildJa.checked == false) && (document.azf.UploadBildJa.checked == false) &&
               (document.azf.UrlBildJa.checked == false))
            {
              fehler(22);
            }
            else
            {
              if((document.azf.StandardBildJa.checked == true) && (document.azf.Standardbild.options[document.azf.Standardbild.selectedIndex].value < 2))
              {
                fehler(23);
              }
              if((document.azf.UrlBildJa.checked == true) && (gueltigeURL(document.azf.BildUrl.value,"bild") == false))
              {
                fehler(23);
              }
              if((document.azf.UploadBildJa.checked == true) && (gueltigeDatei(document.azf.BildName.value,"bild") == false))
              {
                fehler(23);
              }
            }

            document.azf.BildDatei.value = document.azf.BildName.value;
            var BAS_Checkbox = "";
            if(document.azf.StandardBildJa.checked == true) {BAS_Checkbox = BAS_Checkbox + "1;"} else {BAS_Checkbox = BAS_Checkbox + "0;"};
            if(document.azf.UploadBildJa.checked == true) {BAS_Checkbox = BAS_Checkbox + "1;"} else {BAS_Checkbox = BAS_Checkbox + "0;"};
            if(document.azf.UrlBildJa.checked == true) {BAS_Checkbox = BAS_Checkbox + "1;"} else {BAS_Checkbox = BAS_Checkbox + "0;"};
            if(document.azf.Standardbild)
            {
              BAS_Checkbox = BAS_Checkbox + document.azf.Standardbild.selectedIndex + ";";
            }
            else
            {
              BAS_Checkbox = BAS_Checkbox + "0;";
            }
            if (AGBakzeptiert == true) {BAS_Checkbox = BAS_Checkbox + "1;"} else {BAS_Checkbox = BAS_Checkbox + "0;"};

            if (fo_typ == t_veranstu)
            {
              if(document.azf.IchV.checked == true) {BAS_Checkbox = BAS_Checkbox + "1;"} else {BAS_Checkbox = BAS_Checkbox + "0;"};
              if(document.azf.Veranstart)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.Veranstart.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.Veranstort)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.Veranstort.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
            }
            if (fo_typ == t_news)
            {
              if(document.azf.Nachrort)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.Nachrort.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
            }
            if (fo_typ == t_jobs)
            {
              if(document.azf.Jobrubr)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.Jobrubr.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.Arbort)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.Arbort.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.Jobart)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.Jobart.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
            }
            if (fo_typ == t_nameaz)
            {
              if(document.azf.stwauswahl_1)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.stwauswahl_1.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.stwauswahl_2)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.stwauswahl_2.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.stwauswahl_3)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.stwauswahl_3.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.stwauswahl_4)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.stwauswahl_4.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.stwauswahl_5)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.stwauswahl_5.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.stwauswahl_6)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.stwauswahl_6.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.stwauswahl_7)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.stwauswahl_7.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.stwauswahl_8)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.stwauswahl_8.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.stwauswahl_9)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.stwauswahl_9.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
              if(document.azf.stwauswahl_10)
              {
                BAS_Checkbox = BAS_Checkbox + document.azf.stwauswahl_10.selectedIndex + ";";
              }
              else
              {
                BAS_Checkbox = BAS_Checkbox + "0;";
              }
            }

            document.azf.Checkbstr.value = BAS_Checkbox;
          }

          if (fo_typ == t_anmeldungv)
          {
            if(document.azf.InfoabendJa.checked == true)
            {
              document.azf.AnmeldungArt.value = "Infoabend";
            }
            else
            {
              if(document.azf.SeminarJa.checked == true)
              {
                document.azf.AnmeldungArt.value = "Aufstellungsseminar";
              }
              else
              {
                if(document.azf.InfoUndSeminarJa.checked == true)
                {
                  document.azf.AnmeldungArt.value = "Infoabend und Aufstellungsseminar";
                }
                else
                {
                  document.azf.AnmeldungArt.value = "none";
                }
              }
            }
          }

        }

        function setzeVorschau(fo_typ)
        {
          fehlergefunden = false;
//          if(AGBakzeptiert == false)
//          {
//            fehler(31);
//          }
          pruefeAufFehler(fo_typ);
          if(! fehlergefunden)
          {
            if (fo_typ == t_veranstu)
            {
              document.azf.Veranstalter.disabled = false;
              document.azf.InternetV.disabled = false;
              if(document.azf.Standardbild)
              {
                document.azf.StandardbildUrl.value = document.azf.Standardbild.value;
              }
            }
            if (fo_typ == t_news)
            {
              if(document.azf.Standardbild)
              {
                document.azf.StandardbildUrl.value = document.azf.Standardbild.value;
              }
            }
            if (fo_typ == t_semlei)
            {
              if(document.azf.Standardbild)
              {
                document.azf.StandardbildUrl.value = document.azf.Standardbild.value;
              }
            }
            if (fo_typ == t_semort)
            {
              if(document.azf.Standardbild)
              {
                document.azf.StandardbildUrl.value = document.azf.Standardbild.value;
              }
            }
            if (fo_typ == t_semtyp)
            {
              if(document.azf.Standardbild)
              {
                document.azf.StandardbildUrl.value = document.azf.Standardbild.value;
              }
            }
            if (fo_typ == t_jobs)
            {
              if(document.azf.Standardbild)
              {
                document.azf.StandardbildUrl.value = document.azf.Standardbild.value;
              }
            }
            if (fo_typ == t_nameaz)
            {
              if(document.azf.Standardbild)
              {
                document.azf.StandardbildUrl.value = document.azf.Standardbild.value;
              }
              document.azf.stichwort_1.value = bereinigeStichwort(document.azf.stichwort_1.value);
              document.azf.stichwort_2.value = bereinigeStichwort(document.azf.stichwort_2.value);
              document.azf.stichwort_3.value = bereinigeStichwort(document.azf.stichwort_3.value);
              document.azf.stichwort_4.value = bereinigeStichwort(document.azf.stichwort_4.value);
              document.azf.stichwort_5.value = bereinigeStichwort(document.azf.stichwort_5.value);
              document.azf.stichwort_6.value = bereinigeStichwort(document.azf.stichwort_6.value);
              document.azf.stichwort_7.value = bereinigeStichwort(document.azf.stichwort_7.value);
              document.azf.stichwort_8.value = bereinigeStichwort(document.azf.stichwort_8.value);
              document.azf.stichwort_9.value = bereinigeStichwort(document.azf.stichwort_9.value);
              document.azf.stichwort_10.value = bereinigeStichwort(document.azf.stichwort_10.value);
            }
            document.azf.Vorschau.value ="1";
            document.azf.Checkcode.value = checkcode;
            document.azf.submit();
          }
          else
          {
            if((fo_typ == t_stand) && (ersteraDFehler > 0))
            {
              setzeArtikel(ersteraDFehler);
            }
            fehlerFenster(2);	
          }
        } 

        function formularAnnehmen()
        {
          document.azf.Vorschau.value ="";
          document.azf.submit();
        } 

        function aDfehler(fnr,anr)
        {
          aDfehlerArray[anr] [fnr] = 1;
          if (ersteraDFehler == 0)
          {
            ersteraDFehler = anr + 1;
          }
          if (anr == (aktuellerDatensatz - 1))
          {
            fehler(40 + fnr);
          }
          fehlergefunden = true;
        }
        function aDokay(inr)
        {
          aDfehlerArray[(aktuellerDatensatz - 1)] [(inr - 40)] = 0;
          okay(inr)
        } 
 
        function fehler(inr)
        {
          for (i=0; i<document.images.length; i++)
          { 
            if (document.images[i].name == ("pf" + inr))
            {
              document.images[i].src = p_fehler.src; 
            } 
          }
          fehlergefunden = true;
        } 
        function okay(inr)
        {
          for (i=0; i<document.images.length; i++)
          { 
            if (document.images[i].name == ("pf" + inr))
            {
              document.images[i].src = p_okay.src; 
            } 
          }
        } 
        function akzeptiereAGB()
        {
          var inr = 31;
          okay(inr);
          AGBakzeptiert = ! AGBakzeptiert;
          if(AGBakzeptiert)
          {
            for (i=0; i<document.images.length; i++)
            { 
              if (document.images[i].name == "kragb")
              {
                document.images[i].src = p_checkon.src; 
              } 
            }
          }
          else
          {
            for (i=0; i<document.images.length; i++)
            { 
              if (document.images[i].name == "kragb")
              {
                document.images[i].src = p_checkoff.src; 
              } 
            }
          }
        } 
        function fehlerFenster(k)
        {
          if (k==1)
          {
            alert("Das Formular ist nicht fehlerfrei ausgefuellt worden!\n\nBitte fuellen Sie die mit rotem Pfeil markierten Felder aus,\nbzw berichtigen Sie den Inhalt. Markieren Sie das Feld\n'AGB - Ich stimme zu' und druecken Sie erneut auf 'Senden'.");
          }
          else
          {
            if (k==2)
            {
              alert("Das Formular ist nicht fehlerfrei ausgefuellt worden!\n\nBitte fuellen Sie die mit rotem Pfeil markierten Felder aus,\nbzw berichtigen Sie den Inhalt und druecken Sie erneut auf 'Vorschau'.");
            }
            else
            {
              if (k==3)
              {
                alert("Das Formular ist nicht fehlerfrei ausgefuellt worden!\n\nBitte fuellen Sie die mit rotem Pfeil markierten Felder aus, bzw\nberichtigen Sie den Inhalt und druecken Sie erneut auf 'Senden'.");
              }
              else
              {
                if (k==4)
                {
                  alert("Das Formular ist nicht fehlerfrei ausgefuellt worden!\n\nBitte fuellen Sie die mit rotem Pfeil markierten Felder aus,\nbzw berichtigen Sie den Inhalt und druecken Sie erneut auf 'Aenderung speichern'.");
                }
                else
                {
                  alert("Das Formular ist nicht fehlerfrei ausgefuellt worden!\n\nBitte fuellen Sie die mit rotem Pfeil markierten Felder aus, bzw\nberichtigen Sie den Inhalt und druecken Sie erneut auf 'Senden'.");
                }
              }
            }
          }
        }
        function loescheForm()
        {
          document.azf.reset();
          if(w2)
          {
            w2.close();
          }
          AGBakzeptiert = false;
          for (i=0; i<document.images.length; i++)
          { 
            if (document.images[i].name == "kragb")
            {
              document.images[i].src = p_checkoff.src; 
            } 
          }
        }
        function pruefePasswort()
        {
          fehlergefunden = false;
          var t = "";
          t = document.azf.Benutzername.value;
          if((t.length > 24) || (t.length < 6))
          {
            fehler(2);
          }
          if((document.azf.Passwort.value.length > 24) || (document.azf.Passwort.value.length < 6))
          {
            fehler(3);
          }
          if(! fehlergefunden)
          {
            document.azf.submit();
          }
        }

        function pruefeForm(fo_typ)
        {
          fehlergefunden = false;
          var i = 0;
          var a = 0;
          var astr = "";
          var anzStichw = 0;
          var summe = 0; 
          var t = "";
          if((fo_typ == t_kontakt) || (fo_typ == t_anmeldungv) || (fo_typ == t_wuensche))
          {
            pruefeAufFehler(fo_typ);
            if(! fehlergefunden)
            {
              astr = "Das Formular wurde erfolgreich ausgefuellt.\n\n";
              alert(astr);
              document.azf.submit();
            }
            else
            {
              if((fo_typ == t_stand) && (ersteraDFehler > 0))
              {
                setzeArtikel(ersteraDFehler);
              }
              fehlerFenster(3);	
            }
          }
        }

        function UnterdrNamenUeberl(vornstr,nachnstr) 
        { 
          var namestr = vornstr.substr(0,(29 - nachnstr.length));
          if((vornstr.length > (29 - nachnstr.length)) && (vornstr.charAt(29 - nachnstr.length) != " ") && 
             (vornstr.charAt(29 - nachnstr.length) != "-") && (vornstr.charAt(28 - nachnstr.length) != " ") && (vornstr.charAt(28 - nachnstr.length) != "-"))
          {
          namestr = namestr + ".";
          }
          namestr = namestr + " " + nachnstr;
          return(namestr);
        }

        function UnterdrueckeHttp(urlstr) 
        { 
          var urlstrneu = "";
          if (urlstr.length > (28 + httpstr.length))
          {
            if (urlstr.substr(0,httpstr.length) == httpstr)
            {
              urlstrneu = urlstr.substr(httpstr.length,28) + "...";
            }
            else
            {
              urlstrneu = urlstr.substr(0,28) + "...";
            }
          }
          else
          {
            if (urlstr.substr(0,httpstr.length) == httpstr)
            {
              urlstrneu = urlstr.substr(httpstr.length,(urlstr.length - httpstr.length))
            }
            else
            {
              urlstrneu = urlstr;
            }
          }
          return(urlstrneu);
        }

        function nullfuellen(n,a)
        {
          var rw = "";
          var wert = n.toString();
          for(i = 0; i < (a - wert.length); i++)
          {
            rw = rw + "0";
          }
          rw = rw + wert;
          return(rw);
        }
        function TLDgueltig(TLDstr)
        {
          gueltig = false;
          if((TLDstr == "biz") || (TLDstr == "com") || (TLDstr == "info") || (TLDstr == "int") || (TLDstr == "name") || 
             (TLDstr == "net") || (TLDstr == "org") || (TLDstr == "pro") || (TLDstr == "arpa") || (TLDstr == "aero") || 
             (TLDstr == "cat") || (TLDstr == "coop") || (TLDstr == "edu") || (TLDstr == "gov") || (TLDstr == "jobs") ||
             (TLDstr == "mil") || (TLDstr == "mobi") || (TLDstr == "museum") || (TLDstr == "tel") || (TLDstr == "travel") || 
             (TLDstr == "ac") || (TLDstr == "ad") || (TLDstr == "ae") || (TLDstr == "af") || (TLDstr == "ag") || 
             (TLDstr == "ai") || (TLDstr == "al") || (TLDstr == "am") || (TLDstr == "an") || (TLDstr == "ao") || 
             (TLDstr == "aq") || (TLDstr == "ar") || (TLDstr == "as") || (TLDstr == "at") || (TLDstr == "au") || 
             (TLDstr == "aw") || (TLDstr == "ax") || (TLDstr == "az") || (TLDstr == "ba") || (TLDstr == "bb") || 
             (TLDstr == "bd") || (TLDstr == "be") || (TLDstr == "bf") || (TLDstr == "bg") || (TLDstr == "bh") || 
             (TLDstr == "bi") || (TLDstr == "bj") || (TLDstr == "bm") || (TLDstr == "bn") || (TLDstr == "bo") || 
             (TLDstr == "br") || (TLDstr == "bs") || (TLDstr == "bt") || (TLDstr == "bv") || (TLDstr == "bw") || 
             (TLDstr == "by") || (TLDstr == "bz") || (TLDstr == "ca") || (TLDstr == "cc") || (TLDstr == "cd") || 
             (TLDstr == "cf") || (TLDstr == "cg") || (TLDstr == "ch") || (TLDstr == "ci") || (TLDstr == "ck") || 
             (TLDstr == "cl") || (TLDstr == "cm") || (TLDstr == "cn") || (TLDstr == "co") || (TLDstr == "cr") || 
             (TLDstr == "cs") || (TLDstr == "cu") || (TLDstr == "cv") || (TLDstr == "cx") || (TLDstr == "cy") || 
             (TLDstr == "cz") || (TLDstr == "dd") || (TLDstr == "de") || (TLDstr == "dj") || (TLDstr == "dk") || 
             (TLDstr == "dm") || (TLDstr == "dok") || (TLDstr == "dz") || (TLDstr == "ec") || (TLDstr == "ee") || 
             (TLDstr == "eg") || (TLDstr == "eh") || (TLDstr == "er") || (TLDstr == "es") || (TLDstr == "et") || 
             (TLDstr == "eu") || (TLDstr == "fi") || (TLDstr == "fj") || (TLDstr == "fk") || (TLDstr == "fm") || 
             (TLDstr == "fo") || (TLDstr == "fr") || (TLDstr == "ga") || (TLDstr == "gb") || (TLDstr == "gd") || 
             (TLDstr == "ge") || (TLDstr == "gf") || (TLDstr == "gg") || (TLDstr == "gh") || (TLDstr == "gi") || 
             (TLDstr == "gl") || (TLDstr == "gm") || (TLDstr == "gn") || (TLDstr == "gp") || (TLDstr == "gq") || 
             (TLDstr == "gr") || (TLDstr == "gs") || (TLDstr == "gt") || (TLDstr == "gu") || (TLDstr == "gw") || 
             (TLDstr == "gy") || (TLDstr == "hk") || (TLDstr == "hm") || (TLDstr == "hn") || (TLDstr == "hr") || 
             (TLDstr == "ht") || (TLDstr == "hu") || (TLDstr == "id") || (TLDstr == "ie") || (TLDstr == "il") || 
             (TLDstr == "im") || (TLDstr == "in") || (TLDstr == "io") || (TLDstr == "iq") || (TLDstr == "ir") || 
             (TLDstr == "is") || (TLDstr == "it") || (TLDstr == "je") || (TLDstr == "jm") || (TLDstr == "jo") || 
             (TLDstr == "jp") || (TLDstr == "ke") || (TLDstr == "kg") || (TLDstr == "kh") || (TLDstr == "ki") || 
             (TLDstr == "km") || (TLDstr == "kn") || (TLDstr == "kp") || (TLDstr == "kr") || (TLDstr == "kw") || 
             (TLDstr == "ky") || (TLDstr == "kz") || (TLDstr == "la") || (TLDstr == "lb") || (TLDstr == "lc") || 
             (TLDstr == "li") || (TLDstr == "lk") || (TLDstr == "lr") || (TLDstr == "ls") || (TLDstr == "lt") || 
             (TLDstr == "lu") || (TLDstr == "lv") || (TLDstr == "ly") || (TLDstr == "ma") || (TLDstr == "mc") || 
             (TLDstr == "md") || (TLDstr == "me") || (TLDstr == "mg") || (TLDstr == "mh") || (TLDstr == "mk") || 
             (TLDstr == "ml") || (TLDstr == "mm") || (TLDstr == "mn") || (TLDstr == "mo") || (TLDstr == "mp") || 
             (TLDstr == "mq") || (TLDstr == "mr") || (TLDstr == "ms") || (TLDstr == "mt") || (TLDstr == "mu") || 
             (TLDstr == "mv") || (TLDstr == "mw") || (TLDstr == "mx") || (TLDstr == "my") || (TLDstr == "mz") || 
             (TLDstr == "na") || (TLDstr == "nc") || (TLDstr == "ne") || (TLDstr == "nf") || (TLDstr == "ng") || 
             (TLDstr == "ni") || (TLDstr == "nl") || (TLDstr == "no") || (TLDstr == "np") || (TLDstr == "nr") || 
             (TLDstr == "nu") || (TLDstr == "nz") || (TLDstr == "om") || (TLDstr == "pa") || (TLDstr == "pe") || 
             (TLDstr == "pf") || (TLDstr == "pg") || (TLDstr == "ph") || (TLDstr == "pk") || (TLDstr == "pl") || 
             (TLDstr == "pm") || (TLDstr == "pn") || (TLDstr == "pr") || (TLDstr == "ps") || (TLDstr == "pt") || 
             (TLDstr == "pw") || (TLDstr == "py") || (TLDstr == "qa") || (TLDstr == "re") || (TLDstr == "ro") || 
             (TLDstr == "rs") || (TLDstr == "ru") || (TLDstr == "rw") || (TLDstr == "sa") || (TLDstr == "sb") || 
             (TLDstr == "sc") || (TLDstr == "sd") || (TLDstr == "se") || (TLDstr == "sg") || (TLDstr == "sh") || 
             (TLDstr == "si") || (TLDstr == "sj") || (TLDstr == "sk") || (TLDstr == "sl") || (TLDstr == "sm") || 
             (TLDstr == "sn") || (TLDstr == "so") || (TLDstr == "sr") || (TLDstr == "st") || (TLDstr == "su") || 
             (TLDstr == "sv") || (TLDstr == "sy") || (TLDstr == "sz") || (TLDstr == "tc") || (TLDstr == "td") || 
             (TLDstr == "tf") || (TLDstr == "tg") || (TLDstr == "th") || (TLDstr == "tj") || (TLDstr == "tk") ||
             (TLDstr == "tl") || (TLDstr == "tm") || (TLDstr == "tn") || (TLDstr == "to") || (TLDstr == "tp") ||
             (TLDstr == "tr") || (TLDstr == "tt") || (TLDstr == "tv") || (TLDstr == "tw") || (TLDstr == "tz") ||
             (TLDstr == "ua") || (TLDstr == "ug") || (TLDstr == "uk") || (TLDstr == "um") || (TLDstr == "us") ||
             (TLDstr == "uy") || (TLDstr == "uz") || (TLDstr == "va") || (TLDstr == "vc") || (TLDstr == "ve") ||
             (TLDstr == "vg") || (TLDstr == "vi") || (TLDstr == "vn") || (TLDstr == "vu") || (TLDstr == "wf") || 
             (TLDstr == "ws") || (TLDstr == "ye") || (TLDstr == "yt") || (TLDstr == "yu") || (TLDstr == "za") || 
             (TLDstr == "zm") || (TLDstr == "zw"))
          {
            gueltig = true;
          }        
          return(gueltig);
        }
        function FEgueltig(TLDstr,dtyp)
        {
          gueltig = false;
          if(dtyp == "html")
          {
            if((TLDstr == "htm") || (TLDstr == "html") || (TLDstr == "HTM") || (TLDstr == "HTML") || (TLDstr == "pdf") || (TLDstr == "PDF") || (TLDstr == "php") || (TLDstr == "PHP"))
            {
              gueltig = true;
            }
          }
          else
          {
            if(dtyp == "bild")
            {
              if((TLDstr == "jpg") || (TLDstr == "jepg") || (TLDstr == "JPG") || (TLDstr == "JPEG") || (TLDstr == "gif") || (TLDstr == "GIF"))
              {
                gueltig = true;
              }
            }
            else
            {
              if(dtyp == "anim")
              {
                if((TLDstr == "gif") || (TLDstr == "GIF"))
                {
                  gueltig = true;
                }
              }
              else
              {
                if(dtyp == "sound")
                {
                  if((TLDstr == "swf") || (TLDstr == "mp3") || (TLDstr == "SWF") || (TLDstr == "MP3"))
                  {
                    gueltig = true;
                  }
                }
                else
                {
                  if(dtyp == "video")
                  {
                    if((TLDstr == "swf") || (TLDstr == "avi") || (TLDstr == "SWF") || (TLDstr == "AVI"))
                    {
                      gueltig = true;
                    }
                  }
                }
              }
            }
          }
          return(gueltig);
        }
        function gueltigeNr(nrstr,anz)
        {
          var gueltig = false;
          var nrstrlaenge = nrstr.length;
          if(nrstrlaenge <= anz)
          { 
            var anznichtziffer = 0;
            var anzziffer = 0;
            var gz = "";
            var gc = 0;
            ccstr = "0";
            var cc0 = ccstr.charCodeAt(0);
            ccstr = "9";
            var cc9 = ccstr.charCodeAt(0);
            for(i = 0; i < nrstrlaenge; i++)
            {
              gz = nrstr.charAt(i);
              gc = nrstr.charCodeAt(i);
              if((gc >= cc0) && (gc <= cc9))
              {
                anzziffer++;
              } 
              else
              {
                anznichtziffer++;
              } 
            }
            if((anznichtziffer == 0) && (anzziffer > 0) && (anzziffer <= anz))
            {
              gueltig = true;
            }
          }
          return(gueltig);
        }
        function gueltigerPreis(preisstr,dtyp)
        {
          var gueltig = false;
          var preisstrlaenge = preisstr.length;
          if(preisstrlaenge <= 8)
          { 
            var anzKomma = 0;
            var anznichtziffer = 0;
            var vorKomma = 0;
            var nachKomma = 0;
            var gz = "";
            var gc = 0;
            ccstr = "0";
            var cc0 = ccstr.charCodeAt(0);
            ccstr = "9";
            var cc9 = ccstr.charCodeAt(0);
            for(i = 0; i < preisstrlaenge; i++)
            {
              gz = preisstr.charAt(i);
              gc = preisstr.charCodeAt(i);
              if(gz == ",") 
              { 
                anzKomma++;
              }
              if ((anzKomma == 0) && ((gc >= cc0) && (gc <= cc9)))
              {
                vorKomma++;
              }
              if ((anzKomma == 1) && ((gc >= cc0) && (gc <= cc9)))
              {
                nachKomma++;
              }
              if((gz != ",") && ((gc < cc0) || (gc > cc9)))
              {
                anznichtziffer++;
              } 
            }
            if((anznichtziffer == 0) && (vorKomma > 0) && (vorKomma <= 5) && (((nachKomma == 0) && (anzKomma == 0)) || ((nachKomma == 2) && (anzKomma == 1))))
            {
              gueltig = true;
            }
          }
          return(gueltig);
        }
        function gueltigeURL(urlstr,dtyp)
        {
          var gueltig = false;
          urllaenge = urlstr.length;
          if (urlstr.substr(0,httpwwwstr.length) == httpwwwstr)
          {
            var u_pfad = urlstr.substr(httpwwwstr.length,(urlstr.length - httpwwwstr.length));
            var anzPunkte = 0;
            var anzSlash = 0;
            var anzDomainBS = 0;
            var anzTLD = 0;
            var anzFE = 0;
            var beginnTLD = 0;
            var beginnFE = 0;
            var domsonderzeichen = 0;
            var domzeichen = 0;
            var pfsonderzeichen = 0;
            var gz = "";
            var letztesgz = "";
            var gc = 0;
            var ccstr = "a";
            var cca = ccstr.charCodeAt(0);
            ccstr = "z";
            var ccz = ccstr.charCodeAt(0);
            ccstr = "A";
            var ccA = ccstr.charCodeAt(0);
            ccstr = "Z";
            var ccZ = ccstr.charCodeAt(0);
            ccstr = "0";
            var cc0 = ccstr.charCodeAt(0);
            ccstr = "9";
            var cc9 = ccstr.charCodeAt(0);
            ccstr = "-";
            var ccmin = ccstr.charCodeAt(0);
            ccstr = "ä";
            var ccauml = ccstr.charCodeAt(0);
            ccstr = "ö";
            var ccouml = ccstr.charCodeAt(0);
            ccstr = "ü";
            var ccuuml = ccstr.charCodeAt(0);
            ccstr = "Ä";
            var ccAuml = ccstr.charCodeAt(0);
            ccstr = "Ö";
            var ccOuml = ccstr.charCodeAt(0);
            ccstr = "Ü";
            var ccUuml = ccstr.charCodeAt(0);
            for(i = 0; i < u_pfad.length; i++)
            {
              letztesgz = gz;
              gz = u_pfad.charAt(i);
              gc = u_pfad.charCodeAt(i);
              if(gz == ".") 
              { 
                if ((anzPunkte == 0) && (letztesgz == "-"))
                {
                  domsonderzeichen = 1;
                }
                anzPunkte++;
              }
              if (anzPunkte == 0)
              {
                domzeichen++;
              }
              if ((anzPunkte == 0) && (((gc >= cca) && (gc <= ccz)) || ((gc >= ccA) && (gc <= ccZ)) || (gc == ccauml) || (gc == ccouml) || (gc == ccuuml) || (gc == ccAuml) || (gc == ccOuml) || (gc == ccUuml)))
              {
                anzDomainBS++;
              }
              if(gz == "/")
              {
                anzSlash++;
              }
              if((anzPunkte == 1) && (anzSlash == 0) && (gz != ".") && (gz != "/"))
              {
                anzTLD++;
                if (beginnTLD == 0) beginnTLD = i;
              }
              if((anzPunkte == 2) && (anzSlash >= 1) && (gz != ".") && (gz != "/"))
              {
                anzFE++;
                if (beginnFE == 0) beginnFE = i;
              }
              if((anzPunkte == 0) && !(((gc >= cca) && (gc <= ccz)) || ((gc >= ccA) && (gc <= ccZ)) || ((gc >= cc0) && (gc <= cc9)) || 
                  (gc == ccmin) || (gc == ccauml) || (gc == ccouml) || (gc == ccuuml) ||  (gc == ccAuml) || (gc == ccOuml) || (gc == ccUuml)))
              {
                domsonderzeichen = 1;
              }
              if((i == 0) && (gz == "-"))
              {
                domsonderzeichen = 1;
              }
              if((anzPunkte == 1) && (anzSlash >= 1) && ((gc == 34) || (gc == 39) || (gc == 92) || (gz == ":") || 
                 (gz == "*") || (gz == "?") || (gz == "<") || (gz == ">") || (gz == "|")))
              {
                pfsonderzeichen = 1;
              }
            }
            if((anzDomainBS > 0) && (domzeichen <= 63) && (pfsonderzeichen == 0) && (domsonderzeichen == 0) && (anzPunkte > 1) && (anzSlash > 0) && (TLDgueltig(u_pfad.substr(beginnTLD,anzTLD)) == true) && (FEgueltig(u_pfad.substr(beginnFE,anzFE),dtyp) == true))
            {
              gueltig = true;
            }
          }
          return(gueltig);
        }

        function gueltigeDomain(urlstr,dtyp)
        {
          var gueltig = false;
          urllaenge = urlstr.length;
          if (urlstr.substr(0,httpwwwstr.length) == httpwwwstr)
          {
            var u_pfad = urlstr.substr(httpwwwstr.length,(urlstr.length - httpwwwstr.length));
            var anzPunkte = 0;
            var anzSlash = 0;
            var anzDomainBS = 0;
            var anzTLD = 0;
            var anzFE = 0;
            var beginnTLD = 0;
            var beginnFE = 0;
            var domsonderzeichen = 0;
            var domzeichen = 0;
            var pfsonderzeichen = 0;
            var gz = "";
            var letztesgz = "";
            var gc = 0;
            var ccstr = "a";
            var cca = ccstr.charCodeAt(0);
            ccstr = "z";
            var ccz = ccstr.charCodeAt(0);
            ccstr = "A";
            var ccA = ccstr.charCodeAt(0);
            ccstr = "Z";
            var ccZ = ccstr.charCodeAt(0);
            ccstr = "0";
            var cc0 = ccstr.charCodeAt(0);
            ccstr = "9";
            var cc9 = ccstr.charCodeAt(0);
            ccstr = "-";
            var ccmin = ccstr.charCodeAt(0);
            ccstr = "ä";
            var ccauml = ccstr.charCodeAt(0);
            ccstr = "ö";
            var ccouml = ccstr.charCodeAt(0);
            ccstr = "ü";
            var ccuuml = ccstr.charCodeAt(0);
            ccstr = "Ä";
            var ccAuml = ccstr.charCodeAt(0);
            ccstr = "Ö";
            var ccOuml = ccstr.charCodeAt(0);
            ccstr = "Ü";
            var ccUuml = ccstr.charCodeAt(0);
            for(i = 0; i < u_pfad.length; i++)
            {
              letztesgz = gz;
              gz = u_pfad.charAt(i);
              gc = u_pfad.charCodeAt(i);
              if(gz == ".") 
              { 
                if ((anzPunkte == 0) && (letztesgz == "-"))
                {
                  domsonderzeichen = 1;
                }
                anzPunkte++;
              }
              if (anzPunkte == 0)
              {
                domzeichen++;
              }
              if ((anzPunkte == 0) && (((gc >= cca) && (gc <= ccz)) || ((gc >= ccA) && (gc <= ccZ)) || (gc == ccauml) || (gc == ccouml) || (gc == ccuuml) || (gc == ccAuml) || (gc == ccOuml) || (gc == ccUuml)))
              {
                anzDomainBS++;
              }
              if(gz == "/")
              {
                anzSlash++;
              }
              if((anzPunkte == 1) && (anzSlash == 0) && (gz != ".") && (gz != "/"))
              {
                anzTLD++;
                if (beginnTLD == 0) beginnTLD = i;
              }
              if((anzPunkte == 2) && (anzSlash >= 1) && (gz != ".") && (gz != "/"))
              {
                anzFE++;
                if (beginnFE == 0) beginnFE = i;
              }


              if((anzPunkte == 0) && !(((gc >= cca) && (gc <= ccz)) || ((gc >= ccA) && (gc <= ccZ)) || ((gc >= cc0) && (gc <= cc9)) || 
                  (gc == ccmin) || (gc == ccauml) || (gc == ccouml) || (gc == ccuuml) ||  (gc == ccAuml) || (gc == ccOuml) || (gc == ccUuml)))
              {
                domsonderzeichen = 1;
              }
              if((i == 0) && (gz == "-"))
              {
                domsonderzeichen = 1;
              }
              if((anzPunkte == 1) && (anzSlash >= 1) && ((gc == 34) || (gc == 39) || (gc == 92) || (gz == ":") || 
                 (gz == "*") || (gz == "?") || (gz == "<") || (gz == ">") || (gz == "|")))
              {
                pfsonderzeichen = 1;
              }
            }

//            if((anzDomainBS > 0) && (domzeichen <= 63) && (pfsonderzeichen == 0) && (domsonderzeichen == 0) && (anzPunkte >= 1) && (TLDgueltig(u_pfad.substr(beginnTLD,anzTLD)) == true) && ((FEgueltig(u_pfad.substr(beginnFE,anzFE),dtyp) == true) || (anzFE == 0)))

            if((anzDomainBS > 0) && (domzeichen <= 63) && (pfsonderzeichen == 0) && (domsonderzeichen == 0) && (anzPunkte >= 1) && (TLDgueltig(u_pfad.substr(beginnTLD,anzTLD)) == true) && ((FEgueltig(u_pfad.substr(beginnFE,anzFE),dtyp) == true) || (anzFE == 0)))
            {
              gueltig = true;
            }
          }
          return(gueltig);
        }

        function gueltigeEmailadr(adrstr)
        {
          var gueltig = false;
          adrlaenge = adrstr.length;
          var anzName = 0;
          var anzAt = 0;
          var anzPunkte = 0;
          var anzDomainBS = 0;
          var anzTLD = 0;
          var beginnTLD = 0;
          var domsonderzeichen = 0;
          var domzeichen = 0;
          var pfsonderzeichen = 0;
          var gz = "";
          var letztesgz = "";
          var gc = 0;
          var ccstr = "a";
          var cca = ccstr.charCodeAt(0);
          ccstr = "z";
          var ccz = ccstr.charCodeAt(0);
          ccstr = "A";
          var ccA = ccstr.charCodeAt(0);
          ccstr = "Z";
          var ccZ = ccstr.charCodeAt(0);
          ccstr = "0";
          var cc0 = ccstr.charCodeAt(0);
          ccstr = "9";
          var cc9 = ccstr.charCodeAt(0);
          ccstr = "-";
          var ccmin = ccstr.charCodeAt(0);
          ccstr = "ä";
          var ccauml = ccstr.charCodeAt(0);
          ccstr = "ö";
          var ccouml = ccstr.charCodeAt(0);
          ccstr = "ü";
          var ccuuml = ccstr.charCodeAt(0);
          ccstr = "Ä";
          var ccAuml = ccstr.charCodeAt(0);
          ccstr = "Ö";
          var ccOuml = ccstr.charCodeAt(0);
          ccstr = "Ü";
          var ccUuml = ccstr.charCodeAt(0);
          for(i = 0; i < adrstr.length; i++)
          {
            letztesgz = gz;
            gz = adrstr.charAt(i);
            gc = adrstr.charCodeAt(i);
            if (anzAt == 1)
            {
              if(gz == ".") 
              { 
                if ((anzPunkte == 0) && (letztesgz == "-"))
                {
                  domsonderzeichen = 1;
                }
                anzPunkte++;
              }
              if (anzPunkte == 0)
              {
                domzeichen++;
              }
              if ((anzPunkte == 0) && (((gc >= cca) && (gc <= ccz)) || ((gc >= ccA) && (gc <= ccZ)) || (gc == ccauml) || (gc == ccouml) || (gc == ccuuml) || (gc == ccAuml) || (gc == ccOuml) || (gc == ccUuml)))
              {
                anzDomainBS++;
              }
              if((anzPunkte == 1) && (gz != "."))
              {
                anzTLD++;
                if (beginnTLD == 0) beginnTLD = i;
              }
              if((anzPunkte == 0) && !(((gc >= cca) && (gc <= ccz)) || ((gc >= ccA) && (gc <= ccZ)) || ((gc >= cc0) && (gc <= cc9)) || 
                 (gc == ccmin) || (gc == ccauml) || (gc == ccouml) || (gc == ccuuml) ||  (gc == ccAuml) || (gc == ccOuml) || (gc == ccUuml)))
              {
                domsonderzeichen = 1;
              }
              if((domzeichen == 1) && (gz == "-"))
              {
                domsonderzeichen = 1;
              }
              if((anzPunkte == 1) && ((gc == 34) || (gc == 39) || (gc == 92) || (gc == 47) || (gz == ":") || 
                 (gz == "*") || (gz == "?") || (gz == "<") || (gz == ">") || (gz == "|")))
              {
                pfsonderzeichen = 1;
              }
            }
            else
            {
              if(gz == "@") 
              {
                anzAt++;
              }
              if (anzAt == 0)
              {
                anzName++;
              }
            }
          }
          if((anzName >= 3) && (anzAt == 1) && (anzDomainBS > 0) && (domzeichen <= 63) && (pfsonderzeichen == 0) && (domsonderzeichen == 0) && (anzPunkte == 1) && (TLDgueltig(adrstr.substr(beginnTLD,anzTLD)) == true))
          {
            gueltig = true;
          }
          return(gueltig);
        }

        function gueltigeDatei(dateistr,dtyp)
        {
          var gueltig = false;
          var u_pfad = dateistr;
          var anzPunkte = 0;
          var anzFE = 0;
          var beginnFE = 0;
          var datsonderzeichen = 0;
          var gz = "";
          var gc = 0;
          for(i = 0; i < u_pfad.length; i++)
          {
            gz = u_pfad.charAt(i);
            gc = u_pfad.charCodeAt(i);
            if(gz == ".") 
            { 
              anzPunkte++;
            }
            if((anzPunkte == 1) && (gz != "."))
            {
              anzFE++;
              if (beginnFE == 0) beginnFE = i;
            }
            if((gc == 34) || (gc == 39) || // (gc == 92) || (gz == ":") || 
              (gz == "*") || (gz == "?") || (gz == "<") || (gz == ">") || (gz == "|"))
            {
              datsonderzeichen = 1;
            }
          }
          if((datsonderzeichen == 0) && (anzPunkte == 1) && (FEgueltig(u_pfad.substr(beginnFE,anzFE),dtyp) == true))
          {
            gueltig = true;
          }
          return(gueltig);
        }

        function MaxTag(monat,jahr)
        {
          var mt = 0;
          if((monat == 1) || (monat == 3) || (monat == 5) || (monat == 7) || (monat == 8) || (monat == 10) || (monat == 12))
          {
            mt = 31;
          }
          if((monat == 4) || (monat == 6) || (monat == 9) || (monat == 11))
          {
            mt = 30;
          }
          if(monat == 2)
          {
            if((jahr % 4) == 0)
            {
              mt = 29;
            }
            else
            {
              mt = 28;
            }
          }
          return(mt);
        }

        function gueltigesDatum(datumstr)
        {
          var gueltig = false;
          var anzPunkte = 0;
          var tag = 0;
          var monat = 0;
          var jahr = 0;
          ccstr = "0";
          var cc0 = ccstr.charCodeAt(0);
          ccstr = "9";
          var cc9 = ccstr.charCodeAt(0);
          var gz = "";
          var gc = 0;
          for(i = 0; i < datumstr.length; i++)
          {
            gz = datumstr.charAt(i);
            gc = datumstr.charCodeAt(i);
            if(anzPunkte == 0)
            {
              if ((gc >= cc0) && (gc <= cc9))
              {
                if(tag == 0)
                {
                  tag = parseInt(gz);
                }
                else
                {
                  if(tag > 0)
                  {
                    tag = (tag*10) + parseInt(gz);
                  }
                } 
              }
              else
              {
                if (gz == ".")
                {
                  anzPunkte++;
                }
                else
                {
                  tag = -1;
                }
              }
            }
            else
            {
              if(anzPunkte == 1)
              {
                if ((gc >= cc0) && (gc <= cc9))
                {
                  if(monat == 0)
                  {
                    monat = parseInt(gz);
                  }
                  else
                  {
                    if(monat > 0)
                    {
                      monat = (monat*10) + parseInt(gz);
                    }
                  } 
                }
                else
                {
                  if (gz == ".")
                  {
                    anzPunkte++;
                  }
                  else
                  {
                    monat = -1;
                  }
                }
              }
              else
              {
                if(anzPunkte == 2)
                {
                  if ((gc >= cc0) && (gc <= cc9))
                  {
                    if(jahr == 0)
                    {
                      jahr = parseInt(gz);
                    }
                    else
                    {
                      if(jahr > 0)
                      {
                        jahr = (jahr*10) + parseInt(gz);
                      }
                    } 
                  }
                  else
                  {
                    if (gz == ".")
                    {
                      anzPunkte++;
                    }
                    else
                    {
                      jahr = -1;
                    }
                  }
                }
              }
            }
          }  
          if((anzPunkte == 2) && (tag >= 1) && (monat >= 1) && (jahr >= 1))
          {
            if((tag >= 1) && (tag <= MaxTag(monat,jahr)) && (monat >= 1) && (monat <= 12) && (((jahr >= 6) && (jahr <= 36)) || ((jahr >= 2006) && (jahr <= 2036))))
            {
              gueltig = true;
            }
          }
          return(gueltig);
        }

        function gueltigesGebDatum(datumstr)
        {
          var gueltig = false;
          var anzPunkte = 0;
          var tag = 0;
          var monat = 0;
          var jahr = 0;
          ccstr = "0";
          var cc0 = ccstr.charCodeAt(0);
          ccstr = "9";
          var cc9 = ccstr.charCodeAt(0);
          var gz = "";
          var gc = 0;
          for(i = 0; i < datumstr.length; i++)
          {
            gz = datumstr.charAt(i);
            gc = datumstr.charCodeAt(i);
            if(anzPunkte == 0)
            {
              if ((gc >= cc0) && (gc <= cc9))
              {
                if(tag == 0)
                {
                  tag = parseInt(gz);
                }
                else
                {
                  if(tag > 0)
                  {
                    tag = (tag*10) + parseInt(gz);
                  }
                } 
              }
              else
              {
                if (gz == ".")
                {
                  anzPunkte++;
                }
                else
                {
                  tag = -1;
                }
              }
            }
            else
            {
              if(anzPunkte == 1)
              {
                if ((gc >= cc0) && (gc <= cc9))
                {
                  if(monat == 0)
                  {
                    monat = parseInt(gz);
                  }
                  else
                  {
                    if(monat > 0)
                    {
                      monat = (monat*10) + parseInt(gz);
                    }
                  } 
                }
                else
                {
                  if (gz == ".")
                  {
                    anzPunkte++;
                  }
                  else
                  {
                    monat = -1;
                  }
                }
              }
              else
              {
                if(anzPunkte == 2)
                {
                  if ((gc >= cc0) && (gc <= cc9))
                  {
                    if(jahr == 0)
                    {
                      jahr = parseInt(gz);
                    }
                    else
                    {
                      if(jahr > 0)
                      {
                        jahr = (jahr*10) + parseInt(gz);
                      }
                    } 
                  }
                  else
                  {
                    if (gz == ".")
                    {
                      anzPunkte++;
                    }
                    else
                    {
                      jahr = -1;
                    }
                  }
                }
              }
            }
          }  
          if((anzPunkte == 2) && (tag >= 1) && (monat >= 1) && (jahr >= 0))
          {
            if((tag >= 1) && (tag <= MaxTag(monat,jahr)) && (monat >= 1) && (monat <= 12) && ((jahr >= 0) && (jahr <= 2036)))
            {
              gueltig = true;
            }
          }
          return(gueltig);
        }

        function gueltigeUhrzeit(uhrzstr)
        {
          var gueltig = false;
          ccstr = "0";
          var cc0 = ccstr.charCodeAt(0);
          ccstr = "1";
          var cc1 = ccstr.charCodeAt(0);
          ccstr = "2";
          var cc2 = ccstr.charCodeAt(0);
          ccstr = "3";
          var cc3 = ccstr.charCodeAt(0);
          ccstr = "5";
          var cc5 = ccstr.charCodeAt(0);
          ccstr = "9";
          var cc9 = ccstr.charCodeAt(0);
          ccstr = ":";
          var ccdp = ccstr.charCodeAt(0);
          if (uhrzstr.length == 5)
          {
            if((((uhrzstr.charCodeAt(0) >= cc0) && (uhrzstr.charCodeAt(0) <= cc1) && (uhrzstr.charCodeAt(1) >= cc0) && (uhrzstr.charCodeAt(1) <= cc9)) ||
                ((uhrzstr.charCodeAt(0) == cc2) && (uhrzstr.charCodeAt(1) >= cc0) && (uhrzstr.charCodeAt(1) <= cc3))) &&
               (uhrzstr.charCodeAt(2) == ccdp) &&
               (uhrzstr.charCodeAt(3) >= cc0) && (uhrzstr.charCodeAt(3) <= cc5) && ((uhrzstr.charCodeAt(4) == cc0) || (uhrzstr.charCodeAt(4) == cc5)))
            {
              gueltig = true;
            }
          }
          if (uhrzstr.length == 4)
          {
            if((uhrzstr.charCodeAt(0) >= cc0) && (uhrzstr.charCodeAt(0) <= cc9) && 
               (uhrzstr.charCodeAt(1) == ccdp) &&
               (uhrzstr.charCodeAt(2) >= cc0) && (uhrzstr.charCodeAt(2) <= cc5) && ((uhrzstr.charCodeAt(3) == cc0) || (uhrzstr.charCodeAt(3) == cc5)))
            {
              gueltig = true;
            }
          }
          if (uhrzstr.length == 2)
          {
            if(((uhrzstr.charCodeAt(0) >= cc0) && (uhrzstr.charCodeAt(0) <= cc1) && (uhrzstr.charCodeAt(1) >= cc0) && (uhrzstr.charCodeAt(1) <= cc9)) ||
               ((uhrzstr.charCodeAt(0) == cc2) && (uhrzstr.charCodeAt(1) >= cc0) && (uhrzstr.charCodeAt(1) <= cc3)))
            {
              gueltig = true;
            }
          }
          if (uhrzstr.length == 1)
          {
            if((uhrzstr.charCodeAt(0) >= cc0) && (uhrzstr.charCodeAt(0) <= cc9))
            {
              gueltig = true;
            }
          }
          return(gueltig);
        }

        function formatiereDatum(datumstr)
        {
          var datumstrneu = "";
          var anzPunkte = 0;
          var tag = 0;
          var monat = 0;
          var jahr = 0;
          ccstr = "0";
          var cc0 = ccstr.charCodeAt(0);
          ccstr = "9";
          var cc9 = ccstr.charCodeAt(0);
          var gz = "";
          var gc = 0;
          for(i = 0; i < datumstr.length; i++)
          {
            gz = datumstr.charAt(i);
            gc = datumstr.charCodeAt(i);
            if(anzPunkte == 0)
            {
              if ((gc >= cc0) && (gc <= cc9))
              {
                if(tag == 0)
                {
                  tag = parseInt(gz);
                }
                else
                {
                  if(tag > 0)
                  {
                    tag = (tag*10) + parseInt(gz);
                  }
                } 
              }
              else
              {
                if (gz == ".")
                {
                  anzPunkte++;
                }
                else
                {
                  tag = -1;
                }
              }
            }
            else
            {
              if(anzPunkte == 1)
              {
                if ((gc >= cc0) && (gc <= cc9))
                {
                  if(monat == 0)
                  {
                    monat = parseInt(gz);
                  }
                  else
                  {
                    if(monat > 0)
                    {
                      monat = (monat*10) + parseInt(gz);
                    }
                  } 
                }
                else
                {
                  if (gz == ".")
                  {
                    anzPunkte++;
                  }
                  else
                  {
                    monat = -1;
                  }
                }
              }
              else
              {
                if(anzPunkte == 2)
                {
                  if ((gc >= cc0) && (gc <= cc9))
                  {
                    if(jahr == 0)
                    {
                      jahr = parseInt(gz);
                    }
                    else
                    {
                      if(jahr > 0)
                      {
                        jahr = (jahr*10) + parseInt(gz);
                      }
                    } 
                  }
                  else
                  {
                    if (gz == ".")
                    {
                      anzPunkte++;
                    }
                    else
                    {
                      jahr = -1;
                    }
                  }
                }
              }
            }
          }          
          if((tag >= 1) && (tag <= 9))
          {
            datumstrneu = datumstrneu + "0" + tag + ".";
          }
          else
          {
            if((tag >= 10) && (tag <= MaxTag(monat,jahr)))
            {
              datumstrneu = datumstrneu + tag + ".";
            }
            else
            {
              datumstrneu = datumstrneu + "tt.";
            }
          }
          if((monat >= 1) && (monat <= 9))
          {
            datumstrneu = datumstrneu + "0" + monat + ".";
          }
          else
          {
            if((monat >= 10) && (monat <= 12))
            {
              datumstrneu = datumstrneu + monat + ".";
            }
            else
            {
              datumstrneu = datumstrneu + "mm.";
            }
          }
          if((jahr >= 1) && (jahr <= 9))
          {
            datumstrneu = datumstrneu + "0" + jahr;
          }
          else
          {
            if((jahr >= 10) && (jahr <= 99))
            {
              datumstrneu = datumstrneu + jahr;
            }
            else
            {
              if((jahr >= 100) && (jahr <= 9999))
              {
                if(((jahr % 100) >= 0) && ((jahr % 100) <= 9))
                {
                  datumstrneu = datumstrneu + "0" + (jahr % 100);
                }
                else
                {
                  datumstrneu = datumstrneu + (jahr % 100);
                }
              }
              else
              {
                datumstrneu = datumstrneu + "jj";
              }
            }
          }
          return(datumstrneu);
        }

        function formatiereGeburtsDatum(datumstr)
        {
          var datumstrneu = "";
          var anzPunkte = 0;
          var tag = 0;
          var monat = 0;
          var jahr = 0;
          ccstr = "0";
          var cc0 = ccstr.charCodeAt(0);
          ccstr = "9";
          var cc9 = ccstr.charCodeAt(0);
          var gz = "";
          var gc = 0;
          for(i = 0; i < datumstr.length; i++)
          {
            gz = datumstr.charAt(i);
            gc = datumstr.charCodeAt(i);
            if(anzPunkte == 0)
            {
              if ((gc >= cc0) && (gc <= cc9))
              {
                if(tag == 0)
                {
                  tag = parseInt(gz);
                }
                else
                {
                  if(tag > 0)
                  {
                    tag = (tag*10) + parseInt(gz);
                  }
                } 
              }
              else
              {
                if (gz == ".")
                {
                  anzPunkte++;
                }
                else
                {
                  tag = -1;
                }
              }
            }
            else
            {
              if(anzPunkte == 1)
              {
                if ((gc >= cc0) && (gc <= cc9))
                {
                  if(monat == 0)
                  {
                    monat = parseInt(gz);
                  }
                  else
                  {
                    if(monat > 0)
                    {
                      monat = (monat*10) + parseInt(gz);
                    }
                  } 
                }
                else
                {
                  if (gz == ".")
                  {
                    anzPunkte++;
                  }
                  else
                  {
                    monat = -1;
                  }
                }
              }
              else
              {
                if(anzPunkte == 2)
                {
                  if ((gc >= cc0) && (gc <= cc9))
                  {
                    if(jahr == 0)
                    {
                      jahr = parseInt(gz);
                    }
                    else
                    {
                      if(jahr > 0)
                      {
                        jahr = (jahr*10) + parseInt(gz);
                      }
                    } 
                  }
                  else
                  {
                    if (gz == ".")
                    {
                      anzPunkte++;
                    }
                    else
                    {
                      jahr = -1;
                    }
                  }
                }
              }
            }
          }          
          if((tag >= 1) && (tag <= 9))
          {
            datumstrneu = datumstrneu + "0" + tag + ".";
          }
          else
          {
            if((tag >= 10) && (tag <= MaxTag(monat,jahr)))
            {
              datumstrneu = datumstrneu + tag + ".";
            }
            else
            {
              datumstrneu = datumstrneu + "tt.";
            }
          }
          if((monat >= 1) && (monat <= 9))
          {
            datumstrneu = datumstrneu + "0" + monat + ".";
          }
          else
          {
            if((monat >= 10) && (monat <= 12))
            {
              datumstrneu = datumstrneu + monat + ".";
            }
            else
            {
              datumstrneu = datumstrneu + "mm.";
            }
          }
          if((jahr >= 0) && (jahr <= 9))
          {
            if(jahr <= (heute.getYear() % 100))
            {
              datumstrneu = datumstrneu + "200" + jahr;
            }
            else
            {
              datumstrneu = datumstrneu + "190" + jahr;
            }
          }
          else
          {
            if((jahr >= 10) && (jahr <= 99))
            {
              if(jahr <= (heute.getYear() % 100))
              {
                datumstrneu = datumstrneu + "20" + jahr;
              }
              else
              {
                datumstrneu = datumstrneu + "19" + jahr;
              }
            }
            else
            {
              if((jahr >= 100) && (jahr <= 9999))
              {
                if((jahr >= 100) && (jahr <= 999))
                {
                  datumstrneu = datumstrneu + "1" + jahr;
                }
                else
                {
                  datumstrneu = datumstrneu + jahr;
                }
              }
              else
              {
                datumstrneu = datumstrneu + "jjjj";
              }
            }
          }
          return(datumstrneu);
        }

        function formatiereUhrzeit(uhrzstr)
        {
          var uhrzeitstrneu = "";
          if (uhrzstr.length == 5)
          {
            if(uhrzstr.charAt(0) == "0")
            {
              uhrzeitstrneu = uhrzstr.substr(1,4);
            }
            else
            {
              uhrzeitstrneu = uhrzstr;
            }
          }
          if (uhrzstr.length == 4)
          {
            uhrzeitstrneu = uhrzstr;
          }
          if (uhrzstr.length == 2)
          {
            if(uhrzstr.charAt(0) == "0")
            {
              uhrzeitstrneu = uhrzstr.substr(1,1) + ":00";
            }
            else
            {
              uhrzeitstrneu = uhrzstr + ":00";
            }
          }
          if (uhrzstr.length == 1)
          {
            uhrzeitstrneu = uhrzstr + ":00";
          }
          return(uhrzeitstrneu);
        }



