
function doBusca(tuf)
{
	
    //limpa o select
    var c=document.getElementById("prof_local")
    while(c.options.length>0)c.options[0]=null
    c.options[0]=new Option(" -- Aguarde ... -- "," -- Aguarde ... -- ")
	//alert(tuf);
    //Monta a url com a uf
	var codigo = tuf.split("-");

    xmlhttp.open("GET", "busca_banco.php?cod="+codigo[1],true);

    xmlhttp.onreadystatechange=function() 
	{
        if (xmlhttp.readyState==4)
		{
            //limpa o select
            var c=document.getElementById("prof_local")
            while(c.options.length>0)c.options[0]=null
            //Transforma a lista de cidades JSON em Javascript
            var aCidades=eval((xmlhttp.responseText))
            //popula o select com a lista de cidades obtida
            for(var i=0;i<aCidades.length;i++)
			{
                aCidades[i]=unescape(aCidades[i])
				var nome = aCidades[i].split("*");
				//alert(nome[0]);
				//alert(nome[1]);
                c.options[c.options.length]=new Option(nome[0],nome[1])
            }
			//alert(tuf)
		/*	if(tuf == codigo[1])
			{
				document.cadastro.prof_local.disabled = 'true';
			}
		*/	
				
			/*if(DESC.value != "")
			{
				document.busca.local.style.display = 'block';
				document.busca.submit.style.display = 'block';
				document.getElementById("lotacao").style.display = 'block';
			}
			else
			{
				document.busca.local.style.display = 'none';
				document.busca.submit.style.display = 'none';
				document.getElementById("lotacao").style.display = 'none';
			}
			document.getElementById("selecionar").style.display = 'none';
			//esconde o 'selecionar' */
        }
    }

    xmlhttp.send(null)
}