Some helper stuff mainly for dealing with IDispatch and Webbrowser control