function WeekGames_init(ajaxIndex)
{
	sidecontent2.innerHTML = ajaxObjects[ajaxIndex].response; 
	clearAjaxSession(ajaxIndex); 
	WeekGames_listAjax();
}

function WeekGames_showForm(ajaxIndex)
{
	gid("WeekGames_form").innerHTML = ajaxObjects[ajaxIndex].response; 

	gid("WeekGames_form").style.display="block";
	gid("WeekGames_form").style.visibility = "visible";
    gid("WeekGames_list").style.display="none";
    gid("WeekGames_list").style.visibility = "hidden";  

	clearAjaxSession(ajaxIndex); 
}

function WeekGames_showList(ajaxIndex)
{
    var R = document.getElementById("weekgames");
    R.innerHTML = ajaxObjects[ajaxIndex].response
	R.style.display="block";
	R.style.visibility = "visible";
	clearAjaxSession(ajaxIndex); 
}

function WeekGames_initAjax()
{
	var ajaxIndex = ajaxObjects.length;
	ajaxObjects[ajaxIndex] = new sack();
	ajaxObjects[ajaxIndex].requestFile = "../Modules/WeekGames/AjaxServer/index.aspx";
	ajaxObjects[ajaxIndex].onLoading = showWaitMessage(" ");	// Action when AJAX is loading the file
	ajaxObjects[ajaxIndex].setVar('init',' ');
	ajaxObjects[ajaxIndex].onCompletion = function(){ WeekGames_init(ajaxIndex); };	// Specify function that will be executed after file has been found
	ajaxObjects[ajaxIndex].runAJAX();		// Execute AJAX function		
}

function WeekGames_formAjax()
{
	var ajaxIndex = ajaxObjects.length;
	ajaxObjects[ajaxIndex] = new sack();
	ajaxObjects[ajaxIndex].requestFile = "../Modules/WeekGames/AjaxServer/index.aspx";
	ajaxObjects[ajaxIndex].onLoading = showWaitMessage(" ");	// Action when AJAX is loading the file
	ajaxObjects[ajaxIndex].setVar('form',' ');
	ajaxObjects[ajaxIndex].onCompletion = function(){ WeekGames_showForm(ajaxIndex); };	// Specify function that will be executed after file has been found
	ajaxObjects[ajaxIndex].runAJAX();		// Execute AJAX function		
}

function WeekGames_listAjax()
{
	var ajaxIndex = ajaxObjects.length;
	ajaxObjects[ajaxIndex] = new sack();
	ajaxObjects[ajaxIndex].requestFile = "../Modules/WeekGames/AjaxServer/index.aspx";
	ajaxObjects[ajaxIndex].onLoading = showWaitMessage(" ");	// Action when AJAX is loading the file
	ajaxObjects[ajaxIndex].setVar('list',' ');
	ajaxObjects[ajaxIndex].onCompletion = function(){ WeekGames_showList(ajaxIndex); };	// Specify function that will be executed after file has been found
	ajaxObjects[ajaxIndex].runAJAX();		// Execute AJAX function		
}


