
	function campo()
	{
		text = document.frm_search.search.value;	
		cat = document.frm_search.search_cat.value;
		contenido = "";
		
		if (text.length < 3)
		{
			contenido = "- La busqueda debe tener al menos 3 caracteres";
		}
		else
		{
			if (cat == "")
			{
				contenido = "- Seleccione una categoria";			
			}
		}
		
		if (contenido == "")
		{
			document.forms["frm_search"].submit()
		}
		else
		{
			alert(contenido);
		}
		
	}
	
	function vaciar()
	{
		document.frm_search.search.value = "";			
	}
	
	function vaciar1()
	{
		document.registro.msisdn.value = "";			
	}
	

	function names(op)
		{
			text = document.frm_names.search.value;	
			contenido = "";
		
		if(op == 1)	
		{
			if (text.length < 3)
			{
				contenido = "- El nombre debe tener al menos 3 caracteres";
			}
		}
		
		if(op == 2)	
		{
			document.frm_names.search.value = "%%%";			
		}
		
			
			if (contenido == "")
			{
				
				document.forms["frm_names"].submit()
			}
			else
			{
				alert(contenido);
			}
			
		}
	



