﻿// JScript 文件
		
		function sleep()
		{
			var s=new getSpan();
			if(s.h<1&&s.m<1&&s.s<1)
			{
				return;
			}
			if(s.s==1)
			{
				s.s=s.s-1;
				if (s.m > 0)
				{
					s.m = s.m - 1;
					s.s = 59;
				}
				
				if(s.m==0)
				{
					if (s.h > 0)
					{
						s.h = s.h - 1;
						s.m = 59;
					}
				}
			}
			else
			{
				s.s=s.s-1;
			}
			document.getElementById("hours").innerText=s.h;
			document.getElementById("minutes").innerText=s.m;
			document.getElementById("secnds").innerText=s.s
			setTimeout("sleep()",1000);
		}
		
		
		
		function getSpan()
		{
			this.h=document.getElementById("hours").innerText;
			this.m=document.getElementById("minutes").innerText;
			this.s=document.getElementById("secnds").innerText;
		}