
function zoekSubmit(text) {
	text = document.getElementById(text).value;
	window.location="index.php?page_id=39&zoek="+zoekInput.value;
}
function agendaSubmit() {
	window.location="index.php?page_id=8&month_search="+frm.month_search.value+"&year_search="+frm.year_search.value;
}
function zoekAll(text) {
	text = document.getElementById(text).value;
	alert(text);
}
function doPrint(text) {
	text = document.getElementById(text).innerHTML;
	text = text+"<br><center><a href='javascript: window.print()'>Pagina printen</a> &nbsp;&nbsp; <a href='javascript: window.close()'>Venster sluiten</a></center>";
	text = "<html><head><title>Printvriendelijke versie</title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><LINK media=screen href='breda_actief.css' rel=stylesheet></head><body bgcolor=#FFFFFF LINK=#000000 VLINK=#000000 ALINK=#000000 TEXT=#000000><table border=0 align=center width=600><tr><td><img src='images/logo.gif'><p>&nbsp;</p></td></tr><tr><td>"+text+"</td></tr></table></body></html>";
	printWin = window.open('','','width=700,height=600,scrollbars=yes,resizable=yes,titlebar=0');
	printWin.document.write(text);
	printWin.document.close();
	printWin.print();
}
function Validate_Form(theForm)
{
	if (theForm.organisatie.value == "")
	{
		alert("Organisatie is een verplicht veld");
		theForm.organisatie.focus();
		return (false);
	}
	if (theForm.org_adres.value == "")
	{
		alert("Adres organisatie is een verplicht veld");
		theForm.org_adres.focus();
		return (false);
	}
	if (theForm.org_postcode.value == "")
	{
		alert("Postcode organisatie is een verplicht veld");
		theForm.org_postcode.focus();
		return (false);
	}
	if (theForm.org_plaats.value == "")
	{
		alert("Vestigingsplaats organisatie is een verplicht veld");
		theForm.org_plaats.focus();
		return (false);
	}
	if (theForm.contactpersoon.value == "")
	{
		alert("Naam contactpersoon is een verplicht veld");
		theForm.contactpersoon.focus();
		return (false);
	}
	if (theForm.contact_email.value == "")
	{
		alert("Emailadres contactpersoon is een verplicht veld");
		theForm.contact_email.focus();
		return (false);
	}
	if (theForm.contact_telefoon.value == "")
	{
		alert("Telefoonnummer contactpersoon is een verplicht veld");
		theForm.contact_telefoon.focus();
		return (false);
	}
	if (theForm.naam.value == "")
	{
		alert("Naam deelnemer is een verplicht veld");
		theForm.naam.focus();
		return (false);
	}
	if (theForm.adres.value == "")
	{
		alert("Adres deelnemer is een verplicht veld");
		theForm.adres.focus();
		return (false);
	}
	if (theForm.telefoon.value == "")
	{
		alert("Telefoonnummer deelnemer is een verplicht veld");
		theForm.telefoon.focus();
		return (false);
	}
	if (theForm.email.value == "")
	{
		alert("Emailadres deelnemer is een verplicht veld");
		theForm.email.focus();
		return (false);
	}

	frm.action='ba_mailer1.php'; 
	frm.submit();
}

function hideBericht()
{
	document.getElementById("bericht").style.display="none";
	document.getElementById("grijs").style.display="none";
	document.body.style.overflowY = "auto";
}