fires after the user has opened the lightbox (edit form)
gantt.attachEvent("onLightbox", function (task_id){ //any custom logic here });