function MM_openBrWindow(theURL,winName,features) { //v2.0
  myWindow = window.open(theURL,winName,features);
  myWindow.focus();
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function preload(images)
{
	var pr=new Array()
	for (n=0;n<images.length;n++)
	{
		pr[n]=new Image()
		pr[n].src=images[n]
	}
}


function rotateimage(images, target)
{
	curindex=Math.floor(Math.random()*(images.length))
	document.getElementById(target).src=images[curindex]
}


/*--------------------------------------------------------------------------------
methode om html elementen te tonen of verbergen
--------------------------------------------------------------------------------*/
function DIshowHideElement (id)
{
	e = document.getElementById(id);
	d = e.style.display;
	
	if (d == "none")
		e.style.display = "";
	else
		e.style.display = "none";
	
}


/*--------------------------------------------------------------------------------
methode om het extra veld 'other' te tonen of verbergen
--------------------------------------------------------------------------------*/
function showhideother (list,id)
{
	mode = list.options[list.selectedIndex].value;
	oth = document.getElementById(id);
	
	if (mode == "other")
		oth.style.display = "";
	else
		oth.style.display = "none";
		oth.value = oth.defaultValue;
}