function GetXmlHttpObject()
      {
		var xmlHttp=null;
		try
		  {
		  // Firefox, Opera 8.0+, Safari
		  xmlHttp=new XMLHttpRequest();
		  }
		catch (e)
		  {
		  // Internet Explorer
		  try
			{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
		  catch (e)
			{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
		  }
		return xmlHttp;
		}


function selectTag(showContent,selfObj,type){
	// 操作标签
	      xmlHttp=GetXmlHttpObject();
      if (xmlHttp==null)
        {
         alert ("Your browser does not support AJAX!");
        return;
        } 

	var tag = document.getElementById("tags").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	// 操作内容
	
	    var url = "index_news.php";
		url = url+"?uid="+showContent+"&type="+type;
	    xmlHttp.open("GET",url,true);
		xmlHttp.onreadystatechange =stateChanged;
		xmlHttp.send(null);
  }
		

	
	function stateChanged() {
			
		if (xmlHttp.readyState==4){
			document.getElementById("show_news").innerHTML=xmlHttp.responseText;
		   }
	   }
	
	
	
	
	












