function CS_ProbForm_Validator(theForm)
{
  if (theForm.Name.value == "")
  {
    alert("Por favor escriba un valor para el campo \"Nombre\".");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Name.value.length < 3)
  {
    alert("El campo \"Nombre\" debe tener al menos 3 caracteres.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Name.value.length > 80)
  {
    alert("El campo \"Nombre\" admite un máximo de 80 caracteres.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Por favor escriba un valor para el campo \"Dirección de Correo Electrónico\".");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length < 5)
  {
    alert("El campo \"Dirección de Correo Electrónico\" debe tener al menos 5 caracteres.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length > 120)
  {
    alert("El campo \"Dirección de Correo Electrónico\" admite un máximo de 120 caracteres.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Version.value == "Other" && theForm.OtherVersion.value == "")
  {
    alert("Por favor escriba un número de versión en el campo \"Otra\".");
    theForm.OtherVersion.focus();
    return (false);
  }

  if (theForm.Problem.value.length < 5)
  {
    alert("Por favor escriba una descripción del problema en el campo \"Descripción del problema\".");
    theForm.Problem.focus();
    return (false);
  }

  return (true);
}

function CS_MailForm_Validator(theForm)
{
  if (theForm.Name.value == "")
  {
    alert("Por favor escriba un valor para el campo \"Nombre\".");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Name.value.length < 3)
  {
    alert("El campo \"Nombre\" debe tener al menos 3 caracteres.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Name.value.length > 80)
  {
    alert("El campo \"Nombre\" admite un máximo de 80 caracteres.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Por favor escriba un valor para el campo \"Dirección de Correo Electrónico\".");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length < 5)
  {
    alert("El campo \"Dirección de Correo Electrónico\" debe tener al menos 5 caracteres.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length > 120)
  {
    alert("El campo \"Dirección de Correo Electrónico\" admite un máximo de 120 caracteres.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Message.value.length < 5)
  {
    alert("Por favor escriba su mensaje de texto en el campo \"Su mensaje\".");
    theForm.Message.focus();
    return (false);
  }

  return (true);
}

