/* ======================================================================

JScript Source File -- Created with SAPIEN Technologies PrimalSCRIPT(TM)

NAME: <filename>

AUTHOR: Anton Dorn
DATE  : 17.03.2003

COMMENT: <comment>

========================================================================= */
var errortext

function senden()
	 {  errortext="Bitte geben Sie einen Wert ein für: ";
	  	if (document.forms[0].Name.value =="")
	 		{
	 		errortext=errortext+String.fromCharCode(13)+String.fromCharCode(09)+"Name";
	 		document.forms[0].Name.className="orange";
	 		}
	 	else
	 		{
			document.forms[0].Name.className="white";
	 		}
	 		
	 	if (document.forms[0].Strasse.value =="")
	 		{
	 		errortext=errortext+String.fromCharCode(13)+String.fromCharCode(09)+"Strasse";
	 		document.forms[0].Strasse.className="orange";
	 		}
	 	else
	 		{
			document.forms[0].Strasse.className="white";
	 		}

	 	if (document.forms[0].PLZ.value =="")
	 		{
	 		errortext=errortext+String.fromCharCode(13)+String.fromCharCode(09)+"PLZ";
	 		document.forms[0].PLZ.className="orange";
	 		}
	 	else
	 		{
			document.forms[0].PLZ.className="white";
	 		}


		if (document.forms[0].Ort.value =="")
	 		{
	 		errortext=errortext+String.fromCharCode(13)+String.fromCharCode(09)+"Ort";
	 		document.forms[0].Ort.className="orange";
	 		}
	 	else
	 		{
			document.forms[0].Ort.className="white";
	 		}
	 	
	 		 	
	 	if (document.forms[0].Datum_von.value =="")
	 		{
	 		errortext=errortext+String.fromCharCode(13)+String.fromCharCode(09)+"im Zeitraum vom";
	 		document.forms[0].Datum_von.className="orange";
	 		}
	 	else
	 		{
			document.forms[0].Datum_von.className="white";
	 		}	
	 		
	 	if (document.forms[0].Datum_bis.value =="")
	 		{
	 		errortext=errortext+String.fromCharCode(13)+String.fromCharCode(09)+"im Zeitraum bis";
	 		document.forms[0].Datum_bis.className="orange";
	 		}
	 	else
	 		{
			document.forms[0].Datum_bis.className="white";
	 		}
	 	
	 	if (document.forms[0].Personen.value =="")
	 		{
	 		errortext=errortext+String.fromCharCode(13)+String.fromCharCode(09)+"Personen";
	 		document.forms[0].Personen.className="orange";
	 		}
	 	else
	 		{
			document.forms[0].Personen.className="white";
	 		}	 	  		

	 	if ((document.forms[0].Name.value !="") && (document.forms[0].Strasse.value !="") && (document.forms[0].PLZ.value !="") && (document.forms[0].Ort.value !="") &&  (document.forms[0].Datum_von.value !="") && (document.forms[0].Datum_bis.value !="") && (document.forms[0].Personen.value !="") )
	 	{
	    document.forms[0].submit();
	    }
	    else
	    {alert(errortext)}
	 }
