Required library edition: Required library file: dhtmlxwindows.js
returns true if the event exists
var isEv = dhxWins.checkEvent("onClose"); // returns true/false