

//function createAjax(){
	   //var _xmlhttp;
       //if(window.ActiveXObject){
         //_xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
       //}else{
         //_xmlhttp=new XMLHttpRequest();
       //}
	   //return _xmlhttp;
       //}

//function getnews() { //该函数用来获取数据
//var xmlhttp1=createAjax(); 
//if (xmlhttp1) { 
//var span=document.getElementById('news'); // 获取显示节点
//xmlhttp1.open('get','/book/newsxml.php?n='+Math.random(),true); 
//xmlhttp1.onreadystatechange=function() {
	//if (xmlhttp1.readyState==4 && xmlhttp1.status==200)
   //{ 
    //span.innerHTML=unescape(xmlhttp1.responseText); 
    //}
   //else {
   // span.innerHTML='<img src="images/loading.gif" /><span style="color:blank">loading...</span>'; 
   //}

//}
//xmlhttp1.send(null); 
//}
//}

       var xmlHttpRequest;
       function createXML(){
       if(window.ActiveXObject){
         xmlHttpRequest=new ActiveXObject("Microsoft.XMLHTTP");
       }else{
         xmlHttpRequest=new XMLHttpRequest();
       }
       }
   function getnews(){
     createXML();
     var url='/book/newsxml.php?n='+Math.random();
     xmlHttpRequest.onreadystatechange=handlestatechange;
     xmlHttpRequest.open("GET",url,true);
     xmlHttpRequest.send(null);
   }
   function handlestatechange(){
     if(xmlHttpRequest.readyState==4){//HTTP就绪状态，响应已完成，可以访问服务器响应并使用它
     if(xmlHttpRequest.status==200){//服务器状态码
       document.getElementById('news').innerHTML=unescape(xmlHttpRequest.responseText); 
     }
     }
   }
   
   
   
   
   function onlinese(){
var tdomain=document.domain;
var turl='http://srv.chat4support.com/main.asp?sid=9050&sTag=NOBLEPEN&url=http%253A//'+tdomain+'/&';
//this.location.href=''+turl+'';
window.open(turl,"_blank")
}
