function specexp() {
	count = 0;
	$(".spectimer").each( function () {
		var id = this.id;
		var exp = this.getElementsByTagName('input')[0].value;

		var d = Math.floor(exp/(60*60*24)*1);
		var h = Math.floor((exp%(60*60*24))/(60*60)*1);
		var m = Math.floor(((exp%(60*60*24))%(60*60))/(60)*1);

		var days = document.getElementsByName("days"+id);
		var hours = document.getElementsByName("hours"+id);
		var minutes = document.getElementsByName("minutes"+id);
		
		$(days).html(d);
		$(hours).html(h);
		$(minutes).html(m);

		this.getElementsByTagName('input')[0].value = exp-60;
		count++;
	});
	if (count)
	{
		setTimeout("specexp();",60000);
	}
}
