var w; var input; function openWin( url, title, height, width, toolbar, resizeable) { var win = top.open( url, 'popupWin', 'height=' + height + ',width=' + width + ',resizeable=' + resizeable + ',scrollbars=yes'); return win; } function refresh( win, fromSvr ) { var sURL = unescape(win.location.pathname) + '&' + rndNumber(); win.location.reload( fromSvr ); //win.location = sURL; } function rndNumber(){ var howMany = 30000; var randscript = -1; while (randscript < 0 || randscript > howMany || isNaN(randscript)){ randscript = parseInt(Math.random()*(howMany+1)); } return randscript; } function publishIt( thisDoc ) { var url = '/desire/elkwebAdmin.nsf/agPublishSite!OpenAgent'; var title = 'publishWin'; var height = '400'; var width = '400'; var tool = 'false'; var size = 'false'; openWin( url, title, height, width, tool, size ); }