function post_inschrijfform()
{
	//if (check_inschrijfform())
	//{
		document.inschrijf.submit();
	//}
}



function check_inschrijfform()
{
		 if(document.inschrijf.naam.value.empty())
		 {
			alert ("Naam is niet ingevuld.");
			return false;
		 }
		 if(document.inschrijf.email.value.empty())
		 {
			alert ("Email is niet ingevuld.");
			return false;
		 }
		 var geslacht = getCheckedValue(document.inschrijf.geslacht);
		 if(!(geslacht == 'm' || geslacht == 'v'))
		 {
			alert ("Geslacht is niet gekozen.");
			return false;
		 }
		 return true;
}


// return the value of the radio button that is checked
// return an empty string if none are checked, or
// there are no radio buttons
function getCheckedValue(radioObj) {
	if(!radioObj)
		return "";
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}

function post_uitschrijfform()
{
	/*
		 if(document.uitschrijf.email.value.empty())
		 {
			alert ("Email is niet ingevuld.");
			return false;
		 }
		 return true;
		*/ 
		 document.uitschrijf.submit();
}
