Phil,
Please try the following code:
var img=document.createElement("IMG");
var editor=document.getElementById('<%=Editor1.ClientID%>');
var editdoc = editor1.GetDocument();
var newwin_1=showModalDialog("CuteSoft_Client/CuteEditor/Dialogs/InsertGallery.aspx?settinghash=<%=Editor1.Setting.GetHashString()%>", {img:img,editor:editor,editdoc:vars.editdoc}, "dialogWidth:670px;dialogHeight:650px");
Hope it helps.
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx