help for newbie with existing code for brushless motors

thanks for the info people, coding badly, you were right, all i did was change what you said and it was away...after much reading i can now write codes like the above...im surprised how quick im picking it up!

mike