Event occurs after data was saved in DB
Parameters:
myform.attachEvent("onAfterSave", function (id, xml){ //any custom logic here });