function onChangeTSTab(val)
{
	$("score_boxes_container").innerHTML="<div align='center' style='height:100px;padding-top:50px;' width='100%'><img src='images/pl_3.gif'><br>Loading...</div>";
	xmlHttp = initXMLHttP();
	url="disptopscorerctrl.html";
	xmlHttp.open("POST", url, true);
	parameters = "stage="+val;
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", parameters.length);
	xmlHttp.setRequestHeader("Connection", "close");
	xmlHttp.send(parameters);
	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4) {
			$("score_boxes_container").innerHTML=xmlHttp.responseText;
			container = $("tsTabsContainer");
			elems = container.getElementsByTagName("td");
			for(i=0;i<elems.length;i++)
			{
				elems[i].id= (i==(val-1))? "current" : "";
			}

		}
		else
		{
			$("score_boxes_container").innerHTML="<div align='center' style='height:100px;padding-top:50px;' width='100%'><img src='images/pl_3.gif'><br>Loading...</div>";
		}
	}
}

