var xmlHttp25


function showvalor(passageiros,origem,destino,idavolta,passageiros_shuttle)
{ 

xmlHttp25=GetXmlHttpObject()
if (xmlHttp25==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="calcula_step2_2.php"
url=url+"?passageiros="+passageiros
url=url+"&origem="+origem
url=url+"&destino="+destino
url=url+"&idavolta="+idavolta
url=url+"&passageiros_shuttle="+passageiros_shuttle
url=url+"&sid="+Math.random()
xmlHttp25.onreadystatechange=stateChanged12 
xmlHttp25.open("GET",url,true)
xmlHttp25.send(null)
}

function stateChanged12() 
{ 
if (xmlHttp25.readyState==4 || xmlHttp25.readyState=="complete")
 { 
 document.getElementById("valor").innerHTML=xmlHttp25.responseText 
 document.getElementById("valor_obtido").innerHTML=xmlHttp25.responseText 
 } 
}

function GetXmlHttpObject()
{
var xmlHttp25=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp25=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp25=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp25=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp25;
}