function mover(id){
	var s = document.getElementById(id).style;
	s.background = "#FC8600";
	s.color = "#FFFFFF";
}
function mout(id){
	var s = document.getElementById(id).style;
	s.background = "";
	s.color = "#000000";
}
function link(l){
	window.location = l;
}
function zoeken_controle(){
	if(event.keyCode==13){
		document.zoeken.submit();
	}
}
function zoeken_stage(){	
	document.zoekstage.submit();
}
function blogin(){
	if(document.login.username.value == ""){
		alert("U dient een gebruikersnaam in te vullen");
		document.login.username.focus();
	}
	else if(document.login.password.value == ""){
		alert("U dient uw wachtwoord in te vullen");
		document.login.password.focus();
	}
	else {
		document.login.submit();
	}
}
function inlog(){
	if(event.keyCode==13 && document.login.username.value == ""){
		alert("U dient een gebruikersnaam in te vullen");
		document.login.username.focus();
	}
	else if(event.keyCode==13 && document.login.password.value == ""){
		alert("U dient uw wachtwoord in te vullen");
		document.login.password.focus();
	}
	else if(event.keyCode==13 && document.login.password.value != ""){
		document.login.submit();
	}
}
function home(){
	window.location = "./";
}
function vergeten(){
	window.location = "account_inloggegevens.php";
}
function emailen(){
	var reg = /^[A-Za-z0-9._-]+@[A-Za-z0-9.-]{2,}[.][A-Za-z]{2,3}$/
	
	if(document.contact.naam.value == ""){
		alert("U dient een naam in te vullen");
		document.contact.naam.focus();
	}
	else if (reg.exec(document.contact.email.value) == null) { 
		alert("U dient een geldig e-mailadres in te vullen");
		document.contact.email.focus();
	}
	else if(document.contact.vraag.value == ""){
		alert("U dient een vraag in te vullen");
		document.contact.vraag.focus();
	}
	else {
		document.contact.submit();
	}
}
function terug(stap){
	document.aanmeldenstagiaires.stapterug.value = stap;
	document.aanmeldenstagiaires.submit();
}
function terug2(stap){
	document.aanmeldenbedrijven.stapterug.value = stap;
	document.aanmeldenbedrijven.submit();
}
function subToev(){
	var s = document.aanmeldenstagiaires;
	s.sub.value = "1";
	s.submit();
}
function subToev_instellingen(){
	var s = document.instellingen;
	s.sub.value = "1";
	s.submit();
}
function omschrijvingzin(){
	document.aanmeldenbedrijven.omschrijving_zin.value='';
	document.aanmeldenbedrijven.omschrijving_zin.style.color = "#000000";	
}
function omschrijvingzin2(){
	document.aanmeldenstagiaires.omschrijving_zin.value='';
	document.aanmeldenstagiaires.omschrijving_zin.style.color = "#000000";	
}
