现在实现这个功能父模态窗口打开子模态窗口 子模态窗口执行操作后关闭 父模态窗口刷新麻烦大家给点提示我是这样写的
var strD_ConsignNo,strtxt_ysyf,strmyid;
function OpenQuery()
{
    var bRecdata=false,strLocation;
    bRecdata=window.showModalDialog("../PO_Select/Cddaochu.aspx?&id="+strmyid+"&buff="+encodeURIComponent(Math.random()),window,"","dialogWidth:500px; dialogHeight:100px;center:1;scroll:0;help:0;status:0");
    if(bRecdata)
    {
        try
        {
            strLocation = "?stris=1&strdr=dr&strD_ConsignNo=" + encodeURIComponent(strD_ConsignNo) + 
            "&strtxt_ysyf=" + encodeURIComponent(strtxt_ysyf) +
            "&id=" + encodeURIComponent(strmyid) +
            "&option=" + encodeURIComponent(Trim(getQueryString("option")));
            //alert(strLocation);
            window.location.href = strLocation;
        }
        catch(err)
        {
            strErr="函数OpenQuery()存在一个错误。\n\n";
            strErr+="错误描述: " + err.description + "\n\n";
            strErr+="点击OK继续。\n\n";
            alert(strErr);
        }
    }
}打开 Cddaochu.aspx 执行操作function check()
{
    if(Form1.D_ConsignNo.value=="")
    {
        alert("请输入运编号");
        Form1.D_ConsignNo.focus();
    return false;
    }
    var selWin = window.dialogArguments;
    try
    {
//        selWin.strD_ConsignNo=document.all("D_ConsignNo").value;//运编号
//        selWin.strtxt_ysyf=document.all("txt_ysyf").value;//应收应付
//        selWin.strmyid=Form1.mydyid.value;//当前运编号
//        window.returnValue=true;
        self.close(); 
        window.close();
        dialogArguments.xxx();
    }
    catch(err)
    {
        strErr="函数check()存在一个错误。\n\n";
        strErr+="错误描述: " + err.description + "\n\n";
        strErr+="点击OK继续。\n\n";
        alert(strErr);
    }
return true;
}操作完后关闭自己,刷新父模态窗口但是就没办法让父模态窗口刷新请大家赐教,谢谢