asp.net 中使用js弹出窗口 关闭窗口后刷新父窗口有问题  在项目中有两个类似子窗口(用户窗口,药品窗口都在同一个页面中用参数进行判断的),在其中一个子页面关闭后又弹出同类型的另一个子窗口  再关闭才能进行父窗体的刷新   怪怪怪父窗体中弹框方法
 function OpenOvertimeDlog(frmWin,width,height) 
        {   
            if(frmWin!="")//用户弹窗
            {   
                var url = frmWin+"&type="+Math.ceil(Math.random());
                var returnValue= window.showModalDialog(url,parent,'dialogWidth='+width +'px;dialogHeight='+height+'px;help:no;status:no;scrollbar:auto') ;
                if(returnValue)
                {
                     var control= document.getElementById("txtbh");
                     control.value =returnValue;//给编号绑定
                } 
            }
             else{  //药品诊疗弹窗
                var radiobuttonyp = document.getElementById("rdbyp");
                var radiobuttonyl = document.getElementById("rdbyl"); 
                var txtsfbm = document.getElementById("bianhao");
                if(event.keyCode==13) 
                {
                        if(radiobuttonyp.checked)
                        {
                            src="ypylinfo.aspx?flag=yp&type="+txtsfbm.value+"";
                        }else if(radiobuttonyl.checked)
                        {
                            src="ypylinfo.aspx?flag=yl&type="+txtsfbm.value+"";
                        }
                        var returnValue= window.showModalDialog(src,parent,'dialogWidth=700px;dialogHeight=400px;help:no;status:no;scrollbar:auto') ;
                        if(returnValue)
                        {
                            txtsfbm.value = returnValue;
                        }              
                } 
            }
           
        } 子页面中用这个方法关闭子窗体
  Response.Write(" <script>window.returnValue=" + userylzh + ";self.close()</script>");