Much better than using the alert() statement all over the place. Use this debug() function instead.