<!--
//Used for xml information
var xDoc;
	// verify that browser supports XML features and load external .xml file
function verifySupport(xFile) {
	if (document.implementation && document.implementation.createDocument) {
		// this is the W3C DOM way, supported so far only in NN6+
		xDoc = document.implementation.createDocument("", "theXdoc", null);
	} else if (typeof ActiveXObject != "undefined") {
		// make sure real object is supported (sorry, IE5/Mac)
		if (document.getElementById("msxml").async) {
			xDoc = new ActiveXObject("Msxml.DOMDocument");
		}
	}
	if (xDoc && typeof xDoc.load != "undefined") {
		// load external file (from same domain)
		xDoc.load(xFile);
		return true;
	} else {
		var reply = confirm("This example requires a browser with XML support, " +
			"such as IE5+/Windows or Netscape 6+.\n \nGo back to previous page?");
		if (reply) {
			history.back( );
		}
	}
	return false;
}

function init(xFile) {
	// confirm browser supports needed features and load .xml file
	if (verifySupport(xFile)) {
		// let file loading catch up to execution thread
		setTimeout("writeCDLsummary()", 1000);
	}
}
	
function writeCDLsummary(){
	var x="<table class='nb' width='100%'>";
	var y="<img src='images/bstar.gif' width='15' height='15'>";
	var data=xDoc.getElementsByTagName("details")[0];
	for (i = 0; i < data.childNodes.length; i++) {
		// use only 1st level element nodes to skip 1st level text nodes in NN
		if (data.childNodes[i].nodeType == 1) {
			// one final match record
			oneRecord = data.childNodes[i];
			x+="<tr><td valign='top'>"+y+"</td><td><a href='";
			x+=showNodeValue(oneRecord,"alink");
			x+="'>";
			x+=showNodeValue(oneRecord,"text");
			x+="</a></td></tr>";
		}
		if(i>=4){i=data.childNodes.length;}
	}
	x+="</table>";
	document.getElementById("cdlData").innerHTML=x;
	var y=document.getElementById("CDLList").innerHTML.substr(0,3);
	if(y=="&nb"){writeCDLList();}
}

function writeCDLList(){
	var x="<table class='nb' width='100%'>";
	var data=xDoc.getElementsByTagName("details")[0];
	for (i = 0; i < data.childNodes.length; i++) {
		// use only 1st level element nodes to skip 1st level text nodes in NN
		if (data.childNodes[i].nodeType == 1) {
			// one final match record
			oneRecord = data.childNodes[i];
			x+="<tr><td valign='top'>"+showNodeValue(oneRecord,"date")+"&nbsp;-&nbsp;</td>";
			x+="<td valign='top'><a href='"+showNodeValue(oneRecord,"alink");
			x+="'>";
			x+=showNodeValue(oneRecord,"text");
			x+="</a></td></tr>";
		}
	}
	x+="</table>";
	document.getElementById("CDLList").innerHTML=x;
}
function showNodeValue(record,what){
	return record.getElementsByTagName(what)[0].firstChild.nodeValue;
}
//Moving Back to Top
// --> 
