function GetQueryValue(name)    {     
	 	var   reg=new   RegExp("(^|&)"+   name   +"=([^&]*)(&|$)");    
	 	var   r=window.location.search.substr(1).match(reg);     
	 	if   (r!=null)   return   unescape(r[2]);     
	 	return   "";      
	 	}
function getTid(){
var id = 0;		
	
	var url = window.location.href;
	if(url.indexOf("tid")!= -1){
	 	  id = GetQueryValue("tid");	
	 } 
	 
	else{
		url = window.location.pathname;
		var  strArray = new   Array();   
   			 strArray = url.split("/");  
   			 
          	 id =  strArray[strArray.length-2] ;  
          	 
	}	
	return id;
}	
var req;
	function freshIfram(){
	//var tid=document.getElementById("tid");
	var tid=getTid();
     req = new ActiveXObject("Msxml2.XMLHTTP");
     req.onreadystatechange=MyExe;
    var serverUrl="http://"+DL_SERVER+"/application/relationArticle/p_webRelated.jsp?tid="+tid;
 //var serverUrl="http://localhost/sites/bangongting/preview/p_webRelated.jsp?tid="+tid;
     req.open("POST",serverUrl,false);
     req.send(null);
	}
	function MyExe(){
	if(req.readyState==4){
	var retr=req.responseText;
	document.write(retr);
		}
	}
	function freshIfram2(){
	//var tid=document.getElementById("tid");
	var tid=getTid();
     req = new ActiveXObject("Msxml2.XMLHTTP");
     req.onreadystatechange=MyExe;
    var serverUrl="http://"+DL_SERVER+"/application/relationArticle/p_webRelated.jsp?tid="+tid+"&align=english";
 //var serverUrl="http://localhost/sites/bangongting/preview/p_webRelated.jsp?tid="+tid;
     req.open("POST",serverUrl,false);
     req.send(null);
	}
	function MyExe(){
	if(req.readyState==4){
	var retr=req.responseText;
	document.write(retr);
		}
	}