	function abschicken () {
		var name = document.form1.name.value;
		var firma = document.form1.firma.value;
		var adresse = document.form1.adresse.value;
		var telefon = document.form1.telefon.value;
		var fax = document.form1.fax.value;
		var email = document.form1.email.value;
		var internet = document.form1.internet.value;
		var datum = document.form1.datum.value;
		// var datum = document.form1.dat_tag.value + "." + document.form1.dat_mon.value + "." + document.form1.dat_jahr.value;
		var uhrzeit = document.form1.uhrzeit.value;
		// var uhrzeit = document.form1.zeit_std.value + ":" + document.form1.zeit_min.value;
		var personen = document.form1.personen.value;
		var speisen = document.form1.speisen.value;
		var wunsch = document.form1.wunsch.value;
		// var djahr = document.form1.dat_jahr.value;
		// var dmon = document.form1.dat_mon.value;
		// var dtag = document.form1.dat_tag.value;
		// var dstd = document.form1.zeit_std.value;
		// var dmin = document.form1.zeit_min.value;

		var comment = "";
		var ysnAbschicken = pruefeDaten();

		if (!ysnAbschicken)
			document.form1.doit.value = "no";
		else {
			comment += "-----------------------------------------------\n\n";
			comment += "Name:              " + name + "\n\n";
			comment += "E-Mail:            " + email + "\n\n";
			comment += "-----------------------------------------------\n\n";
			if (firma != "") comment += "Firmenname:        " + firma + "\n\n";
			comment += "Adresse:           " + adresse + "\n\n";
			comment += "Telefon:           " + telefon + "\n\n";
			comment += "Fax:               " + fax + "\n\n";
			comment += "Internetadresse:   " + internet + "\n\n";
			comment += "Datum:             " + datum  + "\n\n";
			comment += "Uhrzeit:           " + uhrzeit + "\n\n";
			comment += "Personenzahl:      " + personen + "\n\n";
			if (speisen != "") comment += "Speisen Vorbestellung:\n" + speisen + "\n\n";
			if (wunsch != "") comment += "Wunsch:\n" + wunsch;
			comment += "\n\n";
			document.form1.comment.value = comment;
			document.form1.datumzeit.value = djahr + "-" + dmon + "-" + dtag + " " + dstd + ":" + dmin + ":00"; 

		}	
		return ysnAbschicken;
	}
	
	function pruefeDaten () {
		var ysnDatenOK = true;
		var name = document.form1.name.value;
		var telefon = document.form1.telefon.value;
		var datum = document.form1.datum.value;
		// var datum = document.form1.dat_tag.value + "." + document.form1.dat_mon.value + "." + document.form1.dat_jahr.value;
		var uhrzeit = document.form1.uhrzeit.value;
		// var uhrzeit = document.form1.zeit_std.value + ":" + document.form1.zeit_min.value;
		var personen = document.form1.personen.value;
		var speisen = document.form1.speisen.value;
		
		if (name == "") {
			ysnDatenOK = false;
			alert("Geben Sie bitte Ihren Namen ein.");
			document.form1.name.focus();
		} 
		else if (telefon == "") {
			ysnDatenOK = false;
			alert("Geben Sie bitte Ihre Telefonnummer ein.");
			document.form1.telefon.focus();
		} 
		else if (datum == "") {
			ysnDatenOK = false;
			alert("Geben Sie bitte das Datum ein.");
			document.form1.datum.focus();
		} 
		else if (uhrzeit == "") {
			ysnDatenOK = false;
			alert("Geben Sie bitte die Uhrzeit ein.");
			document.form1.uhrzeit.focus();
		}
		else if (personen == "") {
			ysnDatenOK = false;
			alert("Geben Sie bitte die Personenzahl ein.");
			document.form1.personen.focus();
		} 
		/* else if (speisen == "") {
			ysnDatenOK = false;
			alert("Geben Sie bitte die Speisen Vorbestellung an.");
			document.form1.raum.focus();
		} */

		return ysnDatenOK;	
	}

