///////////////
//
// for chinatibetnews.com
// 访问量统计

function openXml(xmlFile)
	{
		var xmlDoc;
		try //Internet Explorer
		  {
		  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
		  }
		catch(e)
		  {
		  try //Firefox, Mozilla, Opera, etc.
		    {
		    xmlDoc=document.implementation.createDocument("","",null);
		    }
		  catch(e) {alert(e.message)}
		  }
		try 
		  {
		  xmlDoc.async=false;
		  xmlDoc.load(xmlFile);
		  return(xmlDoc)
		  }
		catch(e) {alert(e.message)}
	}
function getDataT(xmlDoc)
	{
		var Tname = xmlDoc.getElementsByTagName("value");
		
		var titlenum=Tname.length/7;
	    if (titlenum){
        document.write("<ul>");
		for(i=0;i<titlenum;i++)
		 {
		  document.write("<li><a target='_blank' href='");
		  document.write(Tname[(i*7)+5].childNodes[0].nodeValue);
		  document.write("' title='");
		  document.write(Tname[(i*7)+2].childNodes[0].nodeValue);
		  document.write("'>");
		  document.write(Tname[(i*7)+1].childNodes[0].nodeValue);
		  document.write("</a>");
		  document.write("</li>");
		 }
    document.write("</ul>");
     }
		
}

