//Snel contact formulier, de value's
$(document).ready(function () {
  $('#naam').val('Naam');
  $('#mail').val('E-mail');
  $('#telefoon').val('Telefoon');
  $('#naam').focus(function () {
    $(this).val('');
  });
  $('#mail').focus(function () {
    $(this).val('');
  });
  $('#telefoon').focus(function () {
    $(this).val('');
  });
});

//Controle contact formulier
function validateForm(contact) {
  /*var object = document.contact;*/
  var object = document.getElementByID();
  var check = true;
  var text = 'U moet de volgende velden invullen:\n';
  var num1 = '5_';
  
  /*if(object.Naam.value == "") {
    text = text + 'Naam\n';
    check = false;
  }
  if(object.Emailadres.value == "") {
    text = text + 'E-mail\n';
    check = false;
  }*/
  if(object.Opmerking.value == "") {
    text = text + 'Opmerking\n';
    check = false;
  }
  
  if(check == false) {
    alert(text);
    return check;
  }
  return check;
}

//Validatie voor het kleine contact
function quickValidate() {
  var object = document.snelContact;
  var check = true;
  var text = 'U moet de volgende velden invullen:\n';
  
  if(object.naam.value == "Naam" || object.naam.value == "") {
    text = text + 'Naam\n';
    check = false;
  }
  if(object.mail.value == "E-mail"  || object.mail.value == "") {
    text = text + 'E-mail\n';
    check = false;
  }
  if(object.telefoon.value == "Telefoon"  || object.telefoon.value == "") {
    text = text + 'Telefoon';
    check = false;
  }
  if(check == false) {
    alert(text);
    return check;
  }
  return check;
}