function loadXMLDoc(dname)
{
var xmlDoc;
try {
	xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	xmlDoc.async=false;
	xmlDoc.load(dname);
	number=xmlDoc.getElementsByTagName("testimonials")[0].childNodes.length;
	return xmlDoc;
}
catch(e) {
	xmlDoc=new window.XMLHttpRequest();
	xmlDoc.open("GET",dname,false);
	xmlDoc.send("");
	xmlContents = xmlDoc.responseXML
	doublenumber=xmlContents.getElementsByTagName("testimonials")[0].childNodes.length;//in non-IE browsers, childNodes.length includes the /n's between each node, so the count is (approx) twice as high as it should be
	number=Math.floor(doublenumber/2);//getting the correct number of child nodes.
	return xmlContents;
}
alert("Error loading document");
return null;
}
xmlDoc=loadXMLDoc("/testimonials/testimonials.xml");
var randomNumber=Math.floor(((new Date().getSeconds())/60)*number);
