			function themaform(id,titel,text) {
				document.formactie.themaID.value = id;
				document.formactie.themaTitel.value = titel;
				document.formactie.themaText.value = text;
				
				document.formactie.action = "index.asp";
				document.formactie.submit();
			}

			function onderwerpform(id,titel,id2,titel2) {
				document.formactie.themaID.value = id;
				document.formactie.themaTitel.value = titel;

				document.formactie.onderwerpID.value = id2;
				document.formactie.onderwerpTitel.value = titel2;

				document.formactie.action = "onderwerp.asp";
				document.formactie.submit();
			}

			function artikelform(id,titel,id2,titel2,id3,titel3) {

				var myID, myTitel
				myID = eval("document.formactie."+module+"ID");
				myID.value = id;
				myTitel = eval("document.formactie."+module+"Titel");
				myTitel.value = titel;

				document.formactie.action = bestand;
				document.formactie.submit();


			}

			function Show(obj) {
				eval(obj).style.display = 'block';
			}

			function Hide(obj) {
				eval(obj).style.display = 'none';
			}
			
			function ChoseTheme(id,addString)
			{
				document.location.href = "bronnenbank.asp?tid=" + id + addString
			}
						
	function SetCookie(sName, sValue)
	{
		date = new Date("January 31, 2010");
		document.cookie = sName + "=" + escape(sValue) + "; expires=" + date.toGMTString();
	}

	function SwitchLang(cuid)
	{
		SetCultureByCUID(cuid,false)
	}	
	
	function bUrlInCulture(urltotest)
	{
				
		if(urltotest.indexOf('/nl-NL/') != -1)
			return true;			

		if(urltotest.indexOf('/nl-nl/') != -1)
			return true;			
		
		if(urltotest.indexOf('/nl/') != -1)
			return true;
		
		if(urltotest.indexOf('/en-GB/') != -1)
			return true;
		
		if(urltotest.indexOf('/en-gb/') != -1)
			return true;
			
		if(urltotest.indexOf('/en/') != -1)
			return true;
			
		if(urltotest.indexOf('/fi/') != -1)
			return true;
			
		if(urltotest.indexOf('/fi-FI/') != -1)
			return true;
		
		if(urltotest.indexOf('/fr/') != -1)
			return true;
			
		if(urltotest.indexOf('/fr-FR/') != -1)
			return true;
			
		if(urltotest.indexOf('/fr-fr/') != -1)
			return true;
			
		if(urltotest.indexOf('/de/') != -1)
			return true;			
		
		if(urltotest.indexOf('/it-IT/') != -1)
			return true;			
		
		if(urltotest.indexOf('/it-it/') != -1)
			return true;			
		
		if(urltotest.indexOf('/it/') != -1)
			return true;			
		
		if(urltotest.indexOf('/nm/') != -1)
			return true;			
		
		if(urltotest.indexOf('/cs/') != -1)
			return true;			
		
		if(urltotest.indexOf('/cs-CZ/') != -1)
			return true;			
		
		if(urltotest.indexOf('/cs-cz/') != -1)
			return true;			
		
		if(urltotest.indexOf('/de-DE/') != -1)
			return true;			
		
		if(urltotest.indexOf('/de-de/') != -1)
			return true;			
		
		if(urltotest.indexOf('/de-AT/') != -1)
			return true;
		
		if(urltotest.indexOf('/de-at/') != -1)
			return true;
			
		if(urltotest.indexOf('/en-US/') != -1)
			return true;
		
		if(urltotest.indexOf('/en-us/') != -1)
			return true;
			
		if(urltotest.indexOf('/de-CH/') != -1)
			return true;

		if(urltotest.indexOf('/fr-CH/') != -1)
			return true;

		if(urltotest.indexOf('/en-CA/') != -1)
			return true;

		if(urltotest.indexOf('/fr-CA/') != -1)
			return true;

		if(urltotest.indexOf('/es-ES/') != -1)
			return true;

		if(urltotest.indexOf('/pt-PT/') != -1)
			return true;
			
		if(urltotest.indexOf('/pt-BR/') != -1)
			return true;

		if(urltotest.indexOf('/uk-UA/') != -1)
			return true;

		if(urltotest.indexOf('/dk-DK/') != -1)
			return true;

		if(urltotest.indexOf('/pl-PL/') != -1)
			return true;

		if(urltotest.indexOf('/id-ID/') != -1)
			return true;

		if(urltotest.indexOf('/ko-KR/') != -1)
			return true;

		if(urltotest.indexOf('/en-AU/') != -1)
			return true;

		if(urltotest.indexOf('/sv-SE/') != -1)
			return true;

		if(urltotest.indexOf('/nl-BE/') != -1)
			return true;

		if(urltotest.indexOf('/fr-BE/') != -1)
			return true;

		if(urltotest.indexOf('/es-AR/') != -1)
			return true;
			
		if(urltotest.indexOf('/af-ZA/') != -1)
			return true;
		
		if(urltotest.indexOf('/sk-SK/') != -1)
			return true;
			
		if(urltotest.indexOf('/no-NO/') != -1)
			return true;
		
		return false;			
	}
	
	function SetCultureByCUID(cuid,bRedirect)
	{
		var bCultUrl = bUrlInCulture(document.location.href);
		var subUrl = cuid;
		/*if(cuid != "de-DE" && cuid !="de-AT")
		{
			subUrl = subUrl.substring(0,2);
		}*/
		
		//alert("SetCultureByCUID(" + cuid + "," + bRedirect + ")");
		SetCookie("afculture",cuid);
		if(bRedirect)
		{
			document.location.href = (bCultUrl ? "../" : "") + subUrl + "/index.asp";
			//document.location.href = (bCultUrl ? "../" : "") + subUrl + "/default.asp?resetculture=1&showsplash=1";
		}
		else
		{
		    var redirect = (bCultUrl ? "../" : "") + subUrl + "/default.asp?resetculture=1&showsplash=1";
		    //alert (redirect);
			document.location.href = redirect;
		}
	}
	
	function SetCultureByCUIDAndRedirectToURL(cuid,redirectURL)
	{
		var bCultUrl = bUrlInCulture(document.location.href);
		var subUrl = cuid;
	
		SetCookie("afculture",cuid);
		document.location.href = (bCultUrl ? "../" : "") + subUrl + redirectURL;
	}

	function SetCulture(oObj)
	{
		var culture = oObj[oObj.selectedIndex].value;
		SetCultureByCUID(culture,true);
		
	}
	
	function SetSelectedCulture(cultureId)
	{
		if(cultureId =="li-")
			cultureId = "li-nl-NL";
				
		var selLi = document.getElementById(cultureId);
		selLi.style.color="#FF8836";
		selLi.style.textDecoration="none";

	}
	
	function MeldAan()
	{
		document.forms[1].submit();
	}

//-------------- country rotator ----------------
	var currentCountry = -1; //43 
	var countryCouter = 1;
	 
	function startCountryRotator(){ 
		if(currentCountry == -1) {  				
			currentCountry = countries.length-1; 
		}
		document.getElementById('countryRotator').innerHTML = countries[currentCountry];			 			
		setTimeout("startCountryRotator()", 4000);			 			
		currentCountry = currentCountry - countryCouter;
	} 
//-----------------------------------------------
