function profilerCheck()
{
if (!validnaam())
{return false;}

if (!validemail())
{return false;}

if (!validbericht())
{return false;}

toggle();
return true;
}

function validnaam()
{
var str=document.procontact.enaam.value;
if ((str == null) || (str.length == 0))
	{
	alert("Je bent je naam vergeten...");
	document.procontact.enaam.style.background = 'Yellow';
	document.procontact.enaam.focus();
toggle();
	return false;
	}
document.procontact.enaam.style.background = 'White';
return true;
}

function validemail()
{
var str=document.procontact.eemail.value;
if ((str == null) || (str.length == 0))
	{
	alert("Je bent je email-adres vergeten...");
	document.procontact.eemail.style.background = 'Yellow';
	document.procontact.eemail.focus();
toggle();
	return false;
	}
else
if ((str.indexOf("@")==-1) || (str.indexOf(".")==-1))
	{
	alert("Je bent je email-adres vergeten...");
	document.procontact.eemail.style.background = 'Yellow';
	document.procontact.eemail.focus();
toggle();
	return false;
	}
document.procontact.eemail.style.background = 'White';
return true;
}

function validbericht()
{
var str=document.procontact.ebericht.value;
if ((str == null) || (str.length == 0))
	{
	alert("Je hebt geen bericht getypt...");
	document.procontact.ebericht.style.background = 'Yellow';
	document.procontact.ebericht.focus();
toggle();
	return false;
	}
document.procontact.ebericht.style.background = 'White';
return true;
}
