/* -------------------------- */
/* GAMES */
/* -------------------------- */
/* Required: var nocache is a random number to add to request. This value solve an Internet Explorer cache issue */
var nocache = 0;

function fetch_games(teamid,currentround,insertinto,teamtyp,subtyp,teamname)
{	
	var teamid = teamid;
	var currentround  = currentround;
	var insertinto = insertinto;		
	var teamtyp = teamtyp;
	var subtyp = subtyp;
	var teamname = teamname;
	
	// Optional: Show a waiting message in the layer with ID ajax_response
	$("#fetchgames"+insertinto).html('Hole Daten...');
	$("#prevtable"+insertinto).remove();
	$("#moregames"+insertinto).load("http://www.skgbickenbach.de/lib/ajax_games.function.php", {teamid: teamid, currentround: currentround, teamtyp: teamtyp, subtyp: subtyp, teamname: teamname}, fetch_gamesReply(teamid,currentround,insertinto,teamtyp,subtyp,teamname));	
}

function fetch_gamesReply(teamid,currentround,insertinto) 
{
	var teamid = teamid;
	var currentround  = currentround;	
	var insertinto = insertinto;
	$("#morelink"+insertinto).remove();
	$("#fetchgames"+insertinto).remove();
	
}
