function validateForm(form){
	if (DDXLen(form.First_name,1,100,"the first name is missing"))
		if(DDXLen(form.Surname,1,100,"the surname is missing"))
			if(DDXLen(form.Street_no,1,100,"a detail of the adress (street, ZIP or city) is missing"))
				if(DDXLen(form.PLZ,1,100,"a detail of the adress (street, ZIP or city) is missing"))
					if(DDXLen(form.Ort,1,100,"a detail of the adress (street, ZIP or city) is missing"))
						if (DDXEMail(form.Mail, "Please enter a valid e-mail adress !") )
							if(DDXRadio(form.category, "Please choose between 'doctor', 'patient', 'dietician' or 'other'"))
								if(getRadioValue(form.category) == "patient") {
									if(!DDXLen(form.metab_dist,1,100,"the Metabolic Condition is missing")
										|| !DDXLen(form.pat_name,1,100,"the patient´s name is missing")
										|| !DDXLen(form.pat_birthdate,1,100,"the patient´s birthdate is missing")
									) {
										return false;
									}	else {
										if(DDXChecked(form.agree,1,"You must agree that we save and use your personal data"))
											return true;
									}
								} else {
									if(DDXChecked(form.agree,1,"You must agree that we save and use your personal data"))
										return true;
								}
								
	return false;
}
