if( top.location != location ) {
	top.location.href = location.href;
}
// Analytics Tracking
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));


function initField(idke,val){
	if ($(idke).value == "" || (idke == 'i_land' && $(idke).value == "1")) {
		$(idke).value = val;
	}
}
function checkLength(e) {
	var el;
	if(window.event) {
		e=window.event;
		el = e.srcElement;
	} else if(e) {
		el = e.target;
	} else if(this) el = this;
	// not doing any of this in IE
	var ch = checkARR[el.id];

	if (el.value.length > ch.max) {
		el.value = el.value.substr(0,ch.max);
	}
	var rest = ch.max - el.value.length;
	ch.maxDiv.innerHTML = [ch.prefix,rest,ch.postfix].join(" ");
}

var checkARR = [];
var maxTextArea = 3000;
var maxTitle = 60;
function limietVeld(veldID,maxKarakter,prefix,postfix) {
	checkARR[veldID] = new Object;
	var veld = document.getElementById(veldID);
	var veldMax = document.getElementById(veldID+"_max");
	veldMax.innerHTML = prefix + " " +maxKarakter + " " +postfix;
	checkARR[veldID].prefix = prefix;
	checkARR[veldID].postfix = postfix;
	checkARR[veldID].max = maxKarakter;
	checkARR[veldID].maxDiv = veldMax;
	veld.onkeydown = checkLength;
	veld.onkeyup = checkLength;
}