//Ajax

carregandoHTML = '<div id="Carregando">&nbsp;<span><center>Carregando...<br><br><img src="imagens/carregando.gif"></center></span></div>';

try{
	xmlhttp = new XMLHttpRequest();
}catch(ee){
	try{
		 xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 }catch(e){
		 try{
			 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		 }catch(E){
			 xmlhttp = false;
		 }
	 }
 }

var ajax = {

	 abreLink : function(div,url){

		 local = document.getElementById(div);

		 xmlhttp.open('GET', url, true);
		 xmlhttp.onreadystatechange = function(){
			 if(xmlhttp.readyState == 1) {
				 local.innerHTML = carregandoHTML;
			 }
			 if(xmlhttp.readyState == 4) {
				 if(xmlhttp.status == 200){
					 local.innerHTML = xmlhttp.responseText;
				 }
			 }
		 }
		 xmlhttp.send(null);
	 }

}
function mes(){
mdata      = new Date()
mhora      = mdata.getHours()
mdia       = mdata.getDate()
mdiasemana = mdata.getDay()
mmes       = mdata.getMonth()
mano       = mdata.getYear()
//document.write('');

if(mmes == 0)
   document.write('JAN');
else if(mmes == 1)
   document.write('FEV');
else if(mmes == 2)
   document.write('MAR');
else if(mmes == 3)
   document.write('ABR');
else if(mmes == 4)
   document.write('MAI');
else if(mmes == 5)
   document.write('JUN');
else if(mmes == 6)
   document.write('JUL');
else if(mmes == 7)
   document.write('AGO');
else if(mmes == 8)
   document.write('SET');
else if(mmes == 9)
   document.write('OUT');
else if(mmes == 10)
   document.write('NOV');
else if(mmes == 11)
   document.write('DEZ');
}
function dia(){
mdata      = new Date()
mhora      = mdata.getHours()
mdia       = mdata.getDate()
mdiasemana = mdata.getDay()
mmes       = mdata.getMonth()
mano       = mdata.getYear()
//document.write('');

document.write(mdia);
}