function TSOpenWindow(URL,windowWidth,windowHeight,windowResizable,windowMenubar,windowScrollbars,windowStatus,windowToolbars){var TSWindow="",tsHeight=0,tsWidth=0,increment=7,windowFeatures,windowDim,wLeft,wTop;if(!Number(windowWidth))windowWidth=window.screen.availWidth;if(!Number(windowHeight))windowHeight=window.screen.availHeight;wLeft=(screen.width)?(screen.width-Number(windowWidth))/2:0;wTop=(screen.height)?(screen.height-Number(windowHeight))/2:0;windowDim="width="+windowWidth+", height="+windowHeight+",";windowFeatures="left="+wLeft+", top="+wTop+", resizable="+windowResizable+", menubar="+windowMenubar+", scrollbars="+windowScrollbars+", status="+windowStatus+", toolbar="+windowToolbars;try{if(window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1){windowDim="width=1, height=1,";TSWindow=window.open('','',windowDim+windowFeatures);while(tsHeight<windowHeight||tsWidth<windowWidth){tsWidth=(tsWidth<windowWidth)?tsWidth+increment:windowWidth;tsHeight=(tsHeight<windowHeight)?tsHeight+increment:windowHeight;TSWindow.resizeTo(tsWidth,tsHeight);}TSWindow.location=URL;}else TSWindow=window.open(URL,'',windowDim+windowFeatures);}catch(err){TSWindow=window.open(URL,'',windowFeatures);return;}return;}
