a global variable is outside a function or action where all other functions and actions can see or modify it....
////global////
var test;
function junk()
{

}

////local////
function junk()
{
var test;
}

If it is local, only that function/action can see or modify the value.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/