// JavaScript Document

if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest()
  }
else
  {
  xhttp=new ActiveXObject("Microsoft.XMLHTTP")
  }


xhttp.open("GET","files/cd_catalog.xml",false);
xhttp.send("");
xmlDoc=xhttp.responseXML;

document.write("<div id='news'>");
var x=xmlDoc.getElementsByTagName("NEWS");
for (i=0;i<x.length;i++)
	{
	document.write("<div class='box_row'><div class='topic'>");
	document.write("<p>");
	document.write(x[i].getElementsByTagName("TOPIC")[0].childNodes[0].nodeValue);
	document.write("</p>");
	document.write(x[i].getElementsByTagName("ARTICAL")[0].childNodes[0].nodeValue);
	document.write("</div><div class='customer'>");
	document.write(x[i].getElementsByTagName("CUSTOMER")[0].childNodes[0].nodeValue);
	document.write("</div><br class='clr' /></div>");
	}
document.write("</div>");

























