
var wmtt = null;
function showhelp(element,id){
	wmtt = document.getElementById("help" + id);
	document.onmousemove = update;
	wmtt.style.display = "block";
}

function hidehelp(elm,id){
	document.onmousemove = null;
	document.getElementById("help" + id).style.display = "none";
}

function update(e) {
	if (typeof window.pageYOffset != 'undefined') {
	   	x = (document.all) ? window.event.x + window.pageXOffset : e.pageX;
		y = (document.all) ? window.event.y + window.pageYOffset  : e.pageY;
	}
	else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
		x = (document.all) ? window.event.x + document.documentElement.scrollLeft : e.pageX;
		y = (document.all) ? window.event.y + document.documentElement.scrollTop  : e.pageY;
	}
	else if (typeof document.body != 'undefined') {
	   	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
		y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	}
	if (wmtt != null) {
		wmtt.style.left = (x+10) + "px";
		wmtt.style.top 	= (y+10) + "px";
	}
}

