$(document).ready(function() { 		

	// Bind change event to the list
	$("#wordlist").bind("change",function(e){
		UpdateList();										  
	});

	// Initally, show the list
	UpdateList();
	
});


function UpdateList() {

	var wordlist  =($("#wordlist").val() == null)?"":$("#wordlist").val();

	var url ="ajax_gamescore.php?wordlist="+wordlist;	
	UpdateArea(url,$("#listcontainer"),"ajax-loading",0);
}
