Why does automatic car stop running when battery is disconnected?
Why are you disconnecting the battery with the engine running? Never mind, you've probably already figured this out by now, but there's a good chance your alternator is fried and your spark plugs are running on battery power. Get your alternator checked out. New ones aren't that expensive (approx. $50) and can be changed by anyone handy with tools.