function obtemPreco(cod){
	alert("heheh")
	if(cod){
		var url="exemplo1.php?cod="+cod;
		requisicaoHTTP("GET", url, true);
	}
}

function trataDados(){
	var preco = ajax.responseText; // obtém a resposta como string
	if(preco == "0.00"){
		var info = "Preço não encontrado";
		document.getElementById("precoProduto").style.backgroundColor="yellow";
		document.getElementById("precoProduto").innerHTML=info;
	}
	else{
		var info = "O preço é R$"+preco	;
		document.getElementById("precoProduto").style.backgroundColor="yellow";
		document.getElementById("precoProduto").innerHTML=info;
	}
}

