function filtrar_x_subrubro(id)
{
	document.getElementById('filtroxsubrubro').value = id; 
	//document.formClasificado.filtroxsubrubro.value = id;
	document.formClasificado.submit();
}
var aviso = '';
function descontar_caracter(etiqueta)
{
	document.getElementById(etiqueta).innerHTML = 200 - document.publicar.texto.value.length;
	if(document.getElementById(etiqueta).innerHTML >0)
	{
		aviso = document.publicar.texto.value;
	}else{
		document.publicar.texto.value = aviso;
	}
}

function showRecaptcha(element, themeName) {
  Recaptcha.create("6LeiRAcAAAAAAJ2Hw7CH2iYczdsbx3lfl5GQlDT0", element, {
        theme: themeName,
		lang: 'es',
        tabindex: 0,
        callback: Recaptcha.focus_response_field
  });
}

function loadSubRubros()
{
	$('subrubros').update('Cargando subrubros... Por favor espere.');
	new Ajax.Updater('subrubros', 'loadSubRubros.php', {
	  parameters: { idrubro: $F('rubro') }
	});
}
