function Validator(theForm)
{
if (theForm.contact.value == "")
{
alert("Please enter a \"Contact Name\".");
theForm.contact.focus();
return (false);
}
if (theForm.phone.value == "")
{
alert("Please enter your \"Telephone Number\".");
theForm.phone.focus();
return (false);
}
if (theForm.phone.value.length < 10)
{
alert("Please enter a valid \"Telephone Number\".");
theForm.phone.focus();
return (false);
}
if (theForm.email.value == "")
{
alert("Please enter your \"E-mail\" address.");
theForm.email.focus();
return (false);
}
if (theForm.email.value.length < 6)
{
alert("Please enter a valid \"E-mail\" address.");
theForm.email.focus();
return (false);
}
if (theForm.item1.value == "")
{
alert("Please enter your \"Item Number\".");
theForm.item1.focus();
return (false);
}
if (theForm.desc1.value == "")
{
alert("Please enter an \"Item Description\" so we may better assist you.");
theForm.desc1.focus();
return (false);
}
if (theForm.qty1.value == "")
{
alert("Please enter the \"Quantity\" you are returning.");
theForm.qty1.focus();
return (false);
}
if (theForm.invoice1.value == "")
{
alert("Please enter the original \"Invoice Number\" for the items you are returning.");
theForm.invoice1.focus();
return (false);
}
if (theForm.reason1.value == "- select one -")
{
alert("Please select the \"Reason\" you are returning the item(s).");
theForm.reason1.focus();
return (false);
}
if (theForm.action1.value == "- select one -")
{
alert("Please select the \"Action\" you are requesting for the item(s) being returned.");
theForm.action1.focus();
return (false);
}

if (theForm.moreitem2.value == "Yes")
{
  if (theForm.item2.value == "")
  {
  alert("Please enter your \"Item Number\".");
  theForm.item2.focus();
  return (false);
  }
  if (theForm.desc2.value == "")
  {
  alert("Please enter an \"Item Description\" so we may better assist you.");
  theForm.desc2.focus();
  return (false);
  }
  if (theForm.qty2.value == "")
  {
  alert("Please enter the \"Quantity\" you are returning.");
  theForm.qty2.focus();
  return (false);
  }
  if (theForm.invoice2.value == "")
  {
  alert("Please enter the original \"Invoice Number\" for the items you are returning.");
  theForm.invoice2.focus();
  return (false);
  }
  if (theForm.reason2.value == "- select one -")
  {
  alert("Please select the \"Reason\" you are returning the item(s).");
  theForm.reason2.focus();
  return (false);
  }
  if (theForm.action2.value == "- select one -")
  {
  alert("Please select the \"Action\" you are requesting for the item(s) being returned.");
  theForm.action2.focus();
  return (false);
  }
}

if (theForm.moreitem3.value == "Yes")
{
  if (theForm.item3.value == "")
  {
  alert("Please enter your \"Item Number\".");
  theForm.item3.focus();
  return (false);
  }
  if (theForm.desc3.value == "")
  {
  alert("Please enter an \"Item Description\" so we may better assist you.");
  theForm.desc3.focus();
  return (false);
  }
  if (theForm.qty3.value == "")
  {
  alert("Please enter the \"Quantity\" you are returning.");
  theForm.qty3.focus();
  return (false);
  }
  if (theForm.invoice3.value == "")
  {
  alert("Please enter the original \"Invoice Number\" for the items you are returning.");
  theForm.invoice3.focus();
  return (false);
  }
  if (theForm.reason3.value == "- select one -")
  {
  alert("Please select the \"Reason\" you are returning the item(s).");
  theForm.reason3.focus();
  return (false);
  }
  if (theForm.action3.value == "- select one -")
  {
  alert("Please select the \"Action\" you are requesting for the item(s) being returned.");
  theForm.action3.focus();
  return (false);
  }
}

if (theForm.moreitem4.value == "Yes")
{
  if (theForm.item4.value == "")
  {
  alert("Please enter your \"Item Number\".");
  theForm.item4.focus();
  return (false);
  }
  if (theForm.desc4.value == "")
  {
  alert("Please enter an \"Item Description\" so we may better assist you.");
  theForm.desc4.focus();
  return (false);
  }
  if (theForm.qty4.value == "")
  {
  alert("Please enter the \"Quantity\" you are returning.");
  theForm.qty4.focus();
  return (false);
  }
  if (theForm.invoice4.value == "")
  {
  alert("Please enter the original \"Invoice Number\" for the items you are returning.");
  theForm.invoice4.focus();
  return (false);
  }
  if (theForm.reason4.value == "- select one -")
  {
  alert("Please select the \"Reason\" you are returning the item(s).");
  theForm.reason4.focus();
  return (false);
  }
  if (theForm.action4.value == "- select one -")
  {
  alert("Please select the \"Action\" you are requesting for the item(s) being returned.");
  theForm.action4.focus();
  return (false);
  }
}

if (theForm.moreitem5.value == "Yes")
{
  if (theForm.item5.value == "")
  {
  alert("Please enter your \"Item Number\".");
  theForm.item5.focus();
  return (false);
  }
  if (theForm.desc5.value == "")
  {
  alert("Please enter an \"Item Description\" so we may better assist you.");
  theForm.desc5.focus();
  return (false);
  }
  if (theForm.qty5.value == "")
  {
  alert("Please enter the \"Quantity\" you are returning.");
  theForm.qty5.focus();
  return (false);
  }
  if (theForm.invoice5.value == "")
  {
  alert("Please enter the original \"Invoice Number\" for the items you are returning.");
  theForm.invoice5.focus();
  return (false);
  }
  if (theForm.reason5.value == "- select one -")
  {
  alert("Please select the \"Reason\" you are returning the item(s).");
  theForm.reason5.focus();
  return (false);
  }
  if (theForm.action5.value == "- select one -")
  {
  alert("Please select the \"Action\" you are requesting for the item(s) being returned.");
  theForm.action5.focus();
  return (false);
  }
}

if (theForm.non_war.value == "- select one -")
{
alert("Please select what you would like done with the item(s) that are NOT covered by warranty.");
theForm.non_war.focus();
return (false);
}

return (true);
}
