function kiesProvincie(pNr){

	//var provincies = Array('','Drenthe','Flevoland','Friesland','Gelderland','Groningen','Limburg','Noord-Brabant','Noord-Holland','Overijssel','Utrecht','Zeeland','Zuid-Holland');

	p_select = document.getElementById('selectProvincie');
	
	for(i=0;i<p_select.options.length;i++){
		
		if (p_select.options[i].value == pNr){
			p_select.options[i].selected = true;
		}
	
	}

}

/* widgits */

var domain_old = document.domain;
var domain_new = document.domain.substring(document.domain.indexOf('.') + 1);

function showWidgitEditor(){
	
	var pop_width  = 800;
	var pop_height = 600;
	
	var popup_left = (screen.width-pop_width)/2;
	var popup_top = (screen.height-pop_height)/2;

	var widgits = document.getElementById('reactie_widgits').value

	// cross-domain scripting toestaan
	if (document.domain.length == domain_old.length){
		document.domain = domain_new;
	}

	window.open("/php/widgit/widgiteditor.php?w=" + widgits,0,"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+pop_width+",height="+pop_height+",left="+popup_left+",top="+popup_top);

}

function procesWidgits(widgits){
	
	document.getElementById('reactie_widgits').value = widgits;
	
}

/* zoekbox */

window.onload = function() {

	if (document.getElementById("nieuwsb_email")){

		zoektext_value = "Vul je e-mail adres in..."

		document.getElementById("nieuwsb_email").value = zoektext_value

		document.getElementById("nieuwsb_email").onclick = function (){
			if (this.value==zoektext_value){
				this.value=""
			}
		}

		document.getElementById("nieuwsb_email").onblur = function (){
			if (this.value==""){
				this.value=zoektext_value
			}
		}
		
	}

}

/* re-captcha opties */

var RecaptchaOptions = {
							theme : 'white',
							lang : 'nl'
						};