function timer(abc) { var sec = abc ; var d = sec/3600/24 ^ 0 ; var h = (sec-d*3600*24)/3600 ^ 0 ; var m = (sec-d*3600*24-h*3600)/60 ^ 0 ; var s = sec-d*3600*24-h*3600-m*60 ; ....... и тд