function checkDiscussionEntry(t) {
	if (!ChkInput(t.newEntryAuthor, "Jméno", '', 1))  return false;
	if (!ChkInput(t.newEntryEmail, "Email", '', 1))  return false;
	if (!ChkInput(t.newEntryTitle, "Titulek", '', 1))  return false;
	if (!ChkInput(t.newEntryText, "Dotaz", '', 1))  return false;
	
	if (!CheckEmail(t.newEntryEmail, "Email"))  return false;
	
	return true;
}

function addEntry(id_parent){
	f = document.getElementById('new-entry');
	if (f){
		f.entryParent.value = id_parent;
		f.submit();
	}
	return false;
}
