function LoadDailyTip()
{
	var anXmlDoc = DOM_loadUrl("daily_tips.xml");
	if (anXmlDoc.parseError.errorCode != 0)
	{
	   alert( "XML error: " + anXmlDoc.parseError.reason + " at line "
			+ anXmlDoc.parseError.line + " position " + anXmlDoc.parseError.linepos );
	   return;
	}
	var d = new Date();
	var aTipElement = anXmlDoc.selectNodes("//tip[@day='" + d.getDate() + "']"); // or d.getDay()
	if (aTipElement == null || aTipElement.length == 0) return ;
	
	var aHeaderText = document.getElementById("DailyTip").childNodes[1];
	aHeaderText.firstChild.nodeValue = aTipElement[0].getAttribute("title");
	var aParagraphText = aHeaderText.nextSibling ;
	aParagraphText.firstChild.nodeValue = aTipElement[0].firstChild.nodeValue;
}
