Hi
As I know, there is no easyer way to use global Variables. this is, because one of the rules of structured programming disallow the usage of global variables.
Every function has a input and a output. those variables are passed by value if you don't change them and by reference if you change them. this helps other people to read your program.
If you use global variables, they have to be declared at the start of a function to show all the others (not that you are a bad boy) that those variables could be changed inside this function.