父页面:
var obj = new Object();
obj.instockdetailid=ids;
obj.num=invnum;
var result = showModalDialog(strUrl + "inBoundAction&method=ricoExecReadSAP&instockdetailid=" + ids, obj, "dialogWidth=800px;dialogHeight=300px;");
result为 showModalDialog的返回值
showModalDialog页面(子页面)
var obj = window.dialogArguments;
var instockdetailid = obj.instockdetailid;
var num = obj.num;