I haven't seen you do this var x = function(){} thing before... Why not just a regular function showError() here?  (Its not just you: I ask everyone that...)