function ajax(id,div,pagina){
	
		var conexao=conecta();
		conexao.open('POST',pagina,true); 
		var variaveis="id="+id;
		conexao.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		conexao.send(variaveis);	
		conexao.onreadystatechange=
			function(){
				if(conexao.readyState<4){
					var conteudo=document.getElementById(div);
					conteudo.innerHTML="<br><h4>...Carregando</h4>";	
				}else if(conexao.readyState==4){
					if(conexao.status==200){
							var conteudo=document.getElementById(div);
							conteudo.innerHTML=conexao.responseText;
					}
				}
			}//func		
	}
	
	function conecta(){
		var ajax;
		try{
			ajax= new XMLHttpRequest();
		}catch(ee){
			try{
				ajax=new ActiveXObject("Msxml2.XMLHTTP");
			}catch(e){
				try{
					ajax=new ActioveXObject("Microsoft.XMLHTTP");
				}catch(E){
					ajax=false;
				}
			}
		}
		return ajax;
	}
	function teste(){
		alert("teste");
		}
