var xmlHttp0,xmlHttp1,xmlHttp2,xmlHttp3,xmlHttp4,xmlHttp5,xmlHttp6,xmlHttp7,xmlHttp8
var xmlHttp9,xmlHttp10,xmlHttp11,xmlHttp12,xmlHttp13,xmlHttp14,xmlHttp15,xmlHttp16
var xmlHttp17,xmlHttp18,xmlHttp19,xmlHttp20,xmlHttp21;                //用于保存xmlHttpRequest对象的全局变量
	 	 
document.write("<script language=javascript src='Globals.js'><\/script>"); 

function getLogin(username,password)
{
  var url="LoginExpress.asp?t="+new Date().getTime();
  xmlHttp0 = createxmlHttp(xmlHttp0);
  xmlHttp0.onreadystatechange = loadLoginCallback;
  if(username == "")
  {
    xmlHttp0.open("get", url, true);
	xmlHttp0.send(null);	
  }
  else
  {
    var xml = "<?xml version=\'1.0\' encoding=\"utf-8\"?>";
    xml = xml + "<User>";   
    xml = xml + "<Name>" + username + "<\/Name>";   
    xml = xml + "<Password>" + password + "<\/Password>";   
    xml = xml + "<\/User>";   
    xmlHttp0.open("post", url, true);   
    xmlHttp0.setRequestHeader("Content-Type","application/x-www-form-urlencoded");   
    xmlHttp0.send(xml);//发送请求   		   
  }
}
	 
function loadLoginCallback()
{
  if(xmlHttp0.readyState == 1)
    document.getElementById("Login").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp0.readyState == 2 || xmlHttp0.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp0.readyState == 4)
    if (xmlHttp0.status == 200)
	  document.getElementById("Login").innerHTML = xmlHttp0.responseText;
}

function getNews()
{
  var url="index/news.asp?t="+new Date().getTime();
  xmlHttp1 = createxmlHttp(xmlHttp1);
  xmlHttp1.onreadystatechange = loadNewsCallback;
  xmlHttp1.open("get", url, true);
  xmlHttp1.send(null);	
}
	 
function getspecialNews()
{
  var url="index/specialnewslist.asp?t="+new Date().getTime();
  xmlHttp20 = createxmlHttp(xmlHttp20);
  xmlHttp20.onreadystatechange = loadspecialNewsCallback;
  xmlHttp20.open("get", url, true);
  xmlHttp20.send(null);	
}

function getnewsComments()
{
  var url="index/newscommentlist.asp?t="+new Date().getTime();
  xmlHttp21 = createxmlHttp(xmlHttp21);
  xmlHttp21.onreadystatechange = loadnewsCommentsCallback;
  xmlHttp21.open("get", url, true);
  xmlHttp21.send(null);	
}

function loadNewsCallback()
{
  if(xmlHttp1.readyState == 1)
    document.getElementById("news").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp1.readyState == 2 || xmlHttp1.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp1.readyState == 4)
    if (xmlHttp1.status == 200)
	  document.getElementById("news").innerHTML = xmlHttp1.responseText;
}

function loadspecialNewsCallback()
{
  if(xmlHttp20.readyState == 1)
    document.getElementById("specialnews").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp20.readyState == 2 || xmlHttp20.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp20.readyState == 4)
    if (xmlHttp20.status == 200)
	  document.getElementById("specialnews").innerHTML = xmlHttp20.responseText;
}

function loadnewsCommentsCallback()
{
  if(xmlHttp21.readyState == 1)
    document.getElementById("newscomments").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp21.readyState == 2 || xmlHttp21.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp21.readyState == 4)
    if (xmlHttp21.status == 200)
	  document.getElementById("newscomments").innerHTML = xmlHttp21.responseText;
}

function getHotBooks()
{
   var url="index/HotBooks.asp?t="+new Date().getTime();
   xmlHttp2 = createxmlHttp(xmlHttp2);
   xmlHttp2.onreadystatechange = loadHotBooksCallback;
   xmlHttp2.open("get", url, true);
   xmlHttp2.send(null);	
}
	 
