function SmallWindow71(wintype) {
SmallWin71=window.open(wintype,"SmallWin71","toolbar=no,directories=no,status=no,scrollbars=yes,menubar=yes,width=415,height=260"); SmallWin71.window.focus() }

function SmallWindow40(wintype) {
SmallWin40=window.open(wintype,"SmallWin40","toolbar=yes,directories=no,status=no,scrollbars=yes,menubar=yes,width=620,height=490"); SmallWin40.window.focus() }

function InsertDate(wert, Gebaeudeart0, Gebaeudeart1, Gebaeudeart2, Gebaeudeart3, Gebaeudeart4, Gebaeudeart5, Gebaeudeart6, Gebaeudeart7, Gebaeudeart8, Gebaeudeart9, Gebaeudeart10, Gebaeudeart11, Ausstattung, Ausstattung1, Ausstattung2, Ausstattung3, Ausstattung4, Ausstattung5, Ausstattung6, Ausstattung7, Ausstattung8, Ausstattung9, Ausstattung10, Ausstattung11, VS, WFLDGQM, WFLOGQM, WFLEGQM, KGQM, GARANZ ) {
        document.Form1.WERT1914.value = wert;
        document.Form1.Gebaeudeart0.value = Gebaeudeart0;
		document.Form1.Gebaeudeart1.value = Gebaeudeart1;
		document.Form1.Gebaeudeart2.value = Gebaeudeart2;
		document.Form1.Gebaeudeart3.value = Gebaeudeart3;
		document.Form1.Gebaeudeart4.value = Gebaeudeart4;
		document.Form1.Gebaeudeart5.value = Gebaeudeart5;
		document.Form1.Gebaeudeart6.value = Gebaeudeart6;
		document.Form1.Gebaeudeart7.value = Gebaeudeart7;
		document.Form1.Gebaeudeart8.value = Gebaeudeart8;
		document.Form1.Gebaeudeart9.value = Gebaeudeart9;
		document.Form1.Gebaeudeart10.value = Gebaeudeart10;
		document.Form1.Gebaeudeart11.value = Gebaeudeart11;
		document.Form1.Ausstattung.value = Ausstattung;
		document.Form1.Ausstattung1.value = Ausstattung1;
		document.Form1.Ausstattung2.value = Ausstattung2;
		document.Form1.Ausstattung3.value = Ausstattung3;
		document.Form1.Ausstattung4.value = Ausstattung4;
		document.Form1.Ausstattung5.value = Ausstattung5;
		document.Form1.Ausstattung6.value = Ausstattung6;
		document.Form1.Ausstattung7.value = Ausstattung7;
		document.Form1.Ausstattung8.value = Ausstattung8;
		document.Form1.Ausstattung9.value = Ausstattung9;
		document.Form1.Ausstattung10.value = Ausstattung10;
		document.Form1.Ausstattung11.value = Ausstattung11;
		document.Form1.Ausstattung11.value = Ausstattung11;
		document.Form1.VS.value = VS;
		document.Form1.WFLDGQM.value = WFLDGQM;
		document.Form1.WFLOGQM.value = WFLOGQM;
		document.Form1.WFLEGQM.value = WFLEGQM;
		document.Form1.KGQM.value = KGQM;
				
		document.Form1.GARANZ.value = GARANZ;
                document.Form1.GARAGE.value = GARANZ;
		document.Form1.FORMULAR1914.value = wert;
	
		document.Form1.A_VGV_qm_dg.value=WFLDGQM;
		document.Form1.qm_obergeschoss.value=WFLOGQM;
		document.Form1.qm_erdgeschoss.value=WFLEGQM;
		document.Form1.qm_kellergeschoss.value=KGQM;

		//das Zusammenaddieren erfolgt jetzt beim Absenden des Formulares und nicht mehr hier!
		//document.Form1.QM.value = eval(eval(WFLEGQM)+eval(WFLDGQM)+eval(WFLOGQM)+eval(KGQM));


		if (Gebaeudeart0 == "1") { 	document.Form1.Nutzung.value = 10; 	}
		if (Gebaeudeart1 == "1") { 	document.Form1.Nutzung.value = 10; 	}
		if (Gebaeudeart2 == "1") { 	document.Form1.Nutzung.value = 10; 	}
		if (Gebaeudeart3 == "1") { 	document.Form1.Nutzung.value = 1; 	}
		if (Gebaeudeart4 == "1") { 	document.Form1.Nutzung.value = 1; 	}
		if (Gebaeudeart5 == "1") { 	document.Form1.Nutzung.value = 1; 	}
		if (Gebaeudeart6 == "1") { 	document.Form1.Nutzung.value = 20; 	}
		if (Gebaeudeart7 == "1") { 	document.Form1.Nutzung.value = 20; 	}
		if (Gebaeudeart8 == "1") { 	document.Form1.Nutzung.value = 20; 	}
		if (Gebaeudeart9 == "1") { 	document.Form1.Nutzung.value = 2; 	}
		if (Gebaeudeart10 == "1") { document.Form1.Nutzung.value = 2; 	}
		if (Gebaeudeart11 == "1") { document.Form1.Nutzung.value = 2; 	}
}

