	function ProvSelect(id, axname, aan) {	
		this.id = id;
		this.naam = axname;
		this.naamCode = axname.replace(/-/g, '');
		this.aan = aan;
		this.afbsrc = "nl/" + this.naamCode + ".gif";
		this.ClassNameText = this.naamCode.concat('-Link');
		this.Toggle = new Function ("if (this.aan)\nthis.Verberg();\nelse\nthis.Toon();\nthis.aan=!this.aan;");
		this.Toon = new Function ("document.getElementById(this.ClassNameText).className = 'Active';");
		this.Verberg = new Function ("document.getElementById(this.ClassNameText).className = '';");
	}

	function axToggle(id) {
		axProvList[id].Toggle();
		BewaarProvincies();
	}

	function axResetSmall() {
		for (P in axProvList) {
			axProvList[P].aan = false;
			document.getElementById(axProvList[P].ClassNameText).className = '';
		}
		document.getElementById('provincie').value = '';		
	}

	function axReset() {
		for (P in axProvList) {
			axProvList[P].aan = false;
			document.getElementById(axProvList[P].ClassNameText).className = '';
		}
		document.getElementById('provincie').value = '';
		opendiv('Nederland');	
	}

	function opendiv(axDivName) {
		var axDivNameTemp = axDivName;
		hideMe(document.getElementById('Belgie'));
		hideMe(document.getElementById('Nederland'));
		axResetSmall();		
		showMe(document.getElementById(axDivNameTemp));
	}
	
	
	function BewaarProvincies() {
		var axProvIdList = new Array();
		
		for (P in axProvList) {
			if(axProvList[P].aan)
				axProvIdList[axProvIdList.length] = axProvList[P].naam; 
		}

		var axProvListString1 = axProvIdList.join();
		var axProvListString2 = axProvListString1.replace(/,/g, ' ');
		document.getElementById('provincie').value = axProvListString2;	
		
	}

	function hideMe(axId){
	
	var axIdStyle = axId;	

  	if (document.all||document.getElementById) axIdStyle.style.display="none";
  	else if (document.layers) axIdStyle.display="none";
	}


	function showMe(axId){
	
	var axIdStyle = axId;	

  	if (document.all||document.getElementById) axIdStyle.style.display="block";
  	else if (document.layers) axIdStyle.display="block";
	}


	var axProvList = new Array();
	axProvList[1] = new ProvSelect(1, 'Friesland', false);
	axProvList[2] = new ProvSelect(2, 'Groningen', false);
	axProvList[3] = new ProvSelect(3, 'Drenthe', false);
	axProvList[4] = new ProvSelect(4, 'Noord-Holland', false);
	axProvList[5] = new ProvSelect(5, 'Flevoland', false);
	axProvList[6] = new ProvSelect(6, 'Overijssel', false);
	axProvList[7] = new ProvSelect(7, 'Zuid-Holland', false);
	axProvList[8] = new ProvSelect(8, 'Utrecht', false);
	axProvList[9] = new ProvSelect(9, 'Gelderland', false);
	axProvList[10] = new ProvSelect(10, 'Zeeland', false);
	axProvList[11] = new ProvSelect(11, 'Brabant', false);
	axProvList[12] = new ProvSelect(12, 'Limburg', false);			
	axProvList[13] = new ProvSelect(13, 'West-Vlaaderen', false);	
	axProvList[14] = new ProvSelect(14, 'Oost-Vlaaderen', false);
	axProvList[15] = new ProvSelect(15, 'Antwerpen', false);
	axProvList[16] = new ProvSelect(16, 'Henegouwen', false);
	axProvList[17] = new ProvSelect(17, 'Vlaams-Brabant', false);
	axProvList[18] = new ProvSelect(18, 'Waals-Brabant', false);
	axProvList[19] = new ProvSelect(19, 'Namen', false);
	axProvList[20] = new ProvSelect(20, 'Luik', false);
	axProvList[21] = new ProvSelect(21, 'Luxemburg', false);