function loadHotBooksCallback()
{
  if(xmlHttp2.readyState == 1)
    document.getElementById("hotbooks").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp2.readyState == 2 || xmlHttp2.readyState == 3){}
   //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp2.readyState == 4)
    if (xmlHttp2.status == 200)
      document.getElementById("hotbooks").innerHTML = xmlHttp2.responseText;
}

function getTopMonthly()
{
   var url="index/tops.asp?category=monthly&t="+new Date().getTime();
   xmlHttp3 = createxmlHttp(xmlHttp3);
   xmlHttp3.onreadystatechange = loadTopMonthlyCallback;
   xmlHttp3.open("get", url, true);
   xmlHttp3.send(null);	
}
	 
function loadTopMonthlyCallback()
{
   if(xmlHttp3.readyState == 1)
     document.getElementById("topmonthly").innerHTML = "<img src='../images/loading.gif'>";
   else if(xmlHttp3.readyState == 2 || xmlHttp3.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
   else if(xmlHttp3.readyState == 4)
     if (xmlHttp3.status == 200)
 	   document.getElementById("topmonthly").innerHTML = xmlHttp3.responseText;
}

function getTopWeekly()
{
   var url="index/tops.asp?category=weekly&t="+new Date().getTime();
   xmlHttp4 = createxmlHttp(xmlHttp4);
   xmlHttp4.onreadystatechange = loadTopWeeklyCallback;
   xmlHttp4.open("get", url, true);
   xmlHttp4.send(null);	
}
	 
function loadTopWeeklyCallback()
{
  if(xmlHttp4.readyState == 1)
    document.getElementById("topweekly").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp4.readyState == 2 || xmlHttp4.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp4.readyState == 4)
    if (xmlHttp4.status == 200)
	  document.getElementById("topweekly").innerHTML = xmlHttp4.responseText;
}

function getTopDaily()
{
   var url="index/tops.asp?category=daily&t="+new Date().getTime();
   xmlHttp5 = createxmlHttp(xmlHttp5);
   xmlHttp5.onreadystatechange = loadTopDailyCallback;
   xmlHttp5.open("get", url, true);
   xmlHttp5.send(null);	
}
	 
function loadTopDailyCallback()
{
  if(xmlHttp5.readyState == 1)
    document.getElementById("topdaily").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp5.readyState == 2 || xmlHttp5.readyState == 3){}
   //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp5.readyState == 4)
    if (xmlHttp5.status == 200)
	  document.getElementById("topdaily").innerHTML = xmlHttp5.responseText;
}

function getTopSearch()
{
   var url="index/tops.asp?category=search&t="+new Date().getTime();
   xmlHttp6 = createxmlHttp(xmlHttp6);
   xmlHttp6.onreadystatechange = loadTopSearchCallback;
   xmlHttp6.open("get", url, true);
   xmlHttp6.send(null);	
}
	 
function loadTopSearchCallback()
{
   if(xmlHttp6.readyState == 1)
     document.getElementById("topsearch").innerHTML = "<img src='../images/loading.gif'>";
   else if(xmlHttp6.readyState == 2 || xmlHttp6.readyState == 3){}
      //document.getElementById("tip").innerHTML = "正在读取数据";
   else if(xmlHttp6.readyState == 4)
     if (xmlHttp6.status == 200)
	   document.getElementById("topsearch").innerHTML = xmlHttp6.responseText;
}

function getPromotion()
{
   var url="index/PromotionBook.asp?t="+new Date().getTime();
   xmlHttp7 = createxmlHttp(xmlHttp7);
   xmlHttp7.onreadystatechange = loadPromotionCallback;
   xmlHttp7.open("get", url, true);
   xmlHttp7.send(null);	
}
	 
function loadPromotionCallback()
{
  if(xmlHttp7.readyState == 1)
    document.getElementById("Promotion").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp7.readyState == 2 || xmlHttp7.readyState == 3){}
     //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp7.readyState == 4)
    if (xmlHttp7.status == 200)
      document.getElementById("Promotion").innerHTML = xmlHttp7.responseText;
}

