// JavaScript Document

 <!--
		function LoadBairroCidade(CmbLocalidade) { 
		
			
			var SelectBairroCidade = document.getElementById("CmbBairroCidade");
			
			
			if( CmbLocalidade != "" ) {
			
					
					limpaSelect(SelectBairroCidade);
					
					
					/* begin carregando... */
						optCarregando = document.createElement("option");optCarregando.value = "";optCarregando.text  = " Carregando... ";
						var selCarregando = SelectBairroCidade.options[SelectBairroCidade.firsh];
						try {SelectBairroCidade.add(optCarregando,selCarregando); } catch(ex) {SelectBairroCidade.add(optCarregando, SelectBairroCidade.selectedIndex);}
					/* end carregando... */
										
					
					/*
					URL = "code/buscaBairroCidade.ajax.asp?command=GetBairroCidadeXML&parameter=" + CmbLocalidade;
					window.open(URL, null,"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
					*/
					
					
					/*Regiões da Cidade Selecionada*/
					
					
						jQuery.post("code/buscaBairroCidade.ajax.asp", {command: "GetBairroCidadeXML", parameter: CmbLocalidade},
							
							function(xml){
								
									limpaSelect(SelectBairroCidade);
									
									var combobox = SelectBairroCidade;
									
											jQuery(xml).find('option').each(function(){
												
												selected 	= jQuery(this).attr('selected');
												value 		= jQuery(this).find('value').text();
												text 		= jQuery(this).find('text').text();
												opt 		= document.createElement("option"); opt.value = value; opt.text  = text;
												
												if (selected == 'true') { opt.selected = true; }
												
												var sel = combobox.options[combobox.firsh];
												try {
													combobox.add(opt,sel);
												} catch(ex) {
													combobox.add(opt, combobox.selectedIndex); // para o IE
												}
											
											});
								
							}, "xml");	//end ajax jquery
				
			
			}	//end if
			
			
		} //end function
		
 -->
 