function tienecaracter(Cadena, Caracter)
{ 
    var resp;
    if (cadena.indexOf(caracter)!=-1)
       resp=true;
    else
       resp=false;
    return resp;
}
function navegar(id)
{
    destino=id.toString()
	location.href="verprod.php?prdid="+ destino;
}
function verfamilia(famid)
{
	if(famid>0)	
		direc="index.php?p1=0&p2="+famid;
	else	
		direc="index.php";
	window.location.href=direc;
}
function buscarnombre()
{
	texto=document.frmbuscar.txtbuscar.value;
	if(texto.length>0)
	  {
 	     direc="index.php?p1=" + texto +"&p2=";
		 window.location.href=direc;
	   }
}
function cerrarme()
{
	window.close();
}
function botonadentro(boton)
{
	var navegador = navigator.appName;
	if (navegador == "Microsoft Internet Explorer") 
		{
			boton.style.cursor='hand';			
	  	    boton.className='botonazo2';
		}
	else 
		{
			boton.style.cursor = 'pointer';
			boton.style.cursor='hand';
	  	    boton.className='botonazo2';
		}	
}
function botonafuera(boton)
{
	var navegador = navigator.appName;
	if (navegador == "Microsoft Internet Explorer") 
		{
	  	    boton.className='botonazo';
		}
	else 
		{
	  	    boton.className='botonazo';
		}	
}
function EstaVacio(Dato)
{ 
    return ((Dato==null) || (Dato.length==0));
}
function verproducto(id)
{
	direc="./verprod.php?prdid=";
	prdid= id.toString();
	destino=direc+prdid;
    window.open(destino,'','menubar=no, scrollbars=yes, Resizable=no, height=400, width=500');	
}

function veraviso(id)
{
	direc="./veraviso.php?aviid=";
	aviid= id.toString();
	destino=direc+aviid;
    window.open(destino,'','menubar=no, scrollbars=yes, Resizable=no, height=400, width=500');	
}