function menu(id)
	{
		menudicht();
		menuopen(id);
	}
	
	function menudicht()
	{
		document.getElementById('menu1').className='menuitem';
		document.getElementById('menu2').className='menuitem';
		document.getElementById('menu3').className='menuitem';
		document.getElementById('menu4').className='menuitem';
		
		document.getElementById('menubg1').style.display='none';
		document.getElementById('menubg2').style.display='none';
		document.getElementById('menubg3').style.display='none';
		document.getElementById('menubg4').style.display='none';
	}
	
	function menuopen(id)
	{
		document.getElementById('menu'+id).className='menuitemover';
		document.getElementById('menubg'+id).style.display='block';
	}
	
	function showgroot(welke,wat)
	{
		if(wat=='aan')
		{
			document.getElementById('showdiv'+welke).style.display = 'block';
		}
		if(wat=='uit')
		{
			document.getElementById('showdiv'+welke).style.display = 'none';
		}
	}
	function ValidateLease() 
	{
		if(document.form.totlbedrag.value != "") 
		{
			var checkOK = "0123456789";
			var checkStr = form.totlbedrag.value;
			var allValid = true;
			for (i = 0;  i < checkStr.length;  i++)
			{
				ch = checkStr.charAt(i);
				for (j = 0;  j < checkOK.length;  j++)
				if (ch == checkOK.charAt(j))
				break;
				if (j == checkOK.length)
				{
					allValid = false;
					break;
				}
			}
			if (!allValid)
			{
				alert("U mag alleen cijfers invoeren in het vakje bij offertebedrag.");
				form.huisnr.focus();
				return (false);
			}		
		}	
		if(document.form.totlbedrag.value == "") 
		{
			document.form.totlbedrag.focus();
			alert("Geef het totale offerte bedrag in.");
			return false;
		}	
	}
	function ValidateFormulier() 
	{
		if(document.form.achternaam.value == "") 
		{
			document.form.achternaam.focus();
			alert("Voer uw achternaam in.");
			return false;
		}
		if(document.form.adres.value == "") 
		{
			document.form.adres.focus();
			alert("Voer uw adres in.");
			return false;
		}
		if(document.form.postcode.value == "") 
		{
			document.form.postcode.focus();
			alert("Voer uw postcode in.");
			return false;
		}
		if(document.form.plaats.value == "") 
		{
			document.form.plaats.focus();
			alert("Voer uw woonplaats in.");
			return false;
		}		
		if(document.form.telefoon.value == "") 
		{
			document.form.telefoon.focus();
			alert("Voer uw telefoon in.");
			return false;
		}
		if(document.form.email.value == "") 
		{
			document.form.email.focus();
			alert("Voer uw e-mailadres in.");
			return false;
		}
		if(document.form.opmerkingen.value == "") 
		{
			document.form.opmerkingen.focus();
			alert("Voer uw opmerking in.");
			return false;
		}
	}	
	function ValidateFormuliernb() 
	{
		var ingevuld='nee';
		for(i=0; i<2; i++){
		if(document.inputForm.Col1[i].checked == true) {
		ingevuld='ja';
		}
		}
		if(ingevuld!='ja')
		{
			alert("Voer uw aanhef in.");
			return false;
		}
		if(document.inputForm.Col2.value == "") 
		{
			document.inputForm.Col2.focus();
			alert("Voer uw voornaam in.");
			return false;
		}
		if(document.inputForm.Col4.value == "") 
		{
			document.inputForm.Col4.focus();
			alert("Voer uw achternaam in.");
			return false;
		}
		if(document.inputForm.Col7.value == "") 
		{
			document.inputForm.Col7.focus();
			alert("Voer uw functie in.");
			return false;
		}
		if(document.inputForm.Col5.value == "") 
		{
			document.inputForm.Col5.focus();
			alert("Voer uw organisatie in.");
			return false;
		}
		if(document.inputForm.Col6.value == "") 
		{
			document.inputForm.Col6.focus();
			alert("Voer uw telefoonnummer in.");
			return false;
		}
	}