var xmlDoc = null;
var ieflag = 'ie';
function loadXML(xmlfile)
{
	//show others
	if (window.ActiveXObject){
		xmlDoc = new ActiveXObject('Msxml2.DOMDocument');
		xmlDoc.async=false;
		xmlDoc.load(xmlfile);
		ieflag = 'ie';
	}else if (document.implementation && document.implementation.createDocument){
		var xmlhttp = new window.XMLHttpRequest();
		xmlhttp.open("GET",xmlfile,false);
		xmlhttp.send(null);
		var xmlDoc = xmlhttp.responseXML;
		while(xmlDoc.readyState < 4){};
		ieflag = 'o';
	}
	if(xmlDoc!=null)
		xmlDoc.async = false;
	return xmlDoc
}

function selectNodes(ele,xpath){
	if(ieflag=='ie'){
		//alert(xpath);
		//return ele.selectNodes(xpath);
		//alert(ele.childNodes[0].firstChild.firstChild);//.getElementsByTagName(xpath).innerHTML);
		//alert(ele.getElementsByTagName(xpath)[0].nodeName);
		//var v = new Array();
		//for(i=0;i<ele.childNodes.length;i++){
			//alert(ele.childNodes.length);
		//}
		//v[0]=ele.childNodes[0].firstChild;
		return ele.getElementsByTagName(xpath);
	}
	return ele.getElementsByTagName(xpath);
		//aSize=newsList2[j].getElementsByTagName("Size")[0].childNodes[0].nodeValue;
	//}
}