<script>
function checkForm() {
if (form.form_username.value=="") {
alert("Username not set");
return false;
}
if (form.form_password.value=="") {
alert("Password not set");
return false;
}
if (form.form_password2.value=="") {
alert("Password not set");
return false;
}
if (form.form_email.value=="") {
alert("E-Mail not set");
return false;
}
if (form.form_password.value!==form.form_password2.value) {
alert("Passwords do not match!");
return false;
}
}
</script>