function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("return false")


function bs(param)
{
if (param == 1) { document.getElementById('cat').style.display="block"; document.getElementById('b_1').style.display="none"; document.getElementById('b_0').style.display="block"; }
else { document.getElementById('cat').style.display="none"; document.getElementById('b_1').style.display="block"; document.getElementById('b_0').style.display="none"; }
}

function buscarAmigo(opc) {
	var b_opcion = 0; var b_param = "";
	for(i=0;i<opc.length;i++) if(opc[i].checked) b_opcion = opc[i].value;
	if (document.frmBuscarAmigo.textobusqueda.value != "")
	{
		if (b_opcion == 1)
		{
		 b_param = "campo=" + escape(document.frmBuscarAmigo.categoria.value);
		 b_param += "&texto=" + escape(document.frmBuscarAmigo.textobusqueda.value);
		 location.href="/cobayas/amigos/buscar.html?" + b_param;
		}
		else
		{
		 b_param = "domains=www.chiquitoweb.com&q=" + escape(document.frmBuscarAmigo.textobusqueda.value) + "&sitesearch=www.chiquitoweb.com&sa=Buscar%21&client=pub-5739998961589642&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&flav=0000&sig=bubHqNQ8aqGlZ2Y-&cof=GALT%3A%23663300%3BGL%3A1%3BDIV%3A%23ffffff%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3Affffff%3BALC%3A3367cd%3BLC%3A3367cd%3BT%3A000000%3BGFNT%3Affcc00%3BGIMP%3Affcc00%3BFORID%3A11&hl=es" ;
		 location.href="/cobayas/buscador/index.html?" + b_param;
		}
	}
	else
	{
	alert("Introduce el texto de busqueda!");
	}
}
