var tipsY, tipsX
var dataTip
var dataTipTable
var dataTipBody
		
function toolTip(tips,e){
	dataTipBody = document.getElementById("toolDataBody")
	dataTipTable = document.getElementById("toolData")
	dataTip = document.getElementById("toolTipPopup")
			
	var row = document.createElement("tr");
	var cell = document.createElement("td");
			
	cell.setAttribute("border", "0");
	cell.setAttribute("align", "left");
	var p = document.createElement("p");
	p.style.font="normal 12px arial";
			
	p.appendChild(tips)
	p.style.margin="0";
	cell.appendChild(p)
	row.appendChild(cell)
	dataTipBody.appendChild(row)
			
	e = e||event;
	dataTip.style.left = e.clientX + 5
	dataTip.style.top = e.clientY
}
		
function clearTips(){
	var dataTipBody = document.getElementById("toolDataBody");
	var ind = dataTipBody.childNodes.length;
	for(var i = ind - 1; i >=0; i--){
		dataTipBody.removeChild(dataTipBody.childNodes[i]);
	}
}
