Probably really inefficient code, but before now I've done
Code:
if (['ap','cgov','chs'].indexOf(oclient) > -1) {
Oh, and your original statement doesn't work because || basically starts a new if statement. So you were saying "if oclient equals 'ap' or if 'cgov' or if 'chs'", and because Javascript is annoying nice it tries to convert it into something that'll work - a string is "non-false", so it'll return true.
EDITED: 22 Jan 2015 22:08 by ALLY