Alarm systems

I have 2000 maxima. It sat for awhile and the battery went dead. I unhooked the cables cleaned the posts and charged the battery,but every time I put cables on the alarm goes off.What do I do to stop this?