TOXA123,
а подумать?
function two(a) {
return (9 < a ? "" : "0") + a
};
document.getElementById('day').innerHTML = two(day);
document.getElementById('hrs').innerHTML = two(hrs);
document.getElementById('min').innerHTML = two(min);
document.getElementById('sec').innerHTML = two(sec);