How do you beat the Battle fronter in Pokemon platinum?

Practice, and hope for luck. The Battle Frontier is VERY hard to complete.