function React(theForm) {

// check to see if the field is blank
if (theForm.naam.value == "") {
	alert("Pflichtfeld: Name");
	theForm.naam.focus();
return (false);
}
if (theForm.email.value == "") {
	alert("Pflichtfeld: Email");
	theForm.email.focus();
return (false);
}

// test if valid email address, must have @ and .
var checkEmail = "@.";
var checkStr = theForm.email.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("Dies ist keine gültige E-Mail-Adresse.");
	theForm.email.focus();
return (false);
}
}
// einde einde einde einde einde einde einde einde einde einde

function Reserve(theForm) {

// check to see if the field is blank
if (theForm.naam.value == "") {
	alert("Pflichtfeld: Name");
	theForm.naam.focus();
return (false);
}
if (theForm.adres.value == "") {
	alert("Pflichtfeld: Adresse");
	theForm.adres.focus();
return (false);
}
if (theForm.postcode.value == "") {
	alert("Pflichtfeld: Postleitzahl");
	theForm.postcode.focus();
return (false);
}
if (theForm.woonplaats.value == "") {
	alert("Pflichtfeld: Wohnsitz");
	theForm.woonplaats.focus();
return (false);
}
if (theForm.telefoon.value == "") {
	alert("Pflichtfeld: Telephon");
	theForm.telefoon.focus();
return (false);
}

if (theForm.email.value == "") {
	alert("Pflichtfeld: Email");
	theForm.email.focus();
return (false);
}

// test if valid email address, must have @ and .
var checkEmail = "@.";
var checkStr = theForm.email.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("Dies ist keine gültige E-Mail-Adresse.");
	theForm.email.focus();
return (false);
}
// check if both password fields are the same
if (theForm.email.value != theForm.replay.value)	{
	alert("E-Mail-Adressen stimmen nicht überein.");
	theForm.replay.focus();
return (false);
	}
}
// einde einde einde einde einde einde einde einde einde einde


// ------ open div ------
var nav;
cssAllowed=(document.getElementById||document.layers||document.all)?true:false;
cssMessage="CSS not supported. Please upgrade your browser.";
function layerObject(eID){
	if(document.getElementById){this.css=document.getElementById(eID).style;}
		else if(document.layers){
		this.css=document.layers[eID].style;
		nav="nn4"
		}
		else if(document.all){this.css=document.all[eID].style;}
	return this
}

var pasteID;
function showHide(eID,on){
if(!cssAllowed){alert(cssMessage)}
	else {
		myLayer=new layerObject(eID)
	if(on){
	if (pasteID) {
	if (nav) {
		pasteID.display="none" }
	else {
		pasteID.css.display="none"
		}
		}
	if (nav) {
		document.layers[eID].display = 'block'
		pasteID = document.layers[eID]
		}
		else {
		myLayer.css.display="block"
		pasteID = myLayer
			}
		}
	else{
		myLayer.css.display="none"
		}
	}
}
