function get_ban(last_ban, type, count, id, timeout)
{
	var num = Math.floor( Math.random( ) * (count - 1 + 1) ) + 1;
		
	if(last_ban != 0)
	{document.getElementById('ban_'+type+'_'+id+'_'+last_ban).style.display='none';}
	
	document.getElementById('ban_'+type+'_'+id+'_'+num).style.display='block';			
	
	setTimeout('get_ban('+num+', \''+type+'\', '+count+', '+id+', '+timeout+');', timeout * 1000);
}
