function checklogin()
{
	if (this.document.formlogin.email.value == 'Uw emailadres')
	this.document.formlogin.email.value = '';
}
function checklogin2()
{
	if (this.document.formlogin.password.value == 'Uw wachtwoord')
	this.document.formlogin.password.value = '';
}

function changemenu(id)
{
id.style.background = '#000000';
id.style.color = 'white';
}
function menu(id)
{
id.style.background = '#FF0000';
id.style.color = 'white';
}

function checkform()
{

var str=this.document.form1.email.value;
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

if (!filter.test(str))
{
alert('Geen geldig mailadres ingevoerd');
return false;
}

if (!(this.document.form1.naam.value))
{
alert('Geen naam ingevoerd');
return false;
}

if (!(this.document.form1.Bedrijfsnaam.value))
{
alert('Geen bedrijfsnaam ingevoerd');
return false;
}

if (!(this.document.form1.Factuuradres.value))
{
alert('Geen factuuradres ingevoerd');
return false;
}

if (!(this.document.form1.Plaats.value))
{
alert('Geen plaats ingevoerd');
return false;
}

if (this.document.form1.voorwaarden.checked == false)
{
alert('U dient akkoord te gaan met onze voorwaarden!');
return false;
}

if (!(this.document.form1.Postcode.value))
{
alert('Geen postcode ingevoerd');
return false;
}

if (!(this.document.form1.Postcode.value.match(/\d{4}\s?[a-z]{2}/i)))
{
alert('Geen geldige postcode ingevoerd');
return false;
}

if (!(this.document.form1.Telefoon.value.match(/\d{10}/i)))
{
alert('Geen geldig telefoonnummer ingevoerd');
return false;
}

else {
return;
}

}
