function ShowZoekopnieuw() {
	var itma = null;
	var itmb = null;
	if (document.getElementById) {
		itma = document.getElementById('zoek1');
		itmb = document.getElementById('zoek2');				
	} else if (document.all){
		itma = document.all['zoek1'];
		itmb = document.all['zoek2'];				
	} else if (document.layers){
		itma = document.layers['zoek1'];
		itmb = document.layers['zoek2'];				
	}
	if (itma.style) {
		itma.style.display = "none";
	}
	if (itmb.style) {
		itmb.style.display = "";
		itmb.visibility = "show"; 
	}
}

function ShowHide(nam,num) {
	var itm = null;
	var img = null;
	var id = nam + num;
	var imgid = 'img' +  nam + num;
	HideAll(nam,id);
	if (document.getElementById) {
		itm = document.getElementById(id);
		img = document.getElementById(imgid);
	} else if (document.all){
		itm = document.all[id];
		img = document.all[imgid];
	} else if (document.layers){
		itm = document.layers[id];
		img = document.layers[imgid];
	}	
	if (!itm) {
		// do nothing
	}
	else if (itm.style) {
		if (itm.style.display == "none") { 
			itm.style.display = ""; 
			img.src = "gfx/pijl_onder.png";
		}
		else { 
			itm.style.display = "none"; 
			img.src = "gfx/pijl_rechts.png";
		}
	}
	else { 
		itm.visibility = "show"; 
		img.src = "gfx/pijl_onder.png";
	}
}
function HideAll(nam,id1) {
	var i=0;
	var chuncks=100;
	for (i=0;i<=chuncks;i++)
	{
		var itm = null;
		var img = null;
		var id = nam + i;
		var imgid = 'img' +  nam + i;		
		if (id != id1) {
			if (document.getElementById) {
				itm = document.getElementById(id);
				img = document.getElementById(imgid);				
			} else if (document.all){
				itm = document.all[id];
				img = document.all[imgid];				
			} else if (document.layers){
				itm = document.layers[id];
				img = document.layers[imgid];				
			}
			if (!itm) {
				// do nothing
			}
			else if (itm.style) {
				itm.style.display = "none";
				img.src = "gfx/pijl_rechts.png";
			}
		}
	}
}
function SubmitZoekForm() 
{
 var keuze = document.zoeken.zoeken.options[document.zoeken.zoeken.selectedIndex].value;
 //alert(keuze);
 if (document.zoeken.q.value == "") {
 	return false;
 }
 if (keuze == "Software") {
	document.zoeken.action = "gevonden.php";
 }
 else {
	document.zoeken.action = "http://www.macfan.nl/gevonden.lasso"; 
 }
document.zoeken.submit();
}

function KiesMacFan()
{
 var keuze = document.mfsform.mf.options[document.mfsform.mf.selectedIndex].value;
 //alert(keuze);
 document.mfsform.action = "MacFan" + keuze + ".html";
 document.mfsform.submit();
}
