You should use the window ID, not the variable name:
code:
function OnWndimageEdit.BackgroundEvent_CtrlClicked
function OnWndimageEdit.BackgroundEvent_EditTextChanged
However I doubt this will work, as JScript uses the dot for objects and properties (e.g. Debug.Trace). Therefore I highly recommend you to remove the dot in the name to assure the correct working of your script.