Xanax is prescribed for the short-term relief of anxiety. Commonly used for panic attacks, social phobia and to treat tension associated with an acute stress disorder such as the flu or period cramps, Xanax may also be used to treat generalized anxiety di...