function getFutures()
{
   var url="index/FuturesBook.asp?t="+new Date().getTime();
   xmlHttp8 = createxmlHttp(xmlHttp8);
   xmlHttp8.onreadystatechange = loadFuturesCallback;
   xmlHttp8.open("get", url, true);
   xmlHttp8.send(null);	
}
	 
function loadFuturesCallback()
{
  if(xmlHttp8.readyState == 1)
    document.getElementById("Futures").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp8.readyState == 2 || xmlHttp8.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp8.readyState == 4)
    if (xmlHttp8.status == 200)
	  document.getElementById("Futures").innerHTML = xmlHttp8.responseText;
}

function getOnlineRead()
{
   var url="index/OnlineReadBook.asp?t="+new Date().getTime();
   xmlHttp9 = createxmlHttp(xmlHttp9);
   xmlHttp9.onreadystatechange = loadOnlineReadCallback;
   xmlHttp9.open("get", url, true);
   xmlHttp9.send(null);	
}
	 
function loadOnlineReadCallback()
{
  if(xmlHttp9.readyState == 1)
    document.getElementById("OnlineRead").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp9.readyState == 2 || xmlHttp9.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp9.readyState == 4)
    if (xmlHttp9.status == 200)
      document.getElementById("OnlineRead").innerHTML = xmlHttp9.responseText;
}

function scrol2(n)
{
  temp = n;
  document.getElementById('Out2').scrollLeft = document.getElementById('Out2').scrollLeft + temp;
  if (temp == 0) return;
	setTimeout("scrol2(temp)",8);
}

function getTop2()
{
  var url="index/top2.asp?t="+new Date().getTime();
  xmlHttp10 = createxmlHttp(xmlHttp10);
  xmlHttp10.onreadystatechange = loadTop2Callback;
  xmlHttp10.open("get", url, true);
  xmlHttp10.send(null);	
}
	 
function loadTop2Callback()
{
  if(xmlHttp10.readyState == 1)
    document.getElementById("top2").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp10.readyState == 2 || xmlHttp10.readyState == 3){}
   //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp10.readyState == 4)
    if (xmlHttp10.status == 200)
      document.getElementById("top2").innerHTML = xmlHttp10.responseText;
}

function getPublisherHot()
{
  var url="index/PublisherHot.asp?t="+new Date().getTime();
  xmlHttp11 = createxmlHttp(xmlHttp11);
  xmlHttp11.onreadystatechange = loadPublisherHotCallback;
  xmlHttp11.open("get", url, true);
  xmlHttp11.send(null);	
}
	 
function loadPublisherHotCallback()
{
  if(xmlHttp11.readyState == 1)
    document.getElementById("PublisherHot").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp11.readyState == 2 || xmlHttp11.readyState == 3){}
     //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp11.readyState == 4)
    if (xmlHttp11.status == 200)
      document.getElementById("PublisherHot").innerHTML = xmlHttp11.responseText;
}

function getPublisherSubject()
{
  var url="index/PublisherSubject.asp?t="+new Date().getTime();
  xmlHttp12 = createxmlHttp(xmlHttp12);
  xmlHttp12.onreadystatechange = loadPublisherSubjectCallback;
  xmlHttp12.open("get", url, true);
  xmlHttp12.send(null);	
}
	 
function loadPublisherSubjectCallback()
{
  if(xmlHttp12.readyState == 1)
    document.getElementById("PublisherSubject").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp12.readyState == 2 || xmlHttp12.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp12.readyState == 4)
    if (xmlHttp12.status == 200)
	  document.getElementById("PublisherSubject").innerHTML = xmlHttp12.responseText;
}

function getSutraBook()
{
  var url="index/SutraBook.asp?t="+new Date().getTime();
  xmlHttp13 = createxmlHttp(xmlHttp13);
  xmlHttp13.onreadystatechange = loadSutraBookCallback;
  xmlHttp13.open("get", url, true);
  xmlHttp13.send(null);	
}
	 
