var link_num = 0;

function i(num){
	if (num > link_num){
		for (var i = link_num;i <= num;i++){
			p('dp',i);
		}
		link_num = i - 1;
	}
}

function p(layName,html){
	if(document.getElementById){ //N6,Moz,IE5,IE6
		document.getElementById(layName).innerHTML=html;
	}else if(document.all){ //IE4
		document.all(layName).innerHTML=html;
	}else if(document.layers){ //NN4
		with(document.layers[layName].document){
			open();
			write(html);
			close();
		}
	}
}

function t(time){
	p('sdp',timetostring(time));
}

function timetostring(t){
h = Math.floor(t/3600);
m = Math.floor((t/60)%60);
s = Math.floor(t%60);
if(h<10){h = "0" +h}
if(m<10){m = "0" +m}
if(s<10){s = "0" +s}
return h + ":" + m + ":" + s;
}