function Wertermittlung() {
Fenster = window.open("http://www.innofima.de/js/versicherungswertermittlung1914.htm", "wert", "toolbar=0,location=0,directories=0,status=0,dependent=yes,menubar=1,scrollbars=1,width=700,height=550");

}

function punkte()
        {
        // Fuer die Eingabe Geburtsdatum ohne Punkte 18.03.2005 BAY
        Datum=document.Form1.DATUM.value;

        var Laenge=Datum.length;
        //alert (Laenge)
        if (Laenge==8) {
        var tt= Datum.substring(0,2);
        var mm = Datum.substring(2,4);
        var jjjj = Datum.substring(4,8);
        document.Form1.DATUM.value = tt + '.' + mm + '.' + jjjj;
        }

        if (Laenge==6) {
        var tt= Datum.substring(0,2);
        var mm = Datum.substring(2,4);
        var jjjj = Datum.substring(4,6);
        document.Form1.DATUM.value = tt + '.' + mm + '.19' + jjjj;
        }

        //alert (tt)
        //alert (mm)
        //alert (jjjj)
        //alert ( document.Form1.DATUM.value );

}

var Jahr = 0;
var Monat =0;
var Tag = 0;
var Datumstring
var Daten=new Array()

Daten[0]=new Array(1,12,31,12,"12",new Image());
Daten[1]=new Array(1,1,31,1,"1",new Image());
Daten[2]=new Array(1,2,29,2,"2",new Image());
Daten[3]=new Array(1,3,31,3,"3",new Image());
Daten[4]=new Array(1,4,30,4,"4",new Image());
Daten[5]=new Array(1,5,31,5,"5",new Image());
Daten[6]=new Array(1,6,30,6,"6",new Image());
Daten[7]=new Array(1,7,31,7,"7",new Image());
Daten[8]=new Array(1,8,31,8,"8",new Image());
Daten[9]=new Array(1,9,30,9,"9",new Image());
Daten[10]=new Array(1,10,31,10,"10",new Image());
Daten[11]=new Array(1,11,30,11,"11",new Image());


// Daten[0][5]="Dezember";
// Daten[1][5]="Januar";
// Daten[2][5]="Februar";
// Daten[3][5]="März";
// Daten[4][5]="April"
// Daten[5][5]="Mai";
// Daten[6][5]="Juni";
// Daten[7][5]="Juli";
// Daten[8][5]="August";
// Daten[9][5]="September";
// Daten[10][5]="Oktober";
// Daten[11][5]="November";
// NameMonat=new Image();
Treffer=0;

