function Validator(theForm)
{

  if (theForm.category.value == "")
  {
    alert("Please enter a value for the \"category\" field.");
    theForm.category.focus();
    return (false);
  }

  if (theForm.category.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"category\" field.");
    theForm.category.focus();
    return (false);
  }

  if (theForm.link_o.value == "")
  {
    alert("Please enter a value for the \"link_o\" field.");
    theForm.link_o.focus();
    return (false);
  }

  if (theForm.link_o.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"link_o\" field.");
    theForm.link_o.focus();
    return (false);
  }

  if (theForm.title.value == "")
  {
    alert("Please enter a value for the \"title\" field.");
    theForm.title.focus();
    return (false);
  }

  if (theForm.title.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"title\" field.");
    theForm.title.focus();
    return (false);
  }

  if (theForm.text_o.value == "")
  {
    alert("Please enter a value for the \"text_o\" field.");
    theForm.text_o.focus();
    return (false);
  }

  if (theForm.text_o.value.length > 250)
  {
    alert("Please enter at most 250 characters in the \"text_o\" field.");
    theForm.text_o.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"email\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.repcirocal.value == "")
  {
    alert("Please enter a value for the \"repcirocal\" field.");
    theForm.repcirocal.focus();
    return (false);
  }

  if (theForm.repcirocal.value.length > 150)
  {
    alert("Please enter at most 150 characters in the \"repcirocal\" field.");
    theForm.repcirocal.focus();
    return (false);
  }
  return (true);
}

