function getElementsByClassName(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp('(^|\\s)'+searchClass+'(\\s|$)');
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}

function selecteer(veld, waarde){

	if(waarde != ""){
		var select = document.getElementById(veld), options = select.options, i = options.length; 
		while (i--) 
		{ 
			if (options[i].value == waarde) 
			{ 
				select.selectedIndex = i; 
				break; 
			} 
		} 
	}

}

function showhidediv(div){
	var status = document.getElementById(div);
	
	if (status.style.display == 'none'){
		document.getElementById(div).style.display = 'block';
	}
	else{
		document.getElementById(div).style.display = 'none';
	}

}
