function seminar_add(){
    showDialog('/servlet/addseminar', 600, 470);
}
function seminar_edit(){
	if (selectedId){
		showDialog('/servlet/editseminar?id='+getId(), 600, 470);
	} else {
		alert ('Seminar not selected.');
	}
}
function seminar_delete(){
	if (selectedId==null) {
		alert('Please, select seminar.');
		return;
	}
	if (confirm("This will permanently delete this seminar. If the seminar has any attendees, they will be deleted as well. There will not be an undo function. Are you absolutely sure you want to delete this seminar?")){
		document.location.href="/servlet/deleteseminar?id=" + parseInt(selectedId);
	}

}
function seminar_attendees(){
	if (selectedId){
		showDialog('/servlet/seminarattendees?id='+getId(), 650, 800);
	} else {
		alert ('Seminar not selected.');
	}
}
