statusVars.onLoad = showStatus;
should read:
statusVars.onLoad = showStatus(1);
I'm not sure why the showStatus function accepts the variable success and then checks for it, but while it's there you need something between the brackets I've added, but it can be anything, 1 is just an example.