Diashow code not working, full with errors

That's not good.

Please remember to use code tags when posting code