﻿var ShowArticlexmlHttp
function ShowArticleHits()
{
	var url = "../../AjaxPostBack.aspx?Action=ReadArticle&ID=" + ArticleID + "&PageNo=" + PageNo;
	ShowArticlexmlHttp = GetXmlHttp();
	ShowArticlexmlHttp.onreadystatechange = ArticleHitsReadyStateChange;
	ShowArticlexmlHttp.open("GET", url, true);
	ShowArticlexmlHttp.send("");
}
function ArticleHitsReadyStateChange()
{
	if(ShowArticlexmlHttp.readyState == 4)
	{
	    if(ShowArticlexmlHttp.status==200)
	    {
		    document.getElementById("hist").innerHTML = ShowArticlexmlHttp.responseText ;
		}
		else
		{
		    alert("服务器连接失败。错误代码为：[" + ShowArticlexmlHttp.status + "]," + xmlHttp.statusText);
		}
	}
	else
	{
		//document.getElementById("hist").innerHTML = "数据正在加载……" ;
	}
}
