/* first, declare the variable newWin that will be used for the new window object. */var newWin;var newsWin;var xScale = screen.availWidth - 140;var yScale = screen.availHeight - 20;/* a function that opens a centered window. */ function cWin(url,winname,w,h) {windowleft = (screen.width - w)/2;windowtop = (screen.height - h)/2;settings = '"toolbar=no,directories=no,menubar=no,scrollbars=no,resizable=no,status=no,width='+w+',height='+h+ ',left='+windowleft+',top='+windowtop+'"';closeWindow();newWin = window.open(url,winname,settings);newWin.focus();}function sWin(url,winname,w,h) {windowleft = (screen.width - w)/2;windowtop = (screen.height - h)/2;stsettings = '"directories=no,menubar=no,scrollbars=yes,resizable=yes,toolbar=yes,status=yes,width='+w+',height='+h+ ',left='+windowleft+',top='+windowtop+'"';closeWindow();newsWin = window.open(url,winname,stsettings);newsWin.focus();}function closeWindow() {if (newWin && !newWin.closed) {newWin.close();}}function closeWindow() {if (newsWin && !newsWin.closed) {newsWin.close();}}