Are you sure the ID of the object is "showError"? Because if it's a server side control and you are using UserControls or MasterPages, then the ID of the object will get prepended by IDs of it's containers
To confirm this is or isn't happening, simply do a "View Source" of the HTML and find that control and check the generated "id" property