// Uitgebreid zoeken scripts voor de XML partnermodule

//Javascript voor het tonen en verbergen van blokken

function showBlock(currBlock) {
	if (document.getElementById) {
		thisBlock = document.getElementById(currBlock).style
		if (thisBlock.display == "block") {
			thisBlock.display = "block"
			}
			else {
			thisBlock.display = "block"
			}
			return false
			}
		else {
		return true
		}
}

function hideBlock(currBlock) {
	if (document.getElementById) {
		thisBlock = document.getElementById(currBlock).style
		if (thisBlock.display == "block") {
			thisBlock.display = "none"
			}
			else {
			thisBlock.display = "none"
			}
			return false
			}
		else {
		return true
		}
}

function MeerCarross() {
  	document.occasion.f_categorie.size = 4;
	document.occasion.f_categorie.multiple = true;
	hideBlock('MC1');
	showBlock('MC2');}

function MinderCarross() {
	document.occasion.f_categorie.size = 1;
	document.occasion.f_categorie.multiple = false;
	hideBlock('MC2');
	showBlock('MC1');}

function MeerKleuren() {
  	document.occasion.f_kleuren.size = 4;
	document.occasion.f_kleuren.multiple = true;
	hideBlock('MK1');
	showBlock('MK2');}

function MinderKleuren() {
	document.occasion.f_kleuren.size = 1;
	document.occasion.f_kleuren.multiple = false;
	hideBlock('MK2');
	showBlock('MK1');}

function MeerOpties() {
	showBlock('search-extr-opties1');
	showBlock('search-extr-opties2');
	showBlock('search-extr-opties3');
	showBlock('MO2');
	hideBlock('MO1');}

function MinderOpties() {
	hideBlock('search-extr-opties1');
	hideBlock('search-extr-opties2');
	hideBlock('search-extr-opties3');
	hideBlock('MO2');
	showBlock('MO1');}

