function openWin(wUri, wName, wWidth, wHeight, wScroll, wMenu) { var scrollBars = (wScroll!=0) ? 1 : 0; var menuBars = (wMenu) ? 1 : 0; var positionLeft = (screen.width - wWidth)/2; var positionTop = (screen.height - wHeight)/2; var myW = window.open(wUri,wName,'width='+wWidth+',height='+wHeight+',top='+positionTop+',left='+positionLeft+',location=0,menubar='+menuBars+',resizable=0,scrollbars='+scrollBars+',status=0,titlebar=0,toolbar=0,directories=0,hotkeys=0') myW.focus(); } function openWinResize(wUri, wName, wWidth, wHeight, wScroll, wMenu, wResize) { var scrollBars = (wScroll!=0) ? 1 : 0; var menuBars = (wMenu) ? 1 : 0; var reSizable = (wResize) ? 1 : 0; var positionLeft = (screen.width - wWidth)/2; var positionTop = (screen.height - wHeight)/2; var myW = window.open(wUri,wName,'width='+wWidth+',height='+wHeight+',top='+positionTop+',left='+positionLeft+',location=0,menubar='+menuBars+',resizable='+reSizable+',scrollbars='+scrollBars+',status=0,titlebar=0,toolbar=0,directories=0,hotkeys=0') myW.focus(); } function openWinblur(wUri, wName, wWidth, wHeight, wScroll, wMenu) { var scrollBars = (wScroll!=0) ? 1 : 0; var menuBars = (wMenu) ? 1 : 0; var positionLeft = (screen.width - wWidth)/2; var positionTop = (screen.height - wHeight)/2; var myW = window.open(wUri,wName,'width='+wWidth+',height='+wHeight+',top='+positionTop+',left='+positionLeft+',location=1,menubar='+menuBars+',resizable=1,scrollbars='+scrollBars+',status=1,titlebar=1,toolbar=1,directories=1,hotkeys=1') myW.blur(); } function openWinFull(wUri, wName, wWidth, wHeight, wScroll, wMenu) { var scrollBars = (wScroll!=0) ? 1 : 0; var menuBars = (wMenu) ? 1 : 0; var positionLeft = (screen.width - wWidth)/2; var positionTop = (screen.height - wHeight)/2; var myW = window.open(wUri,wName,'width='+wWidth+',height='+wHeight+',top='+positionTop+',left='+positionLeft+',location=1,menubar='+menuBars+',resizable=1,scrollbars='+scrollBars+',status=1,titlebar=1,toolbar=1,directories=1,hotkeys=1') myW.focus(); }