 	function ArtsenLijst()
	{
		this.lijst = new Array();
		this.toevoegen = function(naam, id, email)
		{
			this.lijst = this.lijst.concat(new Huisarts(naam, id, email))
		}
		this.schrijf = function()
		{
        	document.writeln('<select name="huisarts">');
        	document.writeln('<option>kies uw praktijk</option>');
			for(var i=0; i<this.lijst.length; i++)
			{
				var naam = this.lijst[i].naam;
				var id = this.lijst[i].id;
				var email = this.lijst[i].email;
				if(email == arts)
				{
					document.writeln('<option selected value=' + email + '>' + naam + '</option>');
				}
				else
				{
					document.writeln('<option value=' + email + '>' + naam + '</option>');
				}
			}
        	document.writeln('</select>');
		}
	}

	function Huisarts(naam, id, email)
	{
		this.naam = naam;
		this.id = id;
		this.email = email;
	}

		var artsenLijst = new ArtsenLijst();

		artsenLijst.toevoegen("Bakker en Vucetic", "Bakker en Vucetic", "1");
		artsenLijst.toevoegen("Praktijk de Hoed", "Praktijk de Hoed", "2");
		artsenLijst.toevoegen("Praktijk Van Wijngaarden", "Praktijk Van Wijngaarden", "3");
