// JavaScript Document
function loadXMLDoc(dname) 
{
	try //Internet Explorer
  	{
  		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
			try 
				{
					xmlDoc.async=false;
					xmlDoc.load(dname);
					return(xmlDoc);
				}
			catch(e) {alert(e.message)}
  	}
	catch(e)
  	{
  		try //Firefox, Mozilla, Opera,Chrome, etc.
    	{
    		var xmlhttp = new window.XMLHttpRequest();
				xmlhttp.open("GET",dname,false);
				xmlhttp.send(null);
				var xmlDoc = xmlhttp.responseXML.documentElement;
				return(xmlDoc);
    	}
  		catch(e) {alert(e.message)}
  	}
	
	
	
	return(null);
}

/* ====================================== */
function get_nextSibling(n)
{
	y=n.nextSibling;
	while (y.nodeType!=1)
  	{
  		y=y.nextSibling;
  	}
	return y;
}

/* ====================================== */
function get_previousSibling(n)
{
	y=n.previousSibling;
	while (y.nodeType!=1)
  	{
  		y=y.previousSibling;
  	}
	return y;
}

/* ====================================== */
function get_firstChild(n)
{
	y=n.firstChild;
	while (y.nodeType!=1)
  	{
  		y=y.nextSibling;
  	}
	return y;
}

/* ====================================== */
function get_lastChild(n)
{
	y=n.lastChild;
	while (y.nodeType!=1)
  	{
  		y=y.previousSibling;
  	}
	return y;
}

