function openPage (url, wwidth, wheight, title, scroll, size) { ns4 = (document.layers)? true:false var scrolling = ',scrollbars=' + scroll; var sizing = ',resizable=' + size; if (ns4) wheight = parseInt(wheight) + 30; leftpos = (screen.width) ? (screen.width-wwidth)/2 : 0; toppos = (screen.height) ? (screen.height-wheight)/2 : 0; opts = 'width=' + wwidth + ',height=' + wheight + scrolling + sizing + ',top=' + toppos + ',screenY=' + toppos + ',left=' + leftpos + ',screenX=' + leftpos + ','; popupWin = window.open(url, title, opts); }