// JavaScript Document

function sel(ww) {
	Did = document.getElementById("txtFunctie");
	Did.innerHTML=ww;
	document.zoekwoorden_vacature.functie.value=ww;
	verberg("pop");
}

function selR(ww) {
	Did = document.getElementById("txtRegio");
	Did.innerHTML=ww;
	document.zoekwoorden_vacature.regio.value=ww;
	verberg("regio");
}


function naarpagina(pag) {
	 document.zoekwoorden_vacature.Qhoe.value="verder";
	 document.zoekwoorden_vacature.pagina.value=pag;
	 document.zoekwoorden_vacature.submit();
}
function naarpagina2(pag) {
	 document.zoekwoorden_vacature.action="/nieuws/";
	 document.zoekwoorden_vacature.Qhoe.value="verder";
	 document.zoekwoorden_vacature.pagina.value=pag;
	 document.zoekwoorden_vacature.submit();
}

	
function toonkeuze(ww) {
	Did = document.getElementById(ww);
	Did.style.display="block";
}
	
	
function verberg (ww) {
	Did = document.getElementById(ww);
	Did.style.display="none";
}

function ganaar(ww1,ww2) {
	 document.zoekwoorden_vacature.action=ww1;
	 document.zoekwoorden_vacature.param.value=ww2;
	 document.zoekwoorden_vacature.submit();
}



function readFeed(queryURL) {
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
		xmlhttp.async = true;
		xmlhttp.onreadystatechange = processFeed;	  
		xmlhttp.open("GET", queryURL, true);
		xmlhttp.send(null);
	}
	else if (window.ActiveXObject) {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		if (xmlhttp) {
			xmlhttp.onreadystatechange = processFeed;	  
			xmlhttp.open("GET", queryURL, true);
			xmlhttp.send();
		}
	}
}

function processFeed() {
	if ( xmlhttp.readyState == 4 && xmlhttp.status == 200 )	{
		if (document.getElementById("inhoud")) {
			DivID = document.getElementById("inhoud");
			DivID.innerHTML = xmlhttp.responseText;
		}
	}
	else {
		return;
	}
}

function inladen(ww) {
	readFeed("/cms/" + ww);
}

function nietinladen(ww) {
	
}
