var xmlDoc=null;
if (window.ActiveXObject) {// code for IE
	xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument) {// code for Mozilla, Firefox, Opera, etc.
	xmlDoc=document.implementation.createDocument("","",null);
}
else {
	alert('이 브라우저는 꾸졌군요.');
}
if (xmlDoc!=null) {
	xmlDoc.async=false;
	xmlDoc.load("http://sulfur.pe.kr/index.xml");

	document.write('<div class="rbox"><h3>새 글일까나?</h3><ul>')

	var x=xmlDoc.getElementsByTagName("item");
	for (i=0;i<7;i++) { 
//	for (i=0;i<x.length;i++) { 
		document.write('<li><a href=\"');
		document.write(x[i].getElementsByTagName("link")[0].childNodes[0].nodeValue);
		document.write('\">');
		document.write(x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
		document.write('</a></li>');
	}

	document.write('</ul></div>')
}

