Checks user security level for the current window and returns true or false. To use, declare as a function.