function myDateString( diff, how )
     {
     	var x = "0";
        /*var d = 0;
        var m = 0;
        var y = 0;*/
        var b = 0;
        var birth = 0;
        var tomorrow = 0
        d = document.Rechner.day[document.Rechner.day.selectedIndex].value;
        m = document.Rechner.month[document.Rechner.month.selectedIndex].value;
        y = document.Rechner.year[document.Rechner.year.selectedIndex].value;
      
	  if(d<1) {
		  alert("Bitte wählen Sie den Geburtstag aus");
		   document.Rechner.day.focus();
		   return false;
		  }
      
	if(m>11) {
		  alert("Bitte wählen Sie den Geburtsmonat aus");
		   document.Rechner.month.focus();
		   return false;
		  }
	if(y<1) {
		  alert("Bitte wählen Sie das Geburtsjahr aus");
		   document.Rechner.year.focus();
		   return false;
		  }

        birth = new Date(Date.UTC(y,m,d,0,0,0,0));
        tomorrow = new Date(Date.UTC(y,m,d,0,0,0,0));
        b=birth.getUTCDate();
        if( how )
        {
        	birth.setUTCDate( b+280 )
        	tomorrow.setUTCDate( b+280 );
        	b=birth.getUTCDate();
        }
        tomorrow.setUTCDate( b+diff );
        return tomorrow;
     }

    function Ergebnis(go)
    {
		document.Rechner.wert1.value = myDateString(2, go).toUTCString().substr(4, 12);
      document.Rechner.wert2.value = myDateString(9, go).toUTCString().substr(4, 12);
      document.Rechner.wert3.value = myDateString(28, go).toUTCString().substr(4, 12);
      document.Rechner.wert4.value = myDateString(42, go).toUTCString().substr(4, 12);
      document.Rechner.wert5.value = myDateString(28, go).toUTCString().substr(4, 12);
      document.Rechner.wert6.value = myDateString(42, go).toUTCString().substr(4, 12);
      document.Rechner.wert7.value = myDateString(61, go).toUTCString().substr(4, 12);
      document.Rechner.wert8.value = myDateString(120, go).toUTCString().substr(4, 12);
      document.Rechner.wert9.value = myDateString(151, go).toUTCString().substr(4, 12);
      document.Rechner.wert10.value = myDateString(212, go).toUTCString().substr(4, 12);
      document.Rechner.wert11.value = myDateString(273, go).toUTCString().substr(4, 12);
      document.Rechner.wert12.value = myDateString(365, go).toUTCString().substr(4, 12);
      document.Rechner.wert13.value = myDateString(607, go).toUTCString().substr(4, 12);
      document.Rechner.wert14.value = myDateString(730, go).toUTCString().substr(4, 12);
      document.Rechner.wert15.value = myDateString(1277, go).toUTCString().substr(4, 12);
      document.Rechner.wert16.value = myDateString(1461, go).toUTCString().substr(4, 12);
      document.Rechner.wert17.value = myDateString(1826, go).toUTCString().substr(4, 12);
      document.Rechner.wert18.value = myDateString(1946, go).toUTCString().substr(4, 12);
	  document.Rechner.wert19.value = myDateString(4748, go).toUTCString().substr(4, 12);
	  document.Rechner.wert20.value = myDateString(5478, go).toUTCString().substr(4, 12);
      }
