  <!--
    function check_validity()
    {
      var no_risk;
      var i;

      with (document.form1914)
      {
        if (plz.value.length != 5)
        {
          alert ("Bitte geben Sie eine 5-stellige PLZ ein.");
          return (false);
        }

        for (var i=0; i<plz.value.length; i++)
          if (parseInt(plz.value.substr(i, 1)) != plz.value.substr(i, 1))
          {
            alert ("Bitte geben Sie Ihre PLZ korrekt ein.");
            return (false);
          }

        /* Glas vorerst inaktiv
        if (!(f.checked || l.checked || sh.checked || el.checked || g.checked))
        {
          alert("Bitte wählen Sie mindestens 1 zu versicherndes Risiko aus.");
          return(false);
        }
        */

        if (!((f.checked || l.checked || sh.checked || el.checked) || f.type == "hidden"))
        {
          alert("Bitte wählen Sie mindestens 1 zu versicherndes Risiko aus.");
          return(false);
        }


        if (el.checked && !((f.checked || f.type == "hidden") || l.checked || sh.checked))
        {
          alert("Elementarschäden können nur in Verbindung mit Feuer und/oder Leitungswasser und/oder Sturm/Hagel versichert werden.");
          return(false);
        }
      }

      return(true);

    }
    
    function set_schadensfrei()
    {
      var tr_vis;
      var tr_hid;
      var jetzt = new Date();
      var jahr = jetzt.getYear();
      
      if (jahr < 2000)
        jahr = jahr + 1900
            
      if (parseInt(document.form1914.baujahr.value) >= parseInt(jahr - 5))
      {        
        tr_hid = "sf_jahre";
        tr_vis = "sf_baujahr";
      }
      else
      {
        tr_hid = "sf_baujahr";
        tr_vis = "sf_jahre";
      }
        
      if (document.all)
      {
        eval("document.all." + tr_hid + ".style.display = 'none'");
        
        try
        {
          eval("document.all." + tr_vis + ".style.display = 'table-row'");        
        }
        catch(e)
        {
          eval("document.all." + tr_vis + ".style.display = 'block'");
        }
      }
      else
      {
        document.getElementById(tr_hid).style.display = "none";

        try
        {
          document.getElementById(tr_vis).style.display = "table-row";
        }
        catch(e)
        {
          document.getElementById(tr_vis).style.display = "block";
        }
      }
    }
    
    function set_schritte(methode)
    {
      if(methode == "Wertermittlung")
      {
        document.form1914.action = 'input_2.php';
        document.form1914.weiter.value = "weiter zu Schritt 2";
      }
      else
      {
        //document.form1914.action = 'wert_1914.php';
        document.form1914.action = 'input_4.php';
        //document.form1914.weiter.value = "weiter zu Schritt 5";
        document.form1914.weiter.value = "weiter zu Schritt 4";
      }
    
    }
    
    function fill_geschosse(val)
    {
      document.form1914.geschosse.options.length = 0;

      if(val == "M") // Mehrfamilienhaus
      {
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG+1.OG+2.OG+DG ausgebaut", 3);
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG+1.-2.OG mit Flachdach", "3_4_1");
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG+1.-2.OG, DG n. ausgebaut", "3_4_2");
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG+1.-2.OG+3.OG n. ausgeb., Flachdach", "3_4_3");
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG+1.-2.OG+3.OG und DG n. ausgebaut", "3_4_4");
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG+1.-3.OG+DG ausgebaut", 4);
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG+1.-4.OG mit Flachdach", 5);

        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("sonstiges", 0);
      }
      else
      {
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG mit Flachdach", 0);
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG+OG mit Flachdach", 1);
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG ohne ausgebautes DG", 2);
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG mit ausgebautem DG", 3);
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG+OG, DG n. ausgebaut", 4);
        document.form1914.geschosse.options[document.form1914.geschosse.options.length] = new Option("EG+OG, DG ausgebaut", 5);
      }    
    }
  //-->