Court in favour of company that fired man who used toilet up to six hours a day