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