function changeCommunityWork(id) {	
	var xmlHttp;
	xmlHttp=new XMLHttpRequest();

	xmlHttp.onreadystatechange=function() {
		if(xmlHttp.readyState==4) {
			document.getElementById('community').innerHTML = xmlHttp.responseText;
		}
	}
	
	var parameters = 'id=' + id;
	
	xmlHttp.open("POST","community_results.php",true);
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", parameters.length);
	xmlHttp.setRequestHeader("Connection", "close");
	xmlHttp.send(parameters);
}

function changeCommunity(id) {
	document.getElementById('community').innerHTML = '<table width="430" cellpadding="20" cellspacing="0" class="communitesTable"><tr><td><img src="/images/global/loading.gif" vspace="90" hspace="45" /></td></tr></table>';
	setTimeout('changeCommunityWork(' + id + ')',1000);
}