//[Mootools]
function BuscarCidades(estado)
{
	if(estado != "selecione")
	{
	 	request = new Request.HTML
		({
			method : 'post',
			url: '_buscar_cidades.ajax.php',
			data:{'estado':estado},
			update:$('td_cidade')
		}).send();
	}
}
//[Mootools]
function BuscarCidadesHome(estado)
{
	if(estado != "selecione")
	{
	 	request = new Request.HTML
		({
			method : 'post',
			url: '_buscar_cidades.ajax.php',
			data:{'estado':estado},
			update:$('label_cidade')
		}).send();
	}
}
function TransfereCidade(valor)
{
	$('hidden_cidade_id').value = valor;
}
function Remover(url,msg)
{
	if(confirm(msg))
	{
		window.location.href = url;
	}
}
function Idioma(box,id,campo)
{
	if($(box).checked == true)
	{
		request = new Request.HTML
		({
			method : 'post',
			url: '_atualiza_promo.ajax.php',
			data:{'id':id,'campo':campo,'valor':'t'},
			update: $('teste')
		}).send();
		
	}else
		{
			request = new Request.HTML
			({
				method : 'post',
				url: '_atualiza_promo.ajax.php',
				data:{'id':id,'campo':campo,'valor':'f'},
				update: $('teste')
			}).send();
		}
}
