Ajax battle script by pokemontoxic

Ok so i own a pokemon online game were users can catch pokemon and battle gyms etc I have a battle script which i have coded up all ready but is now getting old and i do not have the time to code a new...