try{
    xmlhttp = new XMLHttpRequest();
}catch(ee){
    try{
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
        try{
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(E){
            xmlhttp = false;
        }
    }
};

atual=0

function comentar_artigos(){ 
	var id_artigo = document.getElementById("id_artigo").value;
	var comentario = document.getElementById("comentario").value;
	var nome       = document.getElementById("nome").value;
	var email      = document.getElementById("email").value;

	var post = 'id_artigo='+id_artigo+'&comentario='+escape(comentario)+'&nome='+nome+'&email='+email;

	xmlhttp.open("POST","artigos_comentarios.php?banco=adicionar",true);
	xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
	xmlhttp.send(post);
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4){
			alert("Comentário enviado com sucesso!")
			conteudo('artigos_comentarios.php?id='+id_artigo);
        }
    }
};