	var HttpReq = null;
    var dest_combo = null;

	function ajaxComboBox2(url, comboBox){
		dest_combo = comboBox;
		var sigla = document.getElementById('val_max');
		url = url + '?tipo=' + sigla;
		if (document.getElementById) { //Verifica se o Browser suporta DHTML.
			if (window.XMLHttpRequest) {
				HttpReq = new XMLHttpRequest();
				HttpReq.onreadystatechange = XMLHttpRequestChange2;
				HttpReq.open("GET", url, true);
				HttpReq.send(null);
			} else if (window.ActiveXObject) {
				HttpReq = new ActiveXObject("Microsoft.XMLHTTP");
				if (HttpReq) {
					HttpReq.onreadystatechange = XMLHttpRequestChange2;
					HttpReq.open("GET", url, true);
					HttpReq.send();
				}
			}
		}
	 }

	function XMLHttpRequestChange2() {
		if (HttpReq.readyState == 4 && HttpReq.status == 200){
			var result = HttpReq.responseXML;
			var val_max = result.getElementsByTagName("nome");
			document.getElementById('val_max').innerHTML = "";
			for (var i = 0; i < val_max.length; i++) {
				new_opcao = create_opcao2(val_max[i]);
				document.getElementById('val_max').appendChild(new_opcao);
			}
		}
	}

	function create_opcao2(val_max) { 
		var new_opcao = document.createElement("option"); 
		var texto = document.createTextNode(val_max.childNodes[0].data); 
		new_opcao.setAttribute("value",val_max.getAttribute("id")); 
		new_opcao.appendChild(texto); //Adiciona o texto a OPTION.
		return new_opcao; // Retorna a nova OPTION.
	}