function validate(frm) {
  var errors = "";
  if (!frm.q1.value) {
    errors += "First Name\n";
  }
  if (!frm.q2.value) {
    errors += "Last Name\n";
  }
  if (!frm.q107.value) {
    errors +="Job Title\n";
  }
  if (!frm.q14.value) {
    errors += "Email Address\n";
  }
  if (!frm.q4.value) {
    errors += "Address\n";
  }
  if (!frm.q5.value) {
    errors += "City\n";
  }
  if (frm.q6.selectedIndex<=0) {
    errors += "State/Province\n";
  }
  if (frm.q9.selectedIndex<=0) {
    errors += "Country\n";
  }
  if (frm.q89284.selectedIndex<=0) {
    errors += "Headquarter's State\n";
  }
  if (frm.q89269.selectedIndex<=0) {
    errors += "Are you planning a project?\n";    
  }
  if (frm.q89212.selectedIndex<=0) {
    errors += "What is your budget for this project?\n";
  }
  if (frm.q89208.selectedIndex<=0) {
    errors += "What is the timing of your project?\n";
  }
  if (frm.q89266.selectedIndex<=0) {
    errors += "How many agents are in your contact center?\n";
  }
  if (frm.q89268.selectedIndex<=0) {
    errors += "Our organization is a current Aspect:\n";
  }

  if (errors) {
    alert("The following required fields are empty:\n\n" + errors);
    return false;
  }
  return true;
}
