Can someone help me compact and clean up this code.

Great. Thanks guy! I'll have a go myself I just thought I would ask as I've just started and I still abit bamboozled!

Thanks!!