You need to find out if its a piss test or a hair test. If its a piss test, you can buy detox stuff at any "head" shop you live near. If its a hair test...shave your head.

Also talk to your potential coworkers and asked if they've been drugtested. Drug testing is fairly expensive, and most companies reserve the right to drug test you in the event of an accident in the workplace.