var XMLHttpReqLR;
var XMLHttpReqLR1;
var XMLHttpReqLR2;
var XMLHttpReqLR3;
var XMLHttpReqLR4;
function getNewsFromLongRe(num,wordcount,classid) 
{ 
     
     createXMLHttpRequestLR(classid);	
    var url ="bb.365?t="+Math.random()+"&wordcount="+wordcount+"&num="+num+"&classid="+classid;
    sendRequestLR(url,classid)

} 
function  createXMLHttpRequestLR(classid)  {
	  
    if(window.XMLHttpRequest)  { 
       if(classid==1){
       XMLHttpReqLR =  new  XMLHttpRequest();
       }else if(classid==34){
        XMLHttpReqLR1 =  new  XMLHttpRequest();
       }else if(classid==35){
        XMLHttpReqLR2 =  new  XMLHttpRequest();
       }else if(classid==36){
        XMLHttpReqLR3 =  new  XMLHttpRequest();
       }else if(classid==37){
        XMLHttpReqLR4 =  new  XMLHttpRequest();
       }
     }
     else  if  (window.ActiveXObject)  { 
     try  {
        if(classid==1){
       XMLHttpReqLR =   new  ActiveXObject("Msxml2.XMLHTTP");

       }else if(classid==34){
        XMLHttpReqLR1 =   new  ActiveXObject("Msxml2.XMLHTTP");

       }else if(classid==35){
        XMLHttpReqLR2 =   new  ActiveXObject("Msxml2.XMLHTTP");

       }else if(classid==36){
        XMLHttpReqLR3 =   new  ActiveXObject("Msxml2.XMLHTTP");

       }else if(classid==37){
        XMLHttpReqLR4 =  new  ActiveXObject("Msxml2.XMLHTTP");

       }

       
     }catch(e){
        try  {
              if(classid==1){
       XMLHttpReqLR =  new  ActiveXObject("Microsoft.XMLHTTP");

       }else if(classid==34){
        XMLHttpReqLR1 = new  ActiveXObject("Microsoft.XMLHTTP");

       }else if(classid==35){
        XMLHttpReqLR2 =  new  ActiveXObject("Microsoft.XMLHTTP");

       }else if(classid==36){
        XMLHttpReqLR3 =  new  ActiveXObject("Microsoft.XMLHTTP");

       }else if(classid==37){
        XMLHttpReqLR4 =  new  ActiveXObject("Microsoft.XMLHTTP");

       }
      }catch(e){}
     }
    }
    
}
function  sendRequestLR(username,classid)  {
		var  url  =  username;
       if(classid==1){
	       XMLHttpReqLR.open("post", url,  true);
		XMLHttpReqLR.onreadystatechange  =  processResponseNewLR
	       XMLHttpReqLR.send(null);

       }else if(classid==34){
	        XMLHttpReqLR1.open("post", url,  true);
		XMLHttpReqLR1.onreadystatechange  =  processResponseNewLR1
	       XMLHttpReqLR1.send(null);

       }else if(classid==35){
	        XMLHttpReqLR2.open("post", url,  true);
		XMLHttpReqLR2.onreadystatechange  =  processResponseNewLR2
	       XMLHttpReqLR2.send(null);

       }else if(classid==36){
	        XMLHttpReqLR3.open("post", url,  true);
		XMLHttpReqLR3.onreadystatechange  =  processResponseNewLR3
	       XMLHttpReqLR3.send(null);

       }else if(classid==37){
	        XMLHttpReqLR4.open("post", url,  true);
		XMLHttpReqLR4.onreadystatechange  =  processResponseNewLR4
	       XMLHttpReqLR4.send(null);

       }

		
	  
		
}
function  processResponseNewLR()  {
      if(XMLHttpReqLR.readyState  ==  4){
        if(XMLHttpReqLR.status  ==  200){
		IsDisplayNewLR();
          
        }  else  {
        	
        }
      }

}
function  processResponseNewLR1()  {
      if(XMLHttpReqLR1.readyState  ==  4){
        if(XMLHttpReqLR1.status  ==  200){
		IsDisplayNewLR1();
          
        }  else  {
        	
        }
      }

}
function  processResponseNewLR2()  {
      if(XMLHttpReqLR2.readyState  ==  4){
        if(XMLHttpReqLR2.status  ==  200){
		IsDisplayNewLR2();
          
        }  else  {
        	
        }
      }

}
function  processResponseNewLR3()  {
      if(XMLHttpReqLR3.readyState  ==  4){
        if(XMLHttpReqLR3.status  ==  200){
		IsDisplayNewLR3();
          
        }  else  {
        	
        }
      }

}
function  processResponseNewLR4()  {
      if(XMLHttpReqLR4.readyState  ==  4){
        if(XMLHttpReqLR4.status  ==  200){
		IsDisplayNewLR4();
          
        }  else  {
        	
        }
      }

}
function parse1(xml) {
	var dom;
	try{
		dom = new ActiveXObject("Microsoft.XMLDOM");
		dom.async = false;
		dom.loadXML(xml);
	} catch (error) {
	  try{
			var parser = new DOMParser();
			dom = parser.parseFromString(xml, "text/xml");
			delete parser;
		} catch (error2) {
			if (debug)
				alert("XML parsing is not supported.");
	    }
	  }
	return dom;
}


