// JavaScript Document
calendar = new Date();
day = calendar.getDay();
month = calendar.getMonth();
date = calendar.getDate();
year = calendar.getYear();
if (year< 100) year = 1900 + year;
cent = parseInt(year/100);
g = year % 19;
k = parseInt((cent - 17)/25);
i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
l = i - j;
emonth = 3 + parseInt((l + 40)/44); 
edate = l + 28 - 31*parseInt((emonth/4));
emonth--;
var dayname = new Array ("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
var monthname =
new Array ("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月" );
document.write("&nbsp;&nbsp;"+year +"年");
document.write(monthname[month]);
document.write(date + "日"+" ");
document.write(dayname[day]);

var now,hours,minutes,seconds,timeValue; 
function showtime(){
now = new Date(); 
hours = now.getHours(); 
minutes = now.getMinutes(); 
seconds = now.getSeconds(); 
timeValue = (hours >= 12) ? " 下午 " : " 上午 "; 
timeValue += ((hours > 12) ? hours - 12 : hours) + "点"; 
timeValue += ((minutes <10)?"0":"") + minutes+"分"; 
timeValue += ((seconds <10)?"0":"") + seconds+"秒"; 
clock.innerHTML = timeValue; 
setTimeout("showtime()",100); 
} 
showtime(); 


document.writeln("&nbsp;&nbsp;&nbsp;<span id='show'></span>");



    var xmlhttp;//声明一个变量
    try
    {
        xmlhttp=new ActiveXObject('Msxml2.XMLHTTP');
    }
    catch(e)
    {
        try
        {
            xmlhttp= new ActiveXObject('Microsoft.XMLHTTP');
        }
        catch(e)
        {
            try
            {
                xmlhttp=new XMLHttpRequest();
            }
            catch(e)
            {
            }
        }
    }
    var temp=new Array();
    var url="/WebService/ClassManage.asmx/LoginCheck";
    xmlhttp.open("post",url,true);        
    xmlhttp.onreadystatechange=function()
    {
        if(xmlhttp.readyState==4)
        {
            if(xmlhttp.status==200)
            {

                var xmldoc=xmlhttp.responseText;
                xmldoc=xmldoc.replace(/&lt;/gi,"<");
                xmldoc=xmldoc.replace(/&gt;/gi,">");
                var xmlDoc2 = new ActiveXObject("Microsoft.XMLDOM");
                xmlDoc2.async="false";
                xmlDoc2.loadXML(xmldoc);
          
                if(xmlDoc2.parseError.errorCode != 0)
                {
                    alert("读取xml出错");
                }
                else
                {
                    if(xmlDoc2.readyState==4)
                    {
                        var hyp = xmlDoc2.documentElement.selectNodes("//newscontents");
                        var mess="<marquee FONT-FAMILY:\"宋体\" scrollamount=\"1\" width=\"40%\"  scrolldelay=\"35\"><font color=red>"+hyp(0).text+"</font></marquee>";
                        document.getElementById("show").innerHTML=mess;  
                    }
                    else
                    {
                        alert("加载失败");
                    }
                }
            }
                  else   if(xmlhttp.status==500){ 
//                        alert(xmlhttp.responseText); 
                        }
            else
            {
//               alert(xmlhttp.status);
            }
        }
    }
    xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");   
    xmlhttp.send(null);        
    
    
    
    
   document.writeln("<SCRIPT LANGUAGE=\"JavaScript\" src= http://float2006.tq.cn/floatcard?adminid=8400324&sort=1&version=vip></SCRIPT> ");
