Changed wshowPost() to combine some if blocks.