function IsDisplayNewLR(){
       try{
	   var doc=xmlDocument(""+XMLHttpReqLR.responseText);
            var hotprofessor="";
            if(doc.getElementsByTagName("Code")[0].firstChild==null||doc.getElementsByTagName("Code")[0].firstChild.nodeValue=="D"){
	    	 hotprofessor="<table width='98%' border='0' cellpadding='0' cellspacing='0' ><tr><td >暂无最新新闻!</td></tr></table>";
	    }else{
	    	 hotprofessor="<table width='98%' border='0' cellpadding='0' cellspacing='0' >";
	    	 var list=xpathSelectNodes(doc,"/Result/News/New",false);
	    	 var tablecontent="";
	    	 var j=0;
	    	 for(j=0;j<list.length;j++) {
                     

	    	     var doc3=xmlDocument(""+xmlText(list[j]));
                     
	    	     var mydate=new Date();
	    	     tablecontent=tablecontent+"<tr>";
	    	     tablecontent=tablecontent+"<td ><a style='cursor:hand' onclick=javascript:openLongRe('"+doc3.getElementsByTagName("id")[0].firstChild.nodeValue+"');  href='javascript:void();' title='"+doc3.getElementsByTagName("content")[0].firstChild.nodeValue+"'>"+doc3.getElementsByTagName("content")[0].firstChild.nodeValue+"</td>";
                     tablecontent=tablecontent+"</tr>";
                  }
         
                  hotprofessor=hotprofessor+tablecontent+"</table></td></tr></table>";
                 
                  
	         }
                 if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="1"){ 
                  document.getElementById("newlr").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="34"){ 
                  document.getElementById("newop").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="35"){ 
                  document.getElementById("newsr").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="36"){ 
                  document.getElementById("newgj").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="37"){ 
                  document.getElementById("new365").innerHTML=hotprofessor;
                 }
     }catch(e){
            
     }
            
	    
	}

function IsDisplayNewLR1(){
     try{
	   var doc=xmlDocument(""+XMLHttpReqLR1.responseText);
            var hotprofessor="";
            if(doc.getElementsByTagName("Code")[0].firstChild==null||doc.getElementsByTagName("Code")[0].firstChild.nodeValue=="D"){
	    	 hotprofessor="<table width='98%' border='0' cellpadding='0' cellspacing='0' ><tr><td >暂无最新新闻!</td></tr></table>";
	    }else{
	    	 hotprofessor="<table width='98%' border='0' cellpadding='0' cellspacing='0' >";
	    	 var list=xpathSelectNodes(doc,"/Result/News/New",false);
	    	 var tablecontent="";
	    	 var j=0;
	    	 for(j=0;j<list.length;j++) {
                    

	    	     var doc3=xmlDocument(""+xmlText(list[j]));
                    
	    	     var mydate=new Date();
	    	     tablecontent=tablecontent+"<tr>";
	    	     tablecontent=tablecontent+"<td ><a style='cursor:hand' onclick=javascript:openLongRe('"+doc3.getElementsByTagName("id")[0].firstChild.nodeValue+"');  href='javascript:void();' title='"+doc3.getElementsByTagName("content")[0].firstChild.nodeValue+"'>"+doc3.getElementsByTagName("content")[0].firstChild.nodeValue+"</td>";
                     tablecontent=tablecontent+"</tr>";
                  }
         
                  hotprofessor=hotprofessor+tablecontent+"</table></td></tr></table>";
                 
                  
	         }
                 if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="1"){ 
                  document.getElementById("newlr").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="34"){ 
                  document.getElementById("newop").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="35"){ 
                  document.getElementById("newsr").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="36"){ 
                  document.getElementById("newgj").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="37"){ 
                  document.getElementById("new365").innerHTML=hotprofessor;
                 }
     }catch(e){
            
     }
           
            
	    
	}
