set Encounter.alternateID with new popup JQuery dialog box