﻿// JScript 文件

function openInvestigation()
{
    window.open('InvestigationShow.aspx', '', 'height=180, width=450, toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no');
}

function CurrentTime()
{ 
	var now = new Date();
	var yy = now.getFullYear();
	var MM = now.getMonth() + 1;
	var dd = now.getDate(); 
	var ww = now.getDay();
//	var hh = now.getHours(); 
//	var mm = now.getMinutes(); 
//	var ss = now.getTime() % 60000; 
//	ss = (ss - (ss % 1000)) / 1000; 
	var clock = yy+'.'; 
	clock += MM+'.';
	clock += dd+' 星期';
	
	switch(ww)
	{
	    case 0: clock += "日"; break;
	    case 1: clock += "一"; break;
	    case 2: clock += "二"; break;
	    case 3: clock += "三"; break;
	    case 4: clock += "四"; break;
	    case 5: clock += "五"; break;
	    case 6: clock += "六"; break;
	}
	//clock += ww+' ';
	//clock += hh+':'; 
	//if (mm < 10) clock += '0'; 
	//clock += mm+':'; 
	//if (ss < 10) clock += '0'; 
	//clock += ss; 
	return(clock); 
} 

window.onload=function()
{
    document.getElementById('timeSpan').innerText = CurrentTime();
}