// Pops up ncwf reference window function refWindow(mypage, myname, w, h, scroll) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'; var refWin = window.open(mypage, myname, winprops); refWin.document.open(); refWin.document.write(""+myname+""); refWin.document.write("") refWin.document.close(); //if (parseInt(navigator.appVersion) >= 4) { refWin.window.focus(); } }