function getPageCoords (elementId) {
	var element;
	if (document.all)
		element = document.all[elementId];
	else if (document.getElementById)
		element = document.getElementById(elementId);
	if (element) {
		var coords = {x: 0, y: 0};
		do {
			if(element.currentStyle) {
				if(element.currentStyle.position!='relative') {
					coords.x += element.offsetLeft;
					coords.y += element.offsetTop;
				}
			}
			else {
				coords.x += element.offsetLeft;
				coords.y += element.offsetTop;
			}
			element = element.offsetParent;
		}
		while (element)
			return coords;
	}
	else
		return null;
}

function showWMTT(id,el) {
	var coords = getPageCoords(el);
	if (coords) {
		wmtt = document.getElementById(id);
		//alert (wmtt);
		if (wmtt != null) {
			wmtt.style.left = (coords.x) + "px";
			wmtt.style.top  = (coords.y + 20) + "px";
		wmtt.style.display = "block"
		}
	}
}

function hideWMTT() {
	if (wmtt != null) {
		wmtt.style.display = "none";
	}
}

