function checkForm() {
	if (document.forms.medicineDbForm.product_name.value == "0" && document.forms.medicineDbForm.active_substance.value == "0" && document.forms.medicineDbForm.atc_code.value == "" && document.forms.medicineDbForm.marketing_authorisation.value == "0" && document.forms.medicineDbForm.registration_number.value == "" && document.forms.medicineDbForm.dic_prescription.value == "0" && document.forms.medicineDbForm.authorisation_date_from.value == "" && document.forms.medicineDbForm.authorisation_date_to.value == "" && document.forms.medicineDbForm.revoke_date_from.value == "" && document.forms.medicineDbForm.revoke_date_to.value == "" && (document.forms.medicineDbForm.freetext.value == "" || document.forms.medicineDbForm.freetext.value == "írja be a keresendő szöveget")) {
		alert("Kérjük szűkítse a feltételeket");
		return false;
	} else {
		return true;
	}
}

function formReset() {
		document.forms.medicineDbForm.product_name[0].selected = true;
		document.forms.medicineDbForm.active_substance[0].selected = true;
		document.forms.medicineDbForm.atc_code.value = "";
		document.forms.medicineDbForm.marketing_authorisation[0].selected = true;
		document.forms.medicineDbForm.registration_number.value = "";
		document.forms.medicineDbForm.dic_prescription[0].selected = true;
		document.forms.medicineDbForm.authorisation_date_from.value = "";
		document.forms.medicineDbForm.authorisation_date_to.value = "";
		document.forms.medicineDbForm.revoke_date_from.value = "";
		document.forms.medicineDbForm.revoke_date_to.value = "";
		document.forms.medicineDbForm.freetext.value = "";
		document.forms.medicineDbForm.ordering.value= "name_str";
}
