function Form1_Validator(theForm)
{
var alertsay = "";

if (theForm.Full_Name.value == "")
{
alert("Foutmelding!\nVul uw naam in.");
theForm.Full_Name.focus();
return (false);
}

if (theForm.Full_Name.value.length < 3)
{
alert("Foutmelding!\nU moet minimaal 3 tekens gebruiken voor uw naam.");
theForm.Full_Name.focus();
return (false);
}

if (theForm.Email_Address.value == "")
{
alert("Foutmelding!\nVul een e-mail adres in.");
theForm.Email_Address.focus();
return (false);
}

var checkEmail = "@.";
var checkStr = theForm.Email_Address.value;
var EmailValid = false;
var EmailAt = false;
var EmailPeriod = false;
for (i = 0;  i < checkStr.length;  i++)
{
ch = checkStr.charAt(i);
for (j = 0;  j < checkEmail.length;  j++)
{
if (ch == checkEmail.charAt(j) && ch == "@")
EmailAt = true;
if (ch == checkEmail.charAt(j) && ch == ".")
EmailPeriod = true;
	  if (EmailAt && EmailPeriod)
		break;
	  if (j == checkEmail.length)
		break;
	}
	// if both the @ and . were in the string
if (EmailAt && EmailPeriod)
{
		EmailValid = true
		break;
	}
}
if (!EmailValid)
{
alert("Foutmelding!\nUw e-mailadres moet een: \"@\" en een \".\" bevatten.");
theForm.Email_Address.focus();
return (false);
}

var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.@";
var checkStr = theForm.Email_Address.value;
var allValid = true;
for (i = 0;  i < checkStr.length;  i++)
{
ch = checkStr.charAt(i);
for (j = 0;  j < checkOK.length;  j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
alert("Foutmelding!\nU kunt alleen maar:\n\nHoofdletters\nLetters\nCijfers\n@\n.\n-\n_\n\nGebruiken voor uw e-mailadres.");
theForm.Email_Address.focus();
return (false);
}

return (true);
// replace the above with return(true); if you have a valid form to submit to
}

function Form2_Validator(theForm)
{
var alertsay = "";

if (theForm.Full_Name.value == "")
{
alert("Foutmelding!\nVul uw naam in.");
theForm.Full_Name.focus();
return (false);
}

if (theForm.Full_Name.value.length < 3)
{
alert("Foutmelding!\nU moet minimaal 3 tekens gebruiken voor uw naam.");
theForm.Full_Name.focus();
return (false);
}

if (theForm.Email_Address.value == "")
{
alert("Foutmelding!\nVul een e-mail adres in.");
theForm.Email_Address.focus();
return (false);
}

var checkEmail = "@.";
var checkStr = theForm.Email_Address.value;
var EmailValid = false;
var EmailAt = false;
var EmailPeriod = false;
for (i = 0;  i < checkStr.length;  i++)
{
ch = checkStr.charAt(i);
for (j = 0;  j < checkEmail.length;  j++)
{
if (ch == checkEmail.charAt(j) && ch == "@")
EmailAt = true;
if (ch == checkEmail.charAt(j) && ch == ".")
EmailPeriod = true;
	  if (EmailAt && EmailPeriod)
		break;
	  if (j == checkEmail.length)
		break;
	}
	// if both the @ and . were in the string
if (EmailAt && EmailPeriod)
{
		EmailValid = true
		break;
	}
}
if (!EmailValid)
{
alert("Foutmelding!\nUw e-mailadres moet een: \"@\" en een \".\" bevatten.");
theForm.Email_Address.focus();
return (false);
}

var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.@";
var checkStr = theForm.Email_Address.value;
var allValid = true;
for (i = 0;  i < checkStr.length;  i++)
{
ch = checkStr.charAt(i);
for (j = 0;  j < checkOK.length;  j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
alert("Foutmelding!\nU kunt alleen maar:\n\nHoofdletters\nLetters\nCijfers\n@\n.\n-\n_\n\nGebruiken voor uw e-mailadres.");
theForm.Email_Address.focus();
return (false);
}

if (theForm.Your_Message.value == "")
{
alert("Foutmelding!\nVul uw bericht in.");
theForm.Your_Message.focus();
return (false);
}

if (theForm.Your_Message.value.length < 15)
{
alert("Foutmelding!\nUw bericht moet minimaal 15 tekens bevatten.");
theForm.Your_Message.focus();
return (false);
}

return (true);
// replace the above with return(true); if you have a valid form to submit to
}
