function pop_up(url,width,height) { if(window.screen) { var left=(screen.width-width)/2; var top=(screen.height-height)/2; } else { left=200; top=170; } params='height='+height+',width='+width+',status=no,toolbar=no,menubar=no,scrollbars=no,top='+top+',left='+left; var newwin = window.open(url,'address', params); newwin.window.focus(); } // Open a window of the desired size in the centre of the screen. function openLSWindowTandRTour(lang, ref_file, width, height, hasScrollBars) { // ADD NAME FIELD and make sure it get's focus!!! var theWidth = width; var theHeight = height; var scrollBars = "scrollbars"; if (hasScrollBars == false) scrollBars = "scrollbars=0"; if ((theWidth == "")||(theWidth == null)) theWidth =1042; if ((theHeight == "")||(theHeight == null)) theHeight =631; var theLeft = (screen.availWidth - theWidth)/2; var theTop = (screen.availHeight - theHeight)/2; var strCheckRef = escape(ref_file); var lsURL = "http://www.protennislive.com/lsbtf/main.html?lang="+lang+"&ref="+strCheckRef; var popupWin = window.open(lsURL, '_' + Math.round(Math.random() * 1000000),'top='+theTop+',left='+theLeft+',menubar=0,toolbar=0,location=0,directories=0,status=0,'+scrollBars+',width='+theWidth+', height='+theHeight); } // Open a window of the desired size in the centre of the screen. function openLSWindowTandRTour(lang, ref_file, width, height, hasScrollBars) { // ADD NAME FIELD and make sure it get's focus!!! var theWidth = width; var theHeight = height; var scrollBars = "scrollbars"; if (hasScrollBars == false) scrollBars = "scrollbars=0"; if ((theWidth == "")||(theWidth == null)) theWidth =1042; if ((theHeight == "")||(theHeight == null)) theHeight =631; var theLeft = (screen.availWidth - theWidth)/2; var theTop = (screen.availHeight - theHeight)/2; var strCheckRef = escape(ref_file); var lsURL = "http://www.protennislive.com/lsbtf/main.html?lang="+lang+"&ref="+strCheckRef; var popupWin = window.open(lsURL, '_' + Math.round(Math.random() * 1000000),'top='+theTop+',left='+theLeft+',menubar=0,toolbar=0,location=0,directories=0,status=0,'+scrollBars+',width='+theWidth+', height='+theHeight); } document.write(""); document.write("");