var xmlHttp4


function tipo(tipo)
{ 

xmlHttp4=GetXmlHttpObject()
if (xmlHttp4==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="tipos.php"
url=url+"?tipo="+tipo
url=url+"&sid="+Math.random()
xmlHttp4.onreadystatechange=stateChanged5 
xmlHttp4.open("GET",url,true)
xmlHttp4.send(null)
}

function stateChanged5() 
{ 
if (xmlHttp4.readyState==4 || xmlHttp4.readyState=="complete")
 { 
 document.getElementById("tipos").innerHTML=xmlHttp4.responseText 
 } 
}

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