Fixed onclick event for form for IE8

Updated event-handling to be also compatible with IE8