function postcodeCheck(string) {
return string.replace(/[",", " ", "@", "!", "#", "$", "%", "^", "&", "*", "(", ")", "?", ":","{", "}"]/g, "");
}

function housenumberCheck(string) {
return string.replace(/["a-z", "A-Z", ",", " ", "@", "!", "#", "$", "%", "^", "&", "*", "(", ")", "?", ":","{", "}"]/g, "");
}

function additionCheck(string) {
return string.replace(/[",", " ", "@", "!", "#", "$", "%", "^", "&", "*", "(", ")", "?", ":","{", "}"]/g, "");
} 

function error() {
	alert('Postcodecheck tijdelijk niet beschikbaar');
	return false;
}

function show() {
	document.getElementById("picframe").removeAttribute("style");
}

function validate_required(field,alerttxt)
{
	with (field)
	{
		if (value==null||value=="")
		{
			alert(alerttxt);return false;
		}
		else
		{
			return true;
		}
	}
}

function validate_form(thisform) {
	with (thisform) {
		if (validate_required(postcode,"Postode en/of huisnummer niet ingevoerd")==false || validate_required(huisnummer,"Postode en/of huisnummer niet ingevoerd")==false){
			return false;
		}
	}
} 
