Problem with code

I am having problem with code , I have it too much ,
That I got confused.

I am writing it into CS3 editor .

Any advice how to easer read the code , would be nice .

Thanks .