This is an inbuilt function function provided by PPWIZARD.
This function can be called to simply determine whether debug is on or off or to determine the level of user debug currently active (see DebugLevel).
This function would be useful if you wished to conditionally call Debug() or conditionally generate html comments in your output etc.
The function takes either zero or one parameters as follows:
That is you can check on each bit seperately if you wish. If you simply wish to tell if any user debug state is on then pass 3, if you wish to check the state of one of your flags then pass its value, a return code of 0 indicates that that level of debug is not on.