come clean with your doctor may be a good idea...
if youre detoxing and can't take time off of work the doctor may have a solution. it may be something else besides xanax.
if you keep doing what you're doing then you may end up losing your job anyways, so you could bring it up with your employer. a future option. the employer may embrace your recovery and support you taking time off to detox in a rehab or hospital setting.
do you really want advise?
do you really want to quit?
have you had enough pain?
rehtorical questions for you