The adrenal glands are located next to the kidneys and their job is to produce hormones that are responsible for regulating the fight or flight response, and hormones that are responsible for keeping electrolytes, such as potassium and sodium, balanced.