are both benzodiazepines and both will cause a positive test on any drug screen that tests for benzodiazepines. If that will be a problem in getting a new job, then you can see a doctor in the city where you are now and get yourself assessed again. If it is indeed panic attacks that you are suffering from, then taking an SSRI
etc) would be a better option as it will give you very good control over your symptoms without any risk of testing positive on drug screens. You are also likely to have difficulty in getting prescriptions for temazepam and diazepam for long, while you not face any such problem with an SSRI.
Hope this helps you. Best wishes.