  function checkForm() {
month = document.getElementById("month").value;
  date = document.getElementById("date").value;
  comment = document.getElementById("price").value;
  
  if (month == "x") {
  hideAllErrors();
document.getElementById("nameError").style.display = "inline";
document.getElementById("month").select();
document.getElementById("month").focus();
  return false;
  } else if (date == "y") {
hideAllErrors();
document.getElementById("emailError").style.display = "inline";
document.getElementById("date").select();
document.getElementById("date").focus();
  return false;
  } else if (comment == "NIL") {
hideAllErrors();
document.getElementById("commentError").style.display = "inline";
document.getElementById("price").select();
document.getElementById("price").focus();
  return false;
  }
  return true;
  }
 
  function hideAllErrors() {
document.getElementById("nameError").style.display = "none"
document.getElementById("emailError").style.display = "none"
document.getElementById("commentError").style.display = "none"
  }
