function validateContact()
{
	checkForm = document.forms["form_contact"];


	// Bedrijfsnaam
	if (false == (checkNotEmpty('' + checkForm.Name.value, 'error_bedrijfsnaam')))
	{
        checkForm.Name.className = "text error large";
        checkForm.Name.focus();
        return false;   
	}
    else
    {
         checkForm.Name.className = "text large";
    }

	// Voorletters
	if (false == (checkNotEmpty('' + checkForm.cnt_Initials.value, 'error_voorletters')))
	{
        checkForm.cnt_Initials.className = "text error small";
        checkForm.cnt_Initials.focus();
        return false;   
	}
    else
    {
         checkForm.cnt_Initials.className = "text small";
    }

	// Achternaam
	if (false == (checkNotEmpty('' + checkForm.cnt_LastName.value, 'error_achternaam')))
	{
        checkForm.cnt_LastName.className = "text error large";
        checkForm.cnt_LastName.focus();
        return false;   
	}
    else
    {
         checkForm.cnt_LastName.className = "text large";
    }

	// Functienaam
	if (false == (checkNotEmpty('' + checkForm.cnt_JobDescription.value, 'error_functienaam')))
	{
        checkForm.cnt_JobDescription.className = "text error large";
        checkForm.cnt_JobDescription.focus();
        return false;   
	}
    else
    {
         checkForm.cnt_JobDescription.className = "text large";
    }

	// Adres
	if (false == (checkNotEmpty('' + checkForm.MailAddress.value, 'error_adres')))
	{
        checkForm.MailAddress.className = "text error large";
        checkForm.MailAddress.focus();
        return false;   
	}
    else
    {
         checkForm.MailAddress.className = "text large";
    }

	// Postcode cijfers
	var error_postcode	= document.getElementById("error_postcode");
	var expression		= "^[0-9]{4}$";
	var re				= new RegExp(expression);

	if (!checkForm.zipcode_1.value.match(re))
	{
        checkForm.zipcode_1.className = "text error small";
		error_postcode.style.display = "block";
        checkForm.zipcode_1.focus();
		return false;
	}
	else
	{
	    checkForm.zipcode_1.className = "text small";
		error_postcode.style.display = "none";
	}

    // Postcode letters
    var error_postcode	= document.getElementById("error_postcode");
    var expression		= "^[a-zA-Z]{2}$";
    var re				= new RegExp(expression);
    
    if (!checkForm.zipcode_2.value.match(re))
    {
        checkForm.zipcode_2.className = "text error zipcode_2";
    	error_postcode.style.display = "block";
        checkForm.zipcode_2.focus();
    	return false;
    }
    else
    {
        checkForm.zipcode_2.className = "text zipcode_2";
    	error_postcode.style.display = "none";
    	
    	checkForm.MailPostCode.value = checkForm.zipcode_1.value +  checkForm.zipcode_2.value;
    }


	// Plaats
	if (false == (checkNotEmpty('' + checkForm.MailCity.value, 'error_plaats')))
	{
        checkForm.MailCity.className = "text error large";
        checkForm.MailCity.focus();
        return false;
	}
    else
    {
        checkForm.MailCity.className = "text large";
    }

	// Telefoon
	if (false == (checkNotEmpty('' + checkForm.Phone.value, 'error_telefoon')))
	{
        checkForm.Phone.className = "text error large";
        checkForm.Phone.focus();
        return false;
	}
    else
    {
        checkForm.Phone.className = "text large";
    }

	// Fax
	if (false == (checkNotEmpty('' + checkForm.Fax.value, 'error_fax')))
	{
        checkForm.Fax.className = "text error large";
        checkForm.Fax.focus();
        return false;
	}
    else
    {
        checkForm.Fax.className = "text large";
    }


	// E-mail
	// TO ACTIVATE!!!!!!!!
	// if (false == (checkNotEmpty('' + checkForm.Email.value, 'error_email'))) return false;

	return true;
}


function checkNotEmpty(strValue, strErrorname)
{
	var errorElement	= document.getElementById(strErrorname);
	var expression		= "[a-zA-Z0-9]{1}";
	var re				= new RegExp(expression);

	if (!strValue.match(re))
	{
		errorElement.style.display = "block";
		return false;
	}
	else
	{
		errorElement.style.display = "none";
		return true;
	}
}