Attaches event to dhtmlxForm instance and returns event for detach() ability.
var evId = dhxForm.attachEvent("onChange", function(){ // code here });