function hideChannel(cid, cname)
{
	$('chan_'+cid).update("<em></em><li style=\"cursor: pointer\" onClick=\"showChannel('"+cid+"', '"+cname+"');\">Hide "+cname+" details</li>");
}

function showChannel(cid, cname)
{
	$('chan_'+cid).update("<em></em><li style=\"cursor: pointer\" onClick=\"getResponse('channels', 'cid("+cid+")', 'update"+cid+"'); hideChannel('"+cid+"', '"+cname+"');\">"+cname+"</div>");
	$('update'+cid).update("");
}

