ABATV=function(){};ABATV.base="ajaxRequests/";ABATV.login=function(A){var B={action:ABATV.base+"login.php",form:A,parameters:{action:"login"},onComplete:function(C){if(C=="0"){alert("Usuário ou senha incorreto")}else{window.location.href=""}}};new Feature(B)};ABATV.logout=function(){var A={action:ABATV.base+"login.php",parameters:{action:"logout"},onComplete:function(B){window.location.href=""}};new Feature(A)};ABATV.insertComment=function(A){var B={action:ABATV.base+"insertComment.php",form:A,onComplete:function(C){alert(C);window.location.reload()}};new Feature(B)};ABATV.removeComment=function(A){var B={action:ABATV.base+"removeComment.php",parameters:{id:A},onComplete:function(C){alert(C);window.location.reload()}};if(confirm("Tem certeza que deseja remover este comentário?")){new Feature(B)}};
