/*
0 Uninitialized
    The initial value. 
1 Open
    The open() method has been successfully called. 
2 Sent
    The user agent successfully acknowledged the request. 
3 Receiving
    Immediately before receiving the message body (if any). All HTTP headers have been received. 
4 Loaded
    The data transfer has been completed.
*/

var http;
var lastID;


function getHTTPObject() {
  http = null;
  if (window.XMLHttpRequest)
    xmlhttp = new XMLHttpRequest();
  else if (window.ActiveXObject)
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  return xmlhttp;
}

/*function handler(){
  if(http.readyState == 1){
    document.getElementById('mototurbo' + lastID).innerHTML = '<br /><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="20" height="20"><param name="movie" value="swfs/setas.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed src="swfs/setas.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="20" height="20"></embed></object><b>Aguarde, carregando...</b>';
  } else if(http.readyState == 4){
    if(http.status == 200){
      document.getElementById('mototurbo' + lastID).innerHTML = http.responseText;
      ajustarAltura();
    } else
      alert("Houve o seguinte problema ao obter os dados do servidor:\n" + http.statusText);
  }
}*/

function carrega(obj){
  var mObj2 = document.getElementById(obj);
  if(mObj2.style.display == ''){
    mObj2.style.display = 'none';
  } else {
    mObj2.style.display = document.getElementById('TabelaPrincipal').style.display;
  }
}