var xmlHttp55;

function printRoster(){
	var sortIndex;
	var sortDir;

	xmlHttp55 = GetXmlHttpObject();
	if(xmlHttp55 == null)
 	{
 		alert ("Browser does not support HTTP Request");
 	}
	
	if(roster_grid.sortInfo < 0){
		sortDir = "DESC";
		sortIndex = roster_grid.sortInfo * -1;
	}
	else{
		sortDir = "ASC";
		sortIndex = roster_grid.sortInfo;
	}
	
	var url = "ofphp/printroster.php";
	url += "?sid=" + Math.random();
	url += "&filterYear=" + dijit.byId("yearSelect").attr("value");
	url += "&filterTeam=" + dijit.byId("teamSelect").attr("value");
	url += "&sortIndex=" + sortIndex;
	url += "&sortDir=" + sortDir; 
		
	xmlHttp55.open("GET", url, true);
	xmlHttp55.onreadystatechange = stateChanged55;
	xmlHttp55.send("");				
}

function stateChanged55(){ 
	if(xmlHttp55.readyState==4 || xmlHttp55.readyState=="complete"){
		document.body.style.backgroundColor = "#ffffff";
		document.body.innerHTML = xmlHttp55.responseText;
//		dojo.byId("scheduleBody").innerHTML = xmlHttp55.responseText;
//		alert(xmlHttp55.responseText);
	}	
}
