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.