var estado = 0;

function registrarme(vista){
	this.informacion.otro_texto.style.visibility = vista;
}

//registrarme('hidden');

function validad_campos(valor){
	if(valor.checked){
		registrarme('visible');
	}else{
		registrarme('hidden');
	}
}

function Validar(datos){
  if (datos.persona.value == "")
  {
    alert("Debe ingresar el nombre de la persona a contactar");
    datos.persona.focus();
    return (false);
  }

  if (datos.email.value == "")
  {
    alert("Ingrese el email del la persona a contactar");
    datos.email.focus();
    return (false);
  }

  if (datos.telefono.value == "")
  {
    alert("Ingrese el número de teléfono para poder comunicarnos");
    datos.telefono.focus();
    return (false);
  }

  if (datos.producto.value == "")
  {
    alert("Ingrese el nombre del producto a filtrar");
    datos.producto.focus();
    return (false);
  }

  if (datos.ph.value == "")
  {
    alert("Ingrese el PH del producto a filtrar");
    datos.ph.focus();
    return (false);
  }

  if (datos.temperatura.value == "")
  {
    alert("Ingrese la temperatura máxima de trabajo");
    datos.temperatura.focus();
    return (false);
  }
 return true;
}

