function Ajaxescreve(texto, element_id) {
	var element = document.getElementById(element_id);  
	element.innerHTML = texto;   
}
function Ajaxcarrega(fragment_url, element_id) {
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
    	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	var element = document.getElementById(element_id);   
	element.innerHTML = '<img src="imagens/indicator-small.gif" width="16" height="16">';   
	xmlhttp.open("GET", fragment_url);   
	xmlhttp.onreadystatechange = function() {   
    	if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {   
        	element.innerHTML = xmlhttp.responseText;   
        }   
    }   
    xmlhttp.send(null);   
}
function popajax(endereco, titulo, largura, altura, id) {
	ajaxwin = dhtmlwindow.open(id, "iframe", endereco, titulo, "width="+largura+"px,height="+altura+"px,resize=0,scrolling=0,center=1", "recal")
	//ajaxwin = dhtmlwindow.open("ajaxbox", "ajax", endereco, titulo, "width="+largura+"px,height="+altura+"px,left=300px,top=100px,resize=0,scrolling=0")
	ajaxwin.moveTo('middle', 'middle');
}
function rfrsh () {
	window.location.reload(true)	
}
function disableRightClick(e)
{
  if(!document.rightClickDisabled)
  {
    if(document.layers) 
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      return false;
    }
  }
  else
  {
    return false;
  }
}

var frase = "DesbravaMania - Uma Aventura Digital";

function Pstatus() {
     window.status = frase;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////