// JavaScript Document
   hoje = new Date()   ;
   dia = hoje.getDate()  ;
   dias = hoje.getDay() ;
   mes = hoje.getMonth()   ;
   ano = hoje.getFullYear()   ;
   hour = hoje.getHours() ;
   minute = hoje.getMinutes() ;
        if (dia < 10)
                dia = "0" + dia
        if (ano < 2000)
                ano = "19" + ano
        function CriaArray (n) {
      this.length = n }
            NomeDia = new CriaArray(7)
            NomeDia[0] = "周日"
			NomeDia[1] = "周一"
			NomeDia[2] = "周二"
			NomeDia[3] = "周三"
			NomeDia[4] = "周四"
			NomeDia[5] = "周五"
			NomeDia[6] = "周六"
         NomeMes = new CriaArray(12)
			NomeMes[0] = "1月"
			NomeMes[1] = "2月"
			NomeMes[2] = "3月"
			NomeMes[3] = "4月"
			NomeMes[4] = "5月"
			NomeMes[5] = "6月"
			NomeMes[6] = "7月"
			NomeMes[7] = "8月"
			NomeMes[8] = "9月"
			NomeMes[9] = "10月"
			NomeMes[10] = "11月"
			NomeMes[11] = "12月"
function get_hour(){
  if(hour<6)
  {
	document.write('<span class="red">凌晨好,欢迎您!</span>');  
  }
  else if(hour<=12 && hour>=6){
	document.write('<span class="red">上午好,欢迎您!</span>');  
  }
  else if(hour<=18 && hour>12)
    document.write('<span class="red">下午好,欢迎您!</span>');  
  else if(hour>18 && hour<24)
  {
	document.write('<span class="red">晚上好,欢迎您!</span>');   
  }
  else{
	document.write('<span class="red">晚上好,欢迎您!</span>');  
	  }
}
function escreveData()
{
 if (ano == '19100') ano = '2000';
 document.write (" " + ano　+ "年"+ NomeMes[mes] + dia + "日" +  "&nbsp;" + NomeDia[dias])
}
function chouchang() 
{ 
window.external.addFavorite('http://www.alltradefair.com','加入克林希安国际展览网到收藏夹'); 

} 