// JavaScript Document
function grofVuil(gemeente,w,h) {
	mypage = '/grofvuil/grofvuil2.asp';
	w = 500;
	h = 500;
	LPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TPosition = (screen.height) ? (screen.height-h)/2 : 0;
	properties = '';
	properties += 'width=' + w +',';
	properties += 'height=' + h +',';
	properties += 'left=' + LPosition +',';
	properties += 'top=' + TPosition +',';
	properties += 'scrollbars=yes' +',';
	properties += 'resizable=yes' +',';
	properties = properties.substring(0,properties.length-1);
	newwindow=window.open(mypage + '?gemeente=' + gemeente,'GPGROOT_GROFVUIL',properties);
	newwindow.focus();
}

var Postcode2Value = false;
function setPostcode4() {
	if (document.getElementById('postcode4').value.length == 4 && isNaN(document.getElementById('postcode4').value) == false) {
		document.getElementById('postcode2').select();
		document.getElementById('postcode2').focus();
		if (document.getElementById('postcode2').value.length != 0) {
			Postcode2Value = true;
		}
		else {
			Postcode2Value = false;
		}
	}
}
function setPostcode2() {
	if (document.getElementById('postcode2').value.length == 0 && Postcode2Value == true) {
		document.getElementById('postcode4').select();
		document.getElementById('postcode4').focus();
	}
}
