How to Differentiate Between Inquiry and Maintenance Panel in Script

SOLVED

I'm writing a script to expose or hide selected controls based on user.  I would like the script to be operational ONLY in Maintenance mode, not Inquiry.  In the script, how do I identify whether the panel is in Maintenance or Inquiry mode?