function Form1_Validator(theForm)
{

        // addieren der QM zu einer Gesamtflaeche! Wenn dies nicht richtig geht dann laeuft gar nichts mehr!!!
	if (theForm.A_VGV_qm_dg.value=="") { theForm.A_VGV_qm_dg.value=0; }
	if (theForm.qm_obergeschoss.value=="") { theForm.qm_obergeschoss.value=0; }
	if (theForm.qm_erdgeschoss.value=="") { theForm.qm_erdgeschoss.value=0; }
	if (theForm.qm_kellergeschoss.value=="") { theForm.qm_kellergeschoss.value=0; }

        var flaeche=0;
	flaeche = eval(theForm.A_VGV_qm_dg.value) + eval(theForm.qm_obergeschoss.value) + eval(theForm.qm_erdgeschoss.value) + eval(theForm.qm_kellergeschoss.value);
	theForm.QM.value =flaeche;

  if (theForm.PLZ.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"PLZ\" ein.");
    theForm.PLZ.focus();
    return (false);
  }

  if (theForm.PLZ.value.length < 5)
  {
    alert("Geben Sie mindestens 5 Zeichen in das Feld \"PLZ\" ein.");
    theForm.PLZ.focus();
    return (false);
  }

  if (theForm.PLZ.value.length > 5)
  {
    alert("Geben Sie höchstens 5 Zeichen in das Feld \"PLZ\" ein.");
    theForm.PLZ.focus();
    return (false);
  }

  var checkOK = "0123456789";
  var checkStr = theForm.PLZ.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"PLZ\" ein.");
    theForm.PLZ.focus();
    return (false);
  }

  if (theForm.BAUJAHR.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"BAUJAHR\" ein.");
    theForm.BAUJAHR.focus();
    return (false);
  }

  if (theForm.BAUJAHR.value.length < 4)
  {
    alert("Geben Sie mindestens 4 Zeichen in das Feld \"BAUJAHR\" ein.");
    theForm.BAUJAHR.focus();
    return (false);
  }

  if (theForm.BAUJAHR.value.length > 4)
  {
    alert("Geben Sie höchstens 4 Zeichen in das Feld \"BAUJAHR\" ein.");
    theForm.BAUJAHR.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.BAUJAHR.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"BAUJAHR\" ein.");
    theForm.BAUJAHR.focus();
    return (false);
  }

 

  var checkOK = "0123456789-";
  var checkStr = theForm.Komplettsanierung.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"Komplettsanierung\" ein.");
    theForm.Komplettsanierung.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.NEUBAUSUMME.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"NEUBAUSUMME\" ein.");
    theForm.NEUBAUSUMME.focus();
    return (false);
  }

  var chkVal = allNum;
  var prsVal = parseInt(allNum);
  if (chkVal != "" && !(prsVal >= "0"))
  {
    alert("Geben Sie einen Wert größer oder gleich \"0\" in das Feld \"NEUBAUSUMME\" ein.");
    theForm.NEUBAUSUMME.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.WERT1914.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"WERT1914\" ein.");
    theForm.WERT1914.focus();
    return (false);
  }

  var chkVal = allNum;
  var prsVal = parseInt(allNum);
  if (chkVal != "" && !(prsVal >= "0"))
  {
    alert("Geben Sie einen Wert größer oder gleich \"0\" in das Feld \"WERT1914\" ein.");
    theForm.WERT1914.focus();
    return (false);
  }

               // document.Form1.A_VGV_qm_dg.value=WFLDGQM;
               // document.Form1.qm_obergeschoss.value=WFLOGQM;
               // document.Form1.qm_erdgeschoss.value=WFLEGQM;
               // document.Form1.qm_kellergeschoss.value=KGQM;

	// Wenn Dachgeschoss gewaehlt dann muessen auch QM Angaben erfolgen!
	if (theForm.A_VGV_Dachart.value == "3" && (theForm.A_VGV_qm_dg.value =="" || theForm.A_VGV_qm_dg.value =="0") )
	{
	alert("Geben Sie einen Wert in das Feld \"Wohnfläche Dach\" ein.");
	theForm.A_VGV_qm_dg.focus();
	return (false);
	}

  var checkOK = "0123456789";
  var checkStr = theForm.A_VGV_qm_dg.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"Dachgeschoss\" ein.");
    theForm.A_VGV_qm_dg.focus();
    return (false);
  }


	// Auswahl Obergeschoss
	if ( (theForm.Nutzung.value =="2" || theForm.Nutzung.value =="20") && (theForm.A_VGV_Dachart.value < "3") && (theForm.qm_obergeschoss.value =="" || theForm.qm_obergeschoss.value =="0" )) 
	{
        alert("Geben Sie einen Wert in das Feld \"Wohnfläche Obergeschoss(e)\" ein.");
        theForm.qm_obergeschoss.focus();
        return (false);
        }

        // Wenn 2 Geschosse, aber Dachgeschoss ausgebaut, und kein Keller, dann gibt es kein Obergeschoss denn das ist das DG
        if ( theForm.Nutzung.value >"2" &&  theForm.Nutzung.value !="20" && (theForm.qm_obergeschoss.value =="" || theForm.qm_obergeschoss.value =="0" ))
        {
        alert("Geben Sie einen Wert in das Feld \"Wohnfläche Obergeschoss(e)\" ein.");
        theForm.qm_obergeschoss.focus();
        return (false);
        }

  var checkOK = "0123456789";
  var checkStr = theForm.qm_obergeschoss.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"QM Obergeschoss\" ein.");
    theForm.qm_obergeschoss.focus();
    return (false);
  }

	// Wenn 2 Geschosse, aber Dachgeschoss ausgebaut, und kein Keller, dann gibt es kein Obergeschoss denn das ist das DG


	// Auswahl Keller
        if (theForm.Nutzung.value < "10" && theForm.qm_kellergeschoss.value =="")
        {
        alert("Geben Sie einen Wert in das Feld \"Wohnfläche Kellergeschoss\" ein.");
        theForm.qm_kellergeschoss.focus();
        return (false);
        }


  var checkOK = "0123456789";
  var checkStr = theForm.qm_kellergeschoss.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"QM Kellergeschoss\" ein.");
    theForm.qm_kellergeschoss.focus();
    return (false);
  }

        if (theForm.Nutzung.value >=10 && theForm.qm_kellergeschoss.value >0)
        {
        alert("Bei einem Gebäude ohne Keller kann es keine \"Wohnfläche Kellergeschoss\" geben.");
        theForm.qm_kellergeschoss.focus();
        return (false);
        }

  if (theForm.qm_erdgeschoss.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"Wohnfläche Erdgeschoss\" ein.");
    theForm.qm_erdgeschoss.focus();
    return (false);
  }

  if (theForm.qm_erdgeschoss.value.length < 2)
  {
    alert("Geben Sie mindestens 2 Zeichen in das Feld \"Wohnfläche Erdgeschoss\" ein.");
    theForm.qm_erdgeschoss.focus();
    return (false);
  }

  var checkOK = "0123456789";
  var checkStr = theForm.qm_erdgeschoss.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"Wohnfläche Erdgeschoss\" ein.");
    theForm.qm_erdgeschoss.focus();
    return (false);
  }

  if (theForm.Wohneinheiten.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"Wohneinheiten\" ein.");
    theForm.Wohneinheiten.focus();
    return (false);
  }

  if (theForm.Wohneinheiten.value.length > 5)
  {
    alert("Geben Sie höchstens 5 Zeichen in das Feld \"Wohneinheiten\" ein.");
    theForm.Wohneinheiten.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.Wohneinheiten.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"Wohneinheiten\" ein.");
    theForm.Wohneinheiten.focus();
    return (false);
  }

  if (theForm.GARAGE.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"Anzahl Garagen\" ein.");
    theForm.GARAGE.focus();
    return (false);
  }

  if (theForm.GARAGE.value.length > 2)
  {
    alert("Geben Sie höchstens 2 Zeichen in das Feld \"Anzahl Garagen\" ein.");
    theForm.GARAGE.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.GARAGE.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"Anzahl Garagen\" ein.");
    theForm.GARAGE.focus();
    return (false);
  }

  if (theForm.glasflaeche.value.length > 5)
  {
    alert("Geben Sie höchstens 5 Zeichen in das Feld \"Glasflaeche\" ein.");
    theForm.glasflaeche.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.glasflaeche.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Geben Sie nur Ziffern in das Feld \"glasflaeche\" ein.");
    theForm.glasflaeche.focus();
    return (false);
  }

  if (theForm.TARIFGRUPPE.value == 5)
  {
    alert("Die erste \"Tarifgruppe\"-Option ist keine gültige Wahl. Wählen Sie eine der anderen Optionen.");
    theForm.TARIFGRUPPE.focus();
    return (false);
  }

  if (theForm.NEUBAUSUMME.value =="0" && theForm.WERT1914.value=="0")
  {
	alert("Es wurde keine Neubausumme und kein Wert1914 eingegeben!");
	theForm.WERT1914.focus();
    return (false);
  }