function loadSutraBookCallback()
{
  if(xmlHttp13.readyState == 1)
    document.getElementById("SutraBook").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp13.readyState == 2 || xmlHttp13.readyState == 3){}
   //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp13.readyState == 4)
    if (xmlHttp13.status == 200)
      document.getElementById("SutraBook").innerHTML = xmlHttp13.responseText;
}

function getAuthors()
{
   var url="index/Authors1.asp?t="+new Date().getTime();
   xmlHttp14 = createxmlHttp(xmlHttp14);
   xmlHttp14.onreadystatechange = loadAuthorsCallback;
   xmlHttp14.open("get", url, true);
   xmlHttp14.send(null);	
}
	 
function loadAuthorsCallback()
{
  if(xmlHttp14.readyState == 1)
    document.getElementById("Authors").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp14.readyState == 2 || xmlHttp14.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp14.readyState == 4)
    if (xmlHttp14.status == 200)
	  document.getElementById("Authors").innerHTML = xmlHttp14.responseText;
}

function getEditorCommend()
{
   var url="index/EditorCommend.asp?t="+new Date().getTime();
   xmlHttp15 = createxmlHttp(xmlHttp15);
   xmlHttp15.onreadystatechange = loadEditorCommendCallback;
   xmlHttp15.open("get", url, true);
   xmlHttp15.send(null);	
}
	 
function loadEditorCommendCallback()
{
  if(xmlHttp15.readyState == 1)
    document.getElementById("EditorCommend").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp15.readyState == 2 || xmlHttp15.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp15.readyState == 4)
    if (xmlHttp15.status == 200)
      document.getElementById("EditorCommend").innerHTML = xmlHttp15.responseText;
}

function getSutraBookReview()
{
   var url="index/SutraBookReview.asp?t="+new Date().getTime();
   xmlHttp16 = createxmlHttp(xmlHttp16);
   xmlHttp16.onreadystatechange = loadSutraBookReviewCallback;
   xmlHttp16.open("get", url, true);
   xmlHttp16.send(null);	
}
	 
function loadSutraBookReviewCallback()
{
  if(xmlHttp16.readyState == 1)
     document.getElementById("SutraBookReview").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp16.readyState == 2 || xmlHttp16.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp16.readyState == 4)
    if (xmlHttp16.status == 200)
	  document.getElementById("SutraBookReview").innerHTML = xmlHttp16.responseText;
}

function getSutraThread()
{
  var url="index/SutraThread.asp?t="+new Date().getTime();
  xmlHttp17 = createxmlHttp(xmlHttp17);
  xmlHttp17.onreadystatechange = loadSutraThreadCallback;
  xmlHttp17.open("get", url, true);
  xmlHttp17.send(null);	
}
	 
function loadSutraThreadCallback()
{
  if(xmlHttp17.readyState == 1)
     document.getElementById("SutraThread").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp17.readyState == 2 || xmlHttp17.readyState == 3){}
   //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp17.readyState == 4)
    if (xmlHttp17.status == 200)
	  document.getElementById("SutraThread").innerHTML = xmlHttp17.responseText;
}

function getForumHot()
{
  var url="index/ForumHot.asp?t="+new Date().getTime();
  xmlHttp18 = createxmlHttp(xmlHttp18);
  xmlHttp18.onreadystatechange = loadForumHotCallback;
  xmlHttp18.open("get", url, true);
  xmlHttp18.send(null);	
}
	 
function loadForumHotCallback()
{
  if(xmlHttp18.readyState == 1)
     document.getElementById("ForumHot").innerHTML = "<img src='../images/loading.gif'>";
  else if(xmlHttp18.readyState == 2 || xmlHttp18.readyState == 3){}
    //document.getElementById("tip").innerHTML = "正在读取数据";
  else if(xmlHttp18.readyState == 4)
    if (xmlHttp18.status == 200)
	  document.getElementById("ForumHot").innerHTML = xmlHttp18.responseText;
}
	 

