function isEmail(elm) {
if (elm.value.indexOf("@") != "-1" &&
elm.value.indexOf(".") != "-1" &&
elm.value != "")
return true;
else return false;
}
function isFilled(elm) {
if (elm.value == "" ||
elm.value == null)
return false;
else return true;
}
function isReady(form) {
if (isFilled(form.naam) == false) {
alert("Vul svp uw naam in");
form.naam.focus();
return false;
}
if (isFilled(form.adres) == false) {
alert("Vul svp uw adres in");
form.adres.focus();
return false;
}
if (isFilled(form.postcode) == false) {
alert("Vul svp uw postcode in");
form.postcode.focus();
return false;
}
if (isFilled(form.woonplaats) == false) {
alert("Vul svp uw woonplaats in");
form.woonplaats.focus();
return false;
}
if (isFilled(form.telefoon) == false) {
alert("Vul svp uw telefoon-nummer in");
form.telefoon.focus();
return false;
}
if (isEmail(form.submit_from) == false) {
alert("Vul svp uw correcte e-mail in");
form.submit_from.focus();
return false;
}
return true;
}

