function setFontSize(sizeInput)
{
	if( sizeInput == 'small' )
	{
		var sizeOutput = '9px';

		document.getElementById('menuSizerSmall').style.textDecoration  = 'underline';
		document.getElementById('menuSizerNormal').style.textDecoration = 'none';
		document.getElementById('menuSizerLarge').style.textDecoration  = 'none';
	}
	else if( sizeInput == 'large')
	{
		var sizeOutput = '14px';

		document.getElementById('menuSizerSmall').style.textDecoration  = 'none';
		document.getElementById('menuSizerNormal').style.textDecoration = 'none';
		document.getElementById('menuSizerLarge').style.textDecoration  = 'underline';
	}
	else
	{
		var sizeOutput = '12px';

		document.getElementById('menuSizerSmall').style.textDecoration  = 'none';
		document.getElementById('menuSizerNormal').style.textDecoration = 'underline';
		document.getElementById('menuSizerLarge').style.textDecoration  = 'none';
	}

	document.body.style.fontSize = sizeOutput;
}

function countText()
{
	var oTextarea = document.nsForm.boodschap;
	if(oTextarea.value.length>2000){
			oTextarea.value = oTextarea.value.substring(0,2000);
	}
}

function routePopup(id, adres){
	id = "#" + id;
	pos = $(id).position();
	document.getElementById("routePopup").style.display = "block";
	document.getElementById("routePopup").style.top = (pos.top) + "px";
	document.getElementById("routePopup").style.left = (pos.left) + "px";
	document.getElementById("routeHiddenAdres").value = adres;
}

function routeStuur()
{
	van = document.getElementById('routeInput').value;
	naar = document.getElementById('routeHiddenAdres').value;;
	if(van != '')
	{
		document.getElementById("routePopup").style.display = "none";
		window.open("http://maps.google.nl/maps?f=d&source=s_d&saddr=" + van + "+&daddr=" + naar + "&hl=nl");
	}
}

function routeSluit()
{
	document.getElementById("routePopup").style.display = "none";
}