// Datumsscript

        Datumstring=theForm.DATUM.value.split(".");

        if (Datumstring.length != 3 )
        {
                alert("Ungültiges Datum")
                theForm.DATUM.focus();
                return (false);
        }
        if (isNaN(Datumstring[0]) ||isNaN(Datumstring[1])||isNaN(Datumstring[2]))
        {
                alert("Ungültiges Datum")
                theForm.DATUM.focus();
                return (false);
        }

        var Jahr = Datumstring[2];
        var Monat = Datumstring[1];
        var Tag = Datumstring[0];

        if (Jahr.length <4 || Jahr.length > 4 || Jahr < 1910 || Jahr > 2008 )
        {
                alert("Ungültiges Jahresdatum, bitte Datum 4-stellig eingeben")
                theForm.DATUM.focus();
                return (false);
        }


        if (Monat < 1 || Monat > 12 )
        {
                alert("Ungültiger Monat\n gültiger Wert 1-12")
                theForm.DATUM.focus();
                return (false);
        }
        var Maxtag = 31;
        if(Monat==4 ||Monat==6 || Monat==9 || Monat==11 )
        Maxtag=Maxtag-1;

        if(Monat==2)
        {
                Maxtag=28;
                if(Jahr%4==0)
                        Maxtag=Maxtag+1;
                if(Jahr%100==0)
                        Maxtag=Maxtag-1;
                if(Jahr%400==0)
                        Maxtag=Maxtag+1;
        }


        if (Tag < 1 || Tag > Maxtag)
        {
                alert("Ungültiger Tag\n gültiger Wert 1-"+Maxtag)
                theForm.DATUM.focus();
                return (false);
        }


        Pruefdatum= new Date(Jahr,Monat-1,Tag);
        Pruefsumme=Pruefdatum.getTime();
        for (i=0; i<=Daten.length-1;i++)
        {
                datumvon=new Date(Jahr,Daten[i][1]-1,Daten[i][0]);
                datumbis=new Date(Jahr,Daten[i][3]-1,Daten[i][2]);
                summevon=datumvon.getTime();
                summebis=datumbis.getTime();
        if (Pruefsumme>=summevon&&Pruefsumme<=summebis)
        Treffer= i;
        }

theForm.VN_GDT.value=Tag;
theForm.VN_GDM.value=Monat;
theForm.VN_GDJ.value=Jahr;
// Datumsscript Ende

  return (true);
}

