function ListaCidades()
{
    var Cidades_Item = new Array('Cidades','ITANHAEM','MONGAGUA','MONGAGUÁ','MOPNGAGUA','PRAIA GRANDE','TE');
    for(Item=0;Item<Cidades_Item.length;Item++){
        document.PesquisaImovel.Cidades.options[Item]= new Option(Cidades_Item[Item],[Item]);
    }
}
 
function MudaCidade()
{
    for (var i=document.PesquisaImovel.Bairros.options.length-1; i>=0; i--){
        document.PesquisaImovel.Bairros.options[i] = null;
    }
    TI = document.PesquisaImovel.Cidades.options[document.PesquisaImovel.Cidades.selectedIndex].value;
    if (TI == 1){
        var Valor_Item = new Array('BELAS ARTES','CALIFORNIA','CAMPOS ELISEOS','CAMPOS ELISIOS','CAMPOS ELIZIOS','JD FAZENDINHA','JD JEQUITIBA','LOTY','MARROCOS','SUARAO','VILA JACY','VILA LOTY');
        document.PesquisaImovel.Bairros.options[0]=new Option('Bairros','0');
        for(BairroVlr=0;BairroVlr<Valor_Item.length;BairroVlr++){
            document.PesquisaImovel.Bairros.options[BairroVlr+1]= new Option(Valor_Item[BairroVlr],[BairroVlr+1]);
        }
     }
 
    if (TI == 2){
        var Valor_Item = new Array('AGENOR DE CAMPOS','BELAS ARTES','CAMPOS ELISEOS','CENTRO','FLORIDA MIRIM','ITAGUAI','ITAOCA','JD MARINA','JD OCIANOPOLIS','JD PRAIA GRANDE','JD. PRAIA GRANDE','JUSSARA','JUSSARA/ ARATI','NOSSA SENHORA DE FATIMA','NOSSASENHORA DE FATIMA','PEDREIRA','PLATAFORMA','SANTA EUGENIA','SOLEMAR','VERA CRUZ','VERA CRUZ/ JD SILVEIRA','VILA ATLANTICA','VILA LOTY','VILA OCEANOPOLIS','VILA SAO PAULO','VILA SÃO PAULO','VILA SEABRA');
        document.PesquisaImovel.Bairros.options[0]=new Option('Bairros','0');
        for(BairroVlr=0;BairroVlr<Valor_Item.length;BairroVlr++){
            document.PesquisaImovel.Bairros.options[BairroVlr+1]= new Option(Valor_Item[BairroVlr],[BairroVlr+1]);
        }
     }
 
    if (TI == 3){
        var Valor_Item = new Array('AGENOR DE CAMPOS','BALNEARIO TRIESSE','CENTRO','FLORIDA MIRIM','ITAGUAI','ITAOCA','JD MARINA','JD PRAIA GRANDE','JUSSARA','PEDREIRA','VERA','VERA CRUZ','VILA ATLANTICA','VILA OCEANOPOLIS','VILA SAO PAULO');
        document.PesquisaImovel.Bairros.options[0]=new Option('Bairros','0');
        for(BairroVlr=0;BairroVlr<Valor_Item.length;BairroVlr++){
            document.PesquisaImovel.Bairros.options[BairroVlr+1]= new Option(Valor_Item[BairroVlr],[BairroVlr+1]);
        }
     }
 
    if (TI == 4){
        var Valor_Item = new Array('VILA ATLANTICA');
        document.PesquisaImovel.Bairros.options[0]=new Option('Bairros','0');
        for(BairroVlr=0;BairroVlr<Valor_Item.length;BairroVlr++){
            document.PesquisaImovel.Bairros.options[BairroVlr+1]= new Option(Valor_Item[BairroVlr],[BairroVlr+1]);
        }
     }
 
    if (TI == 5){
        var Valor_Item = new Array('BALNEARIO FLORIDA','BALNEARIO MARACANA','OCEAN','SOLEMAR','VILA ASSUNCAO','VILA CAICARA','VILA CAIÇARA','VILA GUILHERMINA','VILA MIRIM','VILAMAR/ CAIÇARA');
        document.PesquisaImovel.Bairros.options[0]=new Option('Bairros','0');
        for(BairroVlr=0;BairroVlr<Valor_Item.length;BairroVlr++){
            document.PesquisaImovel.Bairros.options[BairroVlr+1]= new Option(Valor_Item[BairroVlr],[BairroVlr+1]);
        }
     }
 
    if (TI == 6){
        var Valor_Item = new Array('TESTE');
        document.PesquisaImovel.Bairros.options[0]=new Option('Bairros','0');
        for(BairroVlr=0;BairroVlr<Valor_Item.length;BairroVlr++){
            document.PesquisaImovel.Bairros.options[BairroVlr+1]= new Option(Valor_Item[BairroVlr],[BairroVlr+1]);
        }
     }
 
}
