Treatment for each STD is individualized, and your doctor can prescribe the appropriate treatment.
Once diagnosed you should repeat testing any time you encounter a new sexual partner, or if your risk factors mentioned above change. If you are diagnosed with an STD, your partners should be tested and treated as well.
To qualify for refills, the prescription in question must have been last filled by your pharmacy within the last three months. 30 day refills only.