function jsClock(){
	document.write('<SCR'+'IPT language=JavaScript>');
	document.write('var enabled = 0; today = new Date();');
	document.write('var day,date,iver,sver;');
	document.write('sver=navigator.appVersion;');
	document.write('iver=parseFloat(sver.substring(sver.indexOf("MSIE")+5,sver.indexOf("MSIE")+8));');
	document.write('if(today.getDay()==0) day = "星期日";');
	document.write('if(today.getDay()==1) day = "星期一";');
	document.write('if(today.getDay()==2) day = "星期二";');
	document.write('if(today.getDay()==3) day = "星期三";');
	document.write('if(today.getDay()==4) day = "星期四";');
	document.write('if(today.getDay()==5) day = "星期五";');
	document.write('if(today.getDay()==6) day = "星期六";');
	document.write('document.fgColor = "000000";');
	document.write('date = today.getYear() + "年" + (today.getMonth() + 1) + "月" + today.getDate() + "日&nbsp;" + day + "&nbsp;";');
	document.write('document.write(date);');
	document.write('document.write("<SPAN id=timer>" + today.getHours() + ":"+today.getMinutes()+":"+today.getSeconds()+"</SPAN>");');

	document.write('if(iver>=5.0){');
	document.write('function changetime(){');
	document.write('var minutes,seconds,t=new Date();');
	document.write('minutes = t.getMinutes();');
	document.write('if(t.getMinutes()<10)');
	document.write('minutes = "0"+t.getMinutes();');
	document.write('seconds = t.getSeconds();');
	document.write('if(t.getSeconds()<10)');
	document.write('seconds = "0"+t.getSeconds();');
	document.write('timer.innerText=t.getHours() + ":"+minutes+":"+seconds;');
	document.write('setTimeout("changetime()",1000);');
	document.write('}');
	document.write('changetime();');
	document.write('}');
	document.write('</SCR'+'IPT>');
}

function getCurrDate() {
			var enable=0; today=new Date();                                                                                    
   	        var day; var date;                                                                                    
                                                                                    
   	        var time_start = new Date();                                                                                    
   	        var clock_start = time_start.getTime();                                                                                    
                                                                                    
   	        if(today.getDay()==0)  day="星期日"                                                                                    
   	        if(today.getDay()==1)  day="星期一"                                                                                    
   	        if(today.getDay()==2)  day="星期二"                                                                                    
   	        if(today.getDay()==3)  day="星期三"                                                                                    
   	        if(today.getDay()==4)  day="星期四"                                                                                    
   	        if(today.getDay()==5)  day="星期五"                                                                                    
   	        if(today.getDay()==6)  day="星期六"                                                                                    
   	          date=(today.getYear())+"年"                                                                                    
                   +(today.getMonth()+1)+"月"                                                                                    
			             +today.getDate()+"日 ";                                                                                    
                                                                                    
	        document.write(date+day);
}
