function refresh_parent() { if (window.opener != null) { var href = window.opener.location.href; window.opener.location.assign(href); } } function openPopup(loc, w, h) { var date = new Date(); var name = "" + date.getTime(); var win = null; tp = Math.ceil((screen.height-h)/2); lf = Math.ceil((screen.width-w)/2); var win=window.open(loc,name,"width="+w+",height="+h+",top="+tp+",left="+lf+',channelmode=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no'); win.focus(); return win; } function openPopupScroll(loc, w, h) { var date = new Date(); var name = "" + date.getTime(); var win = null; tp = Math.ceil((screen.height-h)/2); lf = Math.ceil((screen.width-w)/2); var win=window.open(loc,name,"width="+w+",height="+h+",top="+tp+",left="+lf+',channelmode=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no'); win.focus(); return win; } function openFormCentered(waitpage, form, buttonname, widthh, heightt, params) { transformButtonName(form, buttonname); var date = new Date(); var name = "" + date.getTime(); var win = null; win = openWinCentered(waitpage, name, widthh, heightt, params); form.target = name; form.submit(); form.target = "_self"; } function openWinCentered(loc, winname, widthh, heightt, params) { tp = Math.ceil((screen.height-heightt)/2); lf = Math.ceil((screen.width-widthh)/2); if (params.length > 0) params = "," + params; var win=window.open(loc,winname,"width="+widthh+",height="+heightt+",top="+tp+",left="+lf+params); win.focus(); return win; } function openWin(loc, winname, params) { var win = null; win = window.open(loc,winname,params); win.moveTo(0,0); win.resizeTo(screen.availWidth, screen.availHeight); } function windowURLCentered(url, winwidth, winheight, param) { var date = new Date(); var name = date.getTime(); var win = openWinCentered(url, name, winwidth, winheight,param); }