	CHok = 0;
	function doeiets(){ 
	try { document.getElementById("form_postcode").temp.value = postcodeframe.document.body.innerHTML; } catch(err) { }
	if (document.getElementById("form_postcode").temp.value.indexOf("POSTCODE ONJUIST") > -1){ document.getElementById("form_postcode").POSTCODE.value = "uw postcode"; alert("POSTCODE ONJUIST"); } else {
	if (document.getElementById("form_postcode").temp.value.indexOf("OK") > -1){ CHok = 1; document.getElementById("form_postcode").submit(); }
	}}
	function postcodezoek(){
		if (document.getElementById("form_postcode").POSTCODE.value != "Postcode of"){
			postcodeframe.location = "GEOCODING/GEOCODING.php?POSTCODE="+document.getElementById('form_postcode').POSTCODE.value
		} else {
			document.getElementById('form_postcode').submit()
		}
	}
	function cheeck(LENGTH){
    if (document.getElementById("form_postcode").POSTCODE.value.length > LENGTH){
	document.getElementById("form_postcode").POSTCODE.value = document.getElementById("form_postcode").POSTCODE.value.substring(0,LENGTH)
	}}
	function chck(){
	if (CHok == 1){ return(true) } else { return(false) }
	}
	function volgende(ii,PC,T){
		document.getElementById("form_postcode").action = 'index.php?VINDc=1&PAGE='+ii
		document.getElementById("form_postcode").submit()
		if (T == "PC"){
			document.getElementById("form_postcode").POSTCODE.value = PC
		}
		if (T == "PL"){
			document.getElementById("form_postcode").PLAATS.value = PC
		}
		if (T == "BE"){
			document.getElementById("form_postcode").BEDRIJF.value = PC
		}
	}


function SWITCH(OBJ){
	document.getElementById('form_postcode').POSTCODE.value = "Postcode of"
	document.getElementById('form_postcode').PLAATS.value = "Plaats of"
	document.getElementById('form_postcode').BEDRIJF.value = "Bedrijf"
	OBJ.value = ""
}
function SUBMITFRM(){
	postcodezoek()
}
