En lille syntaksfejl
<script<!--
function Checkpostnr()
{
if (document.postnr.postnrfelt.value >= 1000 & document.postnr.postnrfelt.value <= 9999)
document.postnr.action = \"sogposthaandvaerker.asp\"
document.postnr.submit()
else
alert(\"Du skal indtaste et korrekt postnummer.\");
};
// -->
</script>