function IsDisplayNewLR2(){
     try{
	   var doc=xmlDocument(""+XMLHttpReqLR2.responseText);
            var hotprofessor="";
            if(doc.getElementsByTagName("Code")[0].firstChild==null||doc.getElementsByTagName("Code")[0].firstChild.nodeValue=="D"){
	    	 hotprofessor="<table width='98%' border='0' cellpadding='0' cellspacing='0' ><tr><td >暂无最新新闻!</td></tr></table>";
	    }else{
	    	 hotprofessor="<table width='98%' border='0' cellpadding='0' cellspacing='0' >";
	    	 var list=xpathSelectNodes(doc,"/Result/News/New",false);
	    	 var tablecontent="";
	    	 var j=0;
	    	 for(j=0;j<list.length;j++) {
                    

	    	     var doc3=xmlDocument(""+xmlText(list[j]));
                    
	    	     var mydate=new Date();
	    	     tablecontent=tablecontent+"<tr>";
	    	     tablecontent=tablecontent+"<td ><a style='cursor:hand' onclick=javascript:openLongRe('"+doc3.getElementsByTagName("id")[0].firstChild.nodeValue+"');  href='javascript:void();' title='"+doc3.getElementsByTagName("content")[0].firstChild.nodeValue+"'>"+doc3.getElementsByTagName("content")[0].firstChild.nodeValue+"</td>";
                     tablecontent=tablecontent+"</tr>";
                  }
         
                  hotprofessor=hotprofessor+tablecontent+"</table></td></tr></table>";
                 
                  
	         }
                 if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="1"){ 
                  document.getElementById("newlr").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="34"){ 
                  document.getElementById("newop").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="35"){ 
                  document.getElementById("newsr").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="36"){ 
                  document.getElementById("newgj").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="37"){ 
                  document.getElementById("new365").innerHTML=hotprofessor;
                 }
     }catch(e){
            
     }
             
	    
	}
function IsDisplayNewLR3(){
     try{
	   var doc=xmlDocument(""+XMLHttpReqLR3.responseText);
            var hotprofessor="";
            if(doc.getElementsByTagName("Code")[0].firstChild==null||doc.getElementsByTagName("Code")[0].firstChild.nodeValue=="D"){
	    	 hotprofessor="<table width='98%' border='0' cellpadding='0' cellspacing='0' ><tr><td >暂无最新新闻!</td></tr></table>";
	    }else{
	    	 hotprofessor="<table width='98%' border='0' cellpadding='0' cellspacing='0' >";
	    	 var list=xpathSelectNodes(doc,"/Result/News/New",false);
	    	 var tablecontent="";
	    	 var j=0;
	    	 for(j=0;j<list.length;j++) {
                    

	    	     var doc3=xmlDocument(""+xmlText(list[j]));
                    
	    	     var mydate=new Date();
	    	     tablecontent=tablecontent+"<tr>";
	    	     tablecontent=tablecontent+"<td ><a style='cursor:hand' onclick=javascript:openLongRe('"+doc3.getElementsByTagName("id")[0].firstChild.nodeValue+"');  href='javascript:void();' title='"+doc3.getElementsByTagName("content")[0].firstChild.nodeValue+"'>"+doc3.getElementsByTagName("content")[0].firstChild.nodeValue+"</td>";
                     tablecontent=tablecontent+"</tr>";
                  }
         
                  hotprofessor=hotprofessor+tablecontent+"</table></td></tr></table>";
                 
                  
	         }
                 if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="1"){ 
                  document.getElementById("newlr").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="34"){ 
                  document.getElementById("newop").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="35"){ 
                  document.getElementById("newsr").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="36"){ 
                  document.getElementById("newgj").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="37"){ 
                  document.getElementById("new365").innerHTML=hotprofessor;
                 }
     }catch(e){
            
     }
          
            
	    
	}
function IsDisplayNewLR4(){
       try{
	   var doc=xmlDocument(""+XMLHttpReqLR4.responseText);
            var hotprofessor="";
            if(doc.getElementsByTagName("Code")[0].firstChild==null||doc.getElementsByTagName("Code")[0].firstChild.nodeValue=="D"){
	    	 hotprofessor="<table width='98%' border='0' cellpadding='0' cellspacing='0' ><tr><td >暂无最新新闻!</td></tr></table>";
	    }else{
	    	 hotprofessor="<table width='98%' border='0' cellpadding='0' cellspacing='0' >";
	    	 var list=xpathSelectNodes(doc,"/Result/News/New",false);
	    	 var tablecontent="";
	    	 var j=0;
	    	 for(j=0;j<list.length;j++) {
                    

	    	     var doc3=xmlDocument(""+xmlText(list[j]));
                    
	    	     var mydate=new Date();
	    	     tablecontent=tablecontent+"<tr>";
	    	     tablecontent=tablecontent+"<td ><a style='cursor:hand' onclick=javascript:openLongRe('"+doc3.getElementsByTagName("id")[0].firstChild.nodeValue+"');  href='javascript:void();' title='"+doc3.getElementsByTagName("content")[0].firstChild.nodeValue+"'>"+doc3.getElementsByTagName("content")[0].firstChild.nodeValue+"</td>";
                     tablecontent=tablecontent+"</tr>";
                  }
         
                  hotprofessor=hotprofessor+tablecontent+"</table></td></tr></table>";
                 
                  
	         }
                 if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="1"){ 
                  document.getElementById("newlr").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="34"){ 
                  document.getElementById("newop").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="35"){ 
                  document.getElementById("newsr").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="36"){ 
                  document.getElementById("newgj").innerHTML=hotprofessor;
                 }else if(doc.getElementsByTagName("Classid")[0].firstChild.nodeValue=="37"){ 
                  document.getElementById("new365").innerHTML=hotprofessor;
                 }
     }catch(e){
            
     }
           
	    
	}


