弹出页面的JS
var url;//地址
var tipheight;//高度
var tipwidth;//宽度
var tiptop;//Y坐标
var tipleft;//X坐标
url="UserPopdemSelect.aspx?ID="+document.getElementById("txtId").value;
tipheight = 520;
tipwidth = 330;
tiptop =( window.screen.availHeight - tipheight)/2 ;
tipleft =( window.screen.availWidth - tipwidth)/2 ;
window.showModalDialog(url,window,"dialogHeight:"+tipheight+"px; dialogWidth:"+tipwidth+"px ; dialogTop:"+tiptop+"px; dialogLeft: "+tipleft+"px; edge: Raised; center: no; help: no; resizable: no; status: no;");
弹出后的页面调用父窗口的页面
var parentWin=window.dialogArguments;
parentWin.document.getElementById("txtAcceptorsId").value=-1;
window.close();