function ajaxP(valor,tipo,title) {

	  document.getElementById('Box2').innetHTML = ''; //esvazia a div
	  
	  try { ajax = new ActiveXObject("Microsoft.XMLHTTP"); } 
      catch(e)   { try { ajax = new ActiveXObject("Msxml2.XMLHTTP"); }
	  catch(ex)  { try { ajax = new XMLHttpRequest(); }
	  catch(exc) { alert("Esse browser não tem recursos para uso do Ajax"); ajax = null; } } }
	  
	  if(ajax)   {
		  
		ajax.open("GET", "ajax.php?n=" + valor+"&tipo="+tipo, true);
		ajax.onreadystatechange = function() {
		if(ajax.readyState == 4){ 
		if(ajax.status == 200){
			
		var texto = ajax.responseText;
		texto = texto.replace(/\+/g," ");
		texto = unescape(texto);
		
		document.getElementById('boxTitle').innerHTML = title;
		
		var conteudo = document.getElementById('Box2');
		var button = texto;
		conteudo.innerHTML = button;
		//alert(ajax.responseText);
		}
		else { alert(ajax.statusText); }
		}
		}
		ajax.send(null);
	    
	  }
}