Take a bowl of freshwater, and put some dechlorinator in it. Do not add salt. Then, put the fish in there for 5 minutes. The shock of the freshwater will most likel, depending on what the fish has, will kill the bacteria infecting the fish. Try to make sure the water isn't too cold, or warm though. Give it a whirl and see what happens.