function run_countdown(url, cds)  {
	function worker(){ $.ajax({
		url: url,
		type: 'POST',
		dataType:'json',
		data: "",
		error: function() {},
		success: function(alldata) {
			var len=cds.length;
			for( var i=0; i<len; i++ ) {
				var cd = cds[i];
				if( alldata[ cd.id ]===undefined ) continue;
				var data = alldata[ cd.id ];
				if( cd.loaded===undefined ) {
					cd.loading.hide();
					cd.title.show();
					cd.msg.show();
					cd.display.show();
					cd.loaded=1;
				}
				cd.title.html(data.title);
				cd.msg.html(data.msg);
				cd.display.html(data.display);
			}
		}
	});}

	worker();
	setInterval(worker, 60000);
}



