function checkValues()
{
	var msg
	msg = ''
	obj = document.all['medium']
	obj2 = document.all['nieuws']
	if (obj2[0].checked || obj2[1].checked)
	{
		if (obj[0].checked)
		{
			naam = document.all['naam'].value
			adres = document.all['adres'].value
			postcode = document.all['postcode'].value
			plaats = document.all['plaats'].value
			if (naam == '')
			{
				msg = msg + 'U moet een naam invullen.\n'
			}
			if (adres == '')
			{
				msg = msg + 'U moet een adres invullen.\n'
			}
			if (postcode == '')
			{
				msg = msg + 'u moet een postcode invullen.\n'
			}
			if (plaats == '')
			{
				msg = msg + 'u moet een plaats invullen.\n'
			}
			if (!document.all['nieuws'][0].checked && !document.all['nieuws'][1].checked)
			{
				msg = msg + 'Vink eerst aan dat u zich wil aanmelden voor de nieuwsbrief.\n'
			}
		}
		else if (obj[1].checked)
		{
			mail = document.all['email'].value
			naam = document.all['naam'].value
			if (naam == '')
			{
				msg = msg + 'U moet een naam invullen.\n'
			}
			if (mail == '')
			{
				msg = msg + 'U moet een e-mail adres invullen.\n'
			}
			if (!document.all['nieuws'][0].checked && !document.all['nieuws'][1].checked)
			{
				msg = msg + 'Vink eerst aan dat u zich wil aanmelden voor de nieuwsbrief.\n'
			}
		}
	}
	else
	{
		naam = document.all['naam'].value
		if (naam == '')
		{
			msg = msg + 'U moet een naam invullen.\n'
		}
		if (!document.all['medium'][0].checked && !document.all['medium'][1].checked)
		{
			msg = msg + 'Vink aan of u de nieuwsbrief via e-mail of post wil ontvangen.\n'
		}
	}
	if (msg != '')
	{
		alert(msg)
		return false
	}
	return true
}

function checking(name, value)
{
	var teller
	teller = 0
	obj = document.all[name]
	for (i=0; i<obj.length; i++)
	{
		if (obj[i].checked)
		{
			teller = teller + 1
		}
	}
	if (teller > 1)
	{
		for (i=0; i<obj.length; i++)
		{	
			if (obj[i].checked)
			{
				obj[i].checked = false
			}
		}
	}
}

function checksearch()
{
	obj = document.all['search']
	if (obj.value == '')
	{
		return false
	}
	else
	{
		return true
	}
}

function printfunc(treeid)
{
	window.open('page' + treeid + '.asp?print=true', 'newwin',"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=600, height=600");
}

function popupopen(url, name, width, height, scroll) 
{
    var winleft = (screen.width - width) / 2;
    var wintop = (screen.height - height) / 2;
    var winprop = 'width='+width+',height='+height+',left='+winleft+',top='+wintop+',scrollbars='+scroll;

    popup = window.open(url, name, winprop)
    if (parseInt(navigator.appVersion) >= 4) 
    {
	popup.window.focus();
    }
}