In your script you could do something like:
In your script open an html web resource and pass values to it:
var dialogResults = showModalDialog(Xrm.Page.context.getClientUrl() + "/webresources/yourfile.html", {
data: "your data to pass to dialog"
},
"dialogHeight: 600px; dialogWidth: 800px; center: Yes; resizable: Yes; status: No;");
In the html page, return values back tot he calling script:
window.returnValue = ["something"];
Read the returned values in the calling script:
var returnValue = dialogResults[0];
Jason Lattimer
My Blog - Follow me on Twitter - LinkedIn