#LOCAL("GetDebug", "0")
#IF(#DEFINED(#INPUT.Debug))
#SET("GetDebug", #INPUT.Debug)
#ELSIF(#DEFINED(#System.JSDebugLevel))
#SET("GetDebug", #System.JSDebugLevel)
#ENDIF
#ENDLOCAL
#LOCAL("RequestProtocolAndServer", "")#IF(#INPUT.SERVER_PORT_SECURE)#SET("RequestProtocolAndServer", "https://".#INPUT.HTTP_HOST)#ENDIF
#IF(#System.JSDebugLevel == 0 AND NOT(#DEFINED(#INPUT.Debug)) OR (#DEFINED(#INPUT.Debug) AND #INPUT.Debug == 0))
#ELSIF(#System.JSDebugLevel == 1 AND NOT(#DEFINED(#INPUT.Debug)) OR (#DEFINED(#INPUT.Debug) AND #INPUT.Debug == 1))
#ELSE
#ENDIF
#ENDLOCAL