function abuse(object_type, object_id, url, div_object)
{
    $.post("/"+object_type+"/abuse",
    { object_id: object_id },
    function(data) {
     if (data.substr(0,13) == "LOGINREQUIRED") 
     { 
         alert("Login is required.");
         document.location=data.substr(13,data.length)+url;
     }
     else if (data == "INVALIDINPUT") alert("Invalid Input.");
     else { 
              alert('Your report has been sent.');
              $(div_object).hide();
          }
    }
    );
}
