UTIs

I think I may have a urinary tract infection, but I really don't want to go to a doctor if there is some simple way I can treat it on my own. I've heard cranberry juice can knock these out. Is that true? Can you suggest a regimen to follow?