var xmlHttp=createXMLHttpRequestObject();

function createXMLHttpRequestObject()
{
var xmlHttp;

try{
	xmlHttp=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHttp"):new XMLHttpRequest();
}

catch(e){
}

if(!xmlHttp)
	alert("XMLHttpRequest object creation failed");
else
	return xmlHttp;
}

function process(){
	if(xmlHttp)
	{
		try
		{	xmlHttp.open("GET","xml/list.xml",true);
			xmlHttp.onreadystatechange=handleServerResponse;
			xmlHttp.send(null);
		}
		catch(e){}
	}
}

function handleServerResponse(){
	if(xmlHttp.readyState==4)
	{	
		if(xmlHttp.status==200)
		{	
			try{
			var response=xmlHttp.responseXML;
			root=response.documentElement;
			item_name=root.getElementsByTagName("name");
			item_link=root.getElementsByTagName("link");
			show_list();
			}
			catch(e){}
		}
	}
}

function show_list(){
	var list_link;
	list_link="<ul>";
	for(i=0;i<item_name.length;i++)
	{
		list_link+="<li><a href='"+item_link.item(i).firstChild.data+"'>"+item_name.item(i).firstChild.data+"</a>";
	}	
	list_link+="</ul>";
	document.getElementById('list').innerHTML=list_link;
}