//得到当前日期
var today = new Date();
//document.write("今天是", today.getYear(),"年",today.getMonth()+1,"月",today.getDate(),"日 "); 
document.write(today.getYear(),"年",today.getMonth()+1,"月",today.getDate(),"日 "); 
if(today.getDay()==0)            
{
	document.write("星期日");
}
if(today.getDay()==1)            
{
	document.write("星期一");
}
if(today.getDay()==2)            
{
	document.write("星期二");
}
if(today.getDay()==3)            
{
	document.write("星期三");
}
if(today.getDay()==4)            
{
	document.write("星期四");
}
if(today.getDay()==5)            
{
	document.write("星期五");
}
if(today.getDay()==6)            
{
	document.write("星期六");
}

var cuug1;
//得到当前时间（小时）
var ss=today.getHours( );

if((ss>=0)&&(ss<5))
{	
	cuug1= "夜深了，注意身体!";
}
if((ss>5)&&(ss<12))
{
	cuug1="早上好!";
}
if((ss>=12)&&(ss<18))
{
	cuug1="下午好!";
}
if((ss>=18)&&(ss<=23))
{
	cuug1="晚上好!";
}
   
//document.write(" ", cuug1);
