function valid(form) {
 
  if (form.LastName.value=='') {
    alert("You must indicate your Last Name.");
    form.LastName.style.backgroundColor='#F3DDD5';
    return false;
  }
  else { form.LastName.style.backgroundColor=''; }

  if (form.FirstName.value=='') {
    alert("You must indicate your First Name.");
    form.FirstName.style.backgroundColor='#F3DDD5';
    return false;
  }
  else { form.FirstName.style.backgroundColor=''; }
  
    if (form.email.value=='') {
    alert("You must indicate your email address.");
    form.email.style.backgroundColor='#F3DDD5';
    return false;
  }
  else { form.email.style.backgroundColor=''; }
  
    if (form.offence.value=='') {
    alert("You must indicate your Offence.");
    form.offence.style.backgroundColor='#F3DDD5';
    return false;
  }
  else { form.offence.style.backgroundColor=''; }
  
      if (form.ticket_from_accident.value=='') {
    alert("You must indicate your Accident Status.");
    form.ticket_from_accident.style.backgroundColor='#F3DDD5';
    return false;
  }
  else { form.ticket_from_accident.style.backgroundColor=''; }


  return true;
}
