I can show no alert but I'll put it in the text (temp2), it will not!
function mostrarValor(){
var escalaEntrada = getRadioValor('escalaEntrada');
var escalaSaida = getRadioValor('escalaSaida');
var valor = parseInt(document.getElementById("temp1").value);
if (escalaEntrada === "celsius" && escalaSaida === "kelvin") {
resul = (valor + 273);
window.alert(resul);
/*var saida = document.getElementById("temp2");
saida.innerHTML = resultado;*/
}
}