function RequiredCheck()
{
  //alert("Sorry, one or more of the required fields at the top of the form is empty. Could you please go back and make sure you have filled in all spaces marked by a red star? Thank you.");
  var err_msg1 = "Sorry, the ";
  var err_msg2 = " field at the top of the form is empty.\nCould you please go back and fill it in? Thank you.";

  if( document.MTAForm.Last_Name.value == '' ){
    alert(err_msg1 + "Last Name" + err_msg2);
	document.MTAForm.Last_Name.focus();
    return false;
  }

  if( document.MTAForm.First_Name.value == '' ){
    alert(err_msg1 + "First Name" + err_msg2);
	document.MTAForm.First_Name.focus();
    return false;
  }

  if( document.MTAForm.Title.value == '' ){
    alert(err_msg1 + "Title" + err_msg2);
	document.MTAForm.Title.focus();
    return false;
  }

  if( document.MTAForm.Company.value == '' ){
    alert(err_msg1 + "Company" + err_msg2);
	document.MTAForm.Company.focus();
    return false;
  }

  if( document.MTAForm.Job_Title.value == '' ){
    alert(err_msg1 + "Job Title" + err_msg2);
	document.MTAForm.Job_Title.focus();
    return false;
  }

  if( document.MTAForm.Address1.value == '' ){
    alert(err_msg1 + "Address" + err_msg2);
	document.MTAForm.Address1.focus();
    return false;
  }

  if( document.MTAForm.City.value == '' ){
    alert(err_msg1 + "City" + err_msg2);
	document.MTAForm.City.focus();
    return false;
  }

  if( document.MTAForm.Postal_Code.value == '' ){
    alert(err_msg1 + "Postal Code" + err_msg2);
	document.MTAForm.Postal_Code.focus();
    return false;
  }

  if( document.MTAForm.Country.selectedIndex == 0  ){
    alert(err_msg1 + "Country" + err_msg2);
	document.MTAForm.Country.focus();
    return false;
  }

  if( document.MTAForm.Email.value == '' ){
    alert(err_msg1 + "E-mail" + err_msg2);
	document.MTAForm.Email.focus();
    return false;
  }

  if( document.MTAForm.Verification.selectedIndex == 0){
    alert(err_msg1 + "Verification (\"Choose a day\")" + err_msg2);
	document.MTAForm.Verification.focus();
    return false;
  }

//[A:]Sorry, could you please indicate the category that best describes your company (Question "A")? Thank you.
//[B:]Sorry, could you please indicate your primary job function (Question "B")? Thank you.
//[C:]Sorry, could you please indicate your company's size (Question "C")? Thank you.
//[D:]Sorry, could you please indicate at least one business sector that your company is active in (Question "D")? Thank you.
//[E:]Sorry, could you please indicate at least one category that you purchase or specify (Question "E")? Thank you.

  err_msg1 = "Sorry, could you please indicate ";
  err_msg2 = ")? Thank you.";
  var j=0;
  // A: -----------------------------------------------------------
  for (var i=0; i< document.MTAForm.A100_Company_category.length;i++) {
    if (document.MTAForm.A100_Company_category[i].checked)
      j++;
  }
  if (j == 0) {
    alert(err_msg1 + "the category that\nbest describes your company (Question A" + err_msg2);
	document.MTAForm.A100_Company_category[0].focus();
    return false;
  }
  j=0;
  // B: -----------------------------------------------------------
  for (var i=0; i< document.MTAForm.B200_Job_Function.length;i++) {
    if (document.MTAForm.B200_Job_Function[i].checked)
      j++;
  }
  if (j == 0) {
    alert(err_msg1 + "your\nprimary job function (Question B" + err_msg2);
	document.MTAForm.B200_Job_Function[0].focus();
    return false;
  }
  j=0;
  // C: -----------------------------------------------------------
  for (var i=0; i< document.MTAForm.C300_Company_size.length;i++) {
    if (document.MTAForm.C300_Company_size[i].checked)
      j++;
  }
  if (j == 0) {
    alert(err_msg1 + "your company's\nsize (Question C" + err_msg2);
	document.MTAForm.C300_Company_size[0].focus();
    return false;
  }
  j=0;
  // D: -----------------------------------------------------------
  if (document.MTAForm.D401_Automotive.checked) j++;
  if (document.MTAForm.D405_Household_Appliances.checked) j++;
  if (document.MTAForm.D402_Consumer_Products.checked) j++;
  if (document.MTAForm.D406_Medical.checked) j++;
  if (document.MTAForm.D403_Packaging.checked) j++;
  if (document.MTAForm.D407_Computers.checked) j++;
  if (document.MTAForm.D404_Aerospace.checked) j++;
  if (document.MTAForm.D408_Telecommunications.checked) j++;
  if (document.MTAForm.D409_Electronics.checked) j++;
  if (document.MTAForm.D498_Other.checked) j++;
  if (j == 0) {
    alert(err_msg1 + "at least one business sector\nthat your company is active in (Question D" + err_msg2);
	document.MTAForm.D401_Automotive.focus();
    return false;
  }
  j=0;
  // E: -----------------------------------------------------------
  if (document.MTAForm.E501_CAD_CAE_CAM_CIM_Systems.checked) j++;
  if (document.MTAForm.E506_Hot_Runner_Systems_Components.checked) j++;
  if (document.MTAForm.E502_Machining_Equipment.checked) j++;
  if (document.MTAForm.E507_Tool_Mould_Materials.checked) j++;
  if (document.MTAForm.E503_Machining_Accessories.checked) j++;
  if (document.MTAForm.E508_Polishing_Equipment.checked) j++;
  if (document.MTAForm.E504_Tool_Mould_Components.checked) j++;
  if (document.MTAForm.E509_Welding_Equipment.checked) j++;
  if (document.MTAForm.E505_Quality_Control_Inspection_Equipment.checked) j++;
  if (document.MTAForm.E510_Rapid_Prototying_Services.checked) j++;
  if (document.MTAForm.E511_EDM_Equipment_Accessories.checked) j++;
  if (document.MTAForm.E598_Other.checked) j++;
  if (j == 0) {
    alert(err_msg1 + "at least one category that\nyou purchase or specify (Question E" + err_msg2);
	document.MTAForm.E501_CAD_CAE_CAM_CIM_Systems.focus();
    return false;
  }
  j=0;

//[A/other:]Sorry, since have selected "Other" as the category that best describes your company, could you please explain this in the empty space above? Thank you.
//[B/other:]Sorry, since have selected "Other" as the category that best describes your primary job function, could you please explain this in the empty space above? Thank you.
//[C/other:]Sorry, since have selected "Other" as one of the business sectors that your company is active in, could you please explain this in the empty space above? Thank you.
//[D/other:]Sorry, since have selected "Other" as a category that you purchase or specify, could you please explain this in the empty space above? Thank you.

  err_msg1 = "Sorry, since you have selected \"Other\" as ";
  err_msg2 = ",\ncould you please explain this in the empty space above (Question ";
  err_msg3 = ")? Thank you.";

  if( document.MTAForm.A100_Company_category[6].checked && document.MTAForm.A199_Other_text.value == ''){
    alert(err_msg1 + "the category that best describes your company" + err_msg2 + "A" + err_msg3);
	document.MTAForm.A199_Other_text.focus();
    return false;
  }

  if( document.MTAForm.B200_Job_Function[9].checked && document.MTAForm.B299_Other_text.value == ''){
    alert(err_msg1 + "the category that best describes your primary job function" + err_msg2 + "B" + err_msg3);
	document.MTAForm.B299_Other_text.focus();
    return false;
  }

  if( document.MTAForm.D498_Other.checked && document.MTAForm.D499_Other_text.value == ''){
    alert(err_msg1 + "one of the business sectors that your company is active in" + err_msg2 + "D" + err_msg3);
	document.MTAForm.D499_Other_text.focus();
    return false;
  }

  if( document.MTAForm.E598_Other.checked && document.MTAForm.E599_Other_text.value == ''){
    alert(err_msg1 + "a category that you purchase or specify" + err_msg2 + "E" + err_msg3);
	document.MTAForm.E599_Other_text.focus();
    return false;
  }

  return true ;
}
