var xmlHttp

function mudaMes(str)
{
if (str.length==0)
  { 
  document.getElementById("PorData").innerHTML="";
  return;
  }
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="calendario.asp";
url=url+"?data="+str;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("PorData").innerHTML=xmlHttp.responseText;
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
ativoIndique = 0
ativoComente = 0
ativoObaMsn     = 0
function exibeIndique() {
	if (ativoComente == 1) {
		document.getElementById('divComente').style.display='none'
		ativoComente = 0
	}
	if (ativoObaMsn == 1) {
		document.getElementById('divObaMsn').style.display='none'
		ativoObaMsn = 0
	}
	if (ativoIndique == 0) {
		document.getElementById('divIndique').style.display='block'
		ativoIndique = 1
	}
	else if (ativoIndique == 1) {
		document.getElementById('divIndique').style.display='none'
		ativoIndique = 0
	}
}
function exibeComente() {
	if (ativoIndique == 1) {
		document.getElementById('divIndique').style.display='none'
		ativoIndique = 0
	}
	if (ativoObaMsn == 1) {
		document.getElementById('divObaMsn').style.display='none'
		ativoObaMsn = 0
	}
	if (ativoComente == 0) {
		document.getElementById('divComente').style.display='block'
		ativoComente = 1
	}
	else if (ativoComente == 1) {
		document.getElementById('divComente').style.display='none'
		ativoComente = 0
	}
}
function exibeObaMsn() {
	if (ativoIndique == 1) {
		document.getElementById('divIndique').style.display='none'
		ativoIndique = 0
	}
	if (ativoComente == 1) {
		document.getElementById('divComente').style.display='none'
		ativoComente = 0
	}
	if (ativoObaMsn == 0) {
		document.getElementById('divObaMsn').style.display='block'
		ativoObaMsn = 1
	}
	else if (ativoObaMsn == 1) {
		document.getElementById('divObaMsn').style.display='none'
		ativoObaMsn = 0
	}
}