// JavaScript Document
<!-- CODE FOR TTT (2)
function OpenMenu(sLink)
{
{
w = screen.availWidth;
h = screen.availHeight;
}
var popW = 800, popH = 615;
var leftPos = (w-popW)/2, topPos = (h-popH-200)/2;

PicWin=window.open(sLink, "WinInfo",'width=' + popW + ' height=' + popH + ' top=' + topPos + ' left=' + leftPos +
'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,directories=0,status=0');
}
// -->

//Insider Popup function
function pop_up(url,width,height){
	var left,top;
	if(window.screen){left=(screen.width-width)/2;top=(screen.height-height)/2;}
	else{left=200;top=170;}
	params='height='+height+',width='+width+',status=no,toolbar=no,menubar=no,scrollbars=yes,top='+top+',left='+left;
	var newwin = window.open(url,'address', params);
	newwin.window.focus();
}


<!-- CODE FOR ATP 2009 CALENDAR
function OpenMenu2(sLink)
{
{
w = screen.availWidth;
h = screen.availHeight;
}
var popW = 770, popH = 768;
var leftPos = (w-popW)/2, topPos = (h-popH-200)/2;

PicWin=window.open(sLink, "WinInfo",'width=' + popW + ' height=' + popH + ' top=' + topPos + ' left=' + leftPos +
'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,directories=0,status=0');
}
// -->

<!--
// Open a window of the desired size in the centre of the screen.
function openLSWindowTandR(year, wkno, lang, tabno, eventid, 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 =500;
	if ((theHeight == "")||(theHeight == null)) theHeight =668;
	var theLeft = (screen.availWidth - theWidth)/2;
	var theTop = (screen.availHeight - theHeight)/2;
	var strCheckRef = escape(ref_file);

	var lsURL = "http://www.protennislive.com/frameset.asp?year="+year+"&wkno="+wkno+"&lang="+lang+"&tabno="+tabno+"&eventid="+eventid+"&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);
}
//-->
