nit: var showall = 0; <- note the spaces.