﻿//建立XMLHttpRequest对象
var xmlhttp;
try
{
    xmlhttp= new ActiveXObject('Msxml2.XMLHTTP');
}
catch(e)
{
   try
   {
      xmlhttp= new ActiveXObject('Microsoft.XMLHTTP');
   }
   catch(e)
   {
      try
	  {
         xmlhttp= new XMLHttpRequest();
      }
      catch(e){}
   }
}

xmlhttp.open("get","/include/checklogin.aspx",true);

xmlhttp.onreadystatechange = function()
{
    if(xmlhttp.readyState == 4)
    {
        if(xmlhttp.status == 200)
        {
            if(xmlhttp.responseText !="")
			{
				var Box= document.getElementById("logindiv");
				Box.innerHTML = unescape(xmlhttp.responseText);
            }
        }
    }
}
xmlhttp.setRequestHeader("If-Modified-Since","0");
xmlhttp.